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
493a2626d98d8abac462d462dc4ea5939efb9356
PHP
HyeonseopJeong/php-study
/6. MagicMethod/method_3.php
UTF-8
156
3.28125
3
[]
no_license
<?php class A { public function __invoke(...$args) { foreach($args as $a) echo $a . ' '; } } $a = new A(); $a('foo', 'bar');
true
c8dd6f4ff8e29cc620bf895371f64b3d9dcb7d83
PHP
avnishxlr8/Leave-Management-System
/test6.php
UTF-8
504
2.5625
3
[]
no_license
<?php include "connect.php"; include "adminmenu.php"; $employee = isset($_GET['employee']) ? $_GET['employee'] : ''; if ($employee) $result = mysql_query("SELECT * from emp_info INNER JOIN leave_status ON emp_info.emp_id=leave_status.emp_id WHERE fullname='".$employee."'"); if($result==FALSE) { die('Error: ' . m...
true
16b891b54efc0a88ba3524dcdcf3119f984c2f55
PHP
Ghkaeitq/JULIAdmin
/logiciel_add.php
UTF-8
536
2.640625
3
[]
no_license
<?php include("checksession.php");?> <?php // Connexion à la base de données try { $bdd = new PDO('mysql:host=localhost;dbname=juliadb;charset=utf8', 'root', ''); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } if (($_POST['nomlogiciel']!="") && ($_POST['verlogiciel']!="") ){ $req = $bdd->prepa...
true
b706688675488360d3ee0085a17e06e24abd85a3
PHP
marcostmunhoz/microservices-api-gateway
/app/Http/Controllers/BooksController.php
UTF-8
2,561
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Book; use App\Traits\ApiResponserTrait; use Illuminate\Http\Request; use Illuminate\Http\Response; /** * Books Controller. */ class BooksController extends Controller { use ApiResponserTrait; /** * The HTTP service client instance. * * @var \App...
true
263fa903636599c1275e2767ed248504c5862e74
PHP
maxyc-webber/gpx-analyzer
/app/model/GpsPath.php
UTF-8
4,156
2.96875
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Nette\Object; use Nette\Utils\DateTime; class GpsPath extends Object { public $points = array(); public function __construct($gpx) { $xml = new \SimpleXMLElement($gpx); foreach($xml->trk->trkseg as $trkseg) foreach ($trkseg->trkpt as $trkpt) { $point = (object)array( ...
true
6de25b7450f872302651d0e1046158880377039a
PHP
LunaSystemsPeru/sebeal_transporte
/models/DocumentoSunat.php
UTF-8
3,133
2.890625
3
[]
no_license
<?php require_once 'Conectar.php'; class DocumentoSunat { private $id_documento; private $nombre; private $abreviatura; private $cod_sunat; private $c_conectar; /** * DocumentoSunat constructor. */ public function __construct() { $this->c_conectar = Conectar::getInst...
true
e40cb904d0aea5732d1db287df7b5e0e724471b3
PHP
JonathanGWesterfield/12th-Can
/Inventory-Site/app/Http/Controllers/ItemsController.php
UTF-8
6,233
2.6875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\Request; use function MongoDB\BSON\toJSON; use Illuminate\Support\Facades\DB; use App\Item; class ItemsController extends Controller { /** * Display a listing of the resource. * * @return...
true
a2b1dd2815363ad515f25fa7af781a20f5eb2071
PHP
Julien-Treuschel/Blog
/Blog/Admin/supprimerArticle_post.php
UTF-8
897
2.6875
3
[]
no_license
<?php try { // On se connecte à MySQL $bdd = new PDO('mysql:host=localhost;dbname=blog_db;charset=utf8', 'root', ''); } catch(Exception $e) { // En cas d'erreur, on affiche un message die('Erreur : '.$e->getMessage()); } $id_billet = htmlspecialchars($_GET['bill...
true
9def857fa1276966b49df85bf186bd4ca9abadbc
PHP
tikkeulmoa/tikkeulmoa-server
/application/controllers/Api.php
UTF-8
6,497
2.578125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Api extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller...
true
f97bfc8e02522e3d165ed517e6564a5b42a03014
PHP
FaridAhmad013/native
/conditional/grade3.php
UTF-8
729
3.15625
3
[]
no_license
<?php $nilaiSaya = 90; if ($nilaiSaya >= 90) { $grade = "A"; } else if ($nilaiSaya >= 80) { $grade = "B"; } else if ($nilaiSaya >= 70) { $grade = "C"; } else if ($nilaiSaya >= 60) { $grade = "D"; } else { $grade = "E"; } switch ($grade) { case "A": $ket = "Pertahankan"; break;...
true
4ec8a578d60d96d5884b08a0dc94ab55bfcfef52
PHP
tomir/q
/engine/libraries/Enp/Filter/Nip.php
UTF-8
397
2.65625
3
[]
no_license
<?php namespace Enp\Filter; class Nip implements \Zend_Filter_Interface { public function filter($value) { // usuniecie wszystkiego poza cyframi $value = preg_replace("/[^0-9]+/", "", $value); // sformatowanie nipu na ogolny zapis XXX-XXX-XX-XX $value = preg_replace('/([0-9]{3})([0-9]{3})([0-9]{2...
true
8ae1eb97e875c382bd67399bc1723067cde4c05d
PHP
sleepcat1210/pingtai
/app/Helpers/functions.php
UTF-8
1,086
2.8125
3
[ "MIT" ]
permissive
<?php function getTree($data, $pId,$level=0) { static $tree =[]; foreach($data as $k => $v) { if($v['pid'] == $pId) { $v['level'] =$level; $tree[] = $v; getTree($data, $v['act_id'],$level+1); unset($data[$k]); ...
true
5bf1756e6b429485d9d958b60cd4c505f468b8f2
PHP
cgqqq/gwtask
/laravel/database/migrations/2018_03_12_120743_create_invitation_table.php
UTF-8
887
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInvitationTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('invitation',...
true
c74cddc056acbe9c5d433b79e52b33c923d04ef2
PHP
newfulin/fu-cloud
/public/demo/testbc.php
UTF-8
1,653
3.46875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wangjh * Date: 2018/1/15 * Time: 11:53 */ //bcadd — 2个任意精度数字的加法计算 //2个操作数求和之后的结果以字符串返回 echo "bcadd-----<br>"; echo bcadd('5',' 1.266', 2); //5.0 有空格 echo '<br>'; echo bcadd(5,' 1.266', 2); //5.0 echo '<br>'; echo bcadd(5,'1.266 ', 2); //5.0 echo '<br>'; echo bcadd(5,'1.266...
true
aefff4ced6498b93f4205b13de21725502a0d927
PHP
ShadowFiendTheNevermore/simple_mvc
/Framework/Validator/Validator.php
UTF-8
4,843
2.96875
3
[ "MIT" ]
permissive
<?php namespace ShadowFiend\Framework\Validator; use ShadowFiend\Framework\Application\DB; use ShadowFiend\Framework\Config\Config; use ShadowFiend\Framework\Validator\Rule; /** * */ class Validator { protected $errors = []; /** * Validate input value with rules * * @param mixed $input * @param ar...
true
cef915b4a57f37f432476c5cf27e1e64abf1547d
PHP
ateliee/pmp
/src/class/PMP/date.php
UTF-8
2,182
3.28125
3
[]
no_license
<?php namespace PMP; /** * Class Date * @package PMP */ class Date { private $time; private $default_format; function __construct($time=null,$default_format='Y-m-d') { $this->setDefaultFormat($default_format); if(is_numeric($time)){ $this->time = $time; }else if(...
true
a75ac10379f81bac9fe7321e52a5bf385e32ed2f
PHP
germaintje/StardunlL1
/controller/ProductsController.php
UTF-8
3,127
2.6875
3
[]
no_license
<?php require_once 'model/ProductsLogic.php'; require_once 'utility/utility.php'; class ProductsController { public function __construct() { $this->ProductsLogic = new ProductsLogic(); $this->utility = new utility(); } public function __destruct() { // TODO: I...
true
43ead8cc584ae1e9a85ded96458d290f0c691f2b
PHP
Sapistudio/SapiCharts
/src/Morris/MorrisChartTypes.php
UTF-8
225
2.515625
3
[ "MIT" ]
permissive
<?php namespace SapiStudio\Charts\Morris; /** Model class constanst with Morris Chart types */ class MorrisChartTypes { const LINE = 'Line'; const BAR = 'Bar'; const DONUT = 'Donut'; const AREA = 'Area'; }
true
862f38cc7ed1a396ebfa0edf69b8dd713d36cc4f
PHP
MatthieuALLIER/PHP_IDS
/Projet/class.php
UTF-8
8,531
3.21875
3
[]
no_license
<?php include("template.class.php"); // Création de la classe request_database qui permet de requeter la BDD et accéder aux résultats class request_database{ private $pdo; private $req; private $data; // La classe prend en paramètre la connexion PDO et la requête à éxécuter function __constr...
true
5b310866467f07eeeea30fcc227e3c814004760e
PHP
johannpistorius/Kicessah
/serveur/API.php
UTF-8
958
2.765625
3
[]
no_license
<?php ini_set("display_errors",1); $pathDeLImage="face_detection/classification/test_images/picture_to_process.jpg"; $pathDuProgPython = "face_detection/classification/test.py"; /** Debug thibaud if (isset ($_POST['text'])){ echo $_POST['text']; $content = file_get_contents("log.txt"); $date = new DateTime(); $dat...
true
39a360e5db4ccd72dfe42f91160b4719f031d53b
PHP
rmonla/rmAlsama
/_vers/141213_alsama/docs/templs/Sistema Registro Academico/editar_grado.php
UTF-8
1,584
2.546875
3
[]
no_license
<?php if(isset($_POST["agregar"])) { require("conectar.php"); $nombre = $_POST["nombre"]; $codigo = $_GET["codigo"]; $inser = "update grado set nombre_grado = '$nombre' where cod_grado = $codigo"; if(mysql_query($inser)) { header("location: ver_grado.php"); exit; } else { echo mysql_error(); ...
true
3676fe8faa4c911483159aa280887c56e0c28d16
PHP
kactetus/miam
/src/MiamBundle/Entity/Tag.php
UTF-8
1,989
2.953125
3
[]
no_license
<?php namespace MiamBundle\Entity; /** * Tag */ class Tag { /** * @var integer */ private $id; /** * @var string */ private $name; /** * @var \DateTime */ private $dateCreated; /** * @var \Doctrine\Common\Collections\Collection */ private $i...
true
0ed60bd550685b53f2822c70462e661fb8748047
PHP
yarwalker/ci-shop
/ci/application/helpers/MY_array_helper.php
UTF-8
2,361
2.953125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* function sort_array($array,$by,$order = "ASC") { if ($order == "ASC") { usort($array, function($first, $second) use( $by ) { if ($first[$by]>$second[$by]) { return 1; } elseif ($first[$by]<$second[$by]) { return -1; } return 0;...
true
1bb69ceaec67a8137e4afe4d1b1854840d6ef3bb
PHP
itujono/duotonal
/CI VERSION/application/models/Subscribe_m.php
UTF-8
772
2.625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Subscribe_m extends MY_Model{ protected $_table_name = 'default_subscribe'; protected $_order_by = 'idUSER'; protected $_primary_key = 'idUSER'; public $rules_subscribe = array( 'emailSUBSCRIBE' => array( 'field' => 'email', 'la...
true
354f68b8f53c2c074e8ac1332e1f1e4ba933bf68
PHP
995933447/video-api
/app/Jobs/EmailJob.php
UTF-8
953
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Services\ServiceCaller; use App\Services\Sms\Tasks\Email; class EmailJob extends Job { public $tries = 5; private $content; private $to; private $subject; private $attachment; private $attachmentName; /** * Create a new job instance. * ...
true
158f80ae98c1ab5acc095d24633f3b06c2bfd6d6
PHP
spaghettiphp/spaghettiphp-forum
/app/models/users.php
UTF-8
211
2.546875
3
[]
no_license
<?php class Users extends AppModel { public function name() { if(!empty($this->name)) { return $this->name; } else { return $this->username; } } }
true
8b3296eed7cba635633e2925bc384dc2d0284c32
PHP
lightbrise/php
/view/update_user_profile.php
UTF-8
2,517
2.578125
3
[]
no_license
<?php ?> <!DOCTYPE html> <html> <head> <title>Edit Your Profile</title> <link rel="stylesheet" type="text/css" href="../main.css" /> </head> <body> <form action="../controller/normal_user.php" method="POST"> <fieldset> <legend>Member Information</legend> <br><br> <label for="fir...
true
e4e5fa82657e13d1064d86ad1d321eb141abd1c1
PHP
ErikMartirosyanDev/site-app
/app/View/Components/CreateMessage.php
UTF-8
560
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\View\Components; use Illuminate\View\Component; class CreateMessage extends Component { public int $widgetId; /** * Create a new component instance. * * @param string $widgetId */ public function __construct(int $widgetId) { $this->widgetId = $widgetId...
true
0356ac97ba461c27135fc4890b480f4fcaf5e359
PHP
zhixxxx/blogAdmin
/app/Exceptions/CheckTokenException.php
UTF-8
278
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Exceptions; use App\Common\Code; class CheckTokenException extends BaseException { public function __construct() { $code = Code::CHECK_TOKEN_FAIL; $msg = Code::CHECK_TOKEN_FAIL_MSG; parent::__construct($msg,$code); } }
true
e8945bd08d5d1d05e4644e13fafe5bbf91cd2fef
PHP
yomufe/SISCVP
/app/Models/Persona.php
UTF-8
1,580
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Persona * * @property $id * @property $nombre * @property $apellidos * @property $correo * @property $cedula * @property $fecha_de_inicio * @property $dias_disponibles * @property $contrasenna * @property $activo * @property ...
true
52bb2caac92de35e8667c2cec9941f65b98f2d71
PHP
TheMikewithaK/betnstuff
/server/app/Http/Controllers/HomeController.php
UTF-8
3,730
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Pool; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Input; use Log; class HomeController extends Controller { private function crypto_rand_secure($min, $max) { $range = $max - $min; if ($range <...
true
e11aeaa519e5fd34568b4973f8e1226533e70343
PHP
Specialist001/newcms1.uz
/limber/Routing/Router.php
UTF-8
2,786
2.546875
3
[]
no_license
<?php namespace Limber\Routing; use Limber\Http\Request; use Limber\Http\Uri; use Limber\Limber; use Limber\Template\View; class Router { protected static $module; public static function module(): \Limber\Routing\Module { return static::$module; } public static function initialize() ...
true
b909b9439431f5b465d3bdf9f5d1d6641cb9567d
PHP
penteleq/employeeperformance
/src/EmployeePerformanceManagement/Measurement/Provider/MongoObjectivePointsProvider.php
WINDOWS-1250
959
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Rafa * Date: 05.12.2015 * Time: 19:40 */ namespace EmployeePerformanceManagement\Measurement\Provider; use EmployeePerformanceManagement\Contracts\MeasurementProvider; class MongoObjectivePointsProvider implements MeasurementProvider { /** * Returns computed val...
true
60d25b830fedb60b706baf8af4adedc6b090d2d9
PHP
jrogala1/hfs
/database/migrations/2019_04_15_193433_create_entries_table.php
UTF-8
1,004
2.640625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateEntriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('entries', funct...
true
ff3df070bfb8f38f137d33a0ea05944f8dc258b7
PHP
pawan15943/demo
/wp-includes/php-compat/readonly.php
UTF-8
1,251
3.125
3
[ "MIT", "GPL-2.0-only", "GPL-1.0-or-later", "GPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Conditionally declares a `readonly()` function, which was renamed * to `wp_readonly()` in WordPress 5.9.0. * * In order to avoid PHP parser errors, this function was extracted * to this separate file and is only included conditionally on PHP 8.1. * * Including this file on PHP >= 8.1 results in a fat...
true
67aba41d52176e2448820b80036b68cf231b93d4
PHP
elmaspicudo/proyecto
/src/acme/sitioBundle/Entity/pagina.php
UTF-8
2,167
2.609375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace acme\sitioBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * pagina */ class pagina { /** * @var integer */ private $id; /** * @var string */ private $nombre; /** * @var string */ private $contenido; /** * @var \acme\sitioBundle\E...
true
be67cb28e56a2c3e4ca1176b398557199232d83a
PHP
PHPixie/Security
/tests/PHPixie/Tests/Security/PasswordTest.php
UTF-8
617
2.515625
3
[]
no_license
<?php namespace PHPixie\Tests\Security; /** * @coversDefaultClass \PHPixie\Security\Password */ class PasswordTest extends \PHPixie\Test\Testcase { protected $password; public function setUp() { $this->password = new \PHPixie\Security\Password(); } /** * @covers ::hash ...
true
b34074d60018e50d218c3fc64e84efc5ae45870c
PHP
somefool/habari-extras
/plugins/ohloh_badge/tags/0.6-0.1/ohloh_badge.plugin.php
UTF-8
5,458
2.875
3
[]
no_license
<?php /** * Ohloh Badge Plugin: Display an ohloh badge, as image markup. **/ class OhlohBadge extends Plugin { private $config = array(); private $class_name = ''; public function help() { return _t( 'Configure, then use <code>&lt;?php $theme->ohloh_badge(); ?></code> in your theme to output the HTML image ma...
true
d63eb3ee68aad6a1defe316fbb101870dd197f58
PHP
Stevenhr/CS_Contrato
/Logica/VerCalendario.php
UTF-8
4,733
2.828125
3
[]
no_license
<?php $opcion = $_POST["HD_VALIDACION"]; if($opcion == 'obtenerCalendarios') { include("../Datos/ManejadorCalendario.php"); $manejadorCalendario = new ManejadorCalendario(); $manejadorCalendario->obtenerCalendarios(); $calendarios = $manejadorCalendario->getCalendario(); $month = $_POST["HD_MES"]; $year = $_P...
true
e05bb107d062e0980a5fb084a9270615a63922ad
PHP
matheusfmendes/cursophpcom
/condicionais.php
UTF-8
667
3.6875
4
[]
no_license
<?php $numero = 10; if ($numero == 10) { echo "É igual a 10"; } else { echo "É diferente de 10"; } echo "<hr>"; $media = 7; echo ($media >= 7) ? "aprovado!"."<br>"."-------------"."<br>" : "reprovado!"."<br>"."-------------"."<br>";// operador ternario para substituir o if/else $cor = "vermelh...
true
c4d98e18d9d25005bc8d79ce931f34b3716b0d8f
PHP
OwaisIbrahim/cms
/admin/includes/view_all_users.php
UTF-8
4,094
2.59375
3
[]
no_license
<table class="table table-hover table-bordered"> <thead> <tr> <th>Id</th> <th>Username</th> <th>FirstName</th> <th>LastName</th> <th>Email</th> <th>Role</th> <th>Date</th> <th>Allow</th> <th>Not Allo...
true
bec2ef1b8c4ecd4846fb2fbee6399baab9bf2040
PHP
djdagovs/PHP-Filehost-Uploaders
/twoshared.handler.php
UTF-8
1,753
2.78125
3
[]
no_license
<?php require_once 'AbstractCurly.class.php'; /** * Twoshared * An object used to upload files to 2shared.com * @author Neil Opet <neil.opet@gmail.com> */ interface TwosharedInterface { public function Upload( $callback ); // Upload file } final class Twoshared extends AbstractCurly impleme...
true
f8e701ba9a46f0c3152a28e29fad108c00ff3599
PHP
idanco77/dribbble
/app/Jobs/UploadImage.php
UTF-8
2,400
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Models\Design; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\File; use Intervention\Image\Facades\Ima...
true
e25c7ed858d227f77f0031bae8b3df65baa20270
PHP
DarkWizardGitHub/Guild
/class/database_class.php
UTF-8
1,555
3.484375
3
[]
no_license
<?php class Database { private $data_source_name; private $host; private $user; private $password; private $databasehandler; public function __construct() { // 外部textからDatabase接続に必要な情報を読み込む $filepath = './parameter/database parameter.txt'; $readvalue = file($filepath); $this->data_source_name = trim($re...
true
69d821773d97f5f7ba057947f6cec4289402bd07
PHP
MolkovAnton/bitrix
/php_interface/include/functions.php
UTF-8
2,366
2.59375
3
[]
no_license
<?php //Возвращает руководителя отдела в котором состоит пользователь function getBitrixUserManager($user_id = false) { if(!$user_id) { $user_id = $GLOBALS["USER"]->GetID(); } return array_keys(CIntranetUtils::GetDepartmentManager(CIntranetUtils::GetUserDepartments($user_id), $user_id, true)); } ...
true
d800d2f8f78b15af76872b63bc7d0cf85e3d2db8
PHP
Skyvorobey/php1.loc
/dz2/discriminant/discriminant.php
UTF-8
1,134
3.359375
3
[]
no_license
<?php function discriminant_expression($a, $b, $c) { $d = (($b * $b) - (4 * $a * $c)); return $d; } assert(0 === discriminant_expression(0, 0, 0)); assert(-128 === discriminant_expression(4, 8, 12)); assert(-44 === discriminant_expression(3, 2, 4)); assert(436 === discriminant_expression(2, 22, 6)); assert(-23...
true
53f28dc8eaa3fc4414795d44a3736a00d124a125
PHP
vlastimir-bulatovic/php-api
/repository/UserRepository.php
UTF-8
3,441
3.21875
3
[ "MIT" ]
permissive
<?php class UserRepository{ public function allRepository() { $databaseService = new DatabaseService(); $conn = $databaseService->getConnection(); $query = "SELECT * FROM user "; $stmt = $conn->prepare( $query ); $stmt->execute(); ...
true
10a3a6b59a8e7bc02cc62a111decec643cc14fbb
PHP
isthatcentered/miniframework
/Api/Entities/Repository.php
UTF-8
2,651
3.203125
3
[]
no_license
<?php namespace Api\Entities; use PDO; class Repository { /** * @param \PDO $db * @param string $table * @param array $args * * @return string */ public static function insert( \PDO $db, string $table, array $args ) { $properties = self ::_implode( ', ', array_keys( $args ) ); $placehold...
true
e076a0254cbe3ffbb8c2f4e2c5cd436f6dcebc4a
PHP
haltoub/project487
/deleteimages.php
UTF-8
775
2.671875
3
[]
no_license
<?php require_once('../../../DB.php'); $con = new mysqli(DBHOST, USERNAME, PASSWORD, DBNAME); $result = mysqli_query($con,"SELECT * FROM images"); ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <title>Delete employee data</title> </head> <body> <table> <tr> <td> Id</td> <td>I...
true
84a7e7ea7cb567c1f361a15858adca3c0724ee56
PHP
masashi2411/CampChallenge
/CampChallenge_PHP/007.PHPからのDB操作/データベース操作9.php
UTF-8
1,009
2.78125
3
[]
no_license
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf8"> <title>ユーザー登録</title> </head> <body> <article> <form action="index.php" method="post"> <p>名前: <input type="text" name="nam"></p> <p>年: <input type="text" name="age"></p> <p><input type="submit" v...
true
8d807fe2832d0cf2304cde88cfdfa38afbdd9513
PHP
fabio27/projetoWeb
/br.com.ftec.biblioteca.model/Autores.php
UTF-8
448
2.921875
3
[]
no_license
<?php class Autores { private $nome; private $Id; function __construct($nome,$Id) { $this->nome = $nome; $this->Id = $Id; } function getId() { return $this->Id; } function setNome($Id) { $this->Id = $Id; } function getNome() { ...
true
78c0d1b02dee34b3a370f45fa6f83ee95840fea8
PHP
yypereira/api-rest-ful-angular-laravel-crud-concesionario
/api-laravel/app/Http/Controllers/CarController.php
UTF-8
4,326
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Helpers\JwtAuth; use App\Car; use App\User; class CarController extends Controller { public function index(Request $request) { //Mostrar todos los registros $cars = Car::all()->load('user'); $data =...
true
369df4b03ab864e79af13adf07cd8b758ce28677
PHP
cauza/PDFArangger
/a6toa3portrait.php
UTF-8
3,668
2.8125
3
[]
no_license
<?php require_once('fpdf/fpdf.php'); require_once('fpdi/fpdi.php'); // initiate FPDI $pdf = new FPDI(); $file = $_GET['file']; // get the page count $jml_hal = $pdf->setSourceFile('file/'.$file); $jml_swop = floor ($jml_hal/16); for ($swop=1; $swop <= $jml_swop; $swop++){ //echo "Halaman Baru<br /...
true
fb1f8dd0a08b86898546456a2e0e3eeb92539ca7
PHP
Dequalix/BlueChat
/V1.2/chat/write.php
UTF-8
889
2.875
3
[]
no_license
<?php /* Displays user information and some useful messages */ session_start(); require("../system/_con.php"); // Makes it easier to read $username = $_SESSION['username']; $nickname = $_SESSION['nickname']; $email = $_SESSION['email']; $active = $_SESSION['active']; $user_id = $_SESSION['user_...
true
d13495737d16e49823571e50f959abd37a2ebfc6
PHP
dwgebler/doclite
/src/FileSystem/FileSystemInterface.php
UTF-8
1,900
3.078125
3
[ "MIT" ]
permissive
<?php /** * FileSystemInterface class. */ declare(strict_types=1); namespace Gebler\Doclite\FileSystem; use Gebler\Doclite\Exception\IOException; /** * FileSystemInterface */ interface FileSystemInterface { /** * These are internal flags, not chmod permissions. */ public const ATTR_DIRECTORY ...
true
27bd85dd33176c24f080cd5ca0a58d891375d069
PHP
spatie/async
/src/FileTask.php
UTF-8
164
2.578125
3
[ "MIT" ]
permissive
<?php namespace Spatie\Async; class FileTask { public string $file; public function __construct(string $file) { $this->file = $file; } }
true
e066e3fef4f8246f608b8f2096c646a38b8c496e
PHP
rakeybulhasan/exam-assigment
/src/Model.php
UTF-8
1,293
3.234375
3
[]
no_license
<?php namespace Core; use Config\Database; use mysqli; class Model { private $_connection; private static $_instance; /* Get an instance of the Database @return Instance */ public static function getInstance() { if(!self::$_instance) { self::$_instance = new self(); ...
true
8880b8a108b3b1a70a6004c6de8f0d4bea573ff5
PHP
JHutter/CapstoneDB
/php/grades_forms.php
UTF-8
6,383
2.609375
3
[]
no_license
<?php // include_once('database.php'); // include_once("get_name.php"); // include_once("course_info.php"); // include_once("assignment.php"); // include_once("grade_category.php"); // include_once("grade_tables.php"); // include_once("forms.php"); /*function get_category_table_term_view_only_stu($course_type, $acad_...
true
224f4a7e8c5febaf835e8140faa23f977662d97c
PHP
gtcraig/ministry
/dev/software/goodteaching/WEB-INF/BibleRef.php
UTF-8
2,236
3.25
3
[]
no_license
<?php /* * * * * * * * * * * * * * * * * * * * * * * * * Good Teaching Search Engine * Copyright (c) 2007,2020 frontburner.co.uk * * Who When Why * CAM 25-Oct-2007 10187 : File created. * CAM 24-May-2020 481548 : Replace deprecated ext/mysql calls with MySQLi. * * * * * * * * * * * * * * * *...
true
b3dc9df79fe9a8431ee3a2c45cb887423ef19ccc
PHP
nsdonner/geekbrains
/app/Comment.php
UTF-8
1,639
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: palad * Date: 15.10.2017 * Time: 18:35 */ namespace App; use Illuminate\Database\Eloquent\Model; class Comment extends Model { public function getCommentsByTask(int $id_task) { $comments = Comment::where('id_task','=', $id_task) ->where('is_delete...
true
45df6e282405920bd7bcf937cb95156f671bb09a
PHP
tvelykyy/cmser
/application/tests/Model/UserToken_Test.php
UTF-8
2,883
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct access allowed!'); class Model_UserToken_Test extends Model_Base_Test { protected $model; const ID = 1; const TOKEN = 'df4ed7297a2db98cec927647f46505d74ef75f8f'; const USER_EMAIL = 'dummy@mail.com'; const USER_AGENT = 'da39a3ee5e6b4b0d3255bfef95601890afd8...
true
e290bd43795ea3d345a4e28ec3d4a41418862320
PHP
CyrilE/slim_project
/app/Controllers/EmployeeController.php
UTF-8
2,736
2.6875
3
[]
no_license
<?php namespace App\Controllers; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use RedBeanPHP\Facade as RedBean; class EmployeeController { private $view; public function __construct($container) { $this->view = $container->get('view'); $con...
true
3e251c6efa92e5758ef5ffa357c834f2f265f717
PHP
pastraka/Tchnology-Fundamentals-SoftUni-PHP
/5.Data Types and Variables/Exercises/pokeMon.php
UTF-8
623
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Toshiba * Date: 5.10.2018 г. * Time: 13:38 */ $pokeMonPowerN = intval(readline()); $distanceM = intval(readline()); $exhsaustionFactorY = intval(readline()); $count = 0; $halfPower = $pokeMonPowerN * 0.5; while ($pokeMonPowerN >= $distanceM) { $pokeMonPow...
true
b3b284c153291bc1ac36b1c1092036d3e5b51639
PHP
Kelvin19891223/BetFair-bot-for-admin-dashboard
/application/models/Marketbook.php
UTF-8
830
2.53125
3
[]
no_license
<?php class Marketbook extends CI_Model { protected $_name = 'marketbook'; public function getAllWallets() { $query = $this->db->query('SELECT addr FROM '.$this->_name); return $query->result_array(); } public function getLiveMarketIds() { $query = $this->db->query('SELECT marketid FROM '.$this->_name.' WHE...
true
fb22dee05885f77c5012bec5537e244dc66bf5db
PHP
flamez57/mysweet
/hl/HLView.php
UTF-8
4,829
2.671875
3
[ "MIT" ]
permissive
<?php namespace hl; use hl\HLSington; /** ** @ClassName: HLView ** @Description: 视图基类 ** @author flamez57 <flamez57@mysweet95.com> ** @date 2018年3月29日 晚上22:49 ** @version V1.0 */ class HLView { /* ** 模块 */ private static $module; /* ** 视图目录 */ private static $viewPath; /*...
true
97a7399f9331f263512f2bffee1c462c99fd820f
PHP
bruninhomf/escola
/app/Http/Controllers/StudentController.php
UTF-8
5,355
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\StudentRequest; use App\Models\Course; use App\Models\Student; use Illuminate\Http\Request; class StudentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public fun...
true
58f6cf604c62ef5cb0f49c90d1793eec0c6b1f0a
PHP
pinjaliina/aanestys
/app/models/votes.php
UTF-8
3,272
2.921875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php class Vote extends BaseModel{ //Attributes. $users_id is a temporary attribute and not in the DB schema for this model. public $id, $polls_id, $poll_options_id, $time, $users_id; //Constructor public function __construct($attributes){ parent::__construct($attributes); } private static f...
true
4952ebf92b7d29f6cecd2dceced11f2c7fb5fc32
PHP
leninalive/BotHelp
/src/Service/TaskProcessor.php
UTF-8
967
2.859375
3
[]
no_license
<?php /* * People (c) 2021 * devoted to the multiverse */ namespace App\Service { use App\DTO\TaskDTO; use Psr\Log\LoggerInterface; /** * Class TaskProcessor * @package App\Service */ class TaskProcessor { /** * @var LoggerInterface */ private L...
true
fd1a02d0a1d16f8d6e4f9f819b0e9141997a0107
PHP
LaravelRUS/SleepingOwlAdmin
/src/Display/Column/Custom.php
UTF-8
1,865
2.8125
3
[ "MIT" ]
permissive
<?php namespace SleepingOwl\Admin\Display\Column; use Closure; use Exception; class Custom extends NamedColumn { /** * Callback to render column contents. * * @var Closure */ protected $callback; /** * @var string */ protected $view = 'column.custom'; /** * @v...
true
953b7e555cf5790358bab1a8c03b48a39bac6659
PHP
S-Bruno-G/cst336
/practice/p4/card.php
UTF-8
476
3.234375
3
[]
no_license
<?php class Card{ private $imgLink; private $points; function __construct($dir, $num) { $this->imgLink = $dir; $this->points = $num; } // get points function public function getPoints() { return $this->poin...
true
cdc8befbb8f0d677f08ba20216414d4b9eb19893
PHP
oscarpalmer/yogurt
/src/oscarpalmer/Yogurt/Yogurt.php
UTF-8
2,788
3.21875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace oscarpalmer\Yogurt; /** * Yogurt, the main engine. */ class Yogurt { /** * @var string Current version number. */ const VERSION = "1.3.0"; /** * @var Dairy Dairy, the parser. */ protected $dairy; /** * @var array Settings for Yogurt. */ protect...
true
b2cc70e5db6ec706fa8ed1d176f85963f721c347
PHP
fernandosandoval/TPEspecialWeb2
/view/UsuariosView.php
UTF-8
1,551
2.59375
3
[]
no_license
<?php include_once 'libs/Smarty.class.php'; /** * */ class UsuariosView extends View { function mostrarUsuarios($usuarios){ $this->smarty->assign('usuarios', $usuarios); $this->smarty->display('templates/usuarios.tpl'); } function mostrarIndex(){ $titulo = "Juegos y Consolas"; $smarty = ne...
true
5eb0bd9164da24f96943b73db3aaed3c68db7f47
PHP
vduggen/course-php-oop
/traits02.php
UTF-8
437
3.265625
3
[]
no_license
<?php trait MyTrait1 { public function test1() { return 'Hello1 <br />'; } } trait MyTrait2 { public function test1() { return 'Hello2 <br />'; } } class MyClass { use MyTrait1, MyTrait2 { // Resolve conflict MyTrait2::test1 insteadof MyTrait1; // or // use alias MyTrait1::tes...
true
9203096124d871a0563a74085142415ab9b65c33
PHP
Grenmyr/1DV449_dg222cs
/Laboration2_Labbymessage/1DV449_L02/src/view/LoginView.php
UTF-8
1,567
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dav * Date: 2014-11-18 * Time: 15:59 */ class LoginView { private static $userName = 'username'; private static $password = 'password'; public function GetUsername(){ if(isset($_POST[self::$userName])){ return($_POST[self::$userName]); ...
true
1be8bdcfc93dc80d5977138bfe09cb99dc494b1c
PHP
chrischen86/Hudson
/tests/framework/command/SummaryHistoryCommandStrategyTest.php
UTF-8
2,882
2.59375
3
[]
no_license
<?php namespace tests\framework\command; use tests\TestCaseBase; use framework\command\SummaryHistoryCommandStrategy; use DateTime; /** * Description of SummaryCommandStrategyTest * * @author chris */ class SummaryHistoryCommandStrategyTest extends TestCaseBase { private $command; private $conquestManage...
true
fe5cc462543ac71e00f2d132b40c92f815c1a3a5
PHP
mmarcwabo/annuaires-sw
/controllers/error.php
UTF-8
714
2.828125
3
[ "MIT" ]
permissive
<?php /* Error controller */ class AnError extends Controller { function __construct(){ parent::__construct(); //Displaying an error message //echo "<br/>Error, file <b>".$arg."</b> not found :-("; //$this->index(); } //defaultly loaded ...
true
3726f83915f0a90fcf0dbdb32d57ccd65c34f3a7
PHP
ufee/amoapi
/src/Collections/UserCollection.php
UTF-8
330
2.59375
3
[ "MIT" ]
permissive
<?php /** * amoCRM User model Collection class */ namespace Ufee\Amo\Collections; use Ufee\Amo\Models\User; class UserCollection extends \Ufee\Amo\Base\Collections\Collection { /** * Get user from id * @param $id - user id * @return User */ public function byId($id) { return $this->find('id', $id)->firs...
true
6b898393695a471ecc89ec131a05d0d839322da3
PHP
LazyDEVJL/NewsApp
/app/Http/functions.php
UTF-8
3,034
2.59375
3
[ "MIT" ]
permissive
<?php use App\Category; if (!function_exists('getParentCategory')) { function getParentCategory($id) { if ($id == 0) { return 'Highest Grade'; } $parentCategory = Category::find($id); return $parentCategory['name']; } } if (!function_exists('getCategoryCo...
true
a174a50a5c7d60c495265b952080aa84924851c5
PHP
RushEnte/Coins-v2
/src/JavaPluginFX/API.php
UTF-8
559
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace JavaPluginFX; use JavaPluginFX\Coins; use pocketmine\event\Listeners; use pocketmine\Player; class API implements Listeners { public static function addPlayer(string $name){ } public static function getCoins(string $player): int{ } public static fu...
true
9a8e5d34d0c1d96a5128487901cab7213ca71099
PHP
marcelofajardo/bd
/agenda/menu/charts.php
UTF-8
1,006
2.640625
3
[]
no_license
<?php $sql="select nombre, count(*) as cantidad from citas, usuario where citas.usuario_id_usuario=usuario.id_usuario group by nombre"; require('../conexion.php'); $resultado = $mysqli->query($sql); echo $sql."<br><br><br>"; echo "nombre ------ cantidad <br>"; $rows = array(); while ($row1 = $resulta...
true
39edbcaf6d694d328390a6fe97a5d2584bbfd126
PHP
lentrix/school
/app/User.php
UTF-8
1,955
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\DB; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fi...
true
e20e3adb369bdfb4fbf28bd24bd5578e1e26db28
PHP
xycczZ/framework
/src/Event/AbstractListener.php
UTF-8
126
2.546875
3
[ "MIT" ]
permissive
<?php namespace Xycc\Winter\Event; abstract class AbstractListener { public abstract function handle(object $event); }
true
71904353f11b7cb68b44459825afc8ed7802b182
PHP
mikitu/phpdatechallenge
/src/DateValidatorInterface.php
UTF-8
133
2.671875
3
[]
no_license
<?php interface DateValidatorInterface { public function validate($date_str, DateFormatMatcherInterface $date_format_matcher); }
true
f55587e36b203c3f33d83c8acced99479ed4dddb
PHP
randynetworks/website-hmisi-ci
/application/models/News_model.php
UTF-8
1,356
2.671875
3
[ "MIT" ]
permissive
<?php class News_model extends CI_Model { public function __construct() { $this->load->database(); } public function all_news() { $query = $this->db->get('news', 5); // menggunakan result array karena data > 1 return $query->result_array(); // NOTES : TINGGAL BUAT PAGINATION } public function get_Ne...
true
a7c140fccff7ed99762d82370bcfe774f85f67fc
PHP
php-fp/php-fp-writer
/test/TellTest.php
UTF-8
1,085
2.578125
3
[ "MIT" ]
permissive
<?php namespace PhpFp\Writer\Test; use PhpFp\Writer\Writer; use PhpFp\Writer\Test\Double\Monoid; class TellTest extends \PHPUnit_Framework_TestCase { public function testParameterCount() { $count = (new \ReflectionMethod('PhpFp\Writer\Writer::tell')) ->getNumberOfParameters(); $t...
true
60902875da49a7bdf3e1cda482fbdbcf4262e111
PHP
pedrosouza423/Immersion-to-php
/2-Avançando-PHP/contas-correntes.php
UTF-8
337
3.484375
3
[ "MIT" ]
permissive
<?php // Tipo objeto em JavaScript // Aqui é um array associativo $conta1 = [ "titular" => "Pedro", "saldo" => 45000 ]; $conta2 = [ 'titular' => 'Matheus', 'saldo' => 300 ]; $constasCorrentes = [$conta1, $conta2]; for($i=0; $i < count($constasCorrentes); $i++){ echo $constasCorrentes[$i]['titula...
true
5a24472939245772848099c59cc1c65c4019d505
PHP
jayfir/mn-sys-basic
/common/models/wechat/FansTagMap.php
UTF-8
1,423
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace jayfir\basics\common\models\wechat; use Yii; /** * This is the model class for table "{{%wechat_fans_tag_map}}". * * @property string $id * @property string $fan_id 粉丝id * @property int $tag_id 标签id */ class FansTagMap extends \yii\db\ActiveRecord { /** * @inheritdoc */ public ...
true
f1d96042fadc8f9050e6548a7be199d68cd9c85e
PHP
Bandwidth/examples
/php/BandwidthReferenceApp/voice/callback.php
UTF-8
808
2.75
3
[]
no_license
<?php /* * callback.php * * A simple php app to demonstrate how to use Bandwidth's Voice API with callbacks. * * @copyright Bandwidth INC */ require_once "../vendor/autoload.php"; $pause = new BandwidthLib\Voice\Bxml\Pause(); $pause->duration(3); $speakSentence1 = new BandwidthLib\Voice\Bxml\SpeakSentence("Le...
true
7636ad914030b53808ab25ab9386f235ca93355f
PHP
keyral/dp_mata_hari
/classes/mata_hari.class.log.php
UTF-8
883
2.78125
3
[]
no_license
<?php /** * */ class mata_hari_log { function __construct($category, $action) { global $user; global $language; $this->user = $user->uid; $this->language = $language->name; $this->time = time(); $this->category = $category; $this->action = $action; ...
true
516362418a47f47c41f5c85705325749d8988155
PHP
hecto932/congreso
/application/modules/assistant/controllers/Assistant.php
UTF-8
11,114
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Assistant extends MX_Controller { function __construct() { parent::__construct(); $this->load->model('assistant_model'); } //VERIFICA QUE EL Asistente ESTE LOGUEADO public function isLoged() { return $this-...
true
4d660312b4cc42ce6a9b55ec395f9ebe9c2cfd6a
PHP
ahoedle/web_examples
/php-beispiele/formular_sicherheit.php
UTF-8
528
2.96875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> </title> <meta charset="UTF-8"/> </head> <body> <form method="get" action="<?php echo $_SERVER["PHP_SELF"]; ?>"> Suchbegriff: <br/> <input type="text" name="suche" size="80"> <br/> <input type="submit"><br/> <?php if (isset($_GET["suche"]...
true
6fb0d37d2d042318b06823a78e03690112503dbe
PHP
Medo3-coder/quizAPP
/database/seeds/DatabaseSeeder.php
UTF-8
649
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\User; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $admin = new User(); $admin->name = "admin"; $admin->email = "admin123@gmail.com...
true
66654d90fd43682686f1c1438f0bfa03a153980d
PHP
Wrystell/infy-tracker
/database/migrations/2019_06_21_113319_add_prefix_value_to_exist_record_in_project.php
UTF-8
765
2.546875
3
[]
no_license
<?php use App\Models\Project; use Illuminate\Database\Migrations\Migration; class AddPrefixValueToExistRecordInProject extends Migration { /** * Run the migrations. * * @return void */ public function up() { $projects = Project::get(); /** @var Project $project */ ...
true
8cd5cde7757e86ee94272dd137c05285ba291e6d
PHP
terigel/Campus-part-time-platform
/admin/public_function.php
UTF-8
5,979
2.546875
3
[]
no_license
<?php function modify_count($link,$id,$news_count){ $sql="update news_table set news_count=? where id=?"; $stmt=mysqli_stmt_init($link); mysqli_stmt_prepare($stmt,$sql); mysqli_stmt_bind_param($stmt, 'ss',$news_count,$id); mysqli_stmt_execute($stmt); if(mysqli_affected_rows($link)>0){ return true; }else{ ...
true
97222b2b2efb7f81f66c85553a195ddf1bbc41c2
PHP
hectorcrispens/YpfStock
/YPF/GuardadorLubricantes.php
UTF-8
2,300
2.71875
3
[]
no_license
<?php include_once 'db.php'; $con=@mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); if(!$con){ die("imposible conectarse: ".mysqli_error($con)); } if (@mysqli_connect_errno()) { die("Conexión falló: ".mysqli_connect_errno()." : ". mysqli_connect_error()); } $letras = array("A", "B", "C", "D", ...
true
ba761125b85b653c81ed0f59fef663f8d8461172
PHP
AliIbrahim996/myApi
/api/Admin/SendPayment.php
UTF-8
608
2.734375
3
[]
no_license
<?php include "../headers.php"; include "../sendPayment.php"; include "../../models/Purchase.php"; class SendPayment implements sendPay { public $data; private $purchase; public function __construct() { $this->data = json_decode(file_get_contents("php://input")); $database= new Database...
true
53ba4ef47aa745d558f91def8d66caad6425f014
PHP
xiaoming000/Student
/Application/Home/Controller/GraduateController.class.php
UTF-8
11,517
2.53125
3
[]
no_license
<?php namespace Home\Controller; use Tools\RbacController; class GraduateController extends RbacController { public function biyesheng(){ if(date('m')>7){//判断年份,展示最新一年的记录 $date=date('Y'); }else{ $date=date('Y')-1; } $by = new \Model\GraduateModel(); ...
true
24d265af848fbb2ca3cf1c4a3ee7f4d52adf3251
PHP
TJZenkai/cfafs
/SupportClass/Database.php
UTF-8
6,496
2.90625
3
[]
no_license
<?php ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $hostname = "localhost"; $dataname = "login"; $password = "root"; $username = "root"; /* $hostname = "mysql.freehostingnoads.net"; $dataname = "u908657796_alz"; $password = "trainhopper12...
true
3f488b54ba295a0355e9442c62d044f4b0ba12c7
PHP
vladafon/CourseWork-Client-Server-App-
/Server/findString.php
UTF-8
656
2.90625
3
[]
no_license
<?php include("Logic.php"); $l = new Logic(); if (isset($_POST["string"]) && isset($_POST["path"]) && preg_match("/^(\/){1}(([^\/]+)(\/{1}))*$/", $_POST["path"])) { $result = $l ->find_strings_in_files_in_directory($_POST["path"],$_POST["string"]); if (count($result) == 0) echo "Sorry, but nothing was...
true
34c0bddf13ea466dbffc3a3e6f089a526b553a7a
PHP
ph-ash/server
/src/Factory/GrowTilesEventFactory.php
UTF-8
599
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Factory; use App\Event\GrowTilesEvent as Event; use App\Repository\MonitoringDataRepository; class GrowTilesEventFactory implements GrowTilesEvent { private $monitoringDataRepository; public function __construct(MonitoringDataRepository $monitoringDataRepository...
true