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
e1c2cc7a711956ad5d42c3eec559ae879c7f516b
PHP
maraamamapa/Coche-prueba
/Coche/crearCoche.php
UTF-8
382
3.328125
3
[]
no_license
<?php include("coche.php"); $coche1=new Coche("BMW",1300); $coche2=new Coche("Mercedes",100); echo "<h3> Tipos de coches:</h3>"; echo "La marca del coche 1 es:"." ".$coche1->getMarca()." "."y tiene"." ". $coche1->getNumCaballos()." "."caballos."."<br>"; echo "La marca del coche 2 es:"." ".$coche2->getMarca()." "."y...
true
c304ed898fe4fd36bb33a498802720920eebe6c6
PHP
svbackend/swiperead
/backend/src/Utils/Json.php
UTF-8
244
2.65625
3
[]
no_license
<?php namespace App\Utils; class Json { public static function decode(?string $json): array { if ($json === null) { return []; } return json_decode($json, true, 512, JSON_THROW_ON_ERROR); } }
true
34ee3ceb19ee637a06d4c70fcd1263de0483e198
PHP
bhaktijkoli/eshop
/app/FlashMessage.php
UTF-8
448
2.578125
3
[]
no_license
<?php /* Flash Mesasge Library by Bhaktij Koli (bhaktijkoli121@gmail.com) */ namespace App; use Session; class FlashMessage { public static $sname = 'notification-messages'; public static function make($type, $message) { $message = ['type'=>$type, 'message'=>$message]; Session::push(Self::$sname,$messag...
true
aa744c632df3045b48479a8133d15dad577d7066
PHP
francysuri/isitup
/classes.php
UTF-8
2,188
3.109375
3
[]
no_license
<?php // $db = new Database(array(host, user, password)); class Database extends Error { private $db; private $connection; private $query; public function Database($args = array()) { $this->db['host'] = $args['host']; $this->db['user'] = $args['user']; $this->db['pass'] = $args['pass']; } public functio...
true
fba2390890476da8a5d552436293ebb4f6ff3dae
PHP
katzgrau/getsparks.org
/tools/lib/spark/spark_utils.php
UTF-8
2,160
2.859375
3
[ "MIT" ]
permissive
<?php // backward compatibility if ( !function_exists('sys_get_temp_dir')) { function sys_get_temp_dir() { if ($temp = getenv('TMP')) return $temp; if ($temp = getenv('TEMP')) return $temp; if ($temp = getenv('TMPDIR')) return $temp; $temp = tempnam(__FILE__, ''); if (fi...
true
6eed3a30e15705dadbcc9ee9d9bdf34cb2ed37d4
PHP
hywak/sample-code
/src/App/Product/Importer/ImporterInterface.php
UTF-8
227
2.765625
3
[]
no_license
<?php namespace App\Product\Importer; interface ImporterInterface { /** * @param string $pathToFile * * @throws Exception\ExceptionInterface */ public function import(string $pathToFile) : void; }
true
3f1983f4e5386845d3b2d0bdd82dd0a524396672
PHP
sekka1/SynthTesting
/library/AlgorithmsIO/Entity/Customers.php
UTF-8
1,361
2.671875
3
[]
no_license
<?php namespace AlgorithmsIO\Entity; use Doctrine\ORM\Mapping AS ORM; require_once ("AlgorithmsIO/Entity/EntityBase.php"); require_once ("AlgorithmsIO/Entity/CustomerAttribute.php"); /** * * @ORM\Table(name="customers") * @ORM\Entity */ class Customers extends EntityBase { /** * @var integer $id *...
true
a08003d7cb905e1ce2cd5ea344713efc4f83d337
PHP
Drayzer/prohostz
/modules/addons/teamspeak/lib/functions.php
UTF-8
1,407
2.6875
3
[]
no_license
<?php require_once __DIR__ . '/../../../../init.php'; use Illuminate\Database\Capsule\Manager as Capsule; $servers = Capsule::table('tblservers')->where('type', 'teamspeak')->get(); $listservers = array(); foreach ($servers as $server) { $listservers[$server->name] = array('ip' => $server->ipaddress, 'port' => ($se...
true
c3a454a3992686f573e23fc625cc55fb54eab463
PHP
TiRan161/symfony.test.local
/src/Vk/Api/Photos/SaveMessagesPhoto.php
UTF-8
896
2.734375
3
[]
no_license
<?php namespace App\Vk\Api\Photos; use App\Vk\Api\AbstractMethod; class SaveMessagesPhoto extends AbstractMethod { protected $url = '/method/photos.saveMessagesPhoto'; private $photo; private $server; private $hash; /** * @inheritDoc */ public function getParams() { ...
true
e9711837c93a319a304532e54faa7143e78a4857
PHP
akashkhandev/StudentManagementSystem
/SASMain.php
UTF-8
2,139
2.765625
3
[]
no_license
<html> <body> <?php $name = $fname = $age = $nationality = $address = $city = $contact = $email = $classname = $section = ""; $enrollArray = array(); if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["classname"])) { } else { $classname = test_input($_POST["classname"]); } if (empty(...
true
493765463e5c3fd63ee55b5d4d4f257d84efb960
PHP
aizakaria/Annuaire-ESTO
/Application/Admin/adminAjout.php
UTF-8
7,289
2.5625
3
[]
no_license
<?php require('../sqlConnexion.php'); if(isset($_POST["submitetudiant"])){ if( !empty($_POST['id_filiere']) && !empty($_POST['nom_etudiant']) && !empty($_POST['prenom_etudiant']) && !empty($_POST['cne_etudiant'])&& !empty($_POST['email_etudiant'])&& !empty($_POST['passwordetud']) && !empty($_POST['telephone_etudiant'...
true
a695fa18fb65574764ca00e819db0bbbdc06216a
PHP
pgoergler/OngooOnyx
/src/Ongoo/Onyx/Task/SingletonTask.php
UTF-8
1,803
2.546875
3
[]
no_license
<?php namespace Ongoo\Onyx\Task; /** * Description of SingletonTask * * @author paul */ abstract class SingletonTask extends Task { protected $lockFile = null; protected function configure() { parent::configure(); $this->addOption('pid-file', null, \Symfony\Component\Console\Input\In...
true
dcec36ec72f7f98cc58bffb44232c92cc7726106
PHP
LucFlynn/data-design
/php/classes/Profile.php
UTF-8
11,113
3.125
3
[ "Apache-2.0" ]
permissive
<?php namespace home\lflynn7\DataDesign\php\classes; require_once("autoload.php"); /** Profile Class * This class is a collection of profile data collected by users from the Very Bad Site * * @author Luc Flynn lflynn7@cnm.edu * * 0.0.0 **/ class Profile{ use ValidateDate; /** * id for this Profile; this i...
true
a8fd68923d0ec50b7b423d18ba52b0309ae70919
PHP
woowup/woowup-php-client-v2
/src/Support/Genderizer.php
UTF-8
1,711
3.015625
3
[ "Apache-2.0" ]
permissive
<?php namespace WoowUpV2\Support; class Genderizer { const API_URL = 'https://genderize.woowup.com/'; const PROBABILITY_THRESHOLD = 0.75; const COUNT_THRESHOLD = 10; public function __construct() { return $this; } public function getGender($name) { $parts = explode(' ', $name); if (count($parts) > ...
true
4f988dd758b67c24a595700395fc6229ae04af4d
PHP
tiveritz/testyourstuff-php-website
/src/auth/login.php
UTF-8
1,384
2.734375
3
[]
no_license
<?php // -- SESSION HANDLING ------------------------------------------------- session_start(); $is_authenticated = false; if (isset($_SESSION['authorized'])) { if ($_SESSION['authorized'] === AUTHENTICATION_TOKEN) { $is_authenticated = true; } } // Renew / Destroy Cookie if (isset($_SESSION["timeou...
true
c95f149f845099641bef2fe6684fdb39848add07
PHP
ryantxr/twilio-cake
/webapp/src/Lib/Handler/TwilioHandler.php
UTF-8
1,734
2.59375
3
[]
no_license
<?php namespace App\Lib\Handler; use Cake\Core\Configure; use Cake\Log\Log; use Twilio\Jwt\AccessToken; use Twilio\Jwt\Grants\IpMessagingGrant; class TwilioHandler extends BaseHandler { function __construct($obj) { parent::__construct($obj); } // This is currently an accessToken for progr...
true
a77aaca3a1ac2aeb63505e8003b43ffe525c700f
PHP
arthurgeay/blog_p3
/src/Controller/AdminController.php
UTF-8
6,567
2.59375
3
[]
no_license
<?php namespace blog_p3\Controller; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use Swift_SmtpTransport; use Swift_Mailer; use blog_p3\Domain\Article; use blog_p3\Domain\User; use blog_p3\Domain\Mail; use blog_p3\Form\Type\ArticleType; use blog_p3\Form\Type\CommentType; use blog_p3\Form\Type\...
true
eaa1344eba017aa1a480e11f6ea79660e24dd264
PHP
Xkeeper0/smb2
/tools/offsetcompare.php
UTF-8
1,007
2.734375
3
[]
no_license
<?php // This file takes the assembly listing // and compares its output to the labels contained within // This is useful if you break something and the code gets offset // as the jumps in bank F aren't fully labeled yet chdir(__DIR__ ."/../"); $x = file_get_contents("smb2.lst"); $m = []; $c = preg_match_all(...
true
eaf1c1c17261b1cb894fa2bbdc70f58cce66e854
PHP
nigelthecosta/Web
/project/aa.php
UTF-8
550
2.625
3
[]
no_license
<html> <head><title>Hello</title></head> <body> <?php $con=mysqli_connect("localhost","root","","web"); $res=mysqli_query($con,"select * from ps"); echo "<table>"; while($row=mysqli_fetch_array($res)) { echo "<tr>"; ...
true
5f372f1fc849998505afec3772f2ee444fc3f48d
PHP
nepomiaschyi-ivan/crawler
/src/Service/ImageServiceInterface.php
UTF-8
325
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service; /** * Interface ImageServiceInterface * @package App\Service */ interface ImageServiceInterface { /** * @param array $images * @param string $domain * @return mixed */ public function getImagesFromDomain(array $images, string $domai...
true
fd1ec6c6f075a2496ac90384200a7242e72530d8
PHP
vainyl/doctrine-odm-bridge
/src/Type/TimeType.php
UTF-8
2,424
2.8125
3
[ "MIT" ]
permissive
<?php /** * Vainyl * * PHP Version 7 * * @package Doctrine-ODM-Bridge * @license https://opensource.org/licenses/MIT MIT License * @link https://vainyl.com */ declare(strict_types=1); namespace Vainyl\Doctrine\ODM\Type; use Doctrine\ODM\MongoDB\Types\Type; use Vainyl\Time\Factory\TimeFactoryInterface...
true
dd10f6488b10b0a3e6d085ae9880767d4b4c4ff8
PHP
Safia54/8-nomophobie-questionnaire
/traitement.php
UTF-8
1,780
3.296875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php ini_set('display_errors', 1); error_reporting(E_ALL); // for($i=1; $i < 21; $i++) { // $note_individuelle= $_POST["reponse". $i]; //affiche chaque note de 1 à 7 de chaqu'une des 20 questions // var_dump($note_in...
true
8cf240bb321c5251af101872e3e0ab7c9580093c
PHP
vihar885/CMSplugin
/view-subscriber-import.php
UTF-8
6,660
2.578125
3
[]
no_license
<?php if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } ?> <div class="wrap"> <?php $elp_errors = array(); $elp_success = ''; $elp_error_found = FALSE; $csv = array(); // Preset the form fields $form = array( 'elp_email_name' => ...
true
97a0f0bc2a45c5a03aff0ab966a959fcf76977a2
PHP
schoolofnetcom/php-com-mysql
/abstraction/index.php
UTF-8
952
2.71875
3
[]
no_license
<?php require_once("User.php"); require_once("ServiceUser.php"); $server = "localhost"; $user = "root"; $pass = "root"; $database = "test"; // Conect Mysql @$mysqli = new mysqli($server,$user,$pass,$database); // Error if(mysqli_connect_errno()){ echo "Failed to connect to MySQL:(".$mysqli->conne...
true
0e4df0b4beae61cb7641b83109214736ae5a79ae
PHP
jonit-dev/empregueme
/funcoes/login_functions.php
UTF-8
11,596
2.59375
3
[]
no_license
<?php function login_user($login, $password, $redirect = false, $login_pos_creation = false, $redirect_pos_criar_cv = false, $tipo_conta = 0, $receber_vagas = 1) { //passsa variáveis para sessão (sessão é criada em session_functions.php) require_once('class_display.php'); //Script functions require_once...
true
eab96c6e8e9bd3650a05b1eb7a7732edcdc32c0c
PHP
iamhabbeboy/watermark-pdf
/src/request.php
UTF-8
632
2.53125
3
[]
no_license
<?php require_once '../vendor/autoload.php'; use Abiodun\Watermark\Repository\File; use Abiodun\Watermark\Repository\Stamp; use Abiodun\Watermark\Repository\Document; use Abiodun\Watermark\Repository\WatermarkOutput; if (isset($_FILES['document'])) { $file = new File($_FILES['document']); $file->setConfig(n...
true
acc890c312e5855293efc55e1c39aa2507af11e6
PHP
paul-ooi/ChowTime
/controllers/search/index.php
UTF-8
2,271
2.8125
3
[]
no_license
<?php session_start(); //if someone accesses this page with out actually searching for something it will redirect to the main home page if (!isset($_GET['action'])) { header("Location: index.php"); } require_once '../../models/recipeDB.php';//use Jessica's RecipeDB model require_once '../../models/db.php'; $db = ...
true
73cf841b58d19cee04a3f953e9dfe8c903365d69
PHP
Linkvenck-first/Web
/formulario.php
UTF-8
2,025
3.203125
3
[]
no_license
<?php /* Al emplear el metodo get en el formulario html de abajo y al no asignar una pagina diferente por medio de la propiedad action, al enviar se redirige a esta misma página y todos los valores de los controles del formulario seran 'empaquetados' en un solo arreglo llamado (en este caso) $_GET pues es el m...
true
3217d4bedc91a366cb4e8dca324c24636f873644
PHP
xiaohongyang/ecshop36_xtime
/vendor/zodream/zodream/src/Domain/Filter/Filters/UniqueFilter.php
UTF-8
616
2.640625
3
[ "MIT" ]
permissive
<?php namespace Zodream\Domain\Filter\Filters; use Zodream\Domain\Filter\FilterModel; use Zodream\Infrastructure\Interfaces\FilterObject; class UniqueFilter extends FilterObject { protected $error = '不是唯一!'; public function validate($arg) { return intval(FilterModel::getCount( $this->_opt...
true
acea846d4489f2e4c6232dc25dd24272ad41d1ac
PHP
kovey/http-server
/src/Middleware/Validator.php
UTF-8
1,994
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /** * * @description validator middleware * * @package Middleware * * @time 2019-11-06 23:48:01 * * @author kovey */ namespace Kovey\Web\Middleware; use Kovey\Event\EventInterface; use Kovey\Pipeline\Middleware\MiddlewareInterface; use Kovey\Validator\Validator as Valid; use Kovey\Librar...
true
85eabce798ef9889831cb93d2c1a16b6b3a4ec24
PHP
SleyersX/desenvolvimentosWEB
/restapi/v2/api/source/Models/Validations.php
UTF-8
4,520
2.53125
3
[]
no_license
<?php namespace Source\Models; use DateTime; final class Validations{ public static function validationString(string $token){ return strlen($token)>=3 && !is_numeric($token) && $token == '7c6ce378b1ef0a29180dd36a0d436a91'; } public static function validationSat(string $sat){ return strle...
true
0af88546d5d222ecfeaf8073db0cb3a2ac09d9a0
PHP
wp-plugins/facebook-all-in-one-plugin
/lib/class_WDFBAIO_marker_replacer.php
UTF-8
4,971
2.546875
3
[]
no_license
<?php /** * Handles shortcodes. */ class wdfbaio_MarkerReplacer { var $data; var $model; var $buttons = array ( 'like_button' => 'wdfbaio_like_button', 'events' => 'wdfbaio_events', 'connect' => 'wdfbaio_connect' ); function __construct () { $this->model = new wdfbaio_Model; $this->da...
true
3baf5331ea3ec188b000bba87664422a0e481a74
PHP
aartisoft/fotopi
/wp-content/plugins/edd-commissions/includes/email-functions.php
UTF-8
7,108
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Email functions * * @package EDD_Commissions * @subpackage Email * @copyright Copyright (c) 2017, Pippin Williamson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 3.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } /** ...
true
11d6ff1de9fa77648c50b8435fbaec917720e89d
PHP
VirtuosiMedia/VM-PHP-Framework
/Dev/Test/Assert/Null.php
UTF-8
535
3.15625
3
[ "MIT" ]
permissive
<?php /** * @author Virtuosi Media Inc. * @license MIT License * @description A unit test that tests if x is NULL, fails if it is not. * @namespace Test\Assert */ namespace Test\Assert; class Null extends \Test\Assert { /** * @description Tests if x is NULL, fails if it is not * @param mixed $...
true
54359366d220ce4409afa1e86dd67846f10e34d1
PHP
sanmark/quotesharp-api
/app/database/migrations/2015_01_01_055030_setupdb.php
UTF-8
2,850
2.640625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint ; use Illuminate\Database\Migrations\Migration ; class Setupdb extends Migration { public function up () { Schema::create ( 'users' , function($t) { $t -> increments ( 'id' ) ; $t -> string ( 'username' , 50 ) ; $t -> string ( 'email' , 100 ) ; $t -> s...
true
c2310fb0cd9418c962c57f5393a6190849d3e722
PHP
instinctdanny/portal
/portal/staff/filter.php
UTF-8
1,543
2.71875
3
[]
no_license
<?php include("conn/conn.php") ?> <?php session_start() ?> <?php $val3 = $_POST['val3']; $valx = $_POST['val']; ?> <div style="height: 5px;"></div> <?php $sl2 = mysqli_query($con,"SELECT * FROM result_query where result = '$valx' "); $sh2=mysqli_fetch_array($sl2); $status = $sh2['s...
true
7779676b149e961986764752356661ad25de7c07
PHP
robertperimov/php_labs
/auto/index.php
UTF-8
1,835
2.625
3
[]
no_license
<?php require_once "models/Auto.php"; $auto_model = new Auto(); $auto_model->set_connection(); $auto = $auto_model->get_all_auto(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css" ...
true
ce349e5b325e3710761bec0917e398273ad767f7
PHP
zhuanxuhit/doctrine-learn
/src/Repository/User.php
UTF-8
675
2.921875
3
[]
no_license
<?php namespace Repository; use Mapper\User as UserMapper; use Entity\User as UserEntity; class User { /** @var \EntityManager */ private $em; private $mapper; public function __construct( $em ) { $this->mapper = new UserMapper; $this->em = $em; } public function fi...
true
09c40ed08c688ae916b6e44c2416bb9b69ce3516
PHP
davidt1978/asgn07
/inc-joke-object.php
UTF-8
1,257
3.34375
3
[]
no_license
<?php class Joke { private $jokeID; private $joke; private $punchLine; public function addJoke() { $jokeRecord = $this->jokeID."/ ".$this->joke."/ ".$this->punchLine."\n"; $jokeFile = fopen("jokes.txt", "a"); fputs($jokeFile, $jokeRecord); fclose($jokeFile); } public function findJok...
true
d54a628b41e0f9d138e90e3cfeae9660a7fee556
PHP
Sabbir-cell/Practice-OOP-3
/grading.php
UTF-8
572
2.84375
3
[]
no_license
<?php $a=$_POST['y']; if ($a<="33") { echo "Your grade is F"; }else if ($a<=39) { echo "Your grade is C"; }else if ($a<=49) { echo "Your grade is D"; }else if ($a<=59) { echo "Your grade is B"; }else if ($a<=69) { echo "Your grade is A-"; }else if ($a<=79) { echo "Your grade is A"; }else if ($a<=100...
true
e64cfc9e6b610634b80cdfed2d859e63e817d5ce
PHP
scherzo-framework/scherzo
/test/unit/ContainerTest.php
UTF-8
905
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace UnitTest; use PHPUnit\Framework\TestCase; use Psr\Container\NotFoundExceptionInterface; use Scherzo\Container; final class ContainerTest extends TestCase { public function testShouldSetAndGetAValue(): void { $c = (new Container())->set('value', true); ...
true
a326f9da952ced8f397ffcc4b3dfeac76801a881
PHP
ErikAnderssonn/Projekt
/display.php
UTF-8
343
2.53125
3
[]
no_license
<?php include "connect.php"; $sql = "SELECT * FROM Recept"; $result = $mysqli->query($sql); while($row = $result->fetch_assoc()){ echo "<div>"; echo "<fieldset>"; echo $row['Namn']."<br>"; echo $row['Ingredienser']."<br>"; echo $row['Beskrivning']."<br>"; echo "</fieldset>"; ...
true
c5ead0e4e23cf944c0dba6f16db4359cff15489a
PHP
ghostuser846/silkroad-acp
/php/database.php
UTF-8
3,070
3
3
[]
no_license
<?php class Database { var $database; var $error; var $result; function Database($host, $username, $password, $dbname) { $this->database = @mysql_connect($host, $username, $password); if (!$this->database) { $this->set_error(); } else { $this->set_database($dbname); } } fu...
true
b842055173032f348b3a3540a7c59ea62b3d93c3
PHP
pablorm296/iatColmex
/eHandler.php
UTF-8
534
2.765625
3
[]
no_license
<?php //El usuario está intentando acceder directamente if (realpath(__FILE__) == realpath($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME'])) { header("HTTP/1.1 403 Forbidden"); $eType = 403; $eText = "No tiene los permisos necesarios para acceder al archivo solicitado."; } ?> <!doctype html> <htm...
true
48f84c7bd55af09bf4391962092703aa3f70f699
PHP
P79N6A/test-4
/app/Http/Controllers/Admin/CityController.php
UTF-8
3,484
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use App\Models\CityModel; class CityController extends Controller{ private $validate = [ 'name' => 'required|between:2,16|unique:city,name', 'first_lett...
true
c79e5c70b836595397a92ba77faa707c0b82a151
PHP
nele/phpkursus2016
/syntax/func.php
UTF-8
509
3.484375
3
[]
no_license
<?php function getname($name) { $names ="Koer 123; kass 2837423 kukk 83274 kana 428384"; $rows = explode("\n",$names); // print_r($rows); foreach($rows as $key => $val) { $temp = explode(" ", $val); $surname[$temp[0]] = $temp[1]; } ...
true
dde4770d009be70ffea0d9ddd9788acf4e771bdc
PHP
IamCaaarll/OJT-DTR
/admin-query/admin_changepassword.php
UTF-8
722
2.65625
3
[]
no_license
<?php include ("../database/connection.php");/*Database Connection*/ session_start(); $check_pass = mysqli_query($conn,"SELECT * FROM user WHERE id ='".$_SESSION["u_ID"]."'"); while($row = mysqli_fetch_array($check_pass)) { if($_POST['currentpass'] != $row['password']) { echo "Current passwo...
true
2592872a954ff4f89006fd374748a2610cc5334b
PHP
darlansyah/laravel_cms_sederhana
/app/Http/helpers/Myhelper.php
UTF-8
222
2.953125
3
[]
no_license
<?php if (! function_exists('potongstring')) { function potongstring($text) { if (strlen($text) > 60) { $text = substr($text,0,60); $text = $text . "..."; }; return $text; } }
true
f17eee9edf4d939288fe3c2c08c3c8bc6450bab2
PHP
sathiyakumar3/sincha
/app.php
UTF-8
2,160
2.71875
3
[]
no_license
use Silex\Application; use Silex\Provider\TwigServiceProvider; use Symfony\Component\HttpFoundation\Request; // create the Silex application $app = new Application(); $app->register(new TwigServiceProvider()); $app['twig.path'] = [ __DIR__ ]; $app->get('/', function () use ($app) { /** @var PDO $db */ $db = $...
true
3d3eb7c8ca72f0f9d09e2b0b0e0097cf7261c3da
PHP
c4software/bts-sio
/.vuepress/public/demo/php/greta-tv/refactor-structure-mvc/models/SampleAccount.php
UTF-8
528
2.890625
3
[ "MIT" ]
permissive
<?php namespace models; use utils\SessionHelpers; /** * @deprecated * Class d'exemple « sans logique ». Créer une version en lien avec une base de données (hérite de SQL) * @package models */ class SampleAccount { public function login($username, $password) { /* * TODO DANS LA VRAI VIE ...
true
23fbcef08da4bf70e6decaeaf2cff589d6c7adad
PHP
matthewbaggett/RedStor
/sdk/Entities/Model.php
UTF-8
9,466
2.796875
3
[]
no_license
<?php namespace RedStor\SDK\Entities; use Predis\Client as PredisClient; use RedStor\RedStor; use RedStor\SDK\Exceptions; use RedStor\SDK\Types\BoolType; use RedStor\SDK\Types\DateType; use RedStor\SDK\Types\KeyType; class Model implements EntityInterface { public const ORDER_DESC = 'desc'; public const ORDE...
true
947688ce5356f3916e1ac85e87ce4a4b0a85cdd9
PHP
bornia/curso-web
/Seção 14 - Orientação a Objetos em PHP/calculadora/classes/calculadora.php
UTF-8
722
4.09375
4
[]
no_license
<?php class Calculadora { private $numero1; private $numero2; public function __construct() { $numero1 = 0; $numero2 = 0; } /* GETTERS E SETTERS */ public function setNumero1($num1) { $this->numero1 = $num1; } private function getNumero1() { return $this->numero1; } public function setNumero2($n...
true
cabf224f0816021b22d5db7c8a78b57566b0dba2
PHP
yingchen-Chen/php_practice
/testphp/a2021080208-query-string.php
UTF-8
515
3.375
3
[]
no_license
<?php echo $_GET['a'] ?? ''; //a沒有設定的話就給空字串(預設值的''空字串),get為取得query-string數值的意思,query-string翻譯為查詢字串,為網頁與伺服器之間的問答機制。 $a= isset($_GET['a'] ) ? $_GET['a'] : 0; //isset()是用來檢視變數有沒有設定;整句意思:判斷變數a是否有設定值,沒有則a為o echo $a; $a= isset($_GET['a'] ) ? intval($_GET['a']) : 0; //也可以這樣寫 $b= isset($_GET['b'] ) ? intval($_GET['b']) : 0; ...
true
7ee2731e203105c13e7ece71057e7ae24e03931b
PHP
frankdejonge/Cabinet
/tests/mysql/tests/InsertBuilderTest.php
UTF-8
1,790
2.734375
3
[]
no_license
<?php use Cabinet\DBAL\Db; class InsertBuilderTest extends PHPUnit_Framework_TestCase { /** * @var $connection */ private $connection; /** * Setup, connects to the database */ public function setUp() { $this->connection = Db::connection(array( 'driver' => 'mysql', 'username' => 'root', 'pass...
true
9921d77117bd1bbf5b0453780927048548b90123
PHP
MohYacoub/PHP-OOP-2
/oop-sol1/dbconnection.php
UTF-8
564
3.0625
3
[]
no_license
<?php require('config.php'); class dbConnection{ public $conn; public function __construct(){ $this->openConnection(); } public function openConnection(){ $this->conn = mysqli_connect(DBSERVER,DBUSER,DBPASS,DBNAME); if(!$this->conn){ die('cannot conect to server'); } } public function performQuery(...
true
0b739056911adec430bdd399f7e6c8ce98171b3b
PHP
zainu-99/MyAppCodeIgniter4
/app/Filters/Auth.php
UTF-8
999
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Filters; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\Filters\FilterInterface; use App\Models\UserRoleModel; class Auth implements FilterInterface { public function before(RequestInterface $request, $arguments = null) { if($argume...
true
433e872b16caffe1cab02c6dca4caa50c03302e0
PHP
Indian-Railway-Apps/INR-WebApp
/inr-functions.php
UTF-8
10,822
2.875
3
[ "MIT" ]
permissive
<?php require_once( 'config.php' ); function createDBConnection(){ global $linkID; $host = DB_HOST; $user = DB_USER; $pass = DB_PASSWORD; $database = DB_NAME; $linkID = mysql_connect($host, $user, $pass) or die("Could not connect to host."); mysql_select_db($database, $linkID) or die("Could not find databas...
true
7d4cb0eaf7487243b693423aa58c541440cbd240
PHP
P79N6A/cron_v2
/protected/commands/client/ClientGuideCycleHandle.php
UTF-8
3,491
2.84375
3
[]
no_license
<?php /** * @description 万能引导周期更新 * @author shixi_danxian * @date 2016/4/5 */ class ClientGuideCycleHandle { const CRON_NO = 1401; public function __construct() { } /** * @description 更新周期时间 */ public function updateCycleTime() { //获取已过期、但重复周期未完成数据 ...
true
46dc9e16057cc2b70b1f53f052557d5eea7c2c85
PHP
GiantCherry/atd
/tests/StackTest.php
UTF-8
1,050
3.015625
3
[]
no_license
<?php namespace App\StackTests; use SplStack; use function App\Stack\maxStack; use PHPUnit\Framework\TestCase; class StackTest extends TestCase { public function testBinToDec() { $stackOperations1 = [1 => 'push', 7 => 'push', 0 => 'pop']; $this->assertEquals([], maxStack($stackOperations1)); ...
true
8ab123db257e8faa5c3d84ac49a79f5e490b333a
PHP
evoliz/evoliz-php
/src/Model/Catalog/Article.php
UTF-8
6,276
2.765625
3
[ "MIT" ]
permissive
<?php namespace Evoliz\Client\Model\Catalog; use Evoliz\Client\Model\BaseModel; class Article extends BaseModel { /** * @var string Article reference */ public $reference; /** * @var string Article designation */ public $designation; /** * @var string Article type ...
true
c79da7dbf4bcb8baba0a720783beea74a1757c39
PHP
Valdavin/monHistoire
/model/choix.class.php
UTF-8
2,258
3.25
3
[]
no_license
<?php /** * */ class choix { private $idChoix; private $idRandomChoix; private $intituleChoix; private $envoisVers; function __construct($idChoix=null,$idRandomChoix=null,$intituleChoix=null,$envoisVers=null) { if($idChoix)$this->idChoix = $idChoix; if($idRandomChoix)$this->idRandomChoix = $idRa...
true
3d256938909e643f8aeee79d9f81fb2f030d1411
PHP
BlackMage/ProdigyView
/examples/content/ProductContentExample.php
UTF-8
2,410
2.90625
3
[ "BSD-2-Clause-Views" ]
permissive
<?php //Include the DEFINES and boo the system include_once('../../DEFINES.php'); require_once(PV_CORE.'_BootCompleteSystem.php'); ?> <!DOCTYPE HTML> <html> <head> <title>Product Content Example</title> </head> <body> <?php //Set Content Variables $args=array( 'content_type'=>'example_content_product', ...
true
a6b4c1b2f9e34332e4fa54f2ceafc203cd78ea53
PHP
xobotyi/basen
/examples/usage.php
UTF-8
809
2.9375
3
[ "MIT" ]
permissive
<?php /** * @Author : a.zinovyev * @Package: basen * @License: http://www.opensource.org/licenses/mit-license.php */ include_once __DIR__ . '/../vendor/autoload.php'; use xobotyi\basen\Base58; use xobotyi\basen\BaseN; // use it for something usual $base8 = new BaseN('01234567', false, false, false); echo $base8-...
true
54e501996170ecca3e72457395988e3c4afa7752
PHP
Cheezily/PaperTracker
/admin/adminMessages.php
UTF-8
2,978
2.8125
3
[]
no_license
<?php $messages = getMessageLists(); $needsReply = $messages[0]; $alreadyReplied = $messages[1]; ?> <div class="mainWrapperWithNav"> <h2>Messages Awaiting Reply:</h2> <div class='adminMessageList'> <?php if ($needsReply > 0) { forEach ($needsReply as $message) { ...
true
a55166b9670d00d7e2a2d928d236e1a705e3d003
PHP
jmiridis/atcsf1
/plugins/esPaypalPlugin/lib/esPaypalEncryptor.class.php
UTF-8
3,486
2.875
3
[ "MIT" ]
permissive
<?php /** * * **/ class esPaypalEncryptor { /** * esPaypalButton::setCertificate() * * @param mixed $certificateFilename - The path to the client certificate * @param mixed $privateKeyFilename - The path to the private key corresponding to the certificate * @return boolean TRUE if the private key ...
true
cb4955475e06125f1a8c673410d653b5cd0a1269
PHP
gobb/SprayFire
/tests/SprayFireTest/Helpers/DevelopmentLogger.php
UTF-8
713
2.59375
3
[ "MIT" ]
permissive
<?php /** * @file * @brief */ namespace SprayFireTest\Helpers; use \SprayFire\Logging as SFLogging, \SprayFire\StdLib as SFStdLib; /** * @package SprayFireTest * @subpackage Helpers */ class DevelopmentLogger extends SFStdLib\CoreObject implements SFLogging\Logger { protected $loggedMessages = array(...
true
25bb4c6dc5b47f668993b3e330117e52fcdca288
PHP
Qronicle/advent-of-code-2020
/day-22/day22.php
UTF-8
4,187
3.296875
3
[]
no_license
<?php class Day22 extends AbstractSolution { protected array $hands = []; protected array $previousHands = []; protected int $winner; protected function solvePart1(): string { $this->parseInput(); while ($this->playRegular()); return $this->calculateScore(); } prot...
true
65a57c44835f48e01777ffe72f33dded9f1a24ef
PHP
agarwa13/flipitphysicsanswers.com
/app/Question.php
UTF-8
870
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Question extends Model { public function chapter(){ return $this->belongsTo('App\Chapter'); } public function getBodyAttribute($body){ // Replace all the non-repeat fields $body = preg_replace_callback('/{{([^}r...
true
d63cabbc941ce17b143c91f6a885cc5a4493f2d8
PHP
oscarotero/server
/src/Server.php
UTF-8
2,612
3.0625
3
[ "MIT" ]
permissive
<?php class Server { public static $mimes = [ 'html' => 'text/html', 'css' => 'text/css', 'htm' => 'text/html', 'jpeg' => 'text/jpeg', 'jpg' => 'text/jpeg', 'js' => 'text/javascript', 'png' => 'image/png', 'svg' => 'image/svg+xml' ]; /** ...
true
ca1b207cda7b2899092cd1fa3686314dc7ea517e
PHP
HrabV/BookStore
/app/models/Author.php
UTF-8
2,025
2.953125
3
[ "MIT" ]
permissive
<?php namespace app\models; class Author extends ModelObject { public int $id; public string $fio; public int $country_id; public string $birthday; public string $photo; /** * __construct * * @param mixed $author * @return void */ public function __construc...
true
2e91d926ddf4ed7658a26fc388c9b1a92bf2dfae
PHP
zymsys/url
/src/webignition/NormalisedUrl/Normaliser.php
UTF-8
2,382
2.984375
3
[ "MIT" ]
permissive
<?php namespace webignition\NormalisedUrl; class Normaliser { const DEFAULT_PORT = 80; private $knownPorts = array( 'http' => 80, 'https' => 443 ); /** * Collection of the different parts of the URL * * @var array */ private $parts = array(); ...
true
f2ebb069b98a58429ee2ed51ce18e7e64a27ccb3
PHP
pavelFaraday/PHP-Details
/OOP PHP fundamentals/11.3.1_Private_access_modifiers.php
UTF-8
607
3.453125
3
[]
no_license
<?php // Access Modifiers (visibility): PUBLIC PROTECTED PRIVATE /* PUBLIC - public propertie/method u can use everywhere: inside/outside a class or in extended class too. PROTECTED - proteceted propertie/method u can use only inside a class or in extended classes. PRIVATE - provate propertie/method u can u...
true
7b6e8dc9158b3b1cb5d99a7050983ac9a4c68d99
PHP
topqiang/tmgs
/Application/Manager/Controller/RechargeController.class.php
UTF-8
3,148
2.53125
3
[]
no_license
<?php namespace Manager\Controller; /** * @author zhouwei * Class RechargeController * @package Manager\Controller * 财务管理-充值记录-查询 */ class RechargeController extends BaseController { function getIndexRelation(){ } /** * [exportExcel 导出EXCEL] * * @return [type] [description] */ fun...
true
293265f9bebfbdac91213c159e29b88520e48d87
PHP
tacitonunes/apirest-hero
/App/Models/MySQL/restapi/AlunoModel.php
UTF-8
1,096
2.796875
3
[]
no_license
<?php /* ESTE ARQUIVO POSSUI TODOS OS MÉTODOS, GETTERS E SETTERS DO ALUNO */ namespace App\Models\MySQL\Restapi; final class AlunoModel { private $id; private $matricula; private $nome; private $nAv1; //api_rest_3daw.aluno.id_a public function getId() : int { return $this->id; } ...
true
1925a12b8cad1b6a97ea9524cb9c2f0facb46f57
PHP
numaxlab/icaa-files
/Tests/Records/Incidents/TheatreIncidentsTest.php
UTF-8
595
2.59375
3
[ "MIT" ]
permissive
<?php namespace NumaxLab\Icaa\Tests\Records\Incidents; use NumaxLab\Icaa\Records\Incidents\TheatreIncidents; use PHPUnit\Framework\TestCase; class TheatreIncidentsTest extends TestCase { public function testConvertsToLine() { $theatreIncidents = new TheatreIncidents( '123456', ...
true
0949cd8b7d8715a40739e95ae1767d5dea9d92a7
PHP
sro-co-il/php-class-token
/class_token.php
UTF-8
2,435
3.015625
3
[]
no_license
<?php /***** php class token http://code.google.com/p/php-class-token/ owner: Sro [sro.co.il] *****/ class token { public $timeout = 1800; // 1800 sec is 30 min for time out public $tokenfieldname = "token"; public $error = ""; private $errormsg1 = "token not received";...
true
acd025758b808fc36dec17adcec878a644626633
PHP
kafoso/questful
/src/Kafoso/Questful/Factory/Model/QueryParser/Filter/FilterFactory.php
UTF-8
6,246
2.5625
3
[ "MIT" ]
permissive
<?php namespace Kafoso\Questful\Factory\Model\QueryParser\Filter; use Kafoso\Questful\Exception\BadRequestException; use Kafoso\Questful\Exception\FormattingHelper; use Kafoso\Questful\Exception\InvalidArgumentException; use Kafoso\Questful\Exception\RuntimeException; use Kafoso\Questful\Exception\UnexpectedValueExcep...
true
648461fd08a27cd0540207eb291817b9a65127e2
PHP
QNTmetz2/racurl
/rac.php
UTF-8
1,713
2.734375
3
[]
no_license
<?php include('tools.php'); include('config.php'); ?> <?php function selectChar($hash) { $nb = rand(0,7); $tab = str_split($hash); $courte = ""; for ($i=$nb;$i<32;$i+=4) $courte .= $tab[$i]; return $courte; } function verifieCourte($courte) { $bind = array($courte); $num = R::count('urls', 'courte = ?', $bi...
true
3db021b4e0503de9c9aaa620d576813e2e4fc985
PHP
niarehtni/technology
/trunk/appdal/end/modules/mrp/models/Weight_sale_cfg_model.php
UTF-8
1,140
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Manson * Date: 2019/5/20 * Time: 16:27 */ class Weight_sale_cfg_model Extends MY_Model { public function __construct() { parent::__construct(); $this->table = 'yibai_weight_sale_cfg'; } public function getCfgInfo($logistics_id) { ...
true
6b535b65128e8e7b3240f72233bbdfdc03a6c32f
PHP
Deepak-khadka/egovernment_lab1
/search.php
UTF-8
1,027
2.59375
3
[]
no_license
<?php require "connection.php"; $scNo = $_POST['search']; $sql = "select * from bill_info where scno like '%$scNo%'"; $result = mysqli_query($conn, $sql); $bills = array(); while ($row = mysqli_fetch_assoc($result)) { $bills[] = $row; } if (isset($bills)) { for ($i = 0; $i < count($bills); $i++) { e...
true
db73626175320d9caa6962b1f11c143635fc137e
PHP
OpenMageModuleFostering/jmango360_japi
/app/code/community/Jmango360/Japi/Block/Adminhtml/System/Config/Form/Log.php
UTF-8
3,985
2.609375
3
[]
no_license
<?php /** * Copyright 2015 JMango360 */ class Jmango360_Japi_Block_Adminhtml_System_Config_Form_Log extends Mage_Adminhtml_Block_System_Config_Form_Field { protected $_element; protected function _construct() { parent::_construct(); $this->setTemplate('japi/system/config/form/log.phtml')...
true
04641e6c3103dd3991baeee7784f82d8d70df0c2
PHP
event-engine/prooph-v7-event-store
/src/ProophEventStore.php
UTF-8
5,899
2.515625
3
[ "MIT" ]
permissive
<?php /** * This file is part of event-engine/prooph-v7-event-store. * (c) 2018-2021 prooph software GmbH <contact@prooph.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace EventEngine\Prooph\V7...
true
28232847fd286e5fcdb6232510b0bf3551264431
PHP
monro93/comicker
/Entity/Comic.php
UTF-8
1,138
3.4375
3
[]
no_license
<?php namespace Comicker\Entity; class Comic { /** * @var string */ private $url; /** * @var string */ private $name; /** * @var int|null */ private $numberChaptersToSave; /** * @var ComicChapter[] */ private $chapters; public function __co...
true
2a7e36b1c427c14b9c837ef326d37279049aabbf
PHP
lukem512/QuoteDaily
/site/admin/list_quotes_to_edit.php
UTF-8
1,078
2.734375
3
[ "Apache-2.0" ]
permissive
<?php /* * * Lists the quotes in order to edit them * Luke Mitchell, Mar. 2011 * */ //Includes require_once('../inc/config/config.inc.php'); require_once('../inc/config/db.inc.php'); require_once('../inc/quote_db_functions.inc.php'); $quotes = GetAllQuotes(); $pageTitle = "Edit Quotes"; include ('inc/admin_header....
true
65b90f48fb5b75125ed2dd32da29f69227ed29db
PHP
themohr/cis665
/project/php/views/content/login.php
UTF-8
1,882
2.65625
3
[]
no_license
<?php ini_set('display_errors',1); error_reporting(E_ALL); /* * Authors: Dennis Mohr, Nick Hoyle, Hemang Vyas * Date: 03/03/2016 * Description: Profile page allows coach to view, update, delete and add a team * */ require_once('controller/FormLogin.php'); require_once('dao/CoachDAO.php'); require_on...
true
8d93cce789fc0e5644409640b3dd3ebe42288d88
PHP
ntrhieu89/squotes
/squotes/v2/squotes_app/helpers/validation_helper.php
UTF-8
460
2.765625
3
[]
no_license
<?php if (! defined ( 'BASEPATH' )) exit ( 'No direct script access allowed' ); if (! function_exists ( 'validate_date' )) { function validate_date($date, $format = 'Y-m-d H:i:s') { $d = DateTime::createFromFormat($format, $date); return $d && $d->format($format) == $date; } } if (! function_exists ( 'valid...
true
ea983c8081f1a73c8e5cb1ebf4e401f15ce54ff0
PHP
hissa/Timetable2017
/server/Timetable.php
UTF-8
2,512
3.046875
3
[]
no_license
<?php use Carbon\Carbon; class Timetable{ protected static $WeeksCount = 5; protected static $ClassesCount = 3; public static function GetSchedulesString($shortName = false){ $schedules = Subject::GetSchedules(); $schedulesStr; $week = 0; while(isset($schedules[$week])){ ...
true
0e84c19f402703cde56bd43920a5679fb3c09baf
PHP
PetarBelberov/RemixTeam-Project-SoftUni
/Project-RemixTeam-SoftUni/src/MusicShareBundle/Controller/UserController.php
UTF-8
6,476
2.515625
3
[]
no_license
<?php namespace MusicShareBundle\Controller; use MusicShareBundle\Entity\Role; use MusicShareBundle\Entity\Sound; use MusicShareBundle\Entity\User; use MusicShareBundle\Form\SoundType; use MusicShareBundle\Form\UserType; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundl...
true
f740302e821ce8e616192e02d864e1294e8ac1b8
PHP
SAM-IT/ls-expression-parser
/src/NodeStack.php
UTF-8
290
2.5625
3
[]
no_license
<?php namespace SamIT\ExpressionManager; use SamIT\ExpressionManager\Nodes\Node; /** * Class NodeStack * @package SamIT\ExpressionManager * @method Node pop */ class NodeStack extends Stack { public function push(Node $item) { return parent::push($item); } }
true
8b2c9c9fc76a608ebf06698105dbec4529a24cdc
PHP
Bixie/BixieRepository
/csvread.php
UTF-8
2,400
3.328125
3
[]
no_license
<?php //read and convert CSV data $file = 'adressenhockeyclubs.csv'; $dataRows = array(); $del = ';'; if (($handle = fopen($file, "r")) !== FALSE) { while ( ($data = fgetcsv($handle, 10000, $del) ) !== FALSE ) { $dataRows[] = $data; } fclose($handle); } $newData = array(); $i = 0; $csv = "naam;adres;postcode;pla...
true
3d8b4907caf916cb23acfa0023b615696e2d879f
PHP
voidet/Algorithms
/Scripts/mergeSort.php
UTF-8
823
3.6875
4
[]
no_license
<?php $ages = [8,1,2,4,5,2,8,6,4,2,2]; var_dump(sortAges($ages)); function sortAges($ages) { if (count($ages) <= 1) { return $ages; } $mid = count($ages) / 2; $left = sortAges(array_slice($ages, 0, $mid)); $right = sortAges(array_slice($ages, $mid)); return merge_sort($left, $right); } function merge_sor...
true
5b62317cd5b824bee964b1ff11659f37981ca8ff
PHP
tutsplus/oop-in-php-with-tests
/Novel.php
UTF-8
491
2.9375
3
[]
no_license
<?php class Novel extends Book { public $category; private $paperWeight = 5; public function setCategory($category) { $this->category = $category; } public function getCategory() { return $this->doComplexCategoryGuessing(); } private function doComplexCategoryGuessing() { return $this->category; } ...
true
2ddd419503b5c5cdbf0fd15440ca3a98844cfeb6
PHP
Avetis90/laravel-enventory-dashboard
/app/Models/Products.php
UTF-8
819
3.171875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Products extends Model { protected $fillable = [ 'vendor_sku', 'our_sku', 'price', 'weight', ]; public $timestamps = false; protected $appends = ['wholesale_price', 'price_dif']; public function getRouteKey() { return $this...
true
306dda5a9bd04227345d34cb25fc2e0d5e63bff3
PHP
sernovelli/sys_diagnostico
/lib/PersistModelAbstract.php
UTF-8
644
3.0625
3
[]
no_license
<?php /** * Diret�rio Pai - lib * Arquivo - PersistModelAbstract.php * @author tarcisioruas * */ abstract class PersistModelAbstract { /** * Vari�vel respons�vel por guardar dados da conex�o do banco * @var resource */ protected $o_db; function __construct() { try { // localhost - Desenvolvimento ...
true
5641f301d86b1752e30da1256b19225827ce13cc
PHP
vnyson/garmin-training-plan
/src/Library/Parser/Model/Step/AbstractStep.php
UTF-8
4,409
2.828125
3
[]
no_license
<?php namespace App\Library\Parser\Model\Step; use App\Library\Parser\Model\Duration\DurationFactory; use App\Library\Parser\Model\Swim\EquipmentType; use App\Library\Parser\Model\Swim\StrokeType; use App\Library\Parser\Model\Target\TargetFactory; use App\Library\Parser\Model\Workout\AbstractWorkout; abstract class ...
true
3922f42aa18d2799bdf2a542bdf9b5adf4ce7511
PHP
mattyo161/PHPTools
/form_helper.php
UTF-8
29,245
2.921875
3
[]
no_license
<?php # track if the fix POST slashes has been used yet or not $fixed_POST_slashes = false; /* This functino will make sure that the $_POST variable is updated based on the get_magic_quotes_gpc() function to determine if slashes should be stripped from the post or not Reference: http://www.apptools.com/phptools...
true
ca688b235d3e99d7b33602a3e820e7b206976a0a
PHP
holoduker/pcms
/www/include/cls.contentpage.inc.php
UTF-8
2,075
2.671875
3
[ "MIT" ]
permissive
<?php /** * pCMS 2 beta Content Management System * (c) Rustam Shabaev. 2006-2012 * http://www.pcms.ru * Support: support@pcms.ru */ // Content page class. Version 1.0 class content_page { var $form; var $action; var $mode; var $FormCreate; var $ActionHandler; var $OnShowInsert; var $OnDoInsert; var $OnShowU...
true
4656d2ac47cbe2ce06982b2195f8e822611cd459
PHP
janjouketjalsma/p3-racetimer
/P3RaceTimer/src/Entity/PassingRepository.php
UTF-8
997
2.734375
3
[]
no_license
<?php namespace P3RaceTimer\Entity; use P3RaceTimer\Entity\Passing; use P3RaceTimer\Entity\Transponder; use Doctrine\ORM\EntityRepository; class PassingRepository extends EntityRepository { public function findById($identifier) { return $this->find($identifier); } public function create($pass...
true
1afc0ac7b54d2fc9d54a0e9034dc4d73eaff979c
PHP
Limych/gedcomx-php
/src/Util/Duration.php
UTF-8
6,697
3.578125
4
[ "Apache-2.0" ]
permissive
<?php namespace Gedcomx\Util; /** * Class representing a Duration in a GedcomX formal date. * The form of a Duration string is * * P[yyyyY][mmM][ddD][T[hhH][mmM][ssS]] * * for a duration in years, months, days, hours, minutes and/or seconds. * * User: Danny Yeshurun (ported from Java code) * */ class Durat...
true
f78b51d7c86b975ca2404bae34d7354fc1a8f50b
PHP
vweltje/Go4Slam
/go4slam_backend/application/controllers/Api.php
UTF-8
18,644
2.6875
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Api extends CI_Controller { // userid of the current user false if not singedin private $user_id = 0; private $privatekey = ''; private $current_user = false; public function __construct() { parent::__construct()...
true