blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
6f8e7165eae8d8aba10237904c8aa4600df3aa58
PHP
FatimaYacoubi/PureBowl
/PureBowl/Controller/tutoC.php
UTF-8
422
2.703125
3
[]
no_license
<?PHP include "../config.php"; class tutoC { function displayTuto($tutoName){ $sql="select duration , dishes.name, ingredients, steps from recipes INNER JOIN dishes on recipes.name=dishes.name where dishes.name=\"$tutoName\""; $db = config::getConnexion(); try{ $liste = $db->query($sql); return...
true
4a677c7aae0672338e710757e917b28a8f263581
PHP
book-e-shop/book-e-shop
/app/ajax_search.php
UTF-8
1,044
2.8125
3
[ "MIT" ]
permissive
<?php require 'db.php'; if (isset($_POST["query"])) { $search = mysqli_real_escape_string($connect, $_POST["query"]); $searched_books = mysqli_query( $connect, "SELECT `books`.*, MATCH (`name`, `description`) AGAINST ('$search') AS score, MATCH (`name`) AGAINST ('$search') AS name_score ...
true
18dc2331eabccd3a2eeb5502f927817865eb5ce7
PHP
sevenreek/laraprojects
/database/migrations/2020_09_04_170345_create_contributions_table.php
UTF-8
1,245
2.609375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateContributionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('access_le...
true
7f15a687054fbd58e69504f1570908d7af0f6a91
PHP
ministryofjustice/opg-use-an-lpa
/service-front/app/src/Common/src/Service/Security/UserIdentificationService.php
UTF-8
2,002
2.84375
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Common\Service\Security; use Common\Service\Log\EventCodes; use Psr\Log\LoggerInterface; class UserIdentificationService { public function __construct(private LoggerInterface $logger) { } /** * Builds a unique userId that can be used to identify users f...
true
9b9c3fba8c5746c99840506aecc4544a4c311705
PHP
scls19fr/openphysic
/php/color/color_manipulations.php
UTF-8
1,314
3.15625
3
[]
no_license
<?php /* Augmente la luminosité de la couleur d'arrière plan lorsqu'elle est trop proche de celle du texte Limitation : Ne fonctionne que pour des couleurs de texte noire */ require_once("class_color.inc.php"); function contraster(&$backgroundcolor, &$textcolor) { if ($textcolor=="#000000") { $c_backgroundcol...
true
9eae92321a9133718c2d37bf7bd9f63b2a76b9e6
PHP
riedayo/HAKEN
/ankenDetail.php
UTF-8
7,943
2.78125
3
[]
no_license
<?php //共通変数・関数ファイルを読み込む require('function.php'); debug('「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「'); debug('「 ankenDetail 「'); debug('「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「'); debugLogStart(); //ログイン認証 require('auth.php'); //案件idのGETパラメータを取得 $a_id = $_GET['a_id']; //ユーザー情報を代入 if(array_key_exists('user_id',$_SESSION)){ $use...
true
55887ff7fc86da219ed43252abd5eab0f7e1a123
PHP
echoyl/sa
/src/Models/workflow/Node.php
UTF-8
1,476
2.578125
3
[]
no_license
<?php namespace Echoyl\Sa\Models\workflow; use Echoyl\Sa\Models\workflow\Node as WorkflowNode; use Echoyl\Sa\Models\Base; class Node extends Base { /** * 与模型关联的数据表 * * @var string */ protected $table = 'workflow_node'; public function getParseColumns() { static $data = []; ...
true
1156f262c77e75c70657fc182c236b6b852031b4
PHP
xcodeselvavignesh/HouseManagement
/api/MailStatusAPI.php
UTF-8
972
2.703125
3
[]
no_license
<?php //creating reponse array $response = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { // including the Mail Status file require_once '../includes/MailStatus.php'; //getting values $jsonarray = json_decode(file_get_contents('php://input'), true); $db = new MailStatus(); if ($jsonarray["ProcessName"] == "...
true
ed5a35e3eeadacaca809428b4525a99804acd9a7
PHP
dimabe2019/overall-final
/Vistas/login.php
UTF-8
7,210
2.609375
3
[]
no_license
<?php session_start(); include '../Utils/conexion.php'; // Verifique si el usuario ya ha iniciado sesión, si es así, rediríjalo a la página de bienvenida if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: ../Vistas/mostr...
true
1f51a046392908601477e3e9afa4af93fc7eef12
PHP
havvg/monolog-recursive-processor
/LoggableInterface.php
UTF-8
226
2.640625
3
[ "MIT" ]
permissive
<?php namespace Havvg\Monolog\RecursiveProcessor; interface LoggableInterface { /** * Returns a loggable representation of the current object. * * @return mixed */ public function toLogEntry(); }
true
85de5b4768c669762bd8134115b546553b8b9d9a
PHP
viwendy/daxinhe
/Application/Common/Model/ContributionModel.class.php
UTF-8
3,432
2.796875
3
[]
no_license
<?php namespace Common\Model; /** * 章节操作model */ class ContributionModel extends BaseModel{ /** * 判断章节是否需要打赏或者已经打赏过 * @param $chapter_id * @param $is_set_price * @return bool */ public static function has_contribution($chapter_id, $is_set_price) { $user_id = session('member.id'); if( $is_set_price ==...
true
e48cabd1a8fe794f1c5da8b25f14adadd21f3d47
PHP
ncjoes/staff_appraisal_system
/class_lib/domain/TutorialStaff.php
UTF-8
3,002
2.8125
3
[]
no_license
<?php /** * Phoenix Laboratories NG. * Author: N. C. Joseph (phoenixlabs.ng@gmail.com) * Project: staff_portal * Date: 7/8/15 * Time: 8:19 PM */ namespace class_lib\domain; use \class_lib\mapper\MapperRegistry; use \class_lib\mapper\collections\PublicationCollection; use \class_lib\mapper\collections\Supervisio...
true
d683b3f336c5897a6507a56195e0f9e7d28a04d2
PHP
akambi/Mathsup
/src/Msp/UserBundle/Form/RegistrationEleveFormFlow.php
UTF-8
2,386
2.546875
3
[ "MIT" ]
permissive
<?php namespace Msp\UserBundle\Form; use Craue\FormFlowBundle\Form\FormFlow; use Craue\FormFlowBundle\Form\FormFlowInterface; use Symfony\Component\Form\FormTypeInterface; use Msp\UserBundle\Form\RegistrationEleveForm; class RegistrationEleveFormFlow extends FormFlow { protected $allowDynamicStepNavigation ...
true
538f2ee26eac19bb58b59824b2ffdcaeca81bfff
PHP
blab2015/seh
/src/Seh/Bundle/SehBundle/Validator/Constraints/CheckPasswordFormatValidator.php
UTF-8
1,196
2.671875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Seh\Bundle\SehBundle\Validator\Constraints; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; class CheckPasswordFormatValidator extends ConstraintValidator { private $alphaRegex = '/[a-zA-Z]+/'; private $numericRegex = '/[0-9]+/'; private ...
true
f86dd334adef419a8a5a6cd9292e74caa8fc4e17
PHP
Philipinho/Simple-PHP-Blog
/admin.php
UTF-8
2,771
2.78125
3
[]
no_license
<?php require_once 'connect.php'; require_once 'header.php'; require_once 'security.php'; ?> <h2 class="w3-container w3-teal w3-center">Admin Dashboard</h2> <div class="w3-container"> <p>Welcome <?php echo $_SESSION['username']; ?>,</p> <p><a href="new.php" class="w3-button w3-teal">Create new p...
true
fb2ba3ca2ef9ce83ee6b866c993cfdd0794021fe
PHP
Maskips/tugass
/oop/form_oop_output.php
UTF-8
1,080
3.59375
4
[]
no_license
<?php class perhitungan { public $bil1; public $bil2; public function __construct($bil1, $bil2) { $this->bil1 = $bil1; $this->bil2 = $bil2; } public function tambah() { $tambah = $this->bil1 + $this->bil2; return "- P...
true
bb37df5def9fd339f80193a6b65a8259f242a011
PHP
LZinina/havas-test
/app/Repositories/CategoriesRepository.php
UTF-8
872
2.828125
3
[ "MIT" ]
permissive
<?php namespace Corp\Repositories; use Gate; use Corp\Category; class CategoriesRepository extends Repository { public function __construct (Category $category) { $this->model = $category; } public function addCategory($request) { if(Gate::denies('save', new \Corp\Article)) { abort(403); } $d...
true
ac642d34efea11660e450d50f55a9479914d1010
PHP
emman31/scripts
/keep_talking/password_generator.sh
ISO-8859-2
1,766
2.890625
3
[]
no_license
#!/usr/bin/php <?php $mots = array( 'about', 'after', 'again', 'below', 'could', 'every', 'first', 'found', 'great', 'house', 'large', 'learn', 'never', 'other', 'place', 'plant', 'point', 'right', 'small', 'sound', 'spell', 'still', 'study', 'their', 'there', 'these', 'thing', 'think', 'three', 'water', ...
true
e1e012af5948688631a27a72deee5182fe3f8719
PHP
purwandas/sitaku
/app/TrendMoment.php
UTF-8
1,035
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use App\BaseModel; use Illuminate\Database\Eloquent\SoftDeletes; class TrendMoment extends BaseModel { use SoftDeletes; protected $guarded = []; public static function rule(){ return [ // Define rule here to display data on datatable and generate form builder ...
true
92f1d75c11a428e6767f69b7a4a0ba40e2ab15b5
PHP
zemlia-zemlia/ankva-crm.mcdir.ru
/models/FavoriteObject.php
UTF-8
791
2.59375
3
[]
no_license
<?php namespace app\models; use yii\db\ActiveRecord; /** * This is the model class for table "favorite_objects". * * @property int $id * @property integer $user_id * @property string $ads */ class FavoriteObject extends ActiveRecord { /** * {@inheritdoc} */ public static function tableName() ...
true
4ce042f31f0a859eda68da9e9fd842c244021e2e
PHP
ProjectICKX/fw2
/traits/data_store/PathTrait.php
UTF-8
4,372
2.59375
3
[ "MIT" ]
permissive
<?php /** ______ _ _ _ ___ * | ____| | | | | |__ \ * | |__ | |_ ___ __| |__ ___ ___| | ) | * | __| | | | | \ \ /\ / /| '_ \ / _ \/ _ \ | / / * | | | | |_| |\ V V / | | | | __/ __/ |/ /_ * |_| |_|\__, | \_/\_/ |_| |_|\___|\___|_|_...
true
37edb80e820cb1e2a46c2832e902d3fff1d9d296
PHP
Carlo456/integraltech
/controllers/restaurarUsuarioController.php
UTF-8
2,563
2.515625
3
[]
no_license
<?php require 'config.php'; require 'phpmailer/PHPMailerAutoload.php'; $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if ($_POST['correo']!="") { $correo = $_POST['correo']; $datosCliente = "SELECT usuarios.id,usuarios.usuarios,clientes.correo_ele FROM usu...
true
88195d4d93e2cbea5b03d9b162449d431bfa7f47
PHP
Salemoche/diadem
/template_parts/_main-footer-nav.php
UTF-8
1,832
2.703125
3
[]
no_license
<?php /** * Creates the Footer * * @package DiademNamespace */ $menu_class = DiademNamespace\classes\Menus::get_instance(); $footer_menu_id = $menu_class->get_menu_id('diadem-footer-menu'); $footer_menu = wp_get_nav_menu_items( $footer_menu_id ); $the_post_id = $post ? $post->ID : 0; ?> <nav class="diadem-footer...
true
10970327020a4f82a6c44d2e1f4a4d105b97bc35
PHP
ytake/LaravelJp-Learning
/src/Content/Entity/ContentCollection.php
UTF-8
818
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace LearningDomain\Content\Entity; /** * Class ContentCollection */ class ContentCollection { /** @var array */ protected $content; /** * ContentCollection constructor. * * @param array $content */ public function __construct(array $content =...
true
dc0a7df5b553f7ead0a46194a0efacf50672c6e9
PHP
niroshansb/MandE
/convert/upload.php
UTF-8
2,351
2.96875
3
[]
no_license
<HTML> <HEAD> <TITLE>Confirm Database Insert</TITLE> </HEAD> <BODY> <p> Converting the file to xml </p> <?php $target_dir = "/home/niroshan/odk/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $fpath = pathinfo( $target_file ); $fname = $fpath['filename']; $imageFileType = pathi...
true
d78a2073f1dd741f4c55044b7394cd4c022be55f
PHP
GabrielNSilva/BatDerivadas
/session.php
UTF-8
914
3.1875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php //include 'session2.php'; session_start(); echo "<pre>"; print_r($_SESSION); echo "</pre>"; $b = $_GET["base"]; $b = (isset($_GET["base"])) ? $_GET["base"] : "" ; //$e = $_GET["exp"]; $e = (isset($_GET["exp"])) ? $_GET["exp"] : "" ...
true
7920d596e0d37aa66af7cdafea0ce9e29f98d0f1
PHP
pshentsoff/static_vs_singleton
/src/SomeClass.php
UTF-8
527
2.90625
3
[]
no_license
<?php /** * @file SomeClass.php * @description * * @version * PHP Version 7.1 * * @package newrobocall * * @author Vadim Pshentsov <pshentsoff@gmail.com> * * @created 14.02.18 * * @since * */ namespace Pshentsoff\StaticSingleton; class SomeClass { static public $version = '1.0'; ...
true
32c3cc752fcca6231a6af94822d6c0898e1d2ac5
PHP
MichaelEder1/TYPO3_Extension_pc_games
/Classes/Domain/Model/Publisher.php
UTF-8
1,847
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace MichaelEder\Games\Domain\Model; /** * This file is part of the "PC Games" Extension for TYPO3 CMS. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * (c) 2021 Michael Eder */ /** * P...
true
d93a2b46944d078e93f80557f714de5494811959
PHP
live627/wedge-plugins
/plugins/post_fields/Class-PostFields.php
UTF-8
9,617
3
3
[]
no_license
<?php interface postFields { /* * Constructs the field. * * @param array $field The field as returned by {@link total_getPostFields()}. * @param string $value Field value. * @param bool $exists Whether the value exists/is not empty. * @access public * @return void */ public function __construct($fiel...
true
2e3ef1187e7fea24bcc0aa919762698d8f4209a9
PHP
lublot/CouroVerde
/DAO/perguntaPesquisaDAO.php
UTF-8
3,641
3
3
[]
no_license
<?php namespace DAO; require_once dirname(__DIR__).'/vendor/autoload.php'; use \models\Pesquisa as Pesquisa; use \models\Pergunta as Pergunta; use \DAO\Database as Database; class perguntaPesquisaDAO extends Database{ /** * Busca uma ou várias pesquisas no banco de dados; * @param unknown $campos - u...
true
ffe8c48f1d3e16a6804c2ff740d547d9a291a2ff
PHP
grodriguez-dev/cursosweb
/administrador/index.php
UTF-8
3,802
2.640625
3
[]
no_license
<?php session_start(); if (isset($_POST['login'])) { $usuario = ""; $clave = ""; if (!empty($_POST['usuario'])) { $usuario = $_POST['usuario']; }else { $mensaje_u = 'Por favor ingrese un usuario.'; } if (!empty($_POST['contrasenia'])) { ...
true
79dfd7a6670d4ce1474f77ddc64be2c520ead731
PHP
Greg1601/symfony_moviedb
/tests/AppBundle/Service/SluggerTest.php
UTF-8
1,031
3.015625
3
[]
no_license
<?php namespace Tests\AppBundle\Service; use AppBundle\Service\Slugger; use PHPUnit\Framework\TestCase; class SluggerTest extends TestCase { public function testSlugify() { //Tests avec minuscule demandé //par defaut mon slugger à la propriété to lower au niveau du constructeur $slug...
true
ca8a478ce66f8b771127048139b97dea8701638b
PHP
MateuszSw/cms
/add_file.php
UTF-8
563
2.53125
3
[]
no_license
<?php if (isset($_FILES["file"]["name"])) { $name = $_FILES["file"]["name"]; $tmp_name = $_FILES['file']['tmp_name']; $error = $_FILES['file']['error']; if (!empty($name)) { $location = getcwd().'/img/'; if (move_uploaded_file($tmp_name, $location.$name)){ echo 'wysl...
true
55177a703845e4785f052b122ce565e09abfe08f
PHP
Mathias-Andre/assignment1
/exerciseEntries.php
UTF-8
2,855
2.9375
3
[]
no_license
<?php #Yang JiaLiang Mathias Andre 19031965 ?> <?php session_start(); include './dbFunctions.php'; $id = $_SESSION['user']; $query = "SELECT UE.id, duration, exercise_name FROM user_exercise UE INNER JOIN exercise e on UE.exercise_id = e.id WHERE user_id=$id"; $result = mysqli_query($link, $query) or die(mysqli_error...
true
087da617b76b8235ec8f5496136ebb89e45bb797
PHP
gremo/GremoHighchartsBundle
/Highcharts.php
UTF-8
3,722
2.515625
3
[]
no_license
<?php /* * This file is part of the GremoHighchartsBundle package. * * (c) Marco Polichetti <gremo1982@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Gremo\HighchartsBundle; use Gremo\HighchartsBundle\Chart...
true
f2bb0a687a2534d82bf077fc18f1c2d981891848
PHP
imbo/imbo-multi-backend
/library/MultiStorage.php
UTF-8
3,327
2.96875
3
[ "MIT" ]
permissive
<?php namespace Imbo\MultiBackend; use Imbo\Storage\StorageInterface, Imbo\Exception\StorageException, InvalidArgumentException, Exception; /** * Multiple storage adapter * * @author Espen Hovlandsdal <espen@hovlandsdal.com> */ class MultiStorage implements StorageInterface { /** * Holds an a...
true
3b39b8ffa110cc6fc2df7f5a6346baa31cad9919
PHP
viviniko/catalog
/src/Observers/CategoryObserver.php
UTF-8
623
2.65625
3
[]
no_license
<?php namespace Viviniko\Catalog\Observers; use Viviniko\Catalog\Models\Category; use Viviniko\Catalog\Repositories\Category\CategoryRepository; class CategoryObserver { protected $categories; public function __construct(CategoryRepository $categories) { $this->categories = $categories; } ...
true
ecf68d4c171d978b86a4d336123a586f9279854a
PHP
kvch555/notes
/smarty3/02.smary3入门篇 自己动手开发模板类/mini.php
UTF-8
1,457
3.484375
3
[]
no_license
<?php // 迷你模板类 /* 模板类的第1步: 把标签解析PHP输出语句 模板文件-->PHP文件 为了目录清晰,我们把模板和编译后的结果,放在不同的目录里. 用2个属性来记录这2个目录 */ class mini{ public $template_dir=''; //模板文件所在的位置 public $compile_dir=''; //模板编译后存放的位置 // 定义一个数组,用来接收外部的变量 public $_tpl_var=array(); public function assign($key,$value){ $this->_tpl_var[$key]=$value; } ...
true
1440c5d3963789876251d110a361ea9b931d8f64
PHP
axotion/TaskManager
/app/Policies/TasksPolicy.php
UTF-8
1,552
2.546875
3
[]
no_license
<?php namespace TaskManager\Policies; use Hamcrest\SampleSelfDescriber; use Psy\Util\Str; use TaskManager\User; use TaskManager\Tasks; use Illuminate\Auth\Access\HandlesAuthorization; class TasksPolicy { use HandlesAuthorization; /** * Determine whether the user can view the tasks. * * @param...
true
5331ed4583ad7a246ac11a1e32ab88ee93e4d4ef
PHP
dzennik/instagram-api
/src/Requests/Http/Factory/ParameterFactory.php
UTF-8
530
2.8125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Requests\Http\Factory; /** * Class ParameterFactory * * @package Requests\Http\Factory */ class ParameterFactory { /** * @var int The headers type */ const TYPE_HEADERS = 0; /** * Create request resource. * * @param int $type * @return array|null */...
true
5aafa688fead7f07a31fa22b7712699729a8b3a0
PHP
daratus/webFrontEnd
/app/Services/ChartsService.php
UTF-8
4,020
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Aurimas * Date: 2017-09-19 * Time: 14:30 */ namespace App\Services; class ChartsService { private $statisticalDataService; public function __construct(StatisticalDataService $statisticalDataService) { $this->statisticalDataService = $statisticalData...
true
18afa781cfbf41533cd5ab03e90dba87f008062e
PHP
mikey179/xp-framework
/core/src/test/php/net/xp_framework/unittest/core/types/NumberTest.class.php
UTF-8
2,330
3.0625
3
[]
no_license
<?php /* This class is part of the XP framework * * $Id$ */ uses( 'unittest.TestCase', 'lang.types.Long', 'lang.types.Byte', 'lang.types.Short', 'lang.types.Integer', 'lang.types.Float', 'lang.types.Double' ); /** * Tests the number wrapper typess * * @see xp://lang....
true
086763513864ac05e9fca1742b25ffb69bf1c243
PHP
MateuxLucax/prove
/classes/Professor.class.php
UTF-8
1,618
3.078125
3
[]
no_license
<?php require_once "autoload.php"; class Professor extends AbsUsuario implements IGetValoresEmVetorPDO { private $avaliacoes = array(); private $questoes = array(); public function setAvaliacao($avaliacao){ if($avaliacao instanceof Avaliacao) array_push($this->avaliacoes,$avaliacao); } public function getAva...
true
a262118acba0478976b73751b9af7d84b7183f79
PHP
elkadrey/fiskaly-laravel
/src/FiskalyLaravelClient.php
UTF-8
6,711
2.59375
3
[]
no_license
<?php namespace elkadrey\FiskalyLaravel; use Exception; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Illuminate\Http\Request as HttpRequest; use Illuminate\Support\Facades\Log; use elkadrey\FiskalyLaravel\Responses\Response; use elkadrey\FiskalyLaravel\Responses\AuthResponse; class FiskalyLara...
true
07be7f4eb4e15a3d62e6ef52ebadc5e5ee0c8f13
PHP
PerimeterX/perimeterx-php-sdk
/src/CredentialsIntelligence/LoginSuccess/LoginSuccessfulParserFactory.php
UTF-8
889
2.578125
3
[ "MIT" ]
permissive
<?php namespace Perimeterx\CredentialsIntelligence\LoginSuccess; class LoginSuccessfulParserFactory { /** * @param array $config * @return ILoginSuccessfulParser */ public static function Create($config) { switch ($config['px_login_successful_reporting_method']) { case Login...
true
10df8bd367d1cfba44e80d9c13b13fedd8442858
PHP
ever23/CcMvcBasicProject
/protected/model/FormModel/BasicForm.php
UTF-8
1,061
2.640625
3
[]
no_license
<?php namespace Cc\Mvc; /** * Modelo de formulario BasicForm * */ class BasicForm extends FormModel { /** * Usa este metodo para definir los capos que tendra el formulario * <code> * <?php * $this->email('email_contac')->Validator('max:200|required|placeholder:Email'); * $this->tel('t...
true
caacb8bc5d301b61cd0093f6a639a9c73673e35f
PHP
vuongphan0910/Tai-Lieu-PHP-Nang-Cao
/PHPBasic/04.banhang-source/SMS/smshellofibo.php
UTF-8
1,985
2.671875
3
[]
no_license
<?php require_once('fibosmsconfig.php'); // Khai báo dùng hàm của Fibo CheckRequest(); //Hàm kiểm tra request, đảm bảo yêu cầu xử lý đến từ server của Fibo // Lấy nội dung tin nhắn $message =$_REQUEST['message']; // Nội dung tin $phone= $_REQUEST['phone']; // số điện thoại của KH $service=$_REQUEST['service']; // ...
true
3683371716c381c628b39acdb066777efb96fff1
PHP
aaaahoang123/laravel-sample
/packages/hoangdo/authorization/src/Model/Policy.php
UTF-8
1,042
2.59375
3
[ "MIT" ]
permissive
<?php namespace HoangDo\Authorization\Model; use App\User; use Carbon\Carbon; use HoangDo\Common\Helper\DateTimeFormat; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; /** * Class Policy * @package HoangDo\Authorization\Model * * @property int $id * @property string $name ...
true
794c9108daf78fff266797aa20b33bcb785f7f53
PHP
aftalavera/floor
/add.php
UTF-8
588
2.6875
3
[]
no_license
<?php define('AJAX_REQUEST', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); if(!AJAX_REQUEST) {die();} class MyDB extends SQLite3 { function __construct() { $this->open('physique.db'); } } $booth = $_POST['...
true
2962883f2058fa65565a2da424cbbf9be8bd9f2f
PHP
lgl52401/yii2
/libs/base/BCaptchaAction.php
UTF-8
3,452
2.71875
3
[]
no_license
<?php namespace libs\base; use Yii; use yii\captcha\CaptchaAction; use yii\web\Response; use yii\helpers\Url; class BCaptchaAction extends CaptchaAction { public $type = 3; public function run() { if (Yii::$app->request->getQueryParam(self::REFRESH_GET_VAR) !== null) { // AJAX request for regenerating...
true
9b61384a4975e5159151d993310f9bffb18eb919
PHP
CollectorsQuest/collectorsquest.com
/apps/frontend/lib/form/CollectorCreatePasswordForm.class.php
UTF-8
1,652
2.53125
3
[]
no_license
<?php /** * Filename: CollectorCreatePasswordForm.class.php * * Form to create username, password for rpx created accounts * * @author Yanko Simeonoff <ysimeonoff@collectorsquest.com> * @since 10/31/12 * Id: $Id$ */ class CollectorCreatePasswordForm extends CollectorForm { public function configure() { ...
true
2f4c111fe5eca4802a0683f998a205073b75555b
PHP
EtaySchur/ita
/server/db/manager.php
UTF-8
12,726
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: EtaySchur * Date: 23/11/2015 * Time: 16:41 */ class DbManager { protected $pdo; public function __construct() { } private static function connectToDb() { $configuration = parse_ini_file("/etc/config-ita.ini"); $dbpass = $configuration['dbPa...
true
d2c43b87c35b20fe682342636df4c7eb0e297f3d
PHP
SebasDany/introduccionPHP
/index.php
UTF-8
1,690
2.609375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuW...
true
1cadbac5cb0b8da79e817105d4fe59072725e373
PHP
Adolph1/mkopo
/backend_old/models/EodCycle.php
UTF-8
1,223
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "tbl_eod_cycle". * * @property integer $id * @property string $stage * @property string $start_time * @property string $end_time * @property string $error_code * @property string $status * @property string $remarks */ class Eo...
true
bad3e07912c5ad6f7758cd126c690e932616aadc
PHP
JkmAS/WifiGuardSharing
/php/models/UserAdmin.php
UTF-8
5,319
2.859375
3
[ "MIT" ]
permissive
<?php /** * User administration * * @author jkmas <jkmasg@gmail.com> * @package php/models * @version 1.0.0 */ class UserAdmin extends Model { /** * Constructor */ public function __construct() { parent::__construct(); DBCommunicator::connectDibi(); } /** ...
true
147a6f8d7e266e466af8f676ce222c8779b0777f
PHP
Lilians/ProjetBI
/Model/Contrat.php
UTF-8
1,689
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Vlad * Date: 09/09/2016 * Time: 12:44 */ namespace Model; include_once 'City.php'; class Contrat { private $name; private $commercial_name; private $country_code; private $cities; public static function createContratFromArray($array) { $C ...
true
7ab882f30b7df6841f99ef124390ab7960cbd551
PHP
tyrellsys/cakephp-log
/src/Formatter.php
UTF-8
2,412
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace Tyrellsys\CakePHPLog; use Cake\Datasource\EntityInterface; use Cake\Error\Debugger; use JsonSerializable; class Formatter { /** * @param string|array $data data * @return string */ public static function getMessage($data): string { $isArray ...
true
f9d071d53af950682e0368a411a0bdebfe6a90d8
PHP
learning-student/owuan-mysql
/src/PDO.php
UTF-8
8,115
2.921875
3
[ "MIT" ]
permissive
<?php namespace Owuan\Mysql; use Exception; use PDO as BasePDO; use Swoole\Coroutine\Mysql; /** * Class PDO */ class PDO extends BasePDO { /** * @var array */ private static $keyMap = [ 'dbname' => 'database', ]; /** * @var array */ private static $options = [ ...
true
9b35ddee94dd6f7bb21b5616d0794d894d7a9c98
PHP
Franciscodzv/LDAW
/Intergame_api/app/Models/User.php
UTF-8
2,500
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; //Importar la facade para la clase DB use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminat...
true
56eea153fe2a0b9a6c0c4831ddd3064c78e8fa8f
PHP
tifod/old-tifod-website
/src/utility/exception.php
UTF-8
568
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Utility; class Exception extends \Exception { public static function handler ($e) { $_SESSION['error_message'] = $e->getMessage() . ' <code>in ' . $e->getFile() . ' on line ' . $e->getLine() . ' through url <a href="'.$_SERVER['REQUEST_URI'].'">"' . $_SERVER['REQUEST_URI'] . '"</a><...
true
86c7234bd530686ed03059270cf5b42d1014242c
PHP
wanokazak1990/sshop
/app/Http/Controllers/Cart/CartController.php
UTF-8
1,006
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Cart; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Services\Cart\Cart; use App\Models\Product; class CartController extends Controller { public function add(Cart $cart,Product $product) { $cart->add($product); } public function d...
true
ad38f1bcea5da78f513ffdef69055f266f10d094
PHP
nasosts/wsms
/Controllers/SaleOrderController.php
UTF-8
3,413
2.5625
3
[]
no_license
<?php require_once 'Controller.php'; require_once 'Models/UserModel.php'; require_once 'Models/ProductModel.php'; require_once 'Models/SaleOrderModel.php'; require_once 'Models/CustomerModel.php'; /** * Controller for sale orders */ class SaleOrderController extends Controller { function __construct() { par...
true
206e43ee31a223b7a2baa680b8fa2ef2ca035530
PHP
skates17/UVM-Scrummaster
/Examples/getARide.php
UTF-8
18,335
2.953125
3
[ "Apache-2.0" ]
permissive
<?php include "top.php"; //%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^% // // SECTION: 1 Initialize variables // // SECTION: 1a. // We print out the post array so that we can see our form is working. // if ($debug){ // later you can uncomment the if statement //print "<p>Post Array...
true
ccdaee742865072f09edc4ae86027f32f191fb6d
PHP
ferdays/apotik
/print/print-data-obat.php
UTF-8
1,945
2.6875
3
[]
no_license
<?php session_start(); ob_start(); include_once("../system/koneksi.php"); ?> <html> <head> <title>Data Obat</title> <link rel="stylesheet" type="text/css" href="../css/bootstrap.css"> <style type="text/css"> body { padding:20px;} </style> <script> function printDiv(divName) { var printContents = docum...
true
c346edefef15ef766d3582c6bc83b4b065a74185
PHP
Leaveyou/h3r0
/app/Demo/WarriorBuilder.php
UTF-8
5,295
3.03125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Hero\Demo; use BadMethodCallException; use Hero\Game\Warrior; use Hero\Tools\Chance; class WarriorBuilder { private ?int $minimumHealth = null; private ?int $maximumHealth = null; private ?int $minimumStrength = null; private ?int $maximumStrength = null; ...
true
82594118bd0cd99f79ab6a8d1168f658205e747a
PHP
ahmedsalama51/pharma
/app/Feedback.php
UTF-8
1,126
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; //<--- use the softdelete traits class Feedback extends Model { use SoftDeletes; //<--- use the softdelete traits protected $dates = ['deleted_at']; //<--- new field to be added in your table /*...
true
fd4f16e8cdcbac134dee4fce45c8735bec38fd54
PHP
jkbnerad/blood
/src/Commands/Mailchimp.php
UTF-8
670
2.546875
3
[]
no_license
<?php declare(strict_types = 1); namespace app\Commands; use app\Database\Connection; use app\Mailchimp\SendEmail; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Mailchimp extends Command { protected s...
true
8dd82025136977d57a41779602ef39b1973a7b2a
PHP
igwtech/mq-library
/src/MQ/Task/JobWorker.php
UTF-8
2,628
2.546875
3
[ "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace MQ\Task; use PhpAmqpLib\Message\AMQPMessage; /** * Description of JobServer * Many JobWorkers connect to the same Qu...
true
1f731db9dd8c977d3bec726521daec7b5529177e
PHP
Indahrianti/php-native
/looping/latihan2.php
UTF-8
194
3.359375
3
[]
no_license
<?php $star = 10; for ($a = 1; $a<=$star; $a++){ for ($b = 1; $b <=$a; $b--){ echo " &nbsp"; } for ($c=$star; $c>=$a; $c-=1){ echo "*"; } echo "<br><br>"; } ?>
true
2301fda2f2c1ce6206a49515a5df7d8a2dafd0c5
PHP
marveen/OrganigramaWeb
/laravel/routes/web.php
UTF-8
944
2.640625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
true
c516fd007d4250e1ae17cbee6d728f5fc02c16b2
PHP
qa1/sihae
/src/Actions/EditPostAction.php
UTF-8
2,821
2.78125
3
[ "Unlicense" ]
permissive
<?php declare(strict_types=1); namespace Sihae\Actions; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; use Sihae\Entities\Post; use Sihae\Renderer; use Sihae\Repositories\PostRepository; ...
true
8d4160b110222b7c2d8467fb9233fa2953f69bd9
PHP
Magomogo/Barberry
/library/Barberry/Direction/Factory.php
UTF-8
1,104
2.765625
3
[]
no_license
<?php namespace Barberry\Direction; use Barberry\ContentType; use Barberry\Plugin; class Factory { /** * @param ContentType $sourceContentType * @param ContentType $destinationContentType * @param null|string $commandPart * @throws \Barberry\Plugin\NotAvailableException * @return \Barberr...
true
ba30c00fe57dd96ad952e28990883562e0285573
PHP
luizriosguarino/WebEngine
/includes/classes/paymentwall/Paymentwall/Pro/Charge.php
UTF-8
561
2.71875
3
[ "MIT" ]
permissive
<?php class Paymentwall_Pro_Charge { public function __construct(array $attr) { $result = new Paymentwall_Pro_HttpWrapper($attr); $this->properties = $result->post(); } public function getPublicData() { return Paymentwall_Pro_Error::getPublicData($this->properties); } public function isCaptured() { retu...
true
7059887d415505b08e65fddd53c90c6ec93baca5
PHP
chypriote/ChallengeWars
/Model/Challenge/Rank.php
UTF-8
1,298
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ChypRiotE * Date: 05/03/2015 * Time: 23:06 */ namespace Challenge; class Rank { protected $_id; protected $_challengeId; protected $_userId; protected $_points; public function __construct(array $data) { $this->create($data); } ...
true
50dfe21bb12eae5fc92174e54270d6ad13b5b426
PHP
yutonliu/pworks
/pear/pworks/util/tree/HTMLTreeHelper.class.php
UTF-8
5,454
2.53125
3
[ "BSD-2-Clause-Views" ]
permissive
<?php /* * Copyright 2008 - 2015 Milo Liu<cutadra@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright...
true
3dfbb733cefd416ca2f973fee7c50ea6c95fc13c
PHP
flazzarotto/kaamelott-videoboard-backend
/src/Factory/PersonFactory.php
UTF-8
2,456
2.953125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the TangoMan package. * Copyright (c) 2020 "Matthias Morin" <mat@tangoman.io> * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ declare(strict_types=1); namespace App\Factory; use App\Entity\Person; use App\Reposi...
true
636068096d46812b500f3dd947640c39826903a9
PHP
jamesdb/cart
/src/CartItem.php
UTF-8
4,247
3.15625
3
[ "MIT" ]
permissive
<?php namespace jamesdb\Cart; use ArrayAccess; use jamesdb\Cart\Exception\CartPropertyNotIntegerException; use Money\Currency; class CartItem implements ArrayAccess { /** * @var array */ protected $item = []; /** * Constructor. * * @param array $data */ public function ...
true
6baf5a0e89b9a25936a6b0768a71b3b917763359
PHP
batboydafinest/AICprojects
/day7/comic.php
UTF-8
2,224
2.890625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>comicID database</title> </head> <body> <table> <tr> <td>Image</td> <td>Title</td> <td>Date</td> </tr> <?php require '../database.php'; date_default_timezone_set('America/Los_A...
true
6fef668fb40d87d0138aa542f8cb2d3d1080f544
PHP
ZaenalMaestro/filter_komentar
/app/core/Recoding.php
UTF-8
18,024
2.625
3
[]
no_license
<?php class Recoding extends Controller { public function recodingKata($kata) { if ($this->aturan1($kata) == true) { return $this->formatKata1($kata); } elseif ($this->aturan2($kata) == true) { return $this->formatKata2($kata); } elseif ($this->aturan3($kata) == true) { ...
true
2afbc68c827835714e92883fda1f8e19822c62df
PHP
phan/phan
/tests/php82_files/src/005_dnf_type_property.php
UTF-8
329
2.90625
3
[ "Apache-2.0", "ISC", "BSD-3-Clause", "MIT" ]
permissive
<?php class X5 { public stdClass|(Countable&ArrayAccess) $value; } class C5 implements Countable { public function count() { return 0; } } $v = new X5(); $v2 = new X5(); $v->value = new C5(); // TODO: This should warn $v2->value = new ArrayObject(); $v->value = null; $v->value = $v2->value; $v->valu...
true
46de1d507e5018b270b7fad9c4b9317edeb71927
PHP
mossebo-km/shop
/app/Shop/Cart/Promo/PromoCode.php
UTF-8
699
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Shop\Cart\Promo; use MosseboShopCore\Shop\Cart\Promo\PromoCode as BasePromoCode; use MosseboShopCore\Contracts\Shop\Cart\Promo\PromoCode as PromoCodeInterface; use App\Models\Shop\Promo\PromoCode as PromoCodeModel; class PromoCode extends BasePromoCode implements PromoCodeInterface { public f...
true
a92a7d8a76535a73e332ffa8dee07f08fd59809f
PHP
ankitdixit094/logo_quiz
/pages/db/fatch_small_logo.php
UTF-8
1,825
2.515625
3
[]
no_license
<?php $servername = "localhost"; $username = ""; $password = ""; $dbname = "logo_quiz"; $conn = new mysqli($servername, $username, $password, $dbname); session_start(); if(!$_SESSION["repatLoop"]) { $_SESSION["repatLoop"] = 1; } $repatLoop = $_SESSION["repatLoop"]; $n...
true
080b7494a1418f457106aae389d129741e1018ce
PHP
shiyore/TogetherPeopleStrong
/app/Http/Controllers/RestController.php
UTF-8
4,232
2.625
3
[ "MIT" ]
permissive
<?php /* * Project: TogetherPeopleStrong ver.6 * @author: Carson Perry * Module: RestAPI ver. 1 * Date: 04/18/21 * Synopsis: Controller for the Rest API, this is where Service calls, retrieval, DTO creation, and data returning is done. */ namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Model...
true
3a817caa7f2ce432dcaf1eac9d2b92f3d9eb06ca
PHP
hiqdev/yii2-export
/src/exporters/ExporterFactory.php
UTF-8
406
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace hiqdev\yii2\export\exporters; use yii\di\Container; class ExporterFactory implements ExporterFactoryInterface { protected $map; protected $di; public function __construct($map, Container $di) { $this->map = $map; $this->di = $di; } public function build($typ...
true
5fcec0567aee1ce370fa8e810398cf1b5fb6f8fe
PHP
idesovmarch/CIT313Spring2018
/ex1/index.php
UTF-8
462
2.703125
3
[]
no_license
<?php include '_includes/header_include.php' ?> <body> <?php $items = array("Brad", "My favorite color is: Green", "My favorite movie is: Gladiator", "My favorite book is: The Silmarillion", "My favorite website is: wh40k.lexicanum.org"); echo "<h1>" . $items[0] . "</h1>"; foreach (array_slice($items, 1) as...
true
24deaeb245fd33fc4c3dccedde3ef0ddb84b6483
PHP
JosephBadua/phpMVC
/2-4.php
UTF-8
768
4.0625
4
[]
no_license
<?php class User { public $name; public $age; //runs when an object is created public function __construct($name, $age){ $this->name = $name; $this->age = $age; } public function sayHello(){ return $this->name . ' says hello'; ...
true
425c00b0a9431365a24b68fc16dac1a4a79ea77c
PHP
EduhCavalcanti/PHP-MVC-CRUD
/model/Banco.php
UTF-8
1,373
3.1875
3
[]
no_license
<?php require_once("../init.php"); class Banco{ protected $mysqli; public function __construct(){ $this->conexao(); } //Conexão com o banco de dados private function conexao(){ $this->mysqli = new mysqli(BD_SERVIDOR, BD_USUARIO , BD_SENHA, BD_BANCO); } //Cadastra alunos public function set...
true
d25bbbd8427afbb162725e049bfcd3fe2846f80f
PHP
m4xKuk/php-pattern
/Structural/FluentInterface.php
UTF-8
1,758
3.765625
4
[]
no_license
<?php //Текучий интерфейс // Паттерн Организует клас при котором методы возвращают текущий объект(чаще всего) дополняя его. // Реализованная цепочка методов (Method Chaining) при этом похожа на естественный язык class Drink{ private $color; private $name; private $cap; public function setColor($color){ $this-...
true
11419f8ef9e3104720a97bc03be30eaac8ed8cec
PHP
ez19aaf/coreeraj
/src/Framework/Validator/Response/PostResponseValidator.php
UTF-8
1,458
2.59375
3
[]
no_license
<?php namespace Survey54\Reap\Framework\Validator\Response; use Psr\Http\Message\ServerRequestInterface; use Respect\Validation\Validator as v; use Survey54\Library\Validation\Validator; class PostResponseValidator extends Validator { private const NULL_OR_REQUIRED_TEXT = 'must be null or not empty.'; pr...
true
83ab2d8fb1a7a9e259c4cd495c31955c96a994d4
PHP
benhe119/Escan
/application/models/Verify_user_model.php
UTF-8
474
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Verify_user_model extends CI_Model { public function __construct() { $this->load->database(); } public function verify_user($uid,$phone_id) { $query = $this->db->query("select phone_id from Users where user_ID = '".$uid."';"); $row = $query->row(); foreach ($query->result_array(...
true
9cc266bf71bad0fc011c2e2b6c7b74d57cf39e4a
PHP
Gregseanyoung/Nmotion
/src/Nmotion.OLD/NmotionBundle.NEW/Facebook/Facebook.php
UTF-8
1,426
2.765625
3
[ "MIT" ]
permissive
<?php namespace Nmotion\NmotionBundle\Facebook; class Facebook extends \BaseFacebook { /** * @param array $config the application configuration. * * @see BaseFacebook::__construct in facebook.php */ public function __construct($config) { parent::__construct($config...
true
a4351e5da6a4c9d6b525b5f040c9119b3f49d452
PHP
abivalle/pw2021_203040086
/Kuliah/Pemrograman Web/pertemuan5/latihan3.php
UTF-8
1,172
3.40625
3
[]
no_license
<?php //$mahasiswa = ["Abizar Valentino Fachri", "203040086", "Teknik Informatika", "abizarfachri24@gmail.com"]; // Array Multidimensi, Array Numerik (array dengan indeks angka) $mahasiswa = [ ["Abizar Valentino Fachri", "203040086", "Teknik Informatika", "abizarfachri24@gmail.com"], ["Sab...
true
cb4387b97bb64ce0ca9373d6eec1cf16cae4997a
PHP
iroben/laravel5-amazeui-admin
/app/Repositories/RoleRepository.php
UTF-8
2,272
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: liubin * Date: 15/4/20 * Time: 22:06 */ namespace App\Repositories; use App\Models\ActionModel; use App\Models\RoleModel; class RoleRepository extends BaseRepository { protected $actionReposity; protected $name = 'role'; /** * @param RoleModel $role ...
true
7e5ae10e36a7c6e6b7072df656eaf1587809a3f7
PHP
SJ097/cpen391-copy
/CPEN391 PHP & LUA/fetchBookings.php
UTF-8
4,100
2.953125
3
[]
no_license
<?php /*POST Request Protocol: Fetches all reservations for a given user In the future I can change it so that we have different URLs for fetching different kind of reservations: ex. past, cancelled, current reservations Parameters "user_id": "yyyy-mm-dd" departing from (must be greater than or equal to today) (lo...
true
4e82a40a9262a13161d1a6ffbfcc7089a632358b
PHP
fauzanhamzah/invoice-manager
/app/Product.php
UTF-8
662
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Alfa6661\AutoNumber\AutoNumberTrait; use Illuminate\Database\Eloquent\Model; class Product extends Model { use AutoNumberTrait; protected $fillable = [ 'name', 'description', 'price', 'stock' ]; public function getAutoNumberOptions() { ...
true
36eece119dcd3c451571f2e9abe916fb0900bb73
PHP
thischarmingsam8/super-simple-blog
/dist/inc/utils.inc.php
UTF-8
1,976
3.21875
3
[ "MIT" ]
permissive
<?php /* utilities - singleton for adding script tags and style tags */ class ScriptTag { public $url; public $isExternal; public $isAdmin; public function __construct($url, $isExternal, $isAdmin) { $this->url = $url; $this->isExternal = $isExternal; $this->isAdmin = $isAdmin; } } class Utilit...
true
f74a95c0d19e592c63a48a23df54edd53081d506
PHP
development2016/lesoebuy
/models/LookupFilter.php
UTF-8
1,057
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "lookup_filter". * * @property integer $id * @property string $filter * @property string $date_create * @property string $date_update * @property integer $enter_by * @property integer $update_by */ class LookupFilter extends \yii\d...
true
7f6717c676d71122b020ed28c3fd79c4f3b7290e
PHP
okorpheus/partManager
/editUser.php
UTF-8
1,591
2.703125
3
[]
no_license
<?php require_once('includes.php'); if (isset($_POST['editUserID'])) { if (!$currentUser->isAdmin() AND $_POST['editUserID'] != $currentUser->getID()) { UserMessageQueue::addMessage('danger', 'You are not allowed to edit other users'); redirect('index.php'); exit(); } processEditForm(); } elseif (isset($_GE...
true
e961e36f515ab42742b8af8f0cf7e435bfd36cb5
PHP
smnakle/teCoordena
/CrudProjetos.php
UTF-8
11,238
2.765625
3
[ "MIT" ]
permissive
<?php //variável global que guarda o id_projeto; //$idProjeto , $username; function listaProjetos($idCriador) { include "config.php"; //$query = "SELECT id_projeto, nome FROM projetos WHERE criador LIKE '%$username%'"; $query = "SELECT id_projeto, nome FROM projetos WHERE id_criador ='$idCriador'"; ...
true
7d170bc57259ea51c0550b868df786ee1ab1b111
PHP
timolinn/previs2
/app/Repositories/Repository.php
UTF-8
206
2.59375
3
[ "MIT" ]
permissive
<?php namespace Previs\Repositories; use Illuminate\Support\Collection; abstract class Repository { public function parse(array $data): Collection { return new Collection($data); } }
true