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
06ad6442341d54b1a92e857b9c02e0f9a3f867ec
PHP
makenosound/additional_page_types
/extension.driver.php
UTF-8
3,078
2.828125
3
[]
no_license
<?php Class extension_additional_page_types extends Extension { public $additional_page_types = array( 'CSV', 'JSON' ); /*------------------------------------------------------------------------- Extension definition -------------------------------------------------------------------------*...
true
bd0122ea765bcc08e79cb5add5532987d82b3510
PHP
chriskite/Rediska
/tests/Test/SortedSets.php
UTF-8
4,509
2.671875
3
[]
no_license
<?php class Test_SortedSets extends RediskaTestCase { public function testAddToSortedSet() { $value = $this->rediska->addToSortedSet('test', 'aaa', 1); $this->assertTrue($value); $this->rediska->addToSortedSet('test', 'bbb', 2); $values = $this->rediska->getSortedSet('test'); $this->a...
true
85faffb9df799c259e7a52c75e2c4e46cfeabfc6
PHP
ashwinpal/itool
/Application/Model/ChartModel.php
UTF-8
477
2.8125
3
[]
no_license
<?php class chart { private $id; private $chart_name; private $chart_link; public function getId() { return $this->id; } public function setId($value) { $this->id = $value; } public function getchartName() { return $this->chart_name; } public function setchartLink($value) { $this->chart_name = ...
true
48f8fd44c9058a906978acc232215834af7b1127
PHP
acarlson99/piscine-php
/day02/ex02/magnifying_glass.php
UTF-8
1,186
3.046875
3
[]
no_license
#! /usr/bin/php <?php function mod_title($contents, $start, $end) { if (($t_start = strpos($contents, "title=", $start)) !== FALSE && $t_start < $end) { $t_start += 6; if (($t_end = strpos($contents, "\"", $t_start + 1)) === FALSE) $t_end = strpos($contents, " ", $t_start + 1); $contents = substr_replace($con...
true
d1e935573c1b56745d8c36b1c3ed6ec879ff5285
PHP
EcomDev/magento-translation-tool
/tests/Tokenizer/Pattern/Translate/AbstractExpressionTest.php
UTF-8
2,665
2.53125
3
[]
no_license
<?php namespace EcomDev\TranslateToolTest\Tokenizer\Pattern\Translate; use EcomDev\TranslateTool\ExpressionInterface; use EcomDev\TranslateTool\Tokenizer\Pattern\Translate\AbstractExpression; class AbstractExpressionTest extends \PHPUnit_Framework_TestCase { /** * @var AbstractExpression */ private...
true
d18a40733d60fd0c4e045055feef2a3d04c95a1c
PHP
desc0n/teleantenna
/application/classes/Controller/Index.php
UTF-8
1,724
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); class Controller_Index extends Controller { /**@var Model_Product */ private $productModel; public function __construct(Request $request, Response $response) { parent::__construct($request, $response); $this->productModel = ...
true
ed0a06f84670f32f26f873e76d2007b157a80be0
PHP
jaymeh/dads-league
/tests/Feature/LeagueTableTest.php
UTF-8
1,771
2.703125
3
[]
no_license
<?php namespace Tests\Feature; use Tests\TestCase; use App\Models\Player; use App\Models\Season; use App\Models\Table; class LeagueTableTest extends TestCase { /** @test */ public function assert_random_user_appears_in_score_table() { $player = factory(Player::class)->create(); $...
true
351374b12c9770ff03d8969cf32cd5dc4f5f5fbe
PHP
alexmclm/DeveloperFullStack
/datos.php
UTF-8
668
2.671875
3
[]
no_license
<?php $nombre =$_POST['nombre']; $email =$_POST['email']; $mensaje =$_POST['mensaje']; if(!isset($_POST['nombre']) || empty($_POST['nombre'])){ echo "Falta informacion en la variable nombre"; die(); } if (!isset($_POST["email"]) || empty($_POST["email"])){ echo "Falta informacion en la var...
true
05e0a2eeea1aa3d7bb6b79a82701b076ebdbcba6
PHP
Gork117/Projet-Forum-HP
/Projet Forum HP/inscription.php
UTF-8
6,977
2.59375
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Inscription</title> </head> <body> <header> <div> <a href="inscription.php">Inscription</a> <a href="connexion.p...
true
5e8e06f7dcef24114bf59e261295a5b44a79e5f1
PHP
fedejimenez/php-inventory-management
/models/Client.php
UTF-8
6,096
2.6875
3
[]
no_license
<?php require_once("../config/connection.php"); class Client extends Connect{ public function get_rows_clients(){ $connect= parent::connection(); $sql="select * from clients"; $sql=$connect->prepare($sql); $sql->execute(); $result= $sql->fetchAll(PDO::FETCH_ASSOC); ...
true
57cf77a96cdf713ca714e06e734730761cf75e57
PHP
alankarmore/depl
/app/Http/Controllers/Admin/OurOfficesController.php
UTF-8
4,517
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Requests\Admin\OurOfficesRequest; use App\Http\Services\Admin\OurOfficesService; class OurOfficesController extends Controller { public function __construct() { $this->service =...
true
c54f64621ee82835c77ccfdcb2c72300833320e7
PHP
wesley1001/micro_business
/App/Common/Model/AdminModel.class.php
UTF-8
2,961
2.765625
3
[]
no_license
<?php /** * 管理员 * @package Model * @author guolei <2387813033@qq.com> */ namespace Common\Model; use Common\Model\BaseModel; use Common\Tools\ArrayHelper; class AdminModel extends BaseModel { protected $tableName = 'admin'; //自动验证 protected $_validate = array( array('group_id', 'require', '请选...
true
94137874ebf7a94af8d51417ed2c5e31f0ca63c0
PHP
weareneopix/laravel-model-translation
/src/Translates.php
UTF-8
8,416
2.828125
3
[ "MIT" ]
permissive
<?php namespace WeAreNeopix\LaravelModelTranslation; use Illuminate\Support\Facades\App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletes; trait Translates { /** * The language the model is currently loaded in. * * @var string */ ...
true
15470486054bd861079cc1eb3dcd42996889eb52
PHP
Masfaw/CSCI-571-web-tech-projects
/HW6/FBSearch/inc.php
UTF-8
484
3.46875
3
[]
no_license
<?php function print_tabs($tabs) { for($i = 0; $i < $tabs; $i++) { echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; } } function print_array($arr, $tabs = 0) { if(!empty($arr)) { foreach($arr as $k=> $v) { print_tabs($tabs); echo "<b>" . $k . "</b>: &nbsp;" . $v . "...
true
4c9c97a8c67a20da353488b7c5e9a4d03d245d12
PHP
yuwenlan/phpwind
/lib/datanalyse/datanalyseservice.class.php
UTF-8
1,475
2.546875
3
[]
no_license
<?php !function_exists('readover') && exit('Forbidden'); class PW_DatanalyseService { var $types = array('diary', 'photo', 'thread', 'user', 'groupphoto', 'owrite'); /** * @param string $type * @param string/array $action * @param int $num */ function getDataByAction($type, $action, $num) { $...
true
a94744ddf8e7abf0d6709dea4c7349f03c04a4e5
PHP
PHPfrank/apisecret
/src/Secret/ConsumeApiSignatureUtil.php
UTF-8
2,117
2.96875
3
[]
no_license
<?php /** * Consume Api Signature Util Class * 消耗-检查Signature类,验证方使用 */ namespace Secret; class ConsumeApiSignatureUtil { use ApiSignatureTrait; /** * Valid appid array * format as appid => secret * the secret need be keep hide and can not appear in the request parameter * @var array ...
true
45c4ec69c7b318f58040723063858dd752c71896
PHP
samiulhoque/codility-lessons
/src/Lesson03/PassingCars.php
UTF-8
470
3.78125
4
[ "MIT" ]
permissive
<?php namespace Lesson03; class PassingCars { public function solution($A) { $count = count($A); $sum = 0; $total = 0; for ($i = $count - 1; $i >= 0; $i--) { if ($A[$i] == 1) { $sum++; } else { $total += $sum; ...
true
8683a3fc2c89f80002213fe46bef0f5cdd8a4e3f
PHP
inabahtrg/KalturaServerCore
/api_v3/lib/types/KalturaDynamicEnum.php
UTF-8
728
2.84375
3
[]
no_license
<?php /** * @package api * @subpackage enum */ abstract class KalturaDynamicEnum extends KalturaStringEnum implements IKalturaDynamicEnum { public static function mergeDescriptions($baseEnumName, array $descriptions) { $pluginInstances = KalturaPluginManager::getPluginInstances('IKalturaEnumerator'); ...
true
db39f789693d7c33c016d758f4f48212a54f13ad
PHP
hexiao17/masterfuture
/modules/admin/controllers/UserController.php
UTF-8
4,198
2.515625
3
[]
no_license
<?php namespace app\modules\admin\controllers; use app\common\services\UrlService; use app\modules\admin\controllers\common\BaseAdminController; use app\models\member\MemberExtra; class UserController extends BaseAdminController { //登录界面 public function actionLogin(){ //如果是get请求,直接展示登录页面 ...
true
687dde9b7cb00970132e2c8bd52fd13f85d7d402
PHP
sy-records/SwExample
/test/ObjTest.php
UTF-8
810
3.578125
4
[ "MIT" ]
permissive
<?php class ObjTest { protected $num; public function __construct($num) { $this->num = $num; } public function setNum($num) { $this->num = $num; } public function getNum() { return $this->num; } } function microtimeFloat() { list($usec, $sec) ...
true
b9ea14a6281368de10b87a3bdbe51e024f3675dc
PHP
nfouka/PhpMailerBundle
/Controller/DefaultController.php
UTF-8
1,300
2.5625
3
[]
no_license
<?php namespace PhpMailer\SendMailerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction() { print_r(($this->container->getParameter('List'))) ; $mail = $this->container->get('php_maile...
true
3b7704fda5c1e5e9dad912ea853a8660ed04f9e3
PHP
krycha99/Inzynieria_Oprogramowania-Kontrahenci
/api3/objects/Contractor.php
UTF-8
3,225
2.78125
3
[]
no_license
<?php class Product { private $conn; private $table_name = "kontrahenci"; public $ID_kontrahenta; public $Nazwa; public $NIP; public $Bank; public function __construct($pdo) { $this->conn = $pdo; } public function read() { $query = "SELECT ID_kontrahenta, ...
true
a4dbd18e1c1f304354c6af543f55c23fe38171b3
PHP
ShaneLennon/CarpentryProjectPHP
/model/createTableCustomers.php
UTF-8
999
2.984375
3
[]
no_license
<html> <body> <?php $servername = "localhost:3306"; $username = "root"; $password = "root"; $dbname = "CarpentryDB1"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Conn...
true
87e6bb80b15389111e0f38d8b0fb7adbad5ca838
PHP
OrfaG4/OffersArroundMe
/mvc/app/tests/getGoogleDataForTest.php
UTF-8
1,470
2.59375
3
[]
no_license
<?php require_once '../core/Network.php'; class GetGoogleDataFor extends PHPUnit_Framework_TestCase{ public function setUp(){ $this->testObj = new Network(); } public function testValidLocationAndConnection() { $location="Serres"; $connection = TRUE; $output = $this...
true
927bc134cfbbd731d25c0cf10a64584f9d193a8d
PHP
piotr04j/php_desgin_patterns
/behavioral/Strategy/Question.php
UTF-8
367
3.1875
3
[]
no_license
<?php namespace behavioral\Strategy; abstract class Question { protected $marker; protected $question; public function __construct(string $question, Marker $marker) { $this->question = $question; $this->marker = $marker; } public function mark(string $response) { ...
true
199bb409ca8e90fb5641dd8c7bb35009c0c0d68d
PHP
MaxRez/tasks
/task72/task72.php
UTF-8
591
3.453125
3
[]
no_license
<?php $wordTextArrayOne = explode(' ', $_GET['text_1']); $wordTextArrayTwo = explode(' ', $_GET['text_2']); function getCommonWords ($wordTextArrayOne, $wordTextArrayTwo) { $wordText = array(); foreach ($wordTextArrayOne as $number) { foreach ($wordTextArrayTwo as $value) { ...
true
f3549f52a15e074d85262e8138f4632c106da2ce
PHP
AaronGilMartinez/NZ-Reformas-Interiorismo
/src/AppBundle/Entity/Project.php
UTF-8
3,868
2.59375
3
[]
no_license
<?php // src/AppBundle/Entity/Project.php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="AppBundle\Repository\ProjectRepository") * @ORM\Table(name="project") *...
true
8cd9e36ab1c1dce63c780583135478c6830e3e6f
PHP
theolymp/diem
/dmFrontPlugin/lib/view/html/link/dmFrontLinkResource.php
UTF-8
5,260
2.65625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php class dmFrontLinkResource { protected $source, $subject, $type, $params; public function getType() { return $this->type; } public function getSubject() { return $this->subject; } public function setSubject($subject) { $this->subject = $subject; } pu...
true
9e63e413e02772328f7f9ba6d6fbace6c78d8e6c
PHP
eksith/Blog
/vendor/Blog/Core/Crypto.php
UTF-8
7,306
2.828125
3
[ "ISC" ]
permissive
<?php /** * @link https://github.com/ircmaxell/random_compat/blob/master/lib/random.php */ namespace Blog\Core; final class Crypto { const BLOCK_SIZE = 32; const KEY_SIZE = 32; const MERGE_HASH = 'sha256'; const OSSL_IV_SIZE = 'aes-256-cbc'; const PBK_DELIMETER = '$'; # Don't use a comma const...
true
33e669009a6a26e52a426931d0d86cc71db6dc60
PHP
milescook/miles-w40k
/spec/MapSpec.php
UTF-8
1,150
2.65625
3
[]
no_license
<?php namespace spec; use Map; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class MapSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType(Map::class); } function it_calculates_model_new_position() { $existingCoordinates = ['x'=>1.0,'y'=>2.0,...
true
92b8b7b90b560e85ece1b1048e09ccc6c93a6264
PHP
CaioEduardoMouta/phpcod3r
/classes_objetos/heranca.php
UTF-8
915
3.25
3
[ "MIT" ]
permissive
<div class="tiutlo">Herança</div> <?php class Pessoa { public $nome; public $idade; function __construct($nome, $idade) { $this->nome = $nome; $this->idade = $idade; echo 'Pessoa Criada <br>'; } function __desctruct() { echo 'Pessoa diz Tchau!!'; } public ...
true
e603c085cb718887bb48747e6e32826fc667f5a4
PHP
giannisil/Web-Programming-project
/logout.php
UTF-8
1,863
2.71875
3
[]
no_license
<!DOCTYPE html> <meta charset="UTF-8" /> <?php session_start(); // Credentials for Database connection $servername = "localhost"; $username = "3519"; $password = "3519-Ix"; $DBName = "db3519"; $tableName = "data3"; // Connecto to DB $conn = new mysqli($servername, $username, $password, $DBName); if ( ($con...
true
9ad414ee49001b9600f7aae806c9bcdc40af6230
PHP
apollon33/financemanager
/withraw2.php
UTF-8
2,318
2.5625
3
[]
no_license
<?php include("connections.php"); include("nav.php"); session_start(); // If session variable is not set it will redirect to login page if(!isset($_SESSION['susr']) || empty($_SESSION['susr'])){ header("location: login2.php"); exit; } $refno = "W" . date("mdyhis"); $debit = $_POST["txtamount"]; $remarks = $_POST...
true
d9bddfab753baa1631d1062ca7481b49a821c243
PHP
harpyja/cloud_manager_safety
/lms/router/html/js/netmapJs.php
UTF-8
5,100
2.71875
3
[]
no_license
<?php include('../includes/conf.php'); if (isset($_GET['id'])) { $netmap_array = explode("\n", lab_get_netmap($_GET['id'])); $base_hub = BASE_HUB; ?> jsPlumb.bind("ready", function() { jsPlumb.importDefaults({ Anchor : "Continuous", //Connector : [ "Bezier", { curviness: 50 } ], Connector : [ "Straight" ],...
true
01e0907335e2f74ad8ac9a1ebe769267a630739c
PHP
Vangonomics/ProAlterations
/add.php
UTF-8
3,858
3.015625
3
[]
no_license
<?php include("connect.php"); session_start(); if (empty($_SESSION['userinput']) && empty($_SESSION['userpass'])) { header('Location: login.php'); exit; } if(($db_user != $_SESSION['userinput']) || ($db_pass != $_SESSION['userpass'])) { header('Location: login.php'); exit; } if(isset($_POST['addbtn']...
true
62c4810d3e24c6e53d83f97604e76e8c6a95369d
PHP
hbsolutions-ru/php-auth
/src/Model/Credentials/JwtInterface.php
UTF-8
998
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HBS\Auth\Model\Credentials; use \DateTimeImmutable; /** * @see https://www.rfc-editor.org/rfc/rfc7519 */ interface JwtInterface extends TokenInterface { /** * TODO: make constants final since PHP 8.1 */ public const CLAIM_AUD = 'aud'; public const CLAI...
true
4f98ec368e01ea66149824b83008804d802b1a3c
PHP
dachristo/piscine-php
/j01/ex08/ft_is_sort.php
UTF-8
304
2.71875
3
[]
no_license
<?php function key_compare_func($a, $b) { if ($a === $b) { return (0); } return (1); } function ft_is_sort($array1) { $array2 = $array1; sort ($array2); $result = array_diff_uassoc($array1, $array2, "key_compare_func"); if ($result == NULL) return (1); else return (0); } ?>
true
a7e1b3a7882f768811080fd3b5e17f76c20b9c92
PHP
goodbassist/Role-Switch
/classes/UserClass.php
UTF-8
1,683
2.8125
3
[ "Apache-2.0" ]
permissive
<?php /** * Author: Badejo Oluwatobi *UserClass to handle all user logic */ class UserClass { public function userLogin() { $DbClass = new DbClass; $email = $_POST['email']; $password = $_POST['password']; $paramArray = array( ":email" => $email, ); $sth = $DbClass->db...
true
adb7fa499e710976dd3fb930ff00a73bb69a283c
PHP
mfinkels/miPrimerProyecto
/ALANAPI/vendor/psliwa/php-pdf/lib/PHPPdf/Core/Parser/StylesheetConstraint.php
UTF-8
6,387
3.078125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /* * Copyright 2011 Piotr Śliwa <peter.pl7@gmail.com> * * License information is in LICENSE file */ namespace PHPPdf\Core\Parser; use PHPPdf\Core\AttributeBag; /** * Constraints encapsulate Attribute and ComplexAttribute Bag in tree structure. * * This class provides find method. One single object of S...
true
c7e4cf396226796f8eb03ae862a44978744d16db
PHP
tomswinkels/Bolt
/src/connection/Socket.php
UTF-8
4,297
3.203125
3
[ "MIT" ]
permissive
<?php namespace Bolt\connection; use Bolt\Bolt; use Exception; /** * Socket class * * @author Michal Stefanak * @link https://github.com/stefanak-michal/Bolt * @package Bolt\connection */ class Socket implements IConnection { /** * @var string */ private $ip; /** * @var int */...
true
0e44dfbe759ff9304e52e58767d6150218be96ca
PHP
GandhiGB/rms
/application/controllers/Crud.php
UTF-8
2,547
2.609375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Crud extends CI_Controller { function try(){ echo "hi"; } function search(){ $output = ''; $query = ''; $this->load->model('crud_model'); if($this->input->post('query')){ $query = $this->input->post('query'); $data = ...
true
dcdf842ef2898870d6b8006a285d8dc1fe6c0db4
PHP
DNBio/dvs
/run.php
UTF-8
8,243
2.578125
3
[]
no_license
<?php /*** DVS 0.1 run.php ***/ /*** david.brett@ehess.fr ***/ /*** web@ehess.fr ***/ /*** V.0.1 - September 2019 ***/ /*** COPYRIGHT EHESS/DNB ***/ /*** ***/ /*** Tests file ***/ /*** ...
true
184e0afe4469912f378d2219ebb2da1e150a937a
PHP
lucachaves/dw-20172
/codes/php/task/responses/web/fatorial/calc.php
UTF-8
117
3.84375
4
[]
no_license
<?php function fatorial($number){ if($number == 1) return 1; else return $number*fatorial($number-1); }
true
982544a33eea35e8e3133fbd41611fe8fde80bc0
PHP
Guzinskoi/MyRepository
/menu/command/show_high_achievers.php
UTF-8
375
2.75
3
[]
no_license
<?php require_once('command.php'); require_once('student.php'); require_once('command/student_registry.php'); require_once('high_achiever_visitor.php'); class ShowHighAchieversCommand implements Command { public function execute() { $high_achievers = new HighAchieverVisitor(); StudentRegistry:...
true
0937d032e765e7bfc444374ef191fe86b39b0235
PHP
dhruvpat/photo-gallery-generator
/protected/app/controllers/SitemapController.php
UTF-8
2,809
2.53125
3
[ "MIT" ]
permissive
<?php class SitemapController extends BaseController { protected $table = 'tb_posts'; //protected $layout = "theme.".Config::get('general.theme_folder').".sitemap"; protected $data = array(); //public $module = 'Sitemap'; //static $per_page = '10'; public function __construct() { parent::__construct(); $this...
true
f7852ed5ad0b42edba59680837b1ba409db9dc60
PHP
baobd/laravel-cache
/src/Support/Tag.php
UTF-8
556
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DragonCode\Cache\Support; use DragonCode\Support\Facades\Helpers\Ables\Arrayable; use DragonCode\Support\Facades\Helpers\Ables\Stringable; class Tag { public function get(array $tags): array { return Arrayable::of($tags) ->flatten() ->...
true
fbb3e1e5c90749589fc68145b87d7acf8fd4e2b9
PHP
youpbos/Gaming-Data-2bc082e2
/store.php
UTF-8
565
3.078125
3
[]
no_license
<?php $ary = array( array($a1 ="Call of Duty","Shooter",$a = 59.95), array($a2 ="Rocket League","Sport",$b = 19.95), array($a3 = "Assassins Creed","RP",$c = 49.95)); print_r($ary); $ant = $a + $b + $c; $gem = $ant / 3; $leng = strlen($a1) + strlen($a2) + strlen($a3); $lengGem = $leng / 3; var_dump($ary)...
true
2c714ac6faba4db7260505987eb1dde6a29cbffc
PHP
xsharp/ip2region
/src/Ip2region.php
UTF-8
6,415
2.78125
3
[]
no_license
<?php /** * This file is part of Ip2region. * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Bas\Ip2region; use Exception; /** * ip2region php class * @see https://github.com/lionsoul2014/ip2region/tree/master/binding/php */ defined...
true
d9fe0e29eda0c44519876e62f33795becc991240
PHP
rquispeg/seap
/app/Controller/ParalelosController.php
UTF-8
970
2.515625
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Paralelos Controller * @Author Remberto Quispe G. <rembertoy2k3#gmail.com> */ class ParalelosController extends AppController{ var $name = 'Paralelos';//inicializacion de variables public $components = array('RequestHandler'); public $uses = array('...
true
26173d2c1a7b17c79320470b17b909a116784c0a
PHP
mraffiramdhani/PemwebCourse-2
/login.php
UTF-8
2,756
2.6875
3
[]
no_license
<?php require "connect.php"; session_start(); if( isset($_SESSION["login"]) ){ header("Location: index.php"); exit; } if( isset($_COOKIE["login"] )){ if($_COOKIE["login"] == true ){ $_SESSION["login"] = true; } } if( isset($_POST["login"]) ){ // Login Input Properties $email = $_POST["e...
true
1c96fde71b3523d6d559b260b7c588bdb916b283
PHP
MMMTech/phpScripts
/server.php
UTF-8
1,458
2.84375
3
[]
no_license
<?php if (!extension_loaded('sockets')) { die('The sockets extension is not loaded.'); } // create unix udp socket $socket = socket_create(AF_UNIX, SOCK_DGRAM, 0); if (!$socket) die('Unable to create AF_UNIX socket'); // same socket will be used in recv_from and send_to $server_side_sock = dirname(__FILE...
true
ce0d212f223b02dc10fff58c9212bafb9b11d0b9
PHP
bgstation/lojavirtual
/protected/helpers/BannerHelper.php
UTF-8
820
2.875
3
[]
no_license
<?php class BannerHelper { public static function renderBanners($oBanners) { $return = ''; $cont = 1; foreach ($oBanners as $banner) { $classe = $cont == 1 ? 'active' : ''; $return .= '<div class="item ' . $classe . '">'; $return .= '<img src="' . $banne...
true
a467fb3447fc29f7c46aa25adb1f6cd1719f3053
PHP
mabbas64/yellowease
/api/clickatell.php
UTF-8
1,393
2.609375
3
[]
no_license
<?php //API Handler for getting text session ID include '../libs/common.php'; //check for text and phone number if( !isset( $_POST["phone"] ) || !isset( $_POST["texturl"] ) ){ echo json_encode(array("error" => "missing text or phone number")); exit(); } //check for session ID $session_url = 'https://api.click...
true
e73da6953d5761a001b052cc0e2d43969d553870
PHP
janujohn/addressbook
/list.php
UTF-8
1,085
2.609375
3
[]
no_license
<?php include "header.php"; include "connect.php"; $target_folder = 'images/'; $selectQuery = "SELECT * FROM persons"; $exe = mysql_query($selectQuery); echo '<div class="table-responsive"> <table class="table table-striped table-bordered" width="100"> <thead> <tr> <th>Id</th> <th>Name</th> <th>E-mail</th> <th...
true
50e1197931fac2a0d8738e6d5d2d6cb2a836081a
PHP
gghg1989/TinyEmpire
/reg.php
UTF-8
2,113
2.9375
3
[]
no_license
<?php include("header.php"); ?> <h3>Register</h3> <?php if(isset($_POST['register'])) { $userName = protect($_POST['user_name']); $pwd = protect($_POST['user_pwd']); $email = protect($_POST['user_email']); if(strlen($userName) > 20) { echo 'User name must be less than 20 charactors.'; } elseif(strl...
true
d7e6698774e846998e651b7c838800cefe9d2469
PHP
hamzagic/quiz-app-api
/src/model/Quiz.php
UTF-8
418
2.8125
3
[]
no_license
<?php namespace quiz\model; use quiz\database\Database; class Quiz { private $name; private $back_button; private $active; private $start_date; private $end_date; private $questions_per_page; private $created_at; private $updated_at; private $db; public function __construct()...
true
5144734a8cfa631a25379e32ec8936168854783f
PHP
jcartledge/pdoc
/includes/documentable.php
UTF-8
10,421
3.03125
3
[]
no_license
<?php /** * @file * documentable superclass */ require 'token.php'; /** * @class * Documentable provides output routines for subclasses * and factory methods for building a list of documentables * from php input */ abstract class Documentable { var $type; var $name; var $flags; var $doc_comme...
true
ad8d6495ce7952d1c7e1c846a542e7e0bcf1f809
PHP
afelipelc/EntrevistaInicialUTIM
/entrevista/estudios.php
UTF-8
3,325
2.734375
3
[]
no_license
<?php //ini_set('display_errors', '1'); header('Content-Type: text/html; charset="utf-8"', true); /** * Script que genera el FDCI en formato HTML para su impresión * * Elaborado por Mtro. Yonatan Cruz e Ing. Felipe Lima * */ include_once("myDBC.php"); // Recibimos el usuario de la encuesta a través del formulario en u...
true
0db6652b938e29eb0f7821ab83cb298873084247
PHP
antoinich/MG
/src/Service/ContactMailer.php
UTF-8
1,051
2.71875
3
[]
no_license
<?php namespace App\Service; use App\Entity\Contact; use phpDocumentor\Reflection\Types\Context; use Symfony\Bridge\Twig\Mime\TemplatedEmail; use Symfony\Component\Mailer\MailerInterface; use Symfony\Component\Mime\Email; use Symfony\Component\Mime\Address; class ContactMailer { private $mailer; public fu...
true
aeb9f2148a8f62ea56cdb49f21d03ab24706085a
PHP
codediy/ohdemo
/phpdemo/tools/index.php
UTF-8
5,887
3.0625
3
[]
no_license
<?php //获取所有函数 function getAllFunctions(){ $funs = get_defined_functions(); $basePath = $path = dirname(__DIR__)."\\function\\"; if (!is_dir($basePath)) { mkdir($basePath); } foreach ($funs as $key => $value) { //根目录生成 $path = $basePath.$key; if (!is_dir($path)) { mkdir($path); } //函数目录生成 foreach...
true
d46d7797ff32b109547673371e37646930a210a6
PHP
abe0128/adealba
/CLASSEXERCISES/classActivity4/challange.php
UTF-8
653
3.59375
4
[]
no_license
<?php $array = ["letters", "numbers"]; $letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; $numbers = ["1", "2","3", "4", "5", "6","7", "8", "9"]; function makePassword() { $password = array(); for($i = 0; $i ...
true
8671d08e1452c70e641bbd82e3c45e58b81b9c1e
PHP
GinoPane/neo4j-php-client
/src/Databags/DriverSetup.php
UTF-8
925
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Neo4j PHP Client and Driver package. * * (c) Nagels <https://nagels.tech> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Laudis\Neo4j\Databags; use Laudis\...
true
d8a19c645fd4f21e6365df9c94d5f3b6beb3db00
PHP
afercin/EjerciciosPHPclase
/Nueva carpeta/MathLearning.php
UTF-8
5,287
3.1875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Adrián Fernández Cintado</title> <meta charset="UTF-8"> <link rel="stylesheet" href="MathLearning.css"> </head> <body> <div> <?php function ParseString($str, $offset) { $strArray = str_split($str); $formatedStr = ""; $position =...
true
f30902708949d791d241abe72b32c215f5a31251
PHP
banqhsia/gitlab-watcher
/app/Absence.php
UTF-8
1,391
2.765625
3
[]
no_license
<?php namespace App; use App\Gitlab\Reactions; use App\Gitlab\MergeRequest; class Absence { /** * @var MergeRequest */ private $mergeRequest; /** * @var Reactions * @todo To be abstracted */ private $reactions; /** * Construct * * @param MergeRequest $mer...
true
ff900dfe9ff3cbd2f8e496d82638bacf00de1a36
PHP
DeClercqJan/vettige_vrijdag_temporary
/src/Doctrine/IsHistoricalFilter.php
UTF-8
975
2.640625
3
[]
no_license
<?php namespace App\Doctrine; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Query\Filter\SQLFilter; class IsHistoricalFilter extends SQLFilter { /** * Gets the SQL query part to add to a query. * * @param ClassMetaData $targetEntity * @param string $targetTableAlias * * @...
true
14834281bebd7fb964c3bbef836d8a2b45057ac3
PHP
xvrd/designpatterns
/src/Behavioral/ChainOfResponsibility/Handler.php
UTF-8
828
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: robertpodwikamac * Date: 16.07.15 * Time: 22:18 */ namespace Rpodwika\Designpatterns\Behavioral\ChainOfResponsibility; abstract class Handler { protected $successor; /** * @return mixed */ public function getSuccessor() { return $this->...
true
71cd20d0300e351a348cd566d1ce8cf400416b2b
PHP
ministryofjustice/opg-lpa
/service-api/module/Application/src/Library/Http/Response/File.php
UTF-8
1,059
2.75
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php namespace Application\Library\Http\Response; use Laminas\Http\Response; /** * Returns an Empty (204) response. Used for a response after a DELETE. * * Class NoContent * @package Application\Library\Http\Response */ class File extends Response { public const TYPE_PDF = 'application/pdf'; protected...
true
51f029708cbad2e519622c04df5c0a1f002b376b
PHP
mojtabaqri/sadralms
/sadraLms/app/Functions/StorageFile.php
UTF-8
902
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Functions; use Illuminate\Support\Facades\Storage; use App\User; class StorageFile { protected $rootAddress,$id; public function __construct($id) { $this->id=$id; $root=User::find($this->id)->first(); $this->rootAddress=$root->rootAddress; } public func...
true
6fcf52a63d8d7565680df17dad7ba86503fa44dd
PHP
Indaxia/demo
/src/Common/Helper/FormTransformer.php
UTF-8
1,386
3
3
[ "MIT" ]
permissive
<?php namespace App\Common\Helper; use Symfony\Component\Form\FormInterface; class FormTransformer { private $form = null; public function __construct(FormInterface $form) { $this->form = $form; } /** * Returns errors of the form as an array * * @param bool $deep Whether t...
true
c40491ce8caaf6408fbe65b46c045a9fb0b0c923
PHP
lovehuasheng/custom_service
/application/user/model/SysUserLog.php
UTF-8
3,204
2.546875
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | 善心汇集团 客服管理后台 [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2016 http://www.shanxinhui.com All rights reserved. // +----------------------------------------...
true
f840d20096f86ca677f21d095a992b1f4f9a23d4
PHP
dumbledore/Boev
/ftp/engine/sys_debug.php
UTF-8
2,600
2.53125
3
[]
no_license
<?php include_once '_settings.php'; # Helper Functions function line_count($in) { $lines = explode("\n", $in); return count($lines); } function textarea($caption, $src) { echo '<h3>'.$caption.'</h3><br><textarea name="zaza" cols="64" rows="'.line_count($src).'">'; echo $src; echo '</textarea><br><b...
true
ca7652ad30dc6b4eb2185bd417479a874362666a
PHP
maxbeckers/amazon-alexa-php
/src/Request/AudioPlayer.php
UTF-8
1,277
2.796875
3
[ "MIT" ]
permissive
<?php namespace MaxBeckers\AmazonAlexa\Request; use MaxBeckers\AmazonAlexa\Helper\PropertyHelper; /** * @author Maximilian Beckers <beckers.maximilian@gmail.com> */ class AudioPlayer { const PLAYER_ACTIVITY_IDLE = 'IDLE'; const PLAYER_ACTIVITY_PAUSED = 'PAUSED'; const PLAYER_ACTIVIT...
true
8e3888dda1d44381c19d79bbb977c3bfdfd1cf4d
PHP
rdijana/cactus
/app/Http/Requests/RegistrationRequest.php
UTF-8
1,651
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class RegistrationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * G...
true
a9052e001ca3c420b1a62ddeda02274a8c238a7d
PHP
iris-martinez/boardgames
/test/test_role.php
UTF-8
1,252
2.890625
3
[]
no_license
<?php require_once(__DIR__ . "/../dao/class-roleDAO.php"); require_once(__DIR__ . "/../model/class-role.php"); try { /** * test list_roles method */ $roleDAO = new roleDAO(); $roles = $roleDAO->list_roles(); foreach ($roles as $role) { echo 'Test listar roles' . $role->get_role() . ...
true
024492d473a913f02d70757a60bc3442d38f0199
PHP
giadc/json-api-request
/src/Requests/RequestParams.php
UTF-8
5,812
2.78125
3
[]
no_license
<?php namespace Giadc\JsonApiRequest\Requests; use Giadc\JsonApiRequest\Exceptions\InvalidRequestParamsProvidedException; use Giadc\JsonApiRequest\Requests\Filters; use Giadc\JsonApiRequest\Requests\Includes; use Giadc\JsonApiRequest\Requests\Pagination; use Giadc\JsonApiRequest\Requests\Sorting; use Symfony\Componen...
true
b1508d3014234b4f2f562400e0b727b54440eee5
PHP
fyuze/framework
/tests/File/CabinetTest.php
UTF-8
2,172
2.65625
3
[ "MIT" ]
permissive
<?php use Fyuze\File\Cabinet; use PHPUnit\Framework\TestCase; class FileCabinetTest extends TestCase { /** * @var string */ protected $path; /** * @var Fyuze\File\Cabinet */ protected $cabinet; public function setUp() { $this->path = __DIR__ . '/mock'; } ...
true
8d1586726f3ef975f3dd719ef48035b6f1b8371a
PHP
huubl/woocommerce-custom-fields
/woocommerce-custom-fields/admin/fields-render/fields/class-wccf-field.php
UTF-8
1,998
2.984375
3
[]
no_license
<?php /** * Abstract class for fields rendered on WooCommerce * * @package WooCommerceCustomFields/InterfaceField */ defined( 'ABSPATH' ) || exit; /** * Blueprint for field classes */ abstract class WCCF_Field { /** * Field array with key, value, title. * * @var array $field */ protected $field; /**...
true
42b1b5751be2ae3cb3f9c85035146e60fbbdcf92
PHP
dsnopek/mandrill
/mandrill.class.php
UTF-8
11,026
3
3
[]
no_license
<?php class Mandrill_Exception extends Exception { } class Mandrill { const API_VERSION = '1.0'; const END_POINT = 'https://mandrillapp.com/api/'; var $api; /** * Default to a 300 second timeout on server calls */ var $timeout = 300; function __construct($api_key, $timeout = 300) { if (empty(...
true
28f1b9a6fec31057164228824c972797679bb3db
PHP
tistre/simple-oauth-login
/src/ServiceConfig.php
UTF-8
1,536
2.921875
3
[ "MIT" ]
permissive
<?php namespace Tistre\SimpleOAuthLogin; class ServiceConfig { /** @var string */ protected $service = ''; /** @var array */ protected $providerParams = []; /** @var array */ protected $authorizationUrlParams = []; /** * @return bool */ public function isValid() { ...
true
941271be6077538c468965292d8a8ec077702076
PHP
strapieno/str-dive-log-model
/src/DiveLogModelAwareTrait.php
UTF-8
617
2.640625
3
[]
no_license
<?php namespace Strapieno\DiveLog\Model; /** * Class DiveLogModelAwareTrait */ trait DiveLogModelAwareTrait { /** * @var null|DiveLogModelInterface */ protected $diveLogModelService; /** * @return null|DiveLogModelInterface */ public function getDiveLogModelService() { ...
true
427efe90cbee37c5f1f408b96dfc6338b5563c69
PHP
JohnZeLiang/kids-play-centre
/app/controllers/PasswordResetController.php
UTF-8
1,409
2.640625
3
[ "MIT" ]
permissive
<?php class PasswordResetController extends Controller { /** * Display the password reset view for the given token. * * @param string $token * @return Response */ public function getReset($token = null) { if (is_null($token)) App::abort(404); return View::make('PasswordReset')->with('token', $t...
true
8481af7d2c6586667dfa0ffd5b8a760afd8619de
PHP
zewie/ProjetBlogFEE
/index.php
UTF-8
4,263
2.515625
3
[ "MIT" ]
permissive
<?php /* @var $bdd PDO */ session_start(); require_once('include/notification.inc.php'); require_once('config/bdd.conf.php'); require_once('config/init.conf.php'); require_once('config/connexion.inc.php'); require_once('include/function.inc.php'); //Class smarty require_once('libs/Smarty.class.php'); $tab_articles_r...
true
4429171e8db22c0cf30e2f2a25582f03d16edb25
PHP
delrodie/syged
/src/AppBundle/Utilities/AlbumUtilities.php
UTF-8
3,827
2.890625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Utilities; use Doctrine\ORM\EntityManager; class AlbumUtilities { function __construct(EntityManager $entity) { $this->em = $entity; } /** * verification d el'existence de l'album */ public function existe($titre, $artiste) { $album = $th...
true
3b515ec0fc88b468ede62c25aa258733bb2344f1
PHP
LuiisM/banarica
/app/Http/Controllers/Proclientes.php
UTF-8
1,848
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Procliente; class Proclientes extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index() { return Procliente::all(); } /** * Show the form for c...
true
3f37ad329f3783d2e2e839accc3ce537bd97d835
PHP
ma99/obts54
/app/Http/Controllers/Admin/StopController.php
UTF-8
999
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Stop; class StopController extends Controller { public function store(Request $request) { $this->validate($request, [ 'stop_list.*.name' => 'required|ma...
true
693792c593cc5f1c1161602ea072ff6cb70bf2f2
PHP
Takuchirema/lorea-plugins
/mod/email_revalidate/start.php
UTF-8
3,579
2.53125
3
[]
no_license
<?php /** * Elgg email revalidate plugin * * @package ElggEmailRevalidate */ elgg_register_event_handler('init', 'system', 'email_revalidate_init'); /** * Init function */ function email_revalidate_init() { elgg_register_plugin_hook_handler('usersettings:save', 'user', 'email_revalidate_user_settings_save'); ...
true
bc3ec6f15c30f254bfe6aeb9fce7884dd260f259
PHP
adamelso/albumgrab
/src/DependencyInjection/Compiler/RegisterConsoleCommandsPass.php
UTF-8
1,623
2.546875
3
[ "MIT" ]
permissive
<?php namespace Albumgrab\DependencyInjection\Compiler; use Symfony\Component\Console\Command\Command; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * Automatically registers console commands. */ class RegisterConsoleComman...
true
23776a86d78c7abcf4c172e2ee5a145f3b618f9c
PHP
narwalsandeep/Trinity
/_src/models/DbTable/User/Meal.php
UTF-8
9,166
2.625
3
[]
no_license
<?php /** * Model_DbTable_User_Meal class. * * @extends Model_DbTable_Base */ class Model_DbTable_User_Meal extends Core_Db{ /** * _name * * (default value: 'mus_user_meal') * * @var string * @access protected */ protected $_name = 'mus_user_meal'; /** * _primary * * (default value: 'i...
true
8b7d8ce4477989ed80bfbbcd6a6fa41e9737d9fb
PHP
mugisyahid/propper
/propper_2_0/class/DBgateway.php
UTF-8
2,398
2.984375
3
[]
no_license
<?php class DBGateway{ private $_conn; private $_dbHost; private $_dbUser; private $_dbPassword; private $_dbType = "mysql"; public function __construct($host, $user, $pwd){ $this->_dbHost = $host; $this->_dbUser = $user; $this->_dbPassword = $pwd; } public function OpenConnection(){ ...
true
e873d5c7e9a5e8b285a71778d1211ba63222f571
PHP
kubili2013/postcardgo
/database/migrations/2017_12_14_131042_create_losses_table.php
UTF-8
906
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLossesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('losses', functio...
true
416267e03f3cb496c1cc12de11471de37817996f
PHP
sushmithasuryadevara/studentmanagement
/class/Course.php
UTF-8
1,638
2.96875
3
[]
no_license
<?php require_once ("class/DBController.php"); class Course { private $db_handle; function __construct() { $this->db_handle = new DBController(); } function addCourse($course_name, $course_desc, $start_date, $duration) { $query = "INSERT INTO tbl_course (course_name,course_des...
true
b070556892b0764cadf36e71bb37ed0c083c7d4b
PHP
fnperez/yummi-pizza-backend
/src/Services/AddressService.php
UTF-8
926
2.96875
3
[]
no_license
<?php declare(strict_types=1); namespace YummiPizza\Services; use YummiPizza\Contracts\IAddress; use YummiPizza\Entities\Address; use YummiPizza\Payloads\Address\AddPayload; use YummiPizza\Repositories\PersistRepository; class AddressService { /** * @var PersistRepository */ protected $repository;...
true
a94731d4277f712d5dcce5d591ed528a7c26a728
PHP
lubibul/travel
/gotit.php
UTF-8
1,570
2.9375
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<!-- **** LULU TANG **** --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1"> <title>Thank You For Booking!</title> <link rel="stylesheet" type="text/css" href="default.css"> <link rel="stylesheet" type="text/css" href="styles.css"> <link rel="styles...
true
9b0fb3224fc503073b6de6db6beb7c82e62c5dca
PHP
SnusnumrConceit/Autohire
/Classes/Order.php
UTF-8
5,264
2.828125
3
[]
no_license
<?php class Order implements IOrder { protected $id; protected $user; protected $product_id; protected $hours; public function CreateOrder($order) { require_once 'DbConnect.php'; $db = DbConnect(); if ($this->CheckDublicates($db, $order)) { $createOrderQuery ...
true
9a2b3ee03d6168f541b8f207f0add18049a5b9fd
PHP
SIWECOS/HSHS-DOMXSS-Scanner
/app/CSPParser.php
UTF-8
6,376
3.046875
3
[ "MIT" ]
permissive
<?php namespace App; class CSPParser { public $headerName = null; public $hasLegacyHeader = false; public $originalDirectivesString = null; public $directives = null; /** * The CSP header that should be parsed. * * @param string $header */ public function __construct(Strin...
true
4da0d989c30762282697695bc3271589108c1562
PHP
jeremykendall/spaz-api
/src/frapi/custom/Model/Spaz/Urltitle.php
UTF-8
3,170
2.765625
3
[ "BSD-2-Clause" ]
permissive
<?php class Spaz_Urltitle { const CACHE_LIMIT = 900; // 15 minutes /** * cURL resource * * @var resource */ var $curl; /** * the URL * * @var string */ var $url; /** * the url's md5 hash * * @var string */ ...
true
a14e3ff459022532cad821dea0e54c7d4c9d1277
PHP
lisonglin0129/LDFRAMEWORK1.4
/LDFRAME_WORK/driver/mysql.class.php
UTF-8
1,432
2.578125
3
[]
no_license
<?php /** * LD库文件 * ============================================================================ * * 版权所有 2016-2018 零度网络科技有限公司,并保留所有权利。 * 网站地址: http://www.hbclnx.com * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何...
true
8db0fcbcc4309aa5d96ebcc5fcf3f86a6974320f
PHP
agriya/webshopauthenticate
/src/services/CustomValidator.php
UTF-8
1,004
2.5625
3
[]
no_license
<?php namespace Agriya\Webshopauthenticate; class CustomValidator extends \Illuminate\Validation\Validator { public function validateLikeRestricted($attribute, $value, $parameters) { $res_words = array_filter($parameters); foreach($res_words as $word) { if(strpos($value, $word) !==...
true
89822ae543025d708d384a1182cb770dfd56479c
PHP
przeslijmi/Shortquery
/tests/Tools/SplitterTest.php
UTF-8
1,058
3.203125
3
[]
no_license
<?php declare(strict_types=1); namespace Przeslijmi\Shortquery; use PHPUnit\Framework\TestCase; use Przeslijmi\Shortquery\Tools\Splitter; /** * Methods for testing Items. */ final class SplitterTest extends TestCase { /** * Test if Splitter works. * * @return void */ public function te...
true
7f0eeaea44bb8c4de472f9fc3dc5e7a64071c2fe
PHP
Git-Math/piscine_php
/rush01/formulaire/form.shoot.php
UTF-8
2,246
2.9375
3
[]
no_license
<?php session_start(); echo "<meta charset='utf8'>"; class Bateau { public $speed = 10; public $nb_maneuvre = 3; public $_pp = 3; public $is_still = true; public $weapon = array('1' => "pistolet", '2' => 'fusil', '3' => 'bazooka'); } $black_pearl = new Bateau; function check_mv($tab/*$_POST*/, $vessel/*le...
true