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
0ed833a6a72ad4b5e8431381510160665d5492f3
PHP
Chahat001/VirusScan
/signup.php
UTF-8
2,360
2.78125
3
[]
no_license
<?php require_once "login.php"; require_once "utils.php"; $connection = new mysqli($hn, $un,$pw,$db); if($connection -> connect_error) die(mysql_conn_error($connection -> connect_error)); if(isset($_POST['email']) && isset($_POST['password']) && isset($_POST['username'])){ $sanitiz...
true
769b1fcae7ca5b4c9383743d6286b5163f4da416
PHP
starti-tecnologia/mini-fwk
/src/Console/Command/DatabaseSeedCommand.php
UTF-8
1,761
2.84375
3
[]
no_license
<?php namespace Mini\Console\Command; use Commando\Command as Commando; use Mini\Entity\DatabaseSeed\DatabaseSeeder; class DatabaseSeedCommand extends AbstractCommand { private $yes = false; public function getName() { return 'db:seed'; } public function getDescription() { r...
true
6ec8935deb7eb571ec52766975dd581c2bea4016
PHP
SergyPilipenko/todo
/model/Onetask.php
UTF-8
763
2.96875
3
[]
no_license
<?php class Onetask { public static function overview($id) { // Соединение с БД $db = Db::getConnection(); // Текст запроса к БД $sql = 'SELECT * FROM tasks WHERE id = :id'; // Используется подготовленный запрос $result = $db->prepare($sql); $result->bin...
true
6af97f3617dc4c21a5346d1fe2f96ad7b72739b5
PHP
neistow/phpmvc
/controllers/FilmController.php
UTF-8
2,046
2.734375
3
[]
no_license
<?php namespace app\controllers; use app\core\Application; use app\core\ControllerBase; use app\models\Film; use app\repositories\FilmsRepository; class FilmController extends ControllerBase { public function FilmsList() { $filmsRepo = new FilmsRepository(Application::$GlobalThis->database); ...
true
07e056d0e74047358e8fc0e9794baa7a94660fcf
PHP
ChalkyVaati/is-218
/project.php
UTF-8
1,478
3.078125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Login Successful</title> </head> <body> <div style="text-align:center; margin-top:30px"> <h1>You have Successfully logged in!!!</h1> <div style="width:320px; margin:auto;"> <?php echo "<table>"; echo "<tr><th>Firstname</th><th>Lastname</th></t...
true
01796a9f21e550b0fb2bb0b9c23dff3416224a6d
PHP
im286er/MonkeyPHP
/system/vendor/monkey/Monkey/Database/Connection.php
UTF-8
13,771
2.625
3
[]
no_license
<?php /** * Project MonkeyPHP * * PHP Version 5.3.9 * * @package Monkey\Database * @author 黄易 <582836313@qq.com> * @version GIT:<git_id> */ namespace Monkey\Database; use Monkey\App; use Monkey\Exceptions\Sql\SqlEmptyException; use PDO; use PDOException; /** * Class Connection * * 连接类 * * @package...
true
0762d359963fa2bec25df3752ca9ad6ef3e5591f
PHP
habemus-agency/configurator-php
/src/Elements/Field.php
UTF-8
1,512
3.1875
3
[]
no_license
<?php namespace Configurator\Elements; use Configurator\Traits\HasConditions; class Field { use HasConditions; public $title; public $content; public $name; public $type = self::TYPE_RADIO; protected $choices = []; protected $value = null; //set with choice selection const TYPE_RADIO = 'radio'; public fun...
true
13b97472f2de78ab02519d6d755e7e8ebb9f32cb
PHP
mcroker/tm_wp_plugin
/types/class-wctypeobject.php
UTF-8
1,033
2.640625
3
[ "MIT" ]
permissive
<?php /** * WCTypeNumber * * @category * @package WordCider * @author Martin Croker <oss@croker.ltd> * @license Apache2 * @link */ defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); require_once 'class-wctypebase.php'; if ( ! class_exists( 'WCTypeObject' ) ) : /** * WCTypeNumber */ class W...
true
d03b85d9c5ad0d6255128d756443dbd127ba4b96
PHP
Haxxan-raza/Calculator
/calcul.php
UTF-8
1,647
3.625
4
[]
no_license
<?php $result=0; if(isset($_POST['submit'])) { if($_POST['submit']=='+') { $result=$_POST['num1'] + $_POST['num2']; }elseif(isset($_POST['submit'])) { if($_POST['submit']=='-') { $result=$_POST['num1'] - $_POST['num2']; ...
true
b20e9621eca825d1d2f88c27ab15671028e0daa2
PHP
gjerokrsteski/pimf-framework
/core/Pimf/Util/Value.php
UTF-8
2,236
3.296875
3
[ "MIT" ]
permissive
<?php /** * Util * * @copyright Copyright (c) Gjero Krsteski (http://krsteski.de) * @license http://opensource.org/licenses/MIT MIT License */ namespace Pimf\Util; /** * Value * * @package Util * @author Gjero Krsteski <gjero@krsteski.de> */ class Value { /** * @var string */ protected...
true
ee986b905c50b360f7e611e051843851d7ae3037
PHP
slovoslagac/lol
/includes/user.php
UTF-8
5,110
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: petar * Date: 14.3.2017 * Time: 13:37 */ class user { private $name; private $lastname; private $arenausername; private $summonername; private $rankid; private $userid; private $phone; public function getAllUsersLol() { global ...
true
e31165675bd1def7e7074e001fc0bab3b9bcdd68
PHP
jungle-bay/telegram-bot-api
/src/TelegramBotAPI/Types/ShippingQuery.php
UTF-8
1,669
2.8125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * Team: jungle * User: Roma Baranenko * Contacts: <jungle.romabb8@gmail.com> * Date: 05.12.17 * Time: 15:06 */ namespace TelegramBotAPI\Types; /** * Class ShippingQuery * @package TelegramBotAPI\Types * @link https://core.telegram.org/bots/api#shippingquery * @author Roma ...
true
e0d5fdd8ffc31e3f892db982e8695c59cba248f7
PHP
JamieYnonan/maraquser
/app/src/Mu/Application/User/ChangeRoleHandler.php
UTF-8
737
2.84375
3
[ "MIT" ]
permissive
<?php namespace Mu\Application\User; use Mu\Domain\Model\Role\RoleId; use Mu\Domain\Model\Role\RoleService; use Mu\Domain\Model\User\UserId; use Mu\Domain\Model\User\UserService; final class ChangeRoleHandler { private $userService; private $roleService; public function __construct( UserService ...
true
f2207acc282f6a082154752d7fe85fd264a806a5
PHP
alex-windett/Wordpress-Setup
/wp-content/mu-plugins/api.php
UTF-8
2,891
2.609375
3
[]
no_license
<?php /* Plugin Name: API Plugin URI: Description: Provides a shell API system for other Big Fish plugins to extend Version: 1.0.3 Author: Scott Cariss Author URI: http://l3rady.com */ !defined( 'ABSPATH' ) and exit; if ( !class_exists( 'BFApi' ) ) { Class BFApi { private $auth_key; private $methods = array(); ...
true
a7cb0ed316f8fc3e542d2c39363e0cf427c3615a
PHP
sop/pkcs5
/lib/PKCS5/HashFunc/HashFunc.php
UTF-8
813
3.1875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Sop\PKCS5\HashFunc; /** * Base class for hash functions used in password-based cryptography. */ abstract class HashFunc { /** * Length of the produced hash in bytes. * * @var int */ protected $_length; /** * Functor interface. * ...
true
65c78881b276e2930fc6c9d5f30125e1bb137a8a
PHP
clairaton/nutriteo
/class/Nutriment.php
UTF-8
5,518
2.96875
3
[]
no_license
<?php /** * Ce fichier décrit l'ensemble des caractéristiques de l'objet Nutriment * * @author Clément CAIRO Alias K.net */ class Nutriment{ private $_id; private $_name; private $_unity; private $_description; //@TODO : A quoi correspond cette propriéte? d'où provient-elle? à quoi sert-elle? Mise en comment...
true
55f4e0e06860fc2dd2040b53e6e152be896a5fe7
PHP
jbrathony/scrap_php
/axs.php
UTF-8
3,295
2.65625
3
[]
no_license
<?php ob_start(); session_start(); ?> <!doctype html> <html class="no-js" lang="en"> <?php error_reporting(0); session_start(); function insertasin($url,$asinno) { global $connection; session_start(); $query = "INSERT INTO `tbl_asin` (`amazonurl`,`asinno`) VALUES ('".$url."','".$asinno."');"; $result = mysqli_...
true
ea233c020e7d4ce6c8b6856eddc6f7b107fff347
PHP
Chen1fan/PMPDailyTest
/day17/math.php
UTF-8
435
3.265625
3
[]
no_license
<?php function Combine($arr_A, $arr_B){ //定义空数组 $arr = []; $len = count($arr_A)+count($arr_B); // return $len; for ($i=0;$i<count($arr_A);$i++){ $arr[$i]=$arr_A[$i]; } for ($i=count($arr_A);$i<$len;$i++){ for ($j=0;$j<count($arr_B);$j++) { $arr[$i] = $arr_B[$j]; ...
true
4a69781d0e08acfb8ebffbb9d8a4ef14ee8cb58b
PHP
AlbertoRuizGil/php_exercises
/ejercicios prestados/conexion-sql/View/Customer/customerFunctions.php
UTF-8
1,471
2.796875
3
[]
no_license
<?php require_once("../../php/commonFunctions.php"); function CustomerForm() { insertCustomer(); viewAllCustomer(); deleteCustomer(); } function insertCustomer() { echo<<<EOD <form action="../../Controler/Customer.php" method="POST"> <input type="text" name="firstname" placeholder="firstna...
true
25ba6bc701a75a69c1602b645d7916d4da1f2ca2
PHP
thecodewizard/DungeonDex
/server/monsters/set_searched.php
UTF-8
716
2.75
3
[]
no_license
<?php require_once "./../core/connection.php"; include_once "./../core/functions.php"; //Check The Querystring $id = ""; if(!empty($_POST["monster"])){ $monster = $_POST["monster"]; $monster = json_decode($monster); $monster = htmlentities($monster); } else die("Page expects Monster."); //Open the databas...
true
3823ad5151d1717335e64994828a149d2af92c03
PHP
SergioSuarezSantos/sergio_bd
/Monitor.php
UTF-8
5,357
2.96875
3
[]
no_license
<?php require_once 'Conexion.php'; class Monitor { private $IdMonitor; private $Nombre; private $Apellido; private $Dni; private $Profesion; const TABLA = 'monitor...
true
37e2d3e2a3205965a039102895c995fed0ccbb5c
PHP
Igor-Nosatov/simple-mvc-blog
/App/Router/Route.php
UTF-8
3,250
3.234375
3
[ "MIT" ]
permissive
<?php namespace App\Router; /** * Represents a single route */ class Route { private $url; private $controller; private $action; private $middleware; private $constraints; private $vars = []; public function __construct(array $routeParams) { foreach ($routeParams as $key => $...
true
358390e95e684f4d7506e87c22b80c13d5daf892
PHP
pantheon-systems/terminus-acme-plugin
/tests/unit/GreeterTest.php
UTF-8
1,038
3
3
[ "MIT" ]
permissive
<?php namespace Pantheon\TerminusHello\Model; use PHPUnit\Framework\TestCase; class GreeterTest extends TestCase { /** * Data provider for testGreeter. * * Return an array of arrays, each of which contains the parameter * values to be used in one invocation of the testGreeter test function. ...
true
320f124e0757e0f5229331fe182db0adca7c7db4
PHP
Titirat/museum-web
/yong.php
UTF-8
2,021
2.890625
3
[]
no_license
<?php $valid_formats = array("jpg", "png", "gif", "zip", "bmp"); $max_file_size = 5000*100; //100 kb $path = __DIR__ . '/'; // Upload directory $count = 0; if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST"){ // Loop $_FILES to exeicute all files $applicationName = $_POST['applicationName']; $sql_field_list =...
true
646969062535f000b34a394c62d5fd1fadd08bdf
PHP
BreyndotEchse/recaptcha2
/src/Captcha/Result.php
UTF-8
1,929
2.765625
3
[]
no_license
<?php namespace ReCaptcha2\Captcha; use Zend\Http\Response as HttpResponse; class Result { /** * @var boolean */ protected $status = null; /** * @var array */ protected $errorCodes = []; /** * @param HttpResponse $httpResponse */ public function __construct(Http...
true
99e99fad73632fefcde1a02f57a71509094a4f50
PHP
PlugNPush/AirPodsFC
/www/licence-reverse.php
UTF-8
2,872
2.6875
3
[]
no_license
<?php // Connexion à la base de données require_once dirname(__FILE__).'/../../config/config.php'; try { $bdd = new PDO('mysql:host='.getDBHost().';dbname=AirPodsFC', getDBUsername(), getDBPassword(), array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4")); } catch(Exception $e) { exit ('Erreur while connecting...
true
74d624037007ec5821df7688a9a81308fd86b974
PHP
theladyjaye/Galaxy
/foundry/old/forms/validators/custom/UniqueEmailValidator.php
UTF-8
407
2.953125
3
[ "Apache-2.0" ]
permissive
<?php class UniqueEmailValidator extends Validator { public function __construct(&$value, $required=false, $message=null) { $this->isRequired = $required; $this->value =& $value; $this->message = $message; } public function validate() { $record = user_userForEmail($this->value); if($recor...
true
24e96d74bdff77c786f426c14e23cbd236f7ba74
PHP
Sudhanshu277/php
/string1.php
UTF-8
216
2.5625
3
[]
no_license
<?php $name = strtoupper("sudhanshu"); //strtolower $username ="palsudhanshu"; $entered =strtolower("PALSUDHANSHU"); if($username == $entered){ echo "correct"; }else{ echo "plz check your username"; } ?>
true
e63622250c777d18f6561f1d39933f4cc9f8bafa
PHP
mariusklocke/liga-manager-api
/src/Application/InputParser.php
UTF-8
1,318
3.328125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HexagonalPlayground\Application; use DateTimeImmutable; use Exception; use HexagonalPlayground\Domain\Exception\InvalidInputException; class InputParser { private function __construct() { // Cannot be instantiated, static methods only } /** * Par...
true
a7318a671c87317d756d5885af63a9ad11d91ea2
PHP
2125zyrc/easyswoole_api
/vendor/easyswoole/orm/src/AbstractModel.php
UTF-8
24,498
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace EasySwoole\ORM; use ArrayAccess; use EasySwoole\Mysqli\Client; use EasySwoole\Mysqli\QueryBuilder; use EasySwoole\ORM\Collection\Collection; use EasySwoole\ORM\Db\ClientInterface; use EasySwoole\ORM\Db\Cursor; use EasySwoole\ORM\Db\CursorInterface; use EasySwoole\ORM\Db\Result; use EasySwoole\ORM\Exc...
true
622628b03a1360f62c602a9f3da714ddf983ec06
PHP
Xusifob/web-scrapper
/V2/src/Scrapper/Levenement.php
UTF-8
2,081
2.671875
3
[]
no_license
<?php namespace Extractor\Scrapper; include __DIR__ . '/../header.php'; use Symfony\Component\HttpFoundation\JsonResponse; /** * * @author Xusifob <b.malahieude@free.fr> * * @package Xusifob\Extractor\Scrapper * * Class Levenement * */ class Levenement extends Scrapper implements ScrapperInterface { ...
true
d6ccdb9be801ee1d0fd90a032cbd7e17c3a8b4f6
PHP
Verdient/yoo2
/src/web/ErrorHandler.php
UTF-8
2,428
2.59375
3
[]
no_license
<?php namespace yoo\web; use Yii; use yii\helpers\ArrayHelper; use yii\web\HttpException; use yoo\behaviors\SendEmailBehavior; use yoo\behaviors\SendSMSBehavior; use yoo\events\ErrorEvent; use yoo\events\MessageEvent; /** * ErrorHandler * 错误处理 * ------------ * @author Verdient。 */ class ErrorHandler extends \yii...
true
9564b818f8bd7f0ddc4ae11d7c132a57e3fb8ee4
PHP
amitkishore007/workflow
/app/B2c/Repositories/Transformers/AppProcessTransformer.php
UTF-8
973
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\B2c\Repositories\Transformers; use App\B2c\Repositories\Models\AppProcess; use League\Fractal\TransformerAbstract; use App\B2c\Repositories\Contracts\AppProcessInterface; /** * The AppProcessTransformer class transform the response for the API * @author Amit kishore <amit.kishore@biz2credit.co...
true
43a0f034b571e9c85b72af9d531a8e34bfcbd2c4
PHP
higimo/PickPoint
/test/CurlWrapperTest.php
UTF-8
1,041
2.734375
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use Higimo\PickPoint\CurlWrapper; /** * @covers CurlWrapper */ final class CurlWrapperTest extends TestCase { /** * @expectedException ArgumentCountError */ public function testArgumentEmpty(): void { $this->expectException(new CurlWrapper()); } /** ...
true
fb7372729085c57b72323b274ce1be4d2e260b17
PHP
Giova9625/kicksportsv-master
/Core/Models/administrador.php
UTF-8
5,797
2.984375
3
[]
no_license
<?php /* * Clase para manejar la tabla usuarios de la base de datos. Es clase hija de Validator. */ class Usuarios extends Validator { // Declaración de atributos (propiedades). private $id = null; private $nombre = null; private $apellido = null; private $correo = null; private $usuario = null;...
true
dbd5b2ab94f43ed5cd90c4620787b43cf961cb51
PHP
ctsoft-de/laravel-database-settings
/src/Contracts/Settings.php
UTF-8
489
2.859375
3
[ "MIT" ]
permissive
<?php namespace CTSoft\Laravel\DatabaseSettings\Contracts; interface Settings { /** * Set the specified setting value. * * @param string|array $key * @param mixed|null $value * @return bool */ public function set($key, $value = null): bool; /** * Get the specified set...
true
139a936624be135bdc824ca8b7ca5f99ad16fdd3
PHP
jpdou/demo
/app/code/User/Model/Favorite/Video.php
UTF-8
973
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jp.dou * Date: 2018/8/24 * Time: 23:17 */ namespace User\Model\Favorite; use System\Model\AbstractModel; use System\Model\ObjectManager; class Video extends AbstractModel { public function __construct(ObjectManager $objectManager) { parent::__construct($...
true
a65c20e17b992bb37810f23fc0b4112c99393dab
PHP
AlexEvesDeveloper/hl-stuff
/hl-framework/models/datasources/Referencing/ReferenceStateReasonMap.php
UTF-8
1,572
2.765625
3
[]
no_license
<?php /** * Responsible for reading and writing the reason for the reference state. */ class Datasource_Referencing_ReferenceStateReasonMap extends Zend_Db_Table_Multidb { protected $_multidb = 'db_referencing'; protected $_name = 'reference_state_reason_map'; protected $_primary = array('reference_id', '...
true
977a8564738a2cd5df6c3c6eec5898afd0dde2c1
PHP
w6688j/qiyue_projects
/app/model/socket/MsgSocket.php
UTF-8
4,878
2.6875
3
[]
no_license
<?php /** * For: ..... * User: caostian * Date: 2017/10/19 * Time: 15:27 */ namespace app\model\socket; use app\core\BaseSocketModel; use atphp\Config; use atphp\exception\ExceptionExt; class MsgSocket extends BaseSocketModel { public function __construct() { $config = Config::get("socket")["use...
true
59b23ce837d8caf8ed2715a7c801fe17e02dcd07
PHP
chriscorwin/makerator2
/_makerator/_tags/snppt_post.inc
UTF-8
4,152
2.609375
3
[]
no_license
[//lasso define_type( 'post', -namespace='snppt_', // -prototype, -description='Reads/inserts posts for snppt.' ); local( 'parent' = 0, 'uid' = string, 'created' = date, 'authorname' = string, 'authoremail' = string, 'post' = string, 'connection' = null ); define_tag( 'oncreate...
true
0827ed4e96ba0a097aeb6fad9a410934feceb454
PHP
ravisingh98/test
/skyitech/lib/model/SettingPeer.php
UTF-8
441
2.625
3
[]
no_license
<?php /** * Subclass for performing query and update operations on the 'setting' table. * * * * @package lib.model */ class SettingPeer extends BaseSettingPeer { public static function getSetting($meta,$def=''){ if($meta){ $c = new Criteria(); $c->add(SettingPeer::META,$meta); $cnt = SettingPeer:...
true
2408686119d521a5f2eba6ea0c6122000401fde6
PHP
gonsandia/technical-challenge-php
/src/CarPoolingChallenge/Domain/Model/Journey.php
UTF-8
1,414
3.078125
3
[]
no_license
<?php namespace Gonsandia\CarPoolingChallenge\Domain\Model; class Journey { private JourneyId $journeyId; private TotalPeople $totalPeople; private ?CarId $carId = null; /** * Journey constructor. * @param JourneyId $journeyId * @param TotalPeople $totalPeople * @param CarId|nul...
true
c160292772c40d3107c6adebc96c9c84d1dfef0a
PHP
Condroidapp/web
/app/model/Entities/Event.php
UTF-8
5,906
2.53125
3
[]
no_license
<?php declare(strict_types = 1); namespace Model; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * Cons * * @ORM\Table(name="events", * indexes={ * @ORM\Index (name="active", columns={"active"}) * }) * @ORM\Entity */ class Event extends BaseEntity { /** ...
true
dec5e500a183de2dc2984bbe376365ab62f50003
PHP
pH7Software/pH7-Social-Dating-CMS
/_protected/library/FreebieStock/NudityDetector/Autoloader.php
UTF-8
1,190
3.015625
3
[ "MIT", "GPL-3.0-only", "LicenseRef-scancode-philippe-de-muyter" ]
permissive
<?php /** * @author FreebieVectors.com * * Modified by Pierre-Henry Soria <hello@ph7builder.com> * * Class for autoloading other classes */ class Autoloader { /** @var array */ private static $dirs = []; /** * @param string $dir */ public static function addDirectory($dir) { ...
true
689dc45093b35601dffaceffbf6647143643835a
PHP
opentok/OpenTok-PHP-SDK
/src/OpenTok/SipCall.php
UTF-8
1,304
3.140625
3
[ "MIT" ]
permissive
<?php namespace OpenTok; /** * Represents data from a SIP Call * * @property string $id * The unique identifier of the call that is created. * * @property string $connectionId * The unique identifier of the connection that represents the SIP call in * the session. You can use this value to disconnect the SIP call usi...
true
ccdf27f096d8d966d860b74689384142165b2d5c
PHP
marcodm1/PHP-GIT
/Apuntes/primo.php
UTF-8
1,159
3.328125
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <title>Marco Domínguez</title> <meta charset="UTF-8"> <meta name="author" content="Marco Dominguez"> <meta name="description" content="Ejercicios bucles 2"> </head> <body> <form action="verSiesPrimo.php" method="get"> <label for="txtMes">...
true
7596f1797cfd456a8db6ebeb35bb3a126a128c5d
PHP
easywebdev/PHP_DesignPatterns
/app/behavioral/chain/Container.php
UTF-8
1,210
3.390625
3
[]
no_license
<?php namespace App\Behavioral\Chain; class Container { /** * @var float */ protected float $volume; /** * @var Container */ protected $adjustContainer; /** * @param float $value * @return bool */ public function checkVolume(float $value) : bool { ...
true
10593de3c39c71a8aed4c18e0964fe3278905a27
PHP
tacki/ruins
/src/Ruins/Main/Entities/Chat.php
UTF-8
909
2.71875
3
[]
no_license
<?php /** * Namespaces */ namespace Ruins\Main\Entities; use DateTime; use Ruins\Main\Entities\EntityBase; /** * @Entity * @Table(name="chat") */ class Chat extends EntityBase { /** * @Id @Column(type="integer") * @GeneratedValue * @var int */ protected $id; /** * @Column(typ...
true
929d2311b3a554a18057d012f479be7d901d6dbf
PHP
henrikhelsingborg/TT
/wp-content/plugins/helsingborg-kultur/classes/helsingborg-timeline-widget.php
UTF-8
5,614
2.6875
3
[]
no_license
<?php /* Plugin Name: HbgTimelineWidget Custom Timeline Widget */ // Block direct requests if ( !defined('ABSPATH') ) die('-1'); /** * Adds HbgBookingWidget widget. */ class HbgTimelineWidget extends WP_Widget { /** * __construct */ function __construct() { // Register the widget on widgets_init add...
true
94e93c7c6fdc56a633989fe8205287a46db19e16
PHP
Bizizou/etechsante
/app/Http/Controllers/RegistrationController.php
UTF-8
975
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\RegistrationRequest; use Illuminate\Support\Facades\Hash; use App\Models\Entities\User; class RegistrationController extends Controller { /** * Create a new controller instance */ public function __construct() { $this->middlewa...
true
eaacac2784d27c30fdef625617058ad43bccd800
PHP
vlysychenko/atmosphera
/backend/components/PostController.php
UTF-8
8,872
2.59375
3
[]
no_license
<?php /** * Controller for News model */ class PostController extends BackendController { protected $_modelclass; protected $_postType = 0; protected $_maxTopCount = 0; //base function for post_type definition protected function setPostType($model = null) { if (isset($model)) ...
true
f606b16d58e3f7eb739b95d2f641abe2ff00d494
PHP
gtdinbox/silextend
/src/Silextend/Repository/Repository.php
UTF-8
946
2.859375
3
[ "MIT" ]
permissive
<?php namespace Silextend\Repository; use Doctrine\DBAL\Connection; abstract class Repository { public static $dbName = 'default'; public static $tableName; public $db; public function __construct(Connection $db) { $this->db = $db; } public function insert(array $data) { return $this->db->insert(...
true
e27ae8437c66950db6aac10e00c49b01add90f3a
PHP
enamakel/mahendra-server
/values.php
UTF-8
1,222
2.640625
3
[]
no_license
<?php header('Content-Type: application/json'); include_once('db_connect.php'); function grabAll($table, $conn) { $buffer = []; $q = "SELECT * FROM $table;"; $result = $conn->query($q); while ($data = $result->fetch_assoc()) { $buffer[] = $data; } return $buffer; } function grabAllFromParent($tab...
true
3f5506de0cb19661780543f1fa4e140578a72100
PHP
avshatalov48/bitrix24-core-corp
/modules/crm/lib/Service/Timeline/Layout/User.php
UTF-8
1,292
2.78125
3
[]
no_license
<?php namespace Bitrix\Crm\Service\Timeline\Layout; use Bitrix\Crm\Service\Container; use Bitrix\Main\Engine\CurrentUser; class User extends Base { protected string $title; protected string $detailUrl; protected ?string $imageUrl; public function __construct(string $title, string $detailUrl, ?string $imageUrl =...
true
1d2609a51a1ffdb3f6118fde9621cf5824f2a452
PHP
jeyfost/korsart
/scripts/admin/pages/ajaxEditPage.php
UTF-8
805
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jeyfost * Date: 11.08.2017 * Time: 13:41 */ include("../../connect.php"); $id = $mysqli->real_escape_string($_POST['id']); $title = $mysqli->real_escape_string($_POST['title']); $keywords = $mysqli->real_escape_string($_POST['keywords']); $description = $mysqli->real_esca...
true
8f6b70ebd515e5525fc8aa2ba57b317d932282c0
PHP
yuan89/camphorballx
/app/Models/Permission.php
UTF-8
2,056
2.625
3
[]
no_license
<?php namespace App\Models; use Zizaco\Entrust\EntrustPermission; class Permission extends EntrustPermission { public static function checkPermissionExits($name) { //检查permission是否存在 $permissionExits = Permission::where('name', $name)->first(); if ($permissionExits) { ret...
true
dfa9c57160e7c16734647b0d8507a7ac5ab82805
PHP
apopinea/Piscine-PHP
/z_comp/thomas/RUSH/pages/item.php
UTF-8
1,992
2.71875
3
[]
no_license
<?php $_db_path = "../DB/"; $_db_items = "db_items.json"; session_start(); if (!$_SESSION['status']) header ("Location: index.php"); /* ---------------------------------------------------- * Methode GET ['ref'] * -> recupere l'item par sa reference dans la BDD * -> copie l'element * -> cree un tableau avec tout...
true
6ff4511b94ee8bc92a68ba32c6e68718e55dffc8
PHP
PoTHuYJoHN/cms
/src/Traits/FileSaver.php
UTF-8
1,897
2.734375
3
[]
no_license
<?php namespace Webkid\Cms\Traits; use Webkid\Cms\Repositories\FileRepository; /** * Class FileSaver * * @package App\Repositories\Traits */ trait FileSaver { /** * Create files * @param array $data * @param $parentId */ public function createMediaByUser(array $data, $parentId) { // Set image...
true
2be472e6771f20c1c2faf7b797b4c4673e175283
PHP
Vardot/vardoc
/modules/vardoc_features/vardoc_profile/src/Plugin/Menu/NotificationsMenuLink.php
UTF-8
2,648
2.53125
3
[]
no_license
<?php namespace Drupal\vardoc_profile\Plugin\Menu; use Drupal\views\Views; use Drupal\Core\StringTranslation\TranslatableMarkup; use Drupal\Core\Menu\MenuLinkDefault; use Drupal\Core\Menu\StaticMenuLinkOverridesInterface; use Drupal\Core\Session\AccountInterface; use Symfony\Component\DependencyInjection\ContainerInt...
true
766ab459d1626d1c85246d80ed5b18e8de31faf4
PHP
YonaSmile/appoeCoreVersion
/class/Page.php
UTF-8
3,058
3.0625
3
[]
no_license
<?php namespace App; use PDO; class Page { private $slug; private $name; private $min_role_id; private $statut; private $parent_id; private $exist; private $dbh = null; public function __construct($slug) { if (is_null($this->dbh)) { $this->dbh = DB::connect()...
true
c543d7923a493b583db6a5c58c432c0a46ba34d0
PHP
hentrope/panel.chat
/MyApp/bin/admintool.php
UTF-8
1,702
2.8125
3
[]
no_license
#!/usr/bin/php <?php if ($argc < 4 ){ echo "\nGrants/revokes 'world-wide' Administrator status to/from the specified account\n"; echo "Usage: ./admintool.php [dbuser] [dbpw] [targetuser] <-r>\n"; echo "Default functionality is GRANT ONLY; optional -r flag (<-r>) enables revocation\n"; echo "Example (grant): ./admi...
true
77484e52fb1b224c8187f6bea8795737225bdcf2
PHP
SlyDeath/yandex-php-library
/src/Yandex/Metrica/Management/Models/Condition.php
UTF-8
939
2.65625
3
[ "MIT" ]
permissive
<?php namespace Yandex\Metrica\Management\Models; use Yandex\Common\Model; class Condition extends Model { protected $type = null; protected $url = null; protected $mappingClasses = []; protected $propNameMap = []; /** * Retrieve the type property * * @return string|null ...
true
57e48bdff3634adf3abcfbd2388df1ffa8d5a998
PHP
Tomo-Shortty/Tennis-Court-Finder
/home_page.php
UTF-8
2,370
2.5625
3
[]
no_license
<!DOCTYPE html> <?php include 'selectDB.inc'; //Start the session. session_start(); include 'login_button.inc'; ?> <html> <head> <?php include 'head.inc'; ?> <!--Obtain the Google Maps api.--> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAuyy2DOoRcIcweg9n2i8cg2tbCCgSZzBU"></script>...
true
1f5da07ca554fe6a0abd1214eb1bf8902780f2a8
PHP
rssh/jungle.public
/platform/tools/ua.gradsoft.jungle.tools.phpjao/testdata/t2/php/pa.php
UTF-8
117
2.84375
3
[]
no_license
<?php $arr=array("a","b","c","d"); foreach($arr as $key => $value) { echo "key=${key}, value=${value} \n"; } ?>
true
27dd373f6a5f751c0d85472514cdfbe63ee4ea0d
PHP
htmlacademy-yii/1005307-task-force-1
/frontend/models/messages/Messages.php
UTF-8
3,240
2.578125
3
[]
permissive
<?php declare(strict_types=1); namespace frontend\models\messages; use frontend\models\{ tasks\Tasks, users\Users }; use yii\db\ActiveQuery; use yii\db\ActiveRecord; /** * This is the model class for table "messages". * * @property int $id * @property int $is_mine * @property string $message * @proper...
true
3db289d6854843b6902bb524fce916aebb2bce8d
PHP
mazrie/myassetmobile
/services/getloginvalidate_ori.php
UTF-8
470
2.515625
3
[]
no_license
<?php // Prevent caching. header('Cache-Control: no-cache, must-revalidate'); // Get username $username = $_POST['username']; // Get password $password = md5($_POST['password']); if ($username == "mac"){ $output = array('status' => true, 'login' => true); echo json_encode($output); //setcookie('LOGIN', ...
true
b2de4794ea3121d799c6a4bc705f30637faf98ee
PHP
SKoujalgi/WIL-3-30-2020-
/chapterPage.php
UTF-8
2,872
2.65625
3
[]
no_license
<?php # Script 18.8 - login.php // This is the login page for the site. require('includes/config.inc.php'); $page_title = 'WIL-Chapter'; include('includes/header.html'); if ($_SERVER['REQUEST_METHOD'] == 'GET') { // Handle the form. // Need the database connection: require(MYSQL); // Trim all the incoming da...
true
2aec3af252fe696b440ff13a6ed21845a9d1ebc5
PHP
pandyatama17/inventory-master
/database/migrations/2016_05_09_163659_truncate_tables.php
UTF-8
777
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class TruncateTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { $tableNames = Schema::getConnection()->getDoctrineSchemaManager()->listTab...
true
6f2a821c88ad7718ff87fc0d9cf98ab2dd6a8444
PHP
PeeterPihus/ariregister
/ariregister.php
UTF-8
4,119
2.515625
3
[]
no_license
<?php ob_start(); session_start(); require_once 'dbconnect.php'; require_once 'funktsioon.php'; //if (!isset($_SESSION['userName'])) { // header("Location: index.php"); // exit; //} //$res = $conn->query("set names utf8"); //$res = $conn->query("SELECT * FROM users WHERE idUser=" . $_SESSION['userName']); //$user...
true
8cfc515c53c8322262fc397390a6ab82c5129761
PHP
php-func/collection-1
/spec/loophp/collection/Iterator/RandomIteratorSpec.php
UTF-8
4,441
2.75
3
[ "MIT" ]
permissive
<?php /** * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ declare(strict_types=1); namespace spec\loophp\collection\Iterator; use ArrayIterator; use BadMethodCallException; use loophp\collection\Iterator\RandomIterator; use PhpSpec\E...
true
54dc5e46735671a3bdcaebf18399c6405d07c6fc
PHP
jajangtea/dbrest
/application/views/penjualan/v_list.php
UTF-8
1,040
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<font color="orange"> <?php echo $this->session->flashdata('info'); ?> </font> <h1>DATA PRODUK</h1> <b>Nomor Transaksi :</b><?= $this->session->userdata('s_nomor_transaksi'); ?> <br> <table border="1"> <tr> <th>ID</th> <th>NAMA</th> <th>TIPE PRODUK</th> <th>HARGA</th> <th>SUBTOTAL</th> <th>AKSI</th> </...
true
17cb299062ad5cbe295e1b913f1b2dad774ed865
PHP
joannchang0000/Taiwan
/test.php
UTF-8
2,980
3.09375
3
[]
no_license
<?php class Interview { // 面試者編號 protected $no; // 面試者中文名 protected $name_cn; // 面試者英文名 protected $name_en; // 面試者性別 protected $sex; // 面試時間 protected $time; // 應徵職稱 protected $title; public function __construct(array $data = null) { if (isset($data)) { ...
true
eaa02bf70d848b3b60793ecef519fc67570ee57a
PHP
FR3ED0M/Internet-Comp
/Pr6/dbupload.php
UTF-8
1,292
3.25
3
[ "MIT" ]
permissive
<?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "username"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //TABLE ...
true
d6725333f3cb942fe33eb4690f491dc0fd45e36d
PHP
KovichChiu/Work
/orderTicket/orderTicket.buy.php
UTF-8
1,367
2.71875
3
[ "CC-BY-4.0" ]
permissive
<?php include 'functions.php'; //呼叫Redis $redis = new Redis(); $redis->connect("localhost", 6379); echo '正在為您加入列隊中,請稍後。'; if (isset($_GET['t_id'])) { $ticketid = $_GET['t_id']; //如果session中已經有撈過的票券資料直接用,沒有則new $ticketArrname = "ticket" . $ticketid; $ticket = (isset($_SESSION[$ticketArrname]) ? ($_SE...
true
a40c0be2389b4586f5386b3dd542e594fd88dfe8
PHP
mohamedalkhiami/Quizz-BackEnd-laravel-
/app/HelperX.php
UTF-8
5,210
2.546875
3
[]
no_license
<?php namespace App; use App\Setting; use App\Notificationsetting; class HelperX { public static function appName() { $s = Setting::find(1); return $s->system_name; } public static function appLogo() { $s = Setting::find(1); if($s->logo == "") { return url('ima...
true
ee16599e74fa7508b9915cde8cd929112152f236
PHP
dvdoug/PHPCoord
/src/Geometry/MultiPolygon.php
UTF-8
811
2.75
3
[ "MIT" ]
permissive
<?php /** * PHPCoord. * * @author Doug Wright */ declare(strict_types=1); namespace PHPCoord\Geometry; use JsonSerializable; use function array_map; /** * @internal */ class MultiPolygon extends Geometry implements JsonSerializable { /** * @var Polygon[] */ public array $coordinates; pu...
true
192f9ef5eb4eadb69dd96a0657aec1afb97fc244
PHP
andre1689/ServerKofetochka
/get_coffeehouse_id.php
UTF-8
545
2.5625
3
[]
no_license
<?php require_once __DIR__ . '/db_config.php'; $con = mysqli_connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_DATABASE); if (mysqli_connect_errno()) { printf("Не удалось подключиться: %s\n", mysqli_connect_error()); exit(); } $Name_CH = $_REQUEST[Name_CH]; $r = mysqli_query($con, "SELECT ID_CH FROM CoffeeHouse WHERE...
true
d7afac7055690bc0f024b6e7fba859e44cc154b9
PHP
cjbara/IrishTrade
/validate.php
UTF-8
3,807
2.546875
3
[]
no_license
<?php if(isset($_GET['error'])){ //===================== Login Error ================ if($_GET['error'] == 'login'){ ?> $('#login-modal').openModal(); $('#login-error').addClass('card-panel red'); $('#login-error-text').text('Invalid email or password'); $('#login-modal #email').addClass('inv...
true
f2678e736a98f5fb56f98d208bc4f788786f404e
PHP
sseidelmann/ses_console
/Classes/Command/GenerateControllerCommand.php
UTF-8
4,430
2.546875
3
[]
no_license
<?php namespace SES\Console\Command; /*************************************************************** * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later...
true
b9136c8d1a85e9e94807ffa8f3741acfcd42ea2a
PHP
sisreg/siap
/src/Minsal/Metodos/Funciones.php
UTF-8
3,175
3.296875
3
[ "MIT" ]
permissive
<?php namespace Minsal\Metodos; /** * Calcular es una clase que contendrá todos aquellos métodos que necesiten * hacer un calculo y devolver dicho valor a la clase de la que fue llamada. * * @author Equipo SIAPS */ class Funciones { /* * calcularEdad => Método que calcula mediante postgres la edad ...
true
64b3686875752975b1aac426880f4d61e37b77cc
PHP
gerald0529/yf
/shop/shop/models/Transport/ItemModel.php
UTF-8
1,793
2.65625
3
[]
no_license
<?php if (!defined('ROOT_PATH')) { exit('No Permission'); } /** * @author Xinze <xinze@live.cn> */ class Transport_ItemModel extends Transport_Item { /** * 读取店铺列表 * * @param int $config_key 主键值 * @return array $rows 返回的查询内容 * @access public */ public function getItemList($cond_row = array(), $ord...
true
30d9a5e161f957861d4a4524e4960c9a75a3909b
PHP
unix4you2/practico
/dev/comp/snd/sendgrid/vendor/starkbank/ecdsa/src/publickey.php
UTF-8
1,386
3.125
3
[ "MIT", "GPL-3.0-only" ]
permissive
<?php namespace EllipticCurve; class PublicKey { function __construct ($pem) { $this->pem = $pem; $this->openSslPublicKey = openssl_get_publickey($pem); } function toString () { return base64_encode($this->toDer()); } function toDer () { $pem = $this->toPem(...
true
8ab39a70a44d1b114a14dce252595aa25f302081
PHP
Blueprint-Marketing/fhs-1
/pagely-cron.php
UTF-8
3,345
2.515625
3
[ "GPL-1.0-or-later", "GPL-2.0-only", "GPL-2.0-or-later", "MIT" ]
permissive
<?php /** * Hacked version of wp-cron.php used by pworker to do cli php cron runs */ if ( empty($argv[1]) || empty($argv[2]) || empty($argv[3]) || empty($argv[4])) die(); $host = $argv[1]; $uri = $argv[2]; $server = $argv[3]; $timeout = $argv[4]; echo "Simulating request to: {$host}{$uri}\n"; $_SERVER['SERVER_NAM...
true
76afc6376b250de0cbdbff3c22a70524152f2e13
PHP
bnjns/web-dev-tools
/src/Laravel/Traits/UsesAjax.php
UTF-8
1,260
2.78125
3
[]
no_license
<?php namespace bnjns\WebDevTools\Laravel\Traits; trait UsesAjax { /** * Create a response for an AJAX request. * * @param $text * @param int $status * @param array $data * @param array $headers * * @return \Illuminate\Http\JsonResponse */ protected functio...
true
7d903267c48657a72a854c935d5a30166e4e894e
PHP
xiaolei16fan/xiaomi-push-php
/tests/NotificationTest.php
UTF-8
2,471
2.703125
3
[]
no_license
<?php use xmpush\Sender; use xmpush\Constants; use xmpush\Builder; use PHPUnit\Framework\TestCase; class NotificationTest extends TestCase { /** * @var string $secret APP秘钥 */ protected $secret; /** * @var string $package APP包名 */ protected $package; /** * 初始化APP秘钥和包名 ...
true
91d8ed81713c36913a42552d249658775b8d882d
PHP
sokil/OpenAdvert
/application/models/MongoAdvertDb/Banners/Banner/VideoBanner.php
UTF-8
2,663
2.53125
3
[ "MIT" ]
permissive
<?php namespace MongoAdvertDb\Banners\Banner; use MongoAdvertDb\Banners\Banner\VideoBanner\MediaFile; class VideoBanner extends \MongoAdvertDb\Banners\Banner { public function beforeConstruct() { parent::beforeConstruct(); $this->_data = array_merge($this->_data, array( ...
true
7875d79b39e4a857705ee7489e6bc8d4b24838e8
PHP
UrosTatomir/oop
/cas7/Osoba.php
UTF-8
365
3.53125
4
[]
no_license
<?php class Osoba { private $ime; private $prezime; public function __construct($i, $p){ $this->ime=$i; $this->prezime=$p; } public function getIme(){ return $this->ime; } public function getPrezime(){ return $this->prezime; } public function __toString(){ return "Ime osobe je ".$this->ime." prez...
true
daf4322b95385e3a2202b18fa21cecc84a7c7bf0
PHP
Mahmoudawd4/library-store
/app/Http/Controllers/CategoryController.php
UTF-8
1,477
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; class CategoryController extends Controller { // function list(){ // get all cate from db $cats=Category::get(); return view('cats.index',[ 'cats' => $cats, ]); } public ...
true
d4dadc0b3227c3333405325f876d5934016f3fc1
PHP
barbajuju/places
/src/Controller/UserController.php
UTF-8
4,272
2.59375
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\Routing\Annotation\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use App\Entity\User; u...
true
cc92f808cbf842ae279f30251875f03f9f7da568
PHP
huggla/humap
/PhpMapFramework/PMFfunctions/getNodeHtml.php
UTF-8
346
2.5625
3
[ "MIT" ]
permissive
<?php function getNodeHtml( $nodeId ) { global $PMFDOM; $childNodes=$PMFDOM->getElementById( $nodeId )->childNodes; $tmpdom = new DOMDocument; foreach ( $childNodes as $childNode ) { $child = $tmpdom->importNode($childNode, true); $tmpdom->appendChild($child); } return trim($tmpdom->saveXML(), '<?...
true
c1fb25daf61a509790460ef9f48abe69a7c59b44
PHP
badasukerubin/kmail
/_classes/paginate.php
UTF-8
1,544
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Adewale Toluwani * Date: 27/10/2017 * Time: 10:38 PM */ class paginate extends pdo_dbconnections { public function pagelink($query, $rec_per_page){ $self = $_SERVER['PHP_SELF']; $stmt = $this->conn->prepare($query); $stmt->execute(); $to...
true
fb57ae93f5422f9953a9a9af0e38e75370409497
PHP
frague/bezumnoe3
/inc/helpers/image.helper.php
UTF-8
4,285
2.671875
3
[]
no_license
<?php function GetWebSize($path) { $s = @GetImageSize($path); if ($s) { return $s[3]; } return ""; } function HtmlImage($path, $serverPath = "", $cssClass = "", $alt = "") { //$result = "<img src='".$path."' ".GetWebSize($serverPath).($cssClass ? " class...
true
9e2181420d2c4a067a2210729d7d0320e96b46e8
PHP
juan2ramos/estudio
/audiovisuales/models/postModel.php
UTF-8
1,516
2.75
3
[]
no_license
<?php class postModel extends Model { public function __construct() { parent::__construct(); } public function getPosts() { $i=0; $sql = 'SELECT * FROM tipo_usuarios'; $post = $this->_dbc->ejecutar($sql); while ($x = $this->_dbc->obtener_fila($post,0)...
true
9fc134c0f3eff5634e9e688ba77952f10b1aaed2
PHP
eddir/rivex-web
/app/Http/Controllers/Shop/UnitPayController.php
UTF-8
3,366
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers\Shop; use App\ { Http\Controllers\Controller, Http\Requests\Shop\OrderRequest, Models\Product, Models\Order }; use Illuminate\Http\Request; class UnitPayController extends Controller { /** * Search the order if the request from unitpay is received. ...
true
13e989e42dd198ca0aae2efac37fabf3a930de41
PHP
h3rb/fed
/authors/example2.php
UTF-8
579
2.78125
3
[]
no_license
<?php /* * Example that shows how to process incoming data * and then export it back to fed with multiple options */ $data=base64_decode($INCOMING['data']); $x=$INCOMING['row']; $y=$INCOMING['col']; $results=array(); $results[0]=str_replace( "A", "B", $data ); $results[1]=str_replace( "C", "D", $data ); $option_c...
true
54132d0138a82d9fb825919922e283c31c63e5ef
PHP
Bulveyz/Bulveyz
/vendor/gabordemooij/redbean/RedBeanPHP/Util/Look.php
UTF-8
2,364
3.046875
3
[ "GPL-2.0-only", "BSD-3-Clause", "MIT" ]
permissive
<?php namespace RedBeanPHP\Util; use RedBeanPHP\OODB as OODB; use RedBeanPHP\OODBBean as OODBBean; use RedBeanPHP\ToolBox as ToolBox; use RedBeanPHP\Finder; /** * Look Utility * * The Look Utility class provides an easy way to generate * tables and selects (pulldowns) from the database. * * @file RedBeanPH...
true
a3193cedde3184e074d9331dcb9b71965d520813
PHP
oliverchrist/CodingKataLichtschalter
/tests/LichtschalterTest.php
UTF-8
926
2.53125
3
[]
no_license
<?php require_once dirname(__FILE__) . '/../Lichtschalter.php'; class LichtschalterTest extends PHPUnit_Framework_TestCase { protected $object; protected function setUp() { $this->object = new Lichtschalter; } protected function tearDown() { } public func...
true
95c3488fdab2520107aaccc4c623b428164624c4
PHP
AdrianCabrera/Paypal-PHP-SDK
/paypal/pay.php
UTF-8
1,019
2.609375
3
[]
no_license
<?php use PayPal\Api\Payment; use PayPal\Api\PaymentExecution; use PayPal\Exception\PayPalConnectionException ; require '../app/init.php'; if(isset($_GET['approved'])){ $approved = $_GET['approved'] === 'true'; if ($approved) { if(! isset($_GET['express'])){ $payerId= $_GET['PayerID']; // Get payment...
true
74fff2bffd5a9953af62bd736310f51cec4e6c13
PHP
flexsim/flexnet-operations
/flexnet/LicenseService/Type/FailedOnholdFulfillmentListType.php
UTF-8
1,701
2.6875
3
[ "MIT" ]
permissive
<?php namespace Flexnet\LicenseService\Type; class FailedOnholdFulfillmentListType { /** * @var \Flexnet\LicenseService\Type\FailedOnholdFulfillmentDataType|array<\Flexnet\LicenseService\Type\FailedOnholdFulfillmentDataType> */ private $failedFulfillment; /** * Constructor * * @p...
true
fcf6afdfc24c94926073549bd14a5b1de8c1c6a7
PHP
orlandoreynoso/prototipovw
/libs/fecha01.php
UTF-8
2,109
3.296875
3
[]
no_license
<?PHP function traducefecha($vfechac) { $vfechac = strtotime($vfechac); // convierte la fecha de formato mm/dd/yyyy a marca de tiempo $viasemana=date("w", $vfechac);// optiene el n�mero del dia de la semana. El 0 es domingo switch ($viasemana) { case "0": $viasemana="Domi...
true