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
c1936e171e36a657e0ee1c44787f77c21fb0a5a8
PHP
BrunoInacio45/ClinicaMedica
/ClinicaMedica/php/cadastrofunc.php
UTF-8
2,519
2.609375
3
[]
no_license
<?php include("conexaoMysql.php"); function filtraEntrada($dado){ $dado = trim($dado); $dado = stripslashes($dado); $dado = htmlspecialchars($dado); return $dado; } if($_SERVER["REQUEST_METHOD"] == 'POST'){ $msgErro = ''; $cep = $tip_log = $logradouro = $numero = $complemento = $bairro = $cidade...
true
f4fc5e58dc1fbee9fdad2600d66663e2e03cce34
PHP
qpautrat/api2symfony
/src/SymfonyRoute.php
UTF-8
960
3.09375
3
[ "MIT" ]
permissive
<?php namespace Creads\Api2Symfony; /** * @author Quentin <q.pautrat@creads.org> */ class SymfonyRoute { /** * Path * * @var string */ private $path; /** * Name * * @var string */ private $name; /** * Constructor * * @param string $path ...
true
6bcabc22db3937ac29af5cf2350806757a91f4c6
PHP
jakulov/signup
/src/jakulov/SignUp/Validator/ResetValidator.php
UTF-8
1,697
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yakov * Date: 25.05.16 * Time: 18:32 */ namespace jakulov\SignUp\Validator; use jakulov\SignUp\Service\Language; /** * Class ResetValidator * @package jakulov\SignUp\Validator */ class ResetValidator extends Validator { /** * @param array $rules */ p...
true
865a37ddbb5385788fd97453ae391eab5ef41663
PHP
siropua/bl-engine
/admin/modules/content/articles/catalog.php
UTF-8
2,465
2.765625
3
[]
no_license
<?php /** * Управление каталогом */ class module_articles_catalog extends rMyAdminModule { protected $catalog = NULL; public function __construct($app, $info) { parent::__construct($app, $info); require_once 'core/nestedSetsModel.class.php'; $this->catalog = new ble\nestedSetsModel('articles_catalog'); ...
true
12babaa3649f473f6f3649d2cec4a7a0dfff51a8
PHP
brisum/wordpress-theme-elastic
/module/Product/VisualComponent/SidebarMenu/template.tpl.php
UTF-8
657
2.84375
3
[]
no_license
<?php function elastic_product_category_sidebar_branch(array $list) { $out = ''; foreach ($list as $item) { $out .= sprintf( '<li class="%s"><a href="%s">%s</a>', implode(' ', $item['classes']), $item['href'], $item['title'] ); if (!empt...
true
3f1ab48818303c0bf6e43c16a348a8b1b446652e
PHP
fralvarezz/CollegeManagementWebApp
/Functions/Authentication.php
UTF-8
548
2.640625
3
[]
no_license
<?php /* Contiene la funcion de comprobacion de autenticación Hecho por: xa8678 04/10/2019 */ /* function IsAuthenticated() Hecho por: xa8678 04/10/2019 Esta función valida si existe la variable de session login Si no existe redirige a la pagina de login Si existe comprueba si el usuario tiene permisos para ejecutar l...
true
6857fc3cb9035b4e3dd9aba2935a336f6234b403
PHP
user-47/ploutos-services
/app/RulesEngine/Engines/TransactionFeeEngine.php
UTF-8
949
2.625
3
[]
no_license
<?php namespace App\RulesEngine\Engines; use App\Models\Transaction; use App\RulesEngine\Contexts\TransactionContext; use App\RulesEngine\Rules\MaximumFeeRule; use App\RulesEngine\Rules\PercentageOfValueFeeRule; use uuf6429\Rune\Engine; class TransactionFeeEngine { protected $engine; public function __const...
true
beab2c9ba83fbe78dbb655e536c27389167213bd
PHP
sandipk80/moorevision
/Library/admin/change-password-init.php
UTF-8
1,645
2.546875
3
[]
no_license
<?php require_once(LIB_PATH . 'GlobalManager.php'); $globalManager = GlobalManager::getInstance(); $pageTitle = "Change Password"; //find out logged in user id $adminId = $_SESSION['admin_userid']; $errors = array(); if(isset($_POST['change-password']) && trim($_POST['change-password'])=='Submit') { //first find ...
true
46c4771e7feaac84f030941f9eb329e6971cd782
PHP
Yordhan/LaraCinema
/app/Actors.php
UTF-8
1,174
2.875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: machine * Date: 08/03/16 * Time: 12:03 */ namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Actors extends Model { protected $table ='actors'; /** * Permet de recuperer le nombres d'acteurs * SELECT COUNT(...
true
d6266625b8ef690ddc56ba24ebc9eb4542214cbf
PHP
kzacristo/IFSPFOOT
/IFSPFOOT/_view/viewTime.php
UTF-8
2,456
2.671875
3
[]
no_license
<?php /*Este arquivo serve como um cabeçalho para utilizar o select e verificar como esta o time selecionado no decorrer do campeonato campeonato */ session_start(); //Inclusão do arquivo para conexão com o banco de dados PDO include_once '../_model/_bancodedados/modelBancodeDados.php'; $dono...
true
3921544a9afa2b9f211035366fe750ac8df9612c
PHP
Raastrang/GrievanceRedressal
/showcomplain.php
UTF-8
1,408
2.84375
3
[]
no_license
<html> <head> <title>View Records</title> </head> <body> <h1>View Records</h1> <p><b>View All</b></p> <?php // connect to the database include('../dbconnection2.php'); $result = $mysqli->query("SELECT * FROM studentragistration1 "); // get the records from the database if ($result) { // display records if there are r...
true
d07f4b7dd63bac9752d906589603f4bbfa1bf2b8
PHP
Nimitae/web-ticket
/index.php
UTF-8
13,579
3.109375
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); class DBConfig { public static $DB_CONNSTRING; public static $DB_USERNAME; public static $DB_PASSWORD; public static $DB_ADMIN_EMAIL; public function __construct() { self::$DB_CONNSTRING =...
true
1d1feab25932f9405efd5d66b5499bf959c30381
PHP
SebasRaveg/create-records-db
/person_register-db/document_type/create-document_type.php
UTF-8
1,690
2.9375
3
[]
no_license
<?php //DB Connection include("connection_db.php"); ?> <?php $document_type = $_REQUEST["document_type"]; $description = $_REQUEST["description"]; if(isset($_POST["btn"])){ $VBoton=$_POST["btn"]; if($VBoton=="Save Document"){ //Build SQL Sentence $s...
true
8444c030ae458488defbf8bc72b5b26f85a03d54
PHP
tobelulu/MiniShop-CMS-backend
/application/api/service/DeliveryMessage.php
UTF-8
1,549
2.515625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace app\api\service; use app\api\model\User; use app\lib\exception\order\OrderException; use app\lib\exception\user\UserException; class DeliveryMessage extends WxMessage { /** * 发送发货模板消息 * 如果想添加模板消息,新建一个类,继承WxMessage,请参考本类 */ const DELIVERY_MSG_ID = 'roijKBiz7SaQriuBW54nqIFvi-up...
true
3685bfd813227242f68d8fb859ca45c54d1cfdcc
PHP
spoofghost/phpmulticurl
/src/Thread/CurlThreadError.php
UTF-8
757
3.078125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PhpMultiCurl\Thread; use PhpMultiCurl\Task\BaseTask; final class CurlThreadError { private $errorCode = 0; private $errorString = ''; private $task; public function __construct(int $errorCode, string $errorString, BaseTask $task) { $this->errorCod...
true
b611ef6fb635b061c3608cdd524aac2dc1719b23
PHP
sopheakpsp/backend
/php/basic/foreach.php
UTF-8
517
3.640625
4
[]
no_license
<?php $names = array('mark', 'sopheak', 'jonh'); foreach ($names as $name) { echo $name.'<br>'; } ## Multi dimension array foreach $students = array(array('name'=>'mark','age'=>14,'weight'=>30), array('name'=>'sopheak', 'age'=>27, 'weight'=>55), array('name'=>'jonh', 'age'=>31, 'weight'=>71)); foreac...
true
7b44e7a3aabb57a1a43717906587b5a255696850
PHP
kiitru/tao
/lib/Text/Parser/Parms.php
UTF-8
3,999
2.515625
3
[]
no_license
<?php /// <module name="CMS.Parser" maintainer="gusev@techart.ru" version="0.0.0"> Core::load('Text.Process'); /// <class name="CMS.Parser" stereotype="module"> /// <implements interface="Core.ModuleInterface" /> class Text_Parser_Parms implements Core_ModuleInterface, Text_Process_ProcessInterface, Text_Process_U...
true
5d8ee6f52d1c4858c10baa39ff9c7819c6664549
PHP
ThomasTW935/Class-Scheduling-System
/classes/ProfessorsContr.class.php
UTF-8
924
2.6875
3
[]
no_license
<?php class ProfessorsContr extends Professors { public function CreateProfessors($data) { $this->setProfessors($data['empID'], $data['lastName'], $data['firstName'], $data['middleInitial'], $data['suffix'], $data['type'], $data['deptID'], $data['image']); $this->setProfessorDetails($data['schoolYe...
true
89d48b4d7f47d0cfd09ca84acb4570c2b3dba88f
PHP
AydarAkhmetzyanov/flybilling
/system/core/currency.class.php
UTF-8
3,000
2.75
3
[]
no_license
<?php class Currency { public static function convert($count,$fromC,$toC){ if($fromC == $toC){ return $count; } else { $directRate = self::get(array('fromC' => $fromC, 'toC' => $toC)); if($directRate != false){ return $count*$directRate[0]['rate']; } else { $reverseRate =...
true
3bd5d2dbec587c2a751385b4ede14ad107004a76
PHP
p208p2002/English-learning-web
/app/Services/ImageService.php
UTF-8
808
2.734375
3
[]
no_license
<?php namespace App\Services; use DB; use Exception; class ImageService { public function store($imgFile){ if($imgFile==null) return back(); $destinationPath = public_path().'/img/'; $filename = $imgFile->getclientoriginalname(); $filetype=$imgFile->getMimeType(); ...
true
7b58f906c9423e14d22d266cdea4bdafa1188070
PHP
dickblair/p2
/insurance_form.php
UTF-8
4,642
2.875
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>H. Groan Insurance</title> </head> <body> <style> <?php include 'css/styles.css'; ?></style> <?php //First I am going to declare all ...
true
0e704c2c24e519269cdf9c7e06b20399a988dc28
PHP
agguvenligi/nport
/utility/whois.php
UTF-8
1,630
3.140625
3
[ "Apache-2.0" ]
permissive
<?php require_once 'utility/validator.php'; class Whois{ protected $inetnum; protected $netname; public function Whois(){ $this->inetnum = ""; $this->netname = ""; } public function isEmpty(){ if(empty($this->inetnum) && empty($this->netname)) ...
true
65b2659d4c89540371af6ed77208ac432bcd8b18
PHP
ChechuT10/TFG
/app/include/auxForm.php
UTF-8
662
2.65625
3
[]
no_license
<?php //funciones if(isset($_POST['enviar'])){ $age = $_POST['edad']; $height = $_POST['altura']; $weight = $_POST['peso']; $idealw = $_POST['pesoideal']; $gender = $_POST['gender']; require_once "functions.php"; if(emptyInputAuxForm($age, $height, $weight, $idealw) !== false){ h...
true
3dad379c6957d730b38e369e6b5733378b47f238
PHP
kongyeqing/flintwaterpublic
/cron/lead_area_processing.php
UTF-8
10,184
3.09375
3
[]
no_license
<?php /* * This script divides Flint into areas and counts the number of dangerous tests per area. * Original code created in Java by Patrick Bodell (https://github.com/PatB93). */ @define("__ROOT__", dirname(dirname(__FILE__))); require_once __ROOT__ . "/includes/queries.php"; /* A single test location. */ cla...
true
85ff818fa5bbba62e700411ddbf9247f2d6908d5
PHP
alexandra-fedotova/zf3-sample-app
/module/Zsa/Util/src/Hydrator/PropertyHydrator.php
UTF-8
1,764
2.6875
3
[]
no_license
<?php namespace Zsa\Util\Hydrator; use Zend\Hydrator\ClassMethods; use Zend\Hydrator\Filter\FilterComposite; /** * Class PropertyHydrator * * @package Zsa\Util\Hydrator */ class PropertyHydrator extends ClassMethods { use PropertyFilterTrait; /** * @param object $object * * @return array ...
true
f5ddf4454d7611190d63d375b1b72547e3e7d36d
PHP
kevenndc/krello
/backend/app/Http/Controllers/TaskListController.php
UTF-8
2,450
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\TaskListRequest; use App\Http\Requests\UpdateTasksRequest; use App\Repository\TaskList\Contracts\TaskListRepository; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Http\Response; class TaskListController extends Controller { pri...
true
0a5f6cc1549d26cc973d46780fa472b1bc29f261
PHP
LordGee/VirtualUniversity
/vu_rpg/Assets/Scripts/WebServer/db/db_exe.php
UTF-8
480
2.734375
3
[]
no_license
<?php require_once('db_conn.php'); class DBExecute extends DBConnection { protected $pdo; public function __construct() { parent::__construct(); $this->pdo = $this->GetPdo(); } public function Query($sql) { $statement = $this->pdo->prepare($sql); $statement->execute(); if (substr( $sql, 0, ...
true
5163e7f54468ed24f511df2434a3910368fd05c9
PHP
JavaBetterThanPHP/CVbien
/src/Entity/DTO/ProgLanguageDTO.php
UTF-8
656
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: OSBKONE * Date: 17/02/2019 * Time: 20:06 */ namespace App\Entity\DTO; class ProgLanguageDTO { private $value; private $data; /** * @return mixed */ public function getValue() { return $this->value; } /** * @param mixed...
true
9b4902e349dca39c41dcd7a30c9b229d53562f70
PHP
linran2017/zuoye
/7-10/jintian/index.php
UTF-8
7,255
3.34375
3
[ "Apache-2.0" ]
permissive
<?php //定义文本类型是text/html,编码是utf-8,防止汉字在页面中乱码 header('content-type:text/html;charset=utf-8'); //创建一个可以单文件上传也可以多文件上传的类 class Upload{ //在类里创建上传文件的函数 public function up(){ //定义一个变量,如果提交方式是post,就是true,否则就是false define('IS_POST',$_SERVER['REQUEST_METHOD']=='POST'?true:false); //设置默认时区为东八区 ...
true
26067dbff356adc5004f7667edb1ec6b6d967299
PHP
yii2s/yii2_erp
/vendor/yii2tech/ar-softdelete/tests/data/Item.php
UTF-8
1,248
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace yii2tech\tests\unit\ar\softdelete\data; use yii\db\ActiveRecord; use yii2tech\ar\softdelete\SoftDeleteBehavior; /** * @property integer $id * @property string $name * @property boolean $isDeleted * @property integer $deletedAt */ class Item extends ActiveRecord { /** * @var array config...
true
233241e8e999412875de8b63dde5b38930cd5a5c
PHP
Faulo/slothsoft-farah
/src/Exception/HttpStatusException.php
UTF-8
574
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Slothsoft\Farah\Exception; class HttpStatusException extends \RuntimeException { private $headers; public function __construct(string $message = '', int $code = 0, \Throwable $previous = null, array $headers = []) { parent::__construct($message, $code, $prev...
true
6e37a773ea09692bb31fc08f3a10f0d630602d55
PHP
nemodaattila/dpdtest
/test/RectangleAreaModelTest.php
UTF-8
1,358
2.984375
3
[]
no_license
<?php namespace test; use model\RectangleArea; use model\Coords; use PHPUnit\Framework\TestCase; class RectangleAreaModelTest extends TestCase { private RectangleArea $rectArea; protected function setUp(): void { $a = new Coords(1.2345, 2.23456); $b = new Coords(4.4567, 6....
true
1f6e52a24e9f3cda32a0e7bf3e72bf6dbab22eb4
PHP
joefoxdevelopment/alphabetical-word-counter
/module/AlphabeticalWordCounter/src/Console/AbstractCommand.php
UTF-8
339
2.8125
3
[]
no_license
<?php namespace AlphabeticalWordCounter\Console; use Assert\Assert; abstract class AbstractCommand { protected $name = null; public abstract function execute(): int; public function getName(): string { Assert::that($this->name) ->string() ->notEmpty(); return $t...
true
266ccf044fcdff0d273af1abd0bf2a9b80221650
PHP
annamuslimah/Anna12161508
/Stripegateway.php
UTF-8
1,863
2.578125
3
[]
no_license
<?php include("./vendor/autoload.php"); class Stripegateway{ public function __construct(){ $stripe = array( "secret_key" => "sk_test_8dnb2TVoeEEC8l2WpHc1nyEP", "public_key" => "pk_test_fwRPYmzde72TTg2Q0P1cCf6G"); \Stripe\Stripe::setApiKey($stripe["secret_key"]); } public function checkout($data){ $me...
true
bf51aabbded3fe3af5c591625969c9c14bec2898
PHP
pabhoz/FoxFramework
/services/libs/parse-php-sdk/src/Parse/ParseSessionStorage.php
UTF-8
1,453
3.15625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
<?php namespace Parse; /** * ParseSessionStorage - Uses PHP session support for persistent storage. * * @author Fosco Marotto <fjm@fb.com> */ class ParseSessionStorage implements ParseStorageInterface { /** * Parse will store its values in a specific key. * * @var string */ private $st...
true
cbf97146a95088fd0a78026981f8f011829b7db2
PHP
xphere-forks/Finite
/src/Finite/Event/TransitionEvent.php
UTF-8
1,053
2.921875
3
[ "MIT" ]
permissive
<?php namespace Finite\Event; use Finite\StateMachine\ListenableStateMachine; use Finite\Transition\TransitionInterface; /** * The event object which is thrown on transitions actions * * @author Yohan Giarelli <yohan@frequence-web.fr> */ class TransitionEvent extends StateMachineEvent { /** * @var Trans...
true
7d0cd55a9b536dbc03d6d596c7051c0776aa5c8a
PHP
NextBad/iqcafe
/migrations/m180512_132650_create_order_product_table.php
UTF-8
982
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `order_product`. */ class m180512_132650_create_order_product_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('order_product', [ 'id' => $this->primaryKey(), ...
true
aab0b9fbd06baaa44325351fd00f073267961c03
PHP
gerardo2904/jedda-products
/database/seeds/RollProductTableSeeder.php
UTF-8
932
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\RollProduct; class RollProductTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // 1->General 2->Materia prima 3->Core 4->Leader 5->Sticker RollProduct::create([ ...
true
3cb8b860366aefaf317a36df78bfdff0bd5a04bf
PHP
githubrazvanvlad1982/hero
/code/hero/Domain/CharacterDefendInterface.php
UTF-8
142
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace Hero\Domain; interface CharacterDefendInterface { public function apply(Fight $fight): void; }
true
e00ca2e200ab2ee3b8465a03dd875764f2120545
PHP
panlizhangcomeon/LedProject
/app/common.php
UTF-8
7,663
2.6875
3
[ "Apache-2.0" ]
permissive
<?php // 应用公共文件 /** * @desc 获得 最近七日的 pv,uv,ip * @return array */ function getPvUvIp() { $end = strtotime(date('Y-m-d')); $start = strtotime(date('Y-m-d', time()-86400*6)); for ($i = $end; $i >= $start ; $i-=86400) { $day = date('Y-m-d', $i); $data[] = [ 'day' => $day, ...
true
9e07160782eadcf52cefa04770ae8330566782e1
PHP
popina1994/World-traveler
/source/application/models/entities/Osvajanje.php
UTF-8
1,887
2.8125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use Doctrine\ORM\Mapping as ORM; /** * VrediPutnika * * @author Dragana Milovancevic 2013/0048 * * @ORM\Table(name="osvajanje") * @ORM\Entity */ class Osvajanje { /** * @var \Igra * * @ORM\Id * @ORM\GeneratedValue(strategy="NONE") * @ORM\ManyToOne(targetEntity="Igra") * @ORM\JoinColumns({ ...
true
99970aed96dcb601382357780f97af0b127e1292
PHP
princephpdev/tamtamcrm
/app/Exceptions/CouldNotAddToAccountDataSelection.php
UTF-8
277
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Exceptions; class CouldNotAddToAccountDataSelection extends \Exception { public static function fileAlreadyAddedToAccountDataSelection(string $path): self { return new static("Could not add `{$path}` because it already exists."); } }
true
8d0b9a97d8f29ed181e2edc6361410e7f3ec2d2b
PHP
saugatnp/website
/php/insertuser.php
UTF-8
887
2.734375
3
[]
no_license
<?php // include database connection file require_once "functions.php"; // Object creation $insertdata=new DB_con(); if(isset($_POST['insertbutton'])) { // Posted Values $fname=$_POST['firstName']; $lname=$_POST['lastName']; $email=$_POST['email']; $phoneNo=$_POST['phoneNo']; $address=$_POST['address'];...
true
a1141b485f58480d888f3b837bb0a6926c36b20a
PHP
adamfranco/segue-1.x
/export/siteExists.php
UTF-8
1,211
2.578125
3
[]
no_license
<?php /** * Answer a text file with 'true' or 'false' if a site exists for the parameters sent. * * * @since 3/13/08 * * @copyright Copyright &copy; 2007, Middlebury College * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) * * @version $Id$ */ require_once(dirname(__FILE__)....
true
93e35fd97f5b69298218d2979381295eec0f9f8a
PHP
rpc1910/LaravelDelivery
/database/factories/ModelFactory.php
UTF-8
1,774
2.578125
3
[]
no_license
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
55e60305f065a3f7f7d3728847f437d80e9500c7
PHP
Fantastimate/LADD-Will-Call-System
/door2/application/controls/Letter.php
UTF-8
364
2.828125
3
[]
no_license
<?php class Letter { private $letter; public function __construct($letter) { $this->letter = $letter; } public function __toString() { $source = LADDDoor::application_root().'/application/controls/Letter.html'; $data = array('letter'=>$this->letter); return AMDisplayObject::renderDisplayObjectW...
true
9b895a47de2dfa33d8b98c16b22f1700643f8d31
PHP
reuvenc770/mt2-demo
/app/Services/PostingStrategies/AffiliateRoiPostingStrategy.php
UTF-8
720
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services\PostingStrategies; use App\Services\Interfaces\IPostingStrategy; use App\DataModels\ProcessingRecord; class AffiliateRoiPostingStrategy implements IPostingStrategy { public function prepareForPosting(ProcessingRecord $record, $targetId) { // The way the Campaigner API wo...
true
f91a42bb65803a8cab63a0eed2caf8efa7196472
PHP
kesarawimal/BlogMasters
/admin/add_post.php
UTF-8
8,867
2.609375
3
[ "MIT" ]
permissive
<?php include 'includes/header.php'; ?> <div id="wrapper"> <!-- Navigation --> <?php include 'includes/navigation.php'; ?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <d...
true
5591645b7a8a614fd51ef1f0a83fb495868c9925
PHP
hrabosh/geis-group-cz-client
/src/DataContract/Manager/ArrayOfRouteTableType.php
UTF-8
1,666
2.78125
3
[ "MIT" ]
permissive
<?php namespace GoetasWebservices\Client\GeisGroupCz\DataContract\Manager; /** * Class representing ArrayOfRouteTableType * * * XSD Type: ArrayOfRouteTable */ class ArrayOfRouteTableType { /** * @property \GoetasWebservices\Client\GeisGroupCz\DataContract\Manager\RouteTableType[] $routeTable */ ...
true
4e2e66fe65e72823ac3e4147e456ff437dc65c34
PHP
abricos/abricos-mod-catalog
/src/includes/classes.php
UTF-8
33,459
2.578125
3
[ "MIT" ]
permissive
<?php /** * @package Abricos * @subpackage Catalog * @copyright 2012-2016 Alexander Kuzmin * @license http://opensource.org/licenses/mit-license.php MIT License * @author Alexander Kuzmin <roosit@abricos.org> */ require_once 'dbquery.php'; /** * Раздел каталога */ class Catalog extends CatalogItem { /** ...
true
4fa2c521ac63e0b7aec45cb0897cd31d897fb079
PHP
thonixon321/tweetyLaravelFullProject
/app/Http/Controllers/ProfilesController.php
UTF-8
1,770
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use App\User; class ProfilesController extends Controller { public function show (User $user) { return view('profiles.show', [ 'user' => $user, 'tweets' => $user->tweets()->with...
true
0f7f468ac917c4914c7c4753240125c607b5db2e
PHP
Plisio/woocommerce-plugin
/includes/PlisioClient.php
UTF-8
4,958
2.71875
3
[ "MIT" ]
permissive
<?php class PlisioClient { protected $secretKey = ''; public $apiEndPoint = 'https://plisio.net/api/v1'; public function __construct($secretKey) { $this->secretKey = $secretKey; } protected function getApiUrl($commandUrl) { return trim($this->apiEndPoint, '/') . '/' . $co...
true
b43b4582aa29e32d4a9ecb6db225c3d44b09aa8f
PHP
aliakseiChynayeu/login
/registration.php
UTF-8
6,167
2.625
3
[]
no_license
<?php include("header.php"); include("logged_in_check.php"); $validImageTypes = array("image/png", "image/gif", "image/jpg"); if(isset($_POST['submit'])) { $imageType = $_FILES["image"]["type"]; $imageName = $_FILES["image"]["name"]; $imageSize = $_FILES["image"]["size"]; #check image type if (!in_array($image...
true
7d5a2d60ea5232420e1320b8ada65dd7d9c1d60e
PHP
rizva/EDiary
/chat/rizvaerrorhandler.php
UTF-8
383
2.640625
3
[]
no_license
<?php set_error_handler('rizvaErrorHandler', E_ALL); function rizvaErrorHandler($number,$text,$theFile,$theLine){ if(ob_get_length()) ob_clean(); $errorMessage = 'Error: ' .$number. chr(10). 'Message: ' .$text. chr(10). 'File: ' .$theFile. chr(10). ...
true
067239fad39391516c3ac9bc083bc81d8c30f20c
PHP
dfimiarz/CoreScheduler
/ccny/scidiv/cores/ctrl/LoginCtrl.php
UTF-8
4,400
2.65625
3
[]
no_license
<?php /* * The MIT License * * Copyright 2015 Daniel F. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
true
3c7e346a19b1f9fc35fe9c836ec8edd2e077dcf3
PHP
rkulesza9/MastersDatabaseCoursework
/CPS5740/p2/phase2_cus_view.php
UTF-8
1,484
2.734375
3
[]
no_license
<?php include 'dbconfig.php'; //test if employee/manager is logged in if(employee_or_manager_logged_in()){ $conn = connect_to_db("2019F_kuleszar"); $sql = "select * from CUSTOMER"; $stmt = $conn->prepare($sql); $stmt->bind_result($customer_id,$login_id,$password,$first_name,$last_name,$tel,$addre...
true
b22319740ef7c7572accca39677dbebc99f20e57
PHP
Paresh98000/phprtcampheroku
/config.php
UTF-8
1,489
2.625
3
[]
no_license
<?php $host = "localhost"; $database = "comicsub"; $username = "Paresh"; $password = "paresh@123"; $con = mysqli_connect($host, $username, $password, $database); if(!$con) echo "Something Went Wrong... Error Code DB001"; function execute($query){ global $con;...
true
b4ef36b93985a3805762502507ea20928e17b371
PHP
bjuppa/fluent-form
/src/Support/FormElementTrait.php
UTF-8
4,114
2.640625
3
[]
no_license
<?php namespace FewAgency\FluentForm\Support; use FewAgency\FluentForm\FieldsetElement; use FewAgency\FluentForm\FluentForm; use FewAgency\FluentForm\AbstractControlBlockContainer; trait FormElementTrait { /** * Get the form element for the element * @return FluentForm|null */ public function g...
true
ac36ced8447de49b441e5cb664eb715483e3a697
PHP
sergiygladkyy/OEF
/Release/Last/AppliedSolutions/AWPAnalytics/Modules/data_processors/NavCsvImport/module.php
UTF-8
6,768
2.625
3
[]
no_license
<?php /** * Data import * * ftp://user:password@example.com/somefile.txt * * @param object $event * @return void */ function onImport($event) { extract($event['headline'], EXTR_OVERWRITE); $filepath = 'ftp://'.$UserName.':'.$Password.'@'.$Server.$FileName; $handle = fopen($filepath, "r"); ...
true
72c79369edfe752059fd9be385c0d37ebd2cea33
PHP
sonirico/jlpacientes
/application/models/Nutrition.php
UTF-8
1,101
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access is allowed'); class Nutrition extends CI_Model { private $table_name = "nutrition"; public function __construct() { parent::__construct(); } public function insert () { $data = $this->input->post(); $this->db...
true
9b88fda77134a8e1a6d67ef467d959086a589cad
PHP
gautiermaillen/cag
/m/ConnexionAdapter.php
UTF-8
1,780
3.015625
3
[]
no_license
<?php require_once __DIR__."/Tshirt.php"; class ConnexionAdapter { private $verifierIdentite = []; private $pdo; public function __construct(PDO $pdo) { $this->pdo = $pdo; } public function verifierIdentite($login){ /* sélectionner tous l...
true
9534fca60454b834a8b6ffaa0c8f362ea4d2e767
PHP
mingming2527/helloworld
/index.php
UTF-8
1,629
3.671875
4
[]
no_license
<?php //二分查找 function twoFind($array, $target) { if(empty($array)){ return false; } $length = count($array); $left = 0; $right = $length - 1; while ($left <= $right){ $middle = ceil($left + $right) / 2; if($array[$middle] == $target){ return $middle; } ...
true
141f2b24c9bcc3f11d3e3fa0cd7bdbd7785c2edc
PHP
lourencoba/selecao-phpdev2017-2
/api/endpoints/animalvacinas.php
UTF-8
3,154
2.53125
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require '_class/animalVacinaDao.php'; $app->get('/animalvacinas/{anv_int_codigo}/{apikey}', function (Request $request, Response $response) { $anv_int_codigo = $request->getAttribute('anv_int_codig...
true
e5ecf6fc27f9320d8c099f1d346527569224ad59
PHP
phLeung/Invasive-Species-Prototype
/Invasive Species/game/savedGameData.php
UTF-8
1,576
2.90625
3
[]
no_license
<?php header("Content-Type: application/json; charset=UTF-8"); $obj = json_decode($_POST["Obj"], false);//the player object info should be sent as a json object $diceValue = $obj->Dice; $scoreValue = $obj->Score; $currentSpace = $obj->Space; $playerNumber = $obj->PlayerNumber; $cardID = $obj->C...
true
c6f702c81c96396fd12925d90a9b4dab2a007bf2
PHP
torresrogelio/VINCULA
/app/controllers/ExchangesController.php
UTF-8
2,568
2.859375
3
[ "MIT" ]
permissive
<?php class ExchangesController extends BaseController { /** * Exchange Repository * * @var Exchange */ protected $exchange; public function __construct(Exchange $exchange) { $this->exchange = $exchange; } /** * Display a listing of the resource. * * @return Response */ public function inde...
true
d216cb5378eecde918edcb1cfc8ed29deb1baf42
PHP
htobon/tso-cotizador
/pages/sections/admin/csvupload.php
UTF-8
1,425
2.671875
3
[]
no_license
<?php require_once __DIR__ . "/../../../config/smarty.php"; require_once __DIR__ . "/../../../config/autoloader.php"; use db\ClienteDB; $valid_exts = array('csv'); // valid extensions $path = __DIR__ . "/../../../tmp/"; // upload directory if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!empty($_FILES['file']...
true
cfaa2c975b6469fb67ee51c671a6cc3a16172981
PHP
matasarei/HCPHP
/application/core/View.php
UTF-8
1,203
2.734375
3
[]
no_license
<?php namespace core; use InvalidArgumentException; /** * @package hcphp * @subpackage core * @copyright Yevhen Matasar <matasar.ei@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class View extends Template { protected $layout; public function __construct(strin...
true
fbf37f891e3e2a4a7381934488c635b165782e9f
PHP
morooj1/ConnectToDB
/view.php
UTF-8
611
2.609375
3
[]
no_license
<?php //print the last record in table REMOTE // Create connection $conn1 = new mysqli("localhost","root","","control"); $sql1 = mysqli_query($conn1, "select * from remote order by ID desc limit 1"); $print_data= mysqli_fetch_row($sql1); if($print_data[1]=="Stop"){ echo $print_data[1]; } ...
true
e41ef45cacc35ecadce2643920ddf1eea75754e8
PHP
Marajapov/ktrk
/public/iplan/2excel.php
UTF-8
1,799
2.734375
3
[]
no_license
<?php include_once 'usercontrol.php'; $ch=0; $dt = 0; if (isset($_GET['dt'])) $dt = (int)getget('dt'); if (isset($_GET['ch'])) $ch = getget('ch'); if ($ch * $dt == 0) die(); $auth_user_id = $_SESSION["user_id"]; $auth_user = $db->select_one("users", "id='".$auth_user_id."'"); if ($auth_user['status'] < 5 ) { $ch_a...
true
e570ab2d535cf837969b1e66bf6ef100ad8765dc
PHP
ranjith-acharya/CMS
/app/Http/Controllers/Sem2/StudentAdminSem2Ext.php
UTF-8
6,400
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Sem2; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Notifications\ResultSem2; use App\Student; use App\Sem2External; class StudentAdminSem2Ext extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http...
true
c62943368456244a7821d63fc676b69e393821cf
PHP
Metrol/dbsql
/src/DBSql/OutputTrait.php
UTF-8
845
3.078125
3
[ "MIT" ]
permissive
<?php /** * @author "Michael Collette" <metrol@metrol.net> * @package Metrol/DBSql * @version 1.0 * @copyright (c) 2016, Michael Collette */ namespace Metrol\DBSql; /** * Used to call the buildSQL() method, return that value, and store the * completed SQL for diagnostic purposes. * */ trai...
true
cfd0a4ed5a40ef2f16407756d7a64a7f8ae6caa6
PHP
quantum-php-framework/quantum-master
/quantum/apps/shared/middleware/PageCacheMiddleware.php
UTF-8
4,331
2.578125
3
[]
no_license
<?php use Quantum\Http\HeaderFactory; use Quantum\PageCache; /** * Class PageCacheMiddleware */ class PageCacheMiddleware extends \Quantum\Middleware\Foundation\SystemMiddleware { /** * @var */ private $uri; /** * @param \Quantum\Request $request * @param Closure $closure * @re...
true
2c0a6f2a48a68c303dfdc3ad4060f3d664355836
PHP
benanci/MiRepo
/login.php
UTF-8
694
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Benancio * Date: 19/06/2018 * Time: 04:57 PM */ session_start(); // Obtengo los datos cargados en el formulario de login. $email = $_POST['email']; $password = $_POST['password']; // Esto se puede remplazar por un usuario real guardado en la base de datos. if($email == 'b...
true
868e99071bfb0dfd9e4c25efdcfaec8aed0d613b
PHP
fpambid/Board_Exercises
/lib/pagination.php
UTF-8
2,723
3.109375
3
[]
no_license
<?php class Pagination { const MAX_ITEM = 5; const PAGE_LINKS = 4; const NEXT_PAGE = 1; const PREVIOUS_PAGE = 1; public static $last; public static $pagenum = 1; public static $limit; public static $pagination = array(); /** *Get last page *@param $row_length, */ p...
true
e5f57a12c59e3bcc0a2b296811e62c610e0a1f2f
PHP
gungorbudak/exsurv
/app/app.php
UTF-8
12,709
2.859375
3
[]
no_license
<?php /* ExSurv backend PHP application Author: Gungor Budak, gbudak@iupui.edu */ require_once 'config.php'; // this PHP file has an array like following // kept separate for security reasons /* <?php $config = array( 'host' => 'host', 'port' => port...
true
ab0fc42285961e87a4a2d5fd868c7590ab947a77
PHP
Spe11/yii2blog
/models/Auth.php
UTF-8
1,214
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use app\models\User; use yii\base\Model; class Auth extends Model { public $username; public $password; private $user; public function rules() { return [ [['username', 'password'], 'required'], ['password', 'validateP...
true
851d71f4731fe8a475307791b317470413ee7002
PHP
cultuurnet/uitpas-beheer-silex
/src/PassHolder/Search/Query.php
UTF-8
5,768
2.5625
3
[]
no_license
<?php namespace CultuurNet\UiTPASBeheer\PassHolder\Search; use CultuurNet\UiTPASBeheer\Membership\Association\Properties\AssociationId; use CultuurNet\UiTPASBeheer\Membership\MembershipStatus; use CultuurNet\UiTPASBeheer\UiTPAS\UiTPASNumber; use CultuurNet\UiTPASBeheer\UiTPAS\UiTPASNumberCollection; use ValueObjects\...
true
35365492eed83b04b7e5dcd4b1ef44f854f47362
PHP
FelhiAbdelhafidh/agence-medicale
/essai1/models/q_s_nModel.php
UTF-8
789
2.65625
3
[]
no_license
<?php include_once 'models/marque.php'; include_once "../config/includes.php"; class q_s_nModel { public function __construct() { } public function getQ_S_N($presentation, $historique, $savoirFaire) { global $pdo; $query = $pdo->prepare("SELECT * FROM q_s_n "); $query-...
true
cace8467912533d073df6fcc01f3635ab950ebe1
PHP
noamarchante/University_Management
/ET2/Controller/PROF_ESPACIO_Controller.php
UTF-8
7,493
2.8125
3
[]
no_license
<?php /* Archivo php Nombre: PROF_ESPACIO_Controller.php Autor: Noa López Marchante Fecha de creación: 08/10/2019 Función: Script que recibe datos introducidos por el usuario a través de una vista (asociada a una acción). Según la acción a realizar seleccionada (ADD, EDIT, SHOWCURRENT, DELETE, DEFAULT), el cont...
true
fe4e82c124b1429fdd48277252022c35e4960254
PHP
JeffVandenberg/ragnarok
/src/Event/CharacterSkillsUpdate.php
UTF-8
1,863
2.609375
3
[]
no_license
<?php namespace App\Event; use App\Model\Entity\Configuration; use Cake\Event\Event; use Cake\Event\EventListenerInterface; use Cake\ORM\TableRegistry; use Exception; /** * Created by PhpStorm. * User: JeffVandenberg * Date: 4/29/2016 * Time: 8:56 AM */ class CharacterSkillsUpdate implements EventListenerInterf...
true
df6c3805421f2b88ba22a561757f560c1af52234
PHP
Leakune/Call-Out-Duty
/WEB/ges-prestataires/search-prestataires.php
UTF-8
2,477
2.625
3
[]
no_license
<?php require_once '../functions.php'; $connect = connectDb(); $search = htmlspecialchars($_GET['search']); $data = $connect->query("SELECT *, users.name nameUser, users.id userId FROM users, address, user_has_address, address_has_city, city WHERE users.id = user_has_address.user_id AND ...
true
bb77af23497e4c93810616dc402674609d4dc69b
PHP
piotrstachowiak/add2
/src/Model/ProfilesModel.php
UTF-8
1,802
2.59375
3
[]
no_license
<?php namespace Model; use Doctrine\DBAL\DBALException; use Silex\Application; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; class ProfilesModel { protected $db; public function __construct(Application $app) ...
true
883eb35662e656bfc726f2e6bbffa40e183610b2
PHP
louisgailleton/cer
/src/Entity/StatutSocial.php
UTF-8
720
2.53125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\StatutSocialRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=StatutSocialRepository::class) */ class StatutSocial { /** * @ORM\Id * @ORM\Column(type="string", length=20) */ private $libelleStatutSocial; public...
true
dd0195b219d62400120fc5026eef5c274330c187
PHP
kpadma/Docathon
/code/9.php
UTF-8
366
2.9375
3
[]
no_license
<?php #calculate 60 days in the future: seconds * minutes * hours * days + current time $itm=60*60*24*60+time(); #create cookie setcookie('last_visit',date("G:i -m/d/y"),$itm); #check if cookie exists if(isset($_COOKIE['last_visit'])) { $visit=$_COOKIE['last_visit']; echo "Your last visit was- " .$visit; } else #no coo...
true
10ef477e716ffd3b01d940d39ca0d4da798bfeeb
PHP
Henry-NS-2021/BE_21_PHP_Day-3_Henry-Elnaz
/Henry/challenge/db_connect.php
UTF-8
1,765
2.90625
3
[]
no_license
<?php function formatted_dump($var){ echo "<pre>"; var_dump($var); echo "</pre>"; } $host_name = "localhost"; $user_name = "root"; $password = ""; $db_name = "restaurant"; $connect = new mysqli($host_name, $user_name, $password, $db_name); if(!$connect){ ...
true
c71a44898aba5f2251a14cb50571b4bc48dcceda
PHP
debarunmukherjee/FinRant
/app/Models/PlanActivity.php
UTF-8
1,861
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class PlanActivity extends Model { use HasFactory; protected $fillable = [ 'plan_id', 'batch_id', ...
true
5f565f9fd6efbe88045fe8bde2727bd5b22b5020
PHP
diegovinie/utils
/src/RandomFakeIdentity.php
UTF-8
6,405
3.265625
3
[ "MIT" ]
permissive
<?php /** * @author Diego Viniegra * @license MIT */ namespace Dv\Utils; /** * Genera una identidad aleatoria basada en los estándares * venezolanos */ class RandomFakeIdentity { /** * Construye una nueva instancia * * @param string $gender el género ('m'|'f') */ public function __co...
true
66c86a14c5211b1e2c6ed537a2e1cec1349d4570
PHP
amstv/phpdozeroaoprofissional
/controleusuarios/adicionar.php
UTF-8
1,674
2.875
3
[]
no_license
<?php require_once 'config.php'; if (isset($_POST['nome']) && !empty($_POST['nome'])) { $nome = addslashes($_POST['nome']); $email = addslashes($_POST['email']); $senha = addslashes($_POST['senha']); $sql = "INSERT INTO usuarios (nome, email, senha) values ('$nome', '$email', md5('$senha'))"...
true
0d2ac7e9baf9b8555de8609cfd8545f0f53aad57
PHP
lpc3914zxw/wpd
/system/model/dbPack/_mysql.class.php
UTF-8
7,087
2.75
3
[]
no_license
<?php /** * MYSQL * * @package db class */ require_once '_db.class.php'; class _mysql extends _db { public $options = array (); private $querynum = 0; private $link; private $query; private $histories; private $goneaway = 5; private $reconn_num = 0; ...
true
191d53807dc20785f8d19dcca9a900fdabdaaec5
PHP
vegs/monsterfling_website
/php/fetchComments.php
UTF-8
693
2.515625
3
[]
no_license
<?php $mysql_host = "mysql16.000webhost.com"; $mysql_database = "a6752197_db"; $mysql_user = "a6752197_monster"; $mysql_password = "brEWa-r3thEkU*R"; // Create connection $conn = new mysqli($mysql_host, $mysql_user, $mysql_password, $mysql_database); // Check connection if ($conn->connect_error) { die("Connection...
true
adf740391d4df57b6a45d3c21f4098b9abf653fb
PHP
Thinlt/Demosys
/app/SettingObject.php
UTF-8
6,416
3.078125
3
[]
no_license
<?php /*Read and build configurations from file setting.ini or get default value*/ namespace App; use Composer\Semver\Comparator; class SettingObject { protected $_settings = array(); protected $_handle; //file setting handle protected $_file; //the file saved config public function __construct(){ $this->_f...
true
519839d814c13d47a8b30b2da6742a9b401a0c70
PHP
dingzheng12A/code-deploy
/libs/WsHttp.php
UTF-8
432
2.609375
3
[]
no_license
<?php /** * remark * User: myf * Date: 2017/11/8 * Time: 20:05 */ namespace Myf\Libs; class WsHttp { /** * webSocket的http服务 * @param string $uri 地址如:test/test * @param array $param * @return string */ public static function get($uri,$param=[]){ $host = config("vnnox.wsH...
true
d48a2b7a87e7d1bf119b81834fccf100cb7d442b
PHP
BuridansAss/sorcerer
/app/src/Mechanics/Arena/Model/Arena.php
UTF-8
468
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\src\Mechanics\Arena\Model; use App\src\Interfaces\User; use Sorcerer\Interfaces\Room; class Arena implements Room { /** * @param User $user * @return mixed */ public function letIn(User $user): void { // TODO: Implement letIn() method. } /** * @...
true
455cdc6ba90925f678c21b85c7abfd9cfe9058c9
PHP
SAMTHP/concession
/morpion_game/controller/GameController.php
UTF-8
9,803
3.0625
3
[]
no_license
<?php class GameController { // Properties private $tour; private const ALPHA = ["A","B","C","D","E","F","G","H","I"]; public const PION = [ "player_1" => "X", "player_2" => "O" ]; private $tab_gamer; private $tab_score; private $choice_1; private $choice_2; private $flag_player1; private $flag_player2;...
true
e70f3b8a2692d8415a97603f7342bf08a05b286b
PHP
vidurac/simplifya
/database/seeds/KeywordsTableSeeder.php
UTF-8
778
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class KeywordsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $audit =[ [ 'id'=> '1', 'name'=> 'keyword one', ], [ ...
true
025d0d45f23d57d0e4cbc79c6d8af03c68a9b9d4
PHP
Max201/nanocore
/engine/Module/Admin/SMP/Driver.php
UTF-8
2,047
2.71875
3
[]
no_license
<?php /** * @Product: NanoCore * @Author: Maxim P. */ namespace Module\Admin\SMP; use Service\SocialMedia\GA; use Service\SocialMedia\Google; use Service\SocialMedia\SocialMedia; use Service\SocialMedia\Twitter; use Service\SocialMedia\Vkontakte; use System\Engine\NCService; use System\Environment\Env; /** * C...
true
b8b2d0062f464f8857cc9811ea5d721dc7f2e7e5
PHP
tecumsehmaverick/ION-Lazer-Database
/Lazer/Classes/Helpers/Data.php
UTF-8
515
2.65625
3
[ "MIT" ]
permissive
<?php namespace Lazer\Classes\Helpers; if( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Data managing class * * @category Helpers * @author Grzegorz Kuźnik * @copyright (c) 2013, Grzegorz Kuźnik * @license http://opensource.org/licenses/MIT The MIT License */ ...
true
a25dcd05a942a4611f806a57d302351f265b3137
PHP
masterit92/mobile
/application/backend/models/model_role.php
UTF-8
1,378
2.65625
3
[]
no_license
<?php class Model_role extends CI_Model { protected $table_name = 'role'; public function __construct() { parent::__construct(); } public function all_role($isStatus = FALSE) { if ($isStatus) { $this->db->where('status', 1); } $query = $this->db->get($this->table_name); return $query->result_ar...
true
46939fd08fdd51c973477af02203e2a86e63f82f
PHP
minusZeroo/inClass
/databaseConnection.php
UTF-8
749
2.8125
3
[]
no_license
<?php $dbHost = "localhost"; $dbUsername = "root"; $dbPassword = "pathfinder"; $conn = new mysqli($dbHost, $dbUsername, $dbPassword, "iLikePHP"); if ($conn === false) { die("could not connect to the database"); } $person_name = $conn->real_escape_string($_POST['person_name']); ...
true
0ba3c31d46dae77ef2ba5c293b7c9f8847fe7120
PHP
cmdiego/Small_Project
/LAMPAPI/Login.php
UTF-8
1,626
2.84375
3
[]
no_license
<?php $inData = getRequestInfo(); $id = 0; $conn = new mysqli("localhost", "iamgroup_admin", "Freeponies28!", "iamgroup_main"); // Checking conenction if ($conn->connect_error) { // echo "Connection failed!"; returnWithError( $conn->connect_error ); } else { echo "Connection established!"; // Cre...
true