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
2f4ac7ce7e8606f7e1d44b04ed6d01d31a694449
PHP
nstaff/SmartHomePi
/lib/support/factories/EcobeeFactory.php
UTF-8
3,581
2.765625
3
[]
no_license
<?php /** * @author Nick Staffend <nicholas.a.staffend at gmail.com> */ require_once __DIR__ . '/../../DeviceType.php'; require_once __DIR__ . '/../../Commands.php'; abstract class EcobeeFactory{ const NAME = "NAME"; const API_KEY = "API_KEY"; const AUTHORIZATION_CODE = "AUTH_CODE"; const ACCESS_TOKE...
true
b194030744d3f38b50115eac4050ab1d58c46029
PHP
botyk/namaz-time
/namazTime.php
UTF-8
16,832
2.953125
3
[]
no_license
<?php /* Время намаза (muftyat.kz) https://namaz.muftyat.kz/kk/namaz/api/ Автор https://batas.kz/development ----------------------------------------- require 'namazTime.php'; $lat = '43.238293'; // Широта $lon = '76.945465'; // Долгота $nt = new namazTime($lat, $lon); // На сегодня $data = $nt->getToday(); //...
true
b6a84ff6bb0bf92a382d680845bff652c9fd2c71
PHP
Esquirell/-Esquirell-Hillel-homework-10
/app/Http/Repositories/ProfitRepositoryInterface.php
UTF-8
319
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Repositories; use App\Models\Profit; interface ProfitRepositoryInterface { public function findById(int $id); public function save(Profit $profit, array $data); public function findByCategory($name); public function addProfit($data); public function deleteById($id); }
true
bd69e5bf124e5468007ea9931f64d96e6898fe5c
PHP
lienero/php
/0818/comment/like_count.php
UTF-8
1,819
2.578125
3
[ "PHP-3.01" ]
permissive
<?php //$_SERVER['DOCUMENT_ROOT'] = 현재 사이트가 위치한 서버상의 위치 include $_SERVER['DOCUMENT_ROOT']."/back/db/db.php"; date_default_timezone_set('Asia/Seoul'); // 세션에서 아이디를 가져와서 삽입 $userid = $_SESSION['userid']; //변수에 comment_write_read.php에서 GET으로 가져온 ID 값을 저장한다. $comment_id = $_GET['comment_id']; //변수에 comment_write_read.php...
true
1b3ae78ac41571cfb8f46ce8ec1c0b3ad9ee3041
PHP
robinsonchtopher/MCHD
/delet_program.php
UTF-8
1,370
2.546875
3
[]
no_license
<?php include'header_adm.php'; // delete the program from a database // the program has to be deleted from all the tables ?> <head> <link rel="stylesheet" type="text/css" href="theme.css"> </head> <?php $myProgram=$_POST['name']; echo $myProgram; // create a query to delete a program from ProgramAgency table ...
true
ee2c2df41bc33bf71b16591e47701f77d62b17b4
PHP
naishihchen/CIT490Project
/model/main-model.php
UTF-8
468
3.046875
3
[]
no_license
<?php //Main Soapangels Model function getItems() { //Connection Object $db = soapangelsConnect(); //SQL Statement $sql = 'SELECT * FROM items ORDER BY itemName ASC'; //Prepare the statement $stmt = $db->prepare($sql); //Execute the statement $stmt->execute(); //...
true
0ab34f12d8d44d5f4b462ed020176ca7de1ad72a
PHP
KusokBanana/hackaton-hr
/api/src/Entity/EducationHistory.php
UTF-8
588
3.140625
3
[]
no_license
<?php namespace App\Entity; class EducationHistory { private string $name; private ?string $organization; private int $year; public function __construct(string $name, ?string $organization, int $year) { $this->name = $name; $this->organization = $organization; $this->year ...
true
bb614885fdb74f65047440dd71d0215b36c21f9f
PHP
talosparoxi/RWL-Project
/daily_mileage/daily_mileage_script.php
UTF-8
4,224
2.609375
3
[]
no_license
<?php /** * This file provides the business functionality for the daily mileage pages. * * PHP version 5 * * * @category CategoryName * @package PackageName * @author Zachary Theriault * @copyright 2015 sCIS * @license http://php.net/license/3_01.txt PHP License 3.01 * @version 1.00 *...
true
2c7d671665456fcccd0b5d94876a0650bee8659a
PHP
rithyskun/provieg-mo
/backend/_class/utils/Persistence.class.php
UTF-8
592
2.953125
3
[]
no_license
<?php class Persistence { static public function register($key, $object) { $_SESSION['_persistence_'][$key] = serialize($object); } static public function lookup($key) { if(!isset($_SESSION['_persistence_'][$key])) return false; return unserialize($_SE...
true
6f8e9ec4b205ad31079cf114c7825acdd520e50f
PHP
satlokg/blog
/app/Http/Controllers/ArrayController.php
UTF-8
1,836
3.296875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class ArrayController extends Controller { public function index(){ echo '<b>simple arrry</b></br>'; $arr = array('abc','def','ghi'); print_r($arr); echo "<br><br>"; echo "<b>Associate array</b><br>"; $array = arra...
true
a981d1495f2794675af3203c3579fe715a00f981
PHP
ayanahmad571/ashoka
/FunctionsController.php
UTF-8
4,082
2.640625
3
[]
no_license
<?php require_once("Settings.php"); function checkPost($htmlname){ if(is_array($htmlname)){ foreach($htmlname as $name){ if(!isset($_POST[$name])){ die("Invalid ".$name); } } }else{ if(!isset($_POST[$htmlname])){ die("Invalid ".$htmlname); } } } function checkEmail($email){ if (!filter_var...
true
a09233a0e8439913765a6f0e2e47f9fc75ff51e5
PHP
lordcoste/orchestra
/libraries/view.php
UTF-8
1,693
2.71875
3
[ "MIT" ]
permissive
<?php namespace Orchestra; use \Event, \IoC, \Session, Laravel\View as V; class View extends V { /** * Theme group name * * @var string */ public static $theme = 'frontend'; /** * Create a new view instance. * * <code> * // Create a new view instance * $view = new ...
true
70b6a961f729b7231152f24d58a0206e6c23f547
PHP
Aleksa1996/shopsy
/src/Common/Infrastructure/Service/FileUploader/LocalFileUploader.php
UTF-8
587
2.859375
3
[]
no_license
<?php namespace App\Common\Infrastructure\Service\FileUploader; use League\Flysystem\Filesystem; class LocalFileUploader implements FileUploader { /** * @var Filesystem */ private $filesystem; /** * LocalFileUploader Constructor * * @param Filesystem $filesystem */ publ...
true
d426975c6c04c5e13b7b8701e473a8bbf050eb40
PHP
SergioESEI/IU-Grupo-5
/Versiones anteriores/Código/controllers/USUARIO_Controller.php
UTF-8
3,303
2.796875
3
[]
no_license
<?php if(!isset($_SESSION)){ session_start(); } //Comprueba si el usuario inició sesión y si es admin antes de cargar la página. if(isset($_SESSION['grupo']) && strcmp($_SESSION['grupo'],"Admin") == 0 ){ require_once('../models/USUARIO_Model.php'); //Recoge los datos del formulario de la vista en un objeto '...
true
cef8dd8c3ba7dd1c658d910102dd674aa380d767
PHP
itpnp/error_reward
/application/controllers/login.php
UTF-8
2,890
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class login extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controll...
true
e5e5936a219d16ad8ddf3cb8a54832fceed7f140
PHP
Youmy001/niconicoPHP
/src/Snapshot.php
UTF-8
6,020
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: youmy * Date: 16/10/22 * Time: 0:49 */ namespace NiconicoPHP; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Client; /** * Class Snapshot * * @package NiconicoPHP * * @method string get_issuer() */ class Snapshot extends AbstractQueryAPI { const snaps...
true
db9744d8007490c558e4f1894c19a4f97ed12006
PHP
rscarpim/warneracademy
/App/Classes/ErrorsValidate.php
UTF-8
974
3
3
[]
no_license
<?php namespace App\Classes; /** * */ class ErrorsValidate { public function add($field, $message) { /* Se a sessao erro nao estiver setada. */ if(!isset($_SESSION['error'][$field])) { /* Setando a sessao com erro. */ $_SESSION['error'][$field] = $message; } } /* Metodo para mostrar. */...
true
9ce50a033ac2076a8ac06a5bd24d6d67da77ee55
PHP
thexdesk/develop
/codex/git/src/Connection/RefCollection.php
UTF-8
3,606
2.640625
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) 2018. Codex Project. * * The license can be found in the package and online at https://codex-project.mit-license.org. * * @copyright 2018 Codex Project * @author Robin Radic * @license https://codex-project.mit-license.org MIT License */ namespace Codex\Git\Connection; use Illum...
true
11b4abdd7709bea70eedc116a37c47b814a39341
PHP
Reggora/reggora-php
/src/Reggora/Entity/Lender/Order.php
UTF-8
4,243
2.53125
3
[]
no_license
<?php namespace Reggora\Entity\Lender; use Reggora\Lender; use Reggora\Entity\AbstractEntity; use Reggora\Entity\EntityRelationship; use Illuminate\Support\Collection; /** * @property mixed id */ final class Order extends AbstractEntity { /**@var Vendor*/ public $accepted_vendor; /**@var Collection*/ publ...
true
027f5339701f493308308c0ed1a1434555fa13d2
PHP
AElfProject/aelf-wallet-server
/api-server/core/v2.1/Validate.php
UTF-8
1,309
3.296875
3
[]
no_license
<?php /** * 表单验证 * @author Curitis Niewei * @version 2.0 * @created 07-04-2012 */ class Validate { private $validate_errors_count = 0; private $validate_errors = array(); function __construct( $validates, $data ) { foreach ( $validates as $key => $validate ) { $method = $validate['method']; if ( empty( $m...
true
dd95161830c16b2964617848d49deb5859e1b2fc
PHP
ouroboroscoding/ouroborosphp
/classes/Pagination.php
UTF-8
8,295
3.078125
3
[]
no_license
<?php /** * Pagination * * @author Chris Nasr * @copyright FUEL for the FIRE * @created 2014-12-02 */ /** * Pagination class * * Handles parsing and displaying pagination * * @name _Pagination */ class _Pagination { /** * Links * * Holds the list of links to be used to generate pagination * * @v...
true
8af814f1a747fbab5a950f2d3139a31f1af5c52a
PHP
joe-bq/html5
/PracticesPatterns/Patterns/FlexibleObjects/FacadePattern.php
UTF-8
1,595
3.421875
3
[]
no_license
<?php function getProductFileLine( $file ) { return file( $file ); } function getProductObjectFromId( $id, $productname ) { // some kind of daabase lookup return new Product ($id, $productname ); } function getNameFromLine( $line ) { if (preg_match ("/.*-(.*)\s\d+/", $line, $array)) { return ...
true
dfb8f69ee0f6cf6053be683020efc6c1126bc6e3
PHP
letunhatkong/mentor
/protected/models/ArchiveSession.php
UTF-8
4,379
2.78125
3
[]
no_license
<?php /** * This is the model class for table "archive_session". * * The followings are the available columns in table 'archive_session': * @property integer $idArchiveSession * @property integer $idArchive * @property integer $idSession */ class ArchiveSession extends CActiveRecord { /** * @return str...
true
d95437a4e75792b62ef6569ae21ef16fdee30c81
PHP
Ali-alkooo/code-for-kurd-CMS-
/includes/functions.php
UTF-8
5,459
2.59375
3
[]
no_license
<?php $errors=array(); function redirect($url){ header("Location: ".$url); exit(); } function success_msg(){ $msg ="<div class='alert alert-success alert-dismissible'>"; $msg.= "<a hrf='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>"; $msg.= "<strog>Success!</strog> New record created successfull...
true
9ceb4cfe78ade489ec0f3edbc9c1c726326d4268
PHP
Lidemy/mentor-program-4th-sage90180
/homeworks/week11/hw2/update_article.php
UTF-8
2,455
2.6875
3
[]
no_license
<?php session_start(); require_once('conn.php'); require_once('utils.php'); require_once('check_permission.php'); $id = $_GET['id']; $sql = 'SELECT * FROM sage_articles WHERE id = ?'; $stmt = $conn->prepare($sql); $stmt->bind_param('i', $id); $result = $stmt->execute(); if (!$result) { die('ER...
true
7e03dfd947ebfccc07a2dac74368b9d7443e96a3
PHP
Tony-S201/PHP_SYSTEME_DE_CONNEXION_SESSION
/auth.php
UTF-8
768
3.09375
3
[]
no_license
<?php // Authentification, démarre la session si elle n'est pas active ---------------------- // function est_connecte(): bool { // Fait un session_start() si la session n'est pas active if (session_status() === PHP_SESSION_NONE) { session_start(); } return !empty($_SESSION['connecte']); } ...
true
85ec6c2665d943a0f1ad0b5620e04d1d71e47588
PHP
anathebealo/my_website
/map/json.php
UTF-8
1,588
2.640625
3
[]
no_license
<?php $configFile = fopen("configuration.txt", "r") or die("unable to open file"); $username = trim(fgets($configFile)); $password = trim(fgets($configFile)); fclose($configFile); try { $conn = new PDO("mysql:host=localhost;dbname=anabapjd_maps", $username, $password); $statement = $conn->prepare("SE...
true
653fb2623a929f8e3807694580aab11b39294120
PHP
mamigot/Personal-Website
/includes/blogQueriesDb.php
UTF-8
6,209
3.46875
3
[]
no_license
<?php //Makes PHP Data Object (PDO) queries to the MySQL database //Writes and reads from the database //Gets content in the form of arrays or objects //and passes them to blogFormattingDb.php so it can output it accordingly //============================================================== //Include the private databas...
true
e09e27950f2293eb0423907604bd238a2fd235d1
PHP
Rokare/autoecole
/site/Controleur/controleur.php
UTF-8
1,979
2.859375
3
[]
no_license
<?php include ("Modele/modele.php"); include "function.php"; class Controleur { private $unModele; public function __construct($serveur, $bdd, $user, $mdp, $table){ $this->unModele = new Modele($serveur, $bdd, $user, $mdp); $this->unModele->setTable($table); } public functio...
true
60d21725a29e99bbbf871dbee926eefe30fe72f9
PHP
AndrewMInsk/yii
/frontend/components/StringHelper.php
UTF-8
482
2.796875
3
[]
no_license
<?php namespace frontend\components; use Yii; class StringHelper { public function getShort($string, $limit = null) { if ($limit === NULL) { $limit = Yii::$app->params['shortTextLimit']; } //$miniStr = substr($string, 0, $limit); $keywords = preg_split("/[\s,...
true
c2cf50993931a82f8db9ab391674e0ff7398378a
PHP
brysonian/Saint
/saint/core/SaintException.php
UTF-8
3,071
2.875
3
[ "MIT" ]
permissive
<?php class SaintException extends Exception { public $message; public $code; public $file; public $line; public static $log_format = 'html'; // =========================================================== // - Constructor // =========================================================== function __construct($me...
true
cfbe257fa91c9d06112ed099cf4dcc7c7f7f13fd
PHP
google-code/andorra
/drivers/MysqlDriver.class.php
UTF-8
417
2.578125
3
[]
no_license
<?php namespace Andorra\drivers; use Andorra\dao\Entity; class MysqlDriver extends DataDriver { private $conn = null; public function __construct(\DOMElement $node) { $hostNode = $node->getElementsByTagName('host')->item(0); $host = $hostNode->textContent; } public function __destruct() { } public fun...
true
6df35b76e1d4f47072fff906b46f5db56b2bfc36
PHP
bambang-ti/Praktikum-Pemrograman-Web-Sem-2
/pertemuan2/array.php
UTF-8
619
3.46875
3
[]
no_license
<?php // Array 1 dimensi $superhero = ['Superman ','Batman ','The flash']; // Perulangan foreach ($superhero as $sh){ echo $sh; } echo '<br/>'; // Hitung array superhero echo 'Panjang Array: '.count($superhero); ?> <?php // Array multi dimensi (key, value) $superhero1 = ['Nama'=>'Superman','...
true
da7d8add9cef9f41d502f997c9a95dddf8577e90
PHP
anguila55/turnero
/app/Repositories/Customer/CustomerRepository.php
UTF-8
1,237
2.59375
3
[]
no_license
<?php namespace App\Repositories\Customer; use App\Repositories\Base\BaseRepository; use Illuminate\Support\Facades\DB; class CustomerRepository extends BaseRepository { protected $model; public function __construct(Customer $customer) { $this->model = $customer; } public function exist...
true
1bb0ed35aa14dc408d6df4efde79090d14093194
PHP
joenelsong/Game--RGB-Color-Trainer
/highscores.php
UTF-8
1,419
3.015625
3
[]
no_license
<?php include('connectionData.txt'); //Function to fix up PHP's messing up POST input containing dots, etc. $con = mysqli_connect($server, $user2, $pass2, $dbname); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } else { //echo "Connected :)"; //echo "<br />\n"; } //mysql_select_db($d...
true
0bc12bc69241c9e356d9383547559714c521bafc
PHP
jdd2405/cbooks
/web/modules/login.module.php
UTF-8
10,708
2.9375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of login * * @author Jonas */ require_once('classes/User.class.php'); class LoginModule...
true
4f0b236f95118e0025f4582d5230c2c7f44101ad
PHP
developbiao/explore2018
/0226/file2.php
UTF-8
493
3.140625
3
[ "MIT" ]
permissive
<?php namespace Fool\Bar; include 'file1.php'; const FOO = 2; function foo(){ echo 'Bar007' . PHP_EOL; } class foo{ static function sayHello(){ echo 'Hello, Bar007' . PHP_EOL; } } foo(); //解析为 Fool\Bar\foo resolves to function Foo\Bar\foo foo::sayHello(); // resolves to class Foo\Bar\foo, metho...
true
4d2d2cf8371575da127d28245f468d8e12714b85
PHP
MatthiasDijoux/projet_gao
/database/seeders/ClientsSeeder.php
UTF-8
718
2.625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class ClientsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $array = [ [ 'id' => 1, ...
true
f1d3c808bc56e239c0865fae0ebe88ead37cd071
PHP
shuimohun/taoshang168
/shop/shop/models/Bundling/QuotaModel.php
UTF-8
2,147
2.546875
3
[]
no_license
<?php if (!defined('ROOT_PATH')) { exit('No Permission'); } /** * User: zzh * Date: 2017/02/16 * Time: 17:25 */ class Bundling_QuotaModel extends Bundling_Quota { const NORMAL = 1; //活动正常 const END = 2; //活动结束 const CANCEL = 3; //活动取消 public static $state_array...
true
af0fd6a610b69b30af6b15207301987f0d08a529
PHP
fan-tak-sato/programming-exercises
/php/recursion/factorial-not-recursive.php
UTF-8
309
4.21875
4
[]
no_license
<?php function factorial($number) { if ($number < 0) { throw new InvalidArgumentException('Number cannot be less than zero'); } $factorial = 1; while ($number > 0) { $factorial *= $number; $number --; } return $factorial; } echo factorial(6);
true
3843df98a82f17a0f88834fcdc32eba59fb24309
PHP
danielebarbaro/appshell
/tests/Unit/AssetCollectionTest.php
UTF-8
4,028
2.59375
3
[ "MIT" ]
permissive
<?php /** * Contains the AssetCollectionTest class. * * @copyright Copyright (c) 2018 Attila Fulop * @author Attila Fulop * @license MIT * @since 2018-11-04 * */ namespace Konekt\AppShell\Tests\Unit; use Konekt\AppShell\Assets\AssetCollection; use Konekt\AppShell\Assets\AssetLocation; use Kon...
true
cdcb18af45d92e150e68320444a2f56546a14835
PHP
codenomdev/codeigniter4-framework
/Views/Templates/Build/Html/Meta/Keywords.php
UTF-8
1,166
2.703125
3
[ "MIT" ]
permissive
<?php /** * @see https://github.com/codenomdev/codeigniter4-framework for the canonical source repository * * @copyright 2020 - Codenom Dev (https://codenom.com). * @license https://github.com/codenomdev/codeigniter4-framework/blob/master/LICENSE MIT License */ namespace Codenom\Framework\Views\Templates...
true
210aa8970896404b662f3aaf08536675c337ffca
PHP
arafatkn/laravel-meta
/database/migrations/create_metas_table.php
UTF-8
714
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create(config('meta.table_name') ?? 'laravel_metas', func...
true
c0acacc560cc6f818be18d694efc0b7de9981dcd
PHP
nifon0327/yt-tz
/admin/Productimage/createtypeimg.php
UTF-8
2,307
2.515625
3
[]
no_license
<?php //电信-ZX 2012-08-01 Header("Content-type: image/gif"); //输出一个PNG 图片文件 include "../../basic/parameter.inc"; //取得产品主类颜色及名称 //for ($i=1;$i<8;$i++){ //$mainType=$i; $mySql="SELECT Name,rColor,gColor,bColor FROM $DataIn.productmaintype WHERE Id=$mainType LIMIT 1"; $myResult = mysql_query($mySql,$link_id); ...
true
e8585940d912cbf54c6fa5a878689018f399c462
PHP
Wndrr/Ponteilla
/src/entity/user/UserProvider.php
UTF-8
2,111
2.828125
3
[]
no_license
<?php /** * @Author: Mathieu VIALES * @Date: 2016-10-19 17:55:38 * @Last Modified by: Mathieu VIALES * @Last Modified time: 2016-10-21 11:59:42 */ namespace Entity\User; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Compon...
true
8ab3cf0856c3efae1e4f3c679238b5d072b9eac8
PHP
joheras/testingSymfony4
/src/Model/MailList.php
UTF-8
830
2.890625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace App\Model; use App\Model\IEmailValidator; class MailList { private $emailValidator; private $emails = ...
true
cf391900915e908d9b621492ee1c583e12d83cd6
PHP
irtyamine/functional-php
/src/Closure/JsonEncode.php
UTF-8
233
2.65625
3
[]
no_license
<?php namespace FunctionalPhp\Closure; class JsonEncode { /** * @return \Generator<string> */ public function __invoke(mixed $data): \Generator { yield json_encode($data, JSON_THROW_ON_ERROR); } }
true
d8e5251f4b92df02006f6144ccb3d8c32b31b187
PHP
solarphp/core
/Solar/Mime.php
UTF-8
11,667
3.09375
3
[]
no_license
<?php /** * * MIME utility methods for mail messages and HTTP requests. * * @category Solar * * @package Solar_Mime Generic MIME support methods. * * @author Paul M. Jones <pmjones@solarphp.com> * * @license http://opensource.org/licenses/bsd-license.php BSD * * @version $Id$ * */ class Solar_Mime ...
true
7fa7230ac4e4466ea606ddd8c19343abd32f430b
PHP
quadrowin/icengine
/Class/Mail/Message/Dto.php
UTF-8
893
2.5625
3
[]
no_license
<?php /** * Dto для Mail_Message * * @author neon */ class Mail_Message_Dto extends Dto { /** * @inheritdoc */ protected static $defaults = array( // имя шаблона 'template' => '', // адрес получателя email | phone | etc 'address' ...
true
4be4e0ed5c3061d33c67bd6aa0f63ce746fb3ff8
PHP
posokhov/registration
/core/components/Router.php
UTF-8
3,642
3.03125
3
[]
no_license
<?php /** * */ class Router { private $routes; /** Constructor of routes path */ function __construct() { $routesPath = ROOT . '/core/config/routes.php'; if (file_exists($routesPath)) { $this->routes = include_once($routesPath); } ...
true
0f22fec6a9d33d9f7cad9e2d328d20b181f97f81
PHP
juliankanaan/WebDev
/Past/php_includesandstuff.php
UTF-8
243
3.046875
3
[]
no_license
<?php ?> <html> <head> </head> <body> <h4>Using php to write variables to an external file</h4> <?php $fopen = fopen('variables.php'. 'w'); $phpCode = '\$var1 = "blah blah"'; fwrite($fopen, $phpCode); ?> </body> </html>
true
f2edb761506930d5a2a4a233f4ae95495df1bf22
PHP
LaDeSP/Siaf-Laravel
/app/Repositories/PropriedadeRepository.php
UTF-8
856
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Propriedade; class PropriedadeRepository { protected $propriedade; public function __construct(Propriedade $propriedade){ $this->propriedade = $propriedade; } public function create($attributes){ return $this->propriedade->crea...
true
568c444b30ce8cb4a4e24d7bf1da0da79874bdb2
PHP
qaisersayyed/departmentApp
/models/Revision.php
UTF-8
2,773
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "revision". * * @property int $revision_id * @property string $syllabus_file * @property string $syllabus_date * @property int $program_id * @property int $paper_id * @property string $created_at * @property string $updated_at * @...
true
a5231e524b983a53168cbfda1cd0db5c06e29fe3
PHP
MuzammalRajpoot/pharmacy-software
/application/models/Reports.php
UTF-8
10,342
2.5625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class reports extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } //Count report public function count_stock_report() { $this->db->select("a.product_name,a.product_id,a.cartoon_quantit...
true
deb66885b4dbb714b43c389c7233856010ff459f
PHP
christophervalles/Flight-microframework-skeleton
/lib/flight/Request.php
UTF-8
2,163
2.828125
3
[ "MIT" ]
permissive
<?php /** * Flight: An extensible micro-framework. * * @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com> * @license http://www.opensource.org/licenses/mit-license.php */ class Request { /** * Constructor. * * @param array $config Request configuration */ public function _...
true
578dea4bbb6bbbdbd106b603f39c82f92c9f3e07
PHP
estardev/rda
/src/estar/rda/RdaBundle/Entity/User.php
UTF-8
1,824
2.59375
3
[]
no_license
<?php namespace estar\rda\RdaBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ ...
true
5a900195a6bcb8d3b19418d7649a9d056e60cc34
PHP
Gled-18/NewHotel
/app/controllers/Users.php
UTF-8
29,642
2.8125
3
[]
no_license
<?php // error_reporting(0); class Users extends Controller { public function __construct() { $this->userModel = $this->model('User'); $this->roomModel = $this->model('Room'); $this->inventoryModel = $this->model('Inventory'); } public function index() { if ($_SERVE...
true
6926573882648217dc2e04a2da2019eb289621a0
PHP
kieron76/test
/database/migrations/2021_09_15_182122_create_races_staging_table.php
UTF-8
2,102
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateRacesStagingTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('races_stag...
true
704ef7c8b2c4b525487fa9a321669a2b9f9057d5
PHP
yangliu/Lu-Lab-Website
/PUB/proc.php
UTF-8
1,849
2.765625
3
[]
no_license
<?php error_reporting(E_ALL); define('ABS_PATH', dirname(__FILE__)); define('ORIG_PATH', constant('ABS_PATH').'/orig'); define('RESULT_PATH', constant('ABS_PATH').'/result'); //load the csv file $csvfile = constant('ORIG_PATH').'/list'; $csvfp = fopen($csvfile, 'r'); if (!$csvfp) die("Could not find the list file!");...
true
8d443d65fa10b4bc155fed871b9cf47264e3351f
PHP
rodrigoMem/AMATS2021-SIST32B-Archivos-GRUPO-05
/App/Controllers/Admin/Doctor.php
UTF-8
1,155
2.625
3
[]
no_license
<?php namespace App\Controllers\Admin; use Core\View; use \App\Services\RoleService; use \App\Services\UserService; use App\Helpers\Redirect; class Doctor extends \Core\Controller { protected $_roleService; protected $_userService; public function __construct() { $this->_roleService = ne...
true
326d88721a24dbc3eac9253e71fccb21f321aa72
PHP
folkevil/newportal
/app/Models/Blog/Comment.php
UTF-8
646
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Blog; use Illuminate\Database\Eloquent\Model; class Comment extends Model { protected $table = 'comments'; protected $fillable = array( 'name', 'content', 'user_id', ); /** * restituisce l'autore del commento * @return \Illuminate\Database\Eloquent\Relat...
true
be3b0557d79ac0d6c3e0d47163b596c06647f042
PHP
goldenking0412/Zoobdoo-symfony
/src/Erp/StripeBundle/Repository/InvoiceRepository.php
UTF-8
2,836
2.5625
3
[]
no_license
<?php namespace Erp\StripeBundle\Repository; use Doctrine\ORM\EntityRepository; use Erp\PaymentBundle\Entity\StripeAccount; use Erp\PaymentBundle\Entity\StripeCustomer; class InvoiceRepository extends EntityRepository { /** * * @param StripeAccount $stripeAccount * @param StripeCustomer[] $strip...
true
e32ad6b014cd3adf332a68f51b0c35a6e27a9e56
PHP
snRNA/crypto_practice
/Files/Webhome/accounts/reg.php
UTF-8
3,053
2.734375
3
[]
no_license
<head> <meta charset='UTF-8'> <link rel="stylesheet" type="text/css" href="/FormFieldSet.css"> </head> <?php if (!isset($_POST['submit'])) { echo('非法访问!'); header("Location:reg.html"); } $username = test_input($_POST['username']); $password = test_input($_POST['password']); $email = test_input($_POST['e...
true
c9d0c6a69de0b0c890b6b2f40cae9605e1fa3a8a
PHP
smooler/framework
/src/Exceptions/Http.php
UTF-8
388
3.1875
3
[ "MIT" ]
permissive
<?php namespace Smooler\Exceptions; use Exception; class Http extends Exception { protected $httpCode; protected $message; function __construct($httpCode, $message = null) { $this->httpCode = $httpCode; $this->message = $message; } final public function getHttpCode() { return $this->httpCode; } f...
true
6824d1598ccb237568e349c5656379e7b6c7600f
PHP
PixelWelt/RPI_WebJukebox
/html/index.php
UTF-8
4,932
2.65625
3
[]
no_license
<!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <title>GOFI-JukeBox</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <div class="Controls"> <form action="index.php" method='get'> <fieldset> ...
true
f512daa8fcf826898ca37c9b604dc1216d9f1770
PHP
taroquu/podium
/src/podium/assets/core/admin/forms/dao/FormDao.php
UTF-8
7,950
2.546875
3
[]
no_license
<?php /** * Podium CMS * http://code.google.com/p/podium/ * * Copyright (C) 2011-2012 Martin Cassidy <martin.cassidy@webquub.com> * Podium CMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ve...
true
89174d54f0039810f5a37a8d522ca078606e640b
PHP
expressmailing/expressmailing
/controllers/admin/express_api_php5.php
UTF-8
10,461
2.671875
3
[]
no_license
<?php /** * 2014-2015 (c) Axalone France - Express-Mailing * * This file is a commercial module for Prestashop * Do not edit or add to this file if you wish to upgrade PrestaShop or * customize PrestaShop for your needs please refer to * http://www.express-mailing.com for more information. * * @author Axalon...
true
47cb3cc1a6dec55076531b9027c06f024532d844
PHP
rodrigoesborges/connfa-integration-server
/app/Http/Controllers/CMS/Events/TracksController.php
UTF-8
1,541
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Http\Controllers\CMS\Events; use App\Http\Requests\TrackRequest; use App\Repositories\Event\TrackRepository; use App\Repositories\EventRepository; use Illuminate\Contracts\Routing\ResponseFactory; use App\Http\Controllers\CMS\BaseController; /** * Class TracksController * @package App\Http\Cont...
true
d96042dc084c41b1c21bfdb2c2cf8e8a8baefddb
PHP
diegotpereira/phpCrudLoginMaster
/ler.php
UTF-8
541
2.96875
3
[]
no_license
<?php include "cabecalho.php"; ?> <?php include "conexao.php"; ?> <?php if (!empty($_POST)) { $nome = $_POST['nome']; $query = "SELECT * FROM pessoa WHERE Nome = '$nome'"; $dados = mysqli_query($conexao, $query); if ($linha=mysqli_fetch_array($dados)) { # code... echo"Nome: " . $linha ["nome"]."<b...
true
74af5ba491d1136b16bd1295c2429bdf0184e579
PHP
cboulanger/bibliograph
/src/server/models/Message.php
UTF-8
3,341
2.78125
3
[]
no_license
<?php namespace app\models; use Yii; use yii\db\Expression; use lib\models\BaseModel; use app\models\Session; /** * This is the model class for table "data_Messages". * * @property string $name * @property resource $data * @property int $SessionId */ class Message extends BaseModel { /** * @inheritdoc ...
true
925d0960497d2f9f69d46bf9bad4a3ad595ba1ff
PHP
SergioLazaro/PetSharing
/progetto/chat.php
UTF-8
3,307
2.53125
3
[]
no_license
<?php include("top.php"); $conn = mysqli_connect("localhost", "adminID5Rju3", "Rz5h2JWnm4xd", "tweb"); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sender = ""; if(isset($_COOKIE["email"])){ $sender = $_COOKIE["email"]; } //Startting sessi...
true
425f19ad663b44ad0a9acc23fea41b5e23d89a5c
PHP
concretecms/concretecms
/concrete/src/Filesystem/Element.php
UTF-8
6,580
2.8125
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Filesystem; use Concrete\Core\Filesystem\FileLocator\PackageLocation; use Concrete\Core\Filesystem\FileLocator\ThemeElementLocation; use Concrete\Core\Page\Page; use Concrete\Core\Support\Facade\Facade; use Concrete\Core\View\FileLocatorView; /** * An object-oriented wrapper for core e...
true
a24a086f2081481ee301285847e7d0023a90d92d
PHP
zxcejay/s5_api
/accounts/readById.php
UTF-8
1,317
2.65625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: access"); header("Access-Control-Allow-Methods: GET"); header("Access-Control-Allow-Credentials: true"); header('Content-Type: application/json'); // include database and object files include_once '../config/database.php'; include_o...
true
a74147805fb0838c724ab2b374e3a0829b0ad5f1
PHP
pdffiller/pdffiller-php-api-client
/src/Core/ModelsList.php
UTF-8
2,303
2.953125
3
[ "MIT" ]
permissive
<?php namespace PDFfiller\OAuth2\Client\Provider\Core; /** * Class ModelsList * @package PDFfiller\OAuth2\Client\Provider\Core */ class ModelsList extends ListObject { /** @var int */ protected $total = 0; /** @var int */ protected $current_page = 1; /** @var int */ protected $per_page = ...
true
56fcae6aadfb7e249d404b544c4de8117f90956f
PHP
msidorovOP/phplint
/src/Cache.php
UTF-8
1,274
2.828125
3
[ "MIT" ]
permissive
<?php namespace Overtrue\PHPLint; use JetBrains\PhpStorm\Pure; class Cache { protected static string $filename = '.phplint-cache'; public static function get(): mixed { $content = file_get_contents(self::getFilename()); return $content ? json_decode($content, true) : null; } #[...
true
5341e3ea3884e740c20cdb5067b10c2f4b4d9e01
PHP
adutta14/ping-of-death-CTF-
/web/Defense/XSSvalidation.php
UTF-8
1,012
3.046875
3
[]
no_license
<?php function XSSdefenseForAttributeCase1($input){ $escapeInput = ""; if substr($input, "&quot;"){ $input = str_replace("&quot;", "-", $input) } for($i=0; $i<strlen($input); $i++){ switch($input[$i]){ case '"': $escapeInput = $escapeInput . '-'; break; default: $escapeInput = $es...
true
39beeac3665fe2b7217240600cadab63b74f6280
PHP
Moutard3/omnipay-stripe
/src/Message/ListSubscriptionsRequest.php
UTF-8
1,820
2.765625
3
[ "MIT" ]
permissive
<?php /** * Stripe List Subscriptions Request. */ namespace Omnipay\Stripe\Message; /** * Stripe List Subscriptions Request. * * @see Omnipay\Stripe\Gateway * @link https://stripe.com/docs/api/curl#list_plans */ class ListSubscriptionsRequest extends AbstractRequest { /** * Get the subscription limit....
true
bde36d119857b7a349d3b8da7ac1c64fa8483bc4
PHP
WsdlToPhp/PackagePayPal
/src/StructType/MeasureType.php
UTF-8
1,980
2.828125
3
[ "MIT" ]
permissive
<?php namespace PayPal\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for MeasureType StructType * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class MeasureType extends AbstractStructBase { /** * The unit * Meta information extracted from t...
true
99bfc611cd2f71550e46d2a657cb933eb1c11fba
PHP
NigelRel3/Pleb
/src/datamodel/Data/MySQL/MySQLTable.php
UTF-8
3,763
2.65625
3
[ "MIT" ]
permissive
<?php namespace Pleb\core\Data\MySQL; use Pleb\core\Element; use Pleb\core\Data\Column; use Pleb\core\Data\Entity; use Pleb\core\Data\ForeignKey; use Pleb\core\Data\Option; class MySQLTable extends Entity { static protected $optional = ['cached', 'static', 'primarykey', 'index', 'foreignkey', 'referen...
true
41c620050fc94cad42ccd4ac219b04e30842f8bb
PHP
PapoutsakisVasilis/JsonHandleFreedom
/jsonHandle/src/JsonEncodeMaster.php
UTF-8
2,881
2.71875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: billpap * Date: 3/18/2018 * Time: 4:58 PM */ namespace Freedom\JsonHandler; class JsonEncodeMaster { public static function encode($object, $prepare_mode = false, $encryptPASS = false) { $objM = $object; if(is_array($objM)){ $results...
true
cf3f8cb3cae2573d3eb62365cb183b779cf22f9e
PHP
SincerityAsst/cyxz
/application/common/service/UserService.php
UTF-8
2,866
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\service; use app\common\entity\CommonEntity; use app\common\model\User as UserModel; /** *用户 */ class UserService { /** * 分页列表 * @param int $per_page * @return \think\Paginator */ public function selectWithPage() { $model = new UserModel(); ...
true
d96c4c728f6d75d473d539c78ef35c0a9e262a85
PHP
FullStack-web-dev/Laravel_codesample
/models/Roster.php
UTF-8
5,194
2.515625
3
[]
no_license
<?php class Roster extends Eloquent { protected $guarded = array(); public static $rules = array( 'customer_id' => 'required', 'certificate_id' => 'required', 'comments' => 'required', 'attendance' => 'required' ); public static function boot() { parent::boot(); static::saved( function($roster) ...
true
bdbfc8fb052f8a7cc88400dacc2326fcb683d064
PHP
JosephMalandruccolo/CSPPDB
/schooler/php/login.php
UTF-8
2,424
2.78125
3
[]
no_license
<?php session_start(); /* * handle the log in process */ //############################################# // INCLUDED FILES //############################################# require_once 'credentials.php'; //############################################# // CONNECT TO SERVER AND DB //##############...
true
98e940f3a0f1c1f0296d3705164b779ab1a00f50
PHP
navtis/xerxes-pazpar2
/module/Application/src/Xerxes/Record/Bibliographic/LinkedItem.php
UTF-8
2,061
2.9375
3
[]
no_license
<?php namespace Xerxes\Record\Bibliographic; use Xerxes\Marc\DataField; class LinkedItem { public $title; public $edition; public $issns = array(); public $isbns = array(); public $notes = array(); /** * Creates a new LinkedItem for 78x fields * * @param DataField $datafield */ ...
true
cbfea7fef612e758eeca963e24d06029000fdc58
PHP
Chilister/robokaktus-main-site
/assets/tvs/multitv/transformtv.snippet.php
UTF-8
2,431
2.578125
3
[ "MIT", "GPL-1.0-or-later" ]
permissive
<?php /** * transformTV * * @category snippet * @version 2.0 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL) * @author Jako (thomas.jakobi@partout.info) * * @internal description: <strong>2.0</strong> Transform a normal TV into a multiTV. * @internal snippet code:...
true
d28fcac8ba792b2ee00b9216881e8e608aa9f3da
PHP
k2052/arthur
/analysis/logger/adapter/Cache.php
UTF-8
851
2.609375
3
[]
no_license
<?php namespace arthur\analysis\logger\adapter; use arthur\util\String; class Cache extends \arthur\core\Object { protected $_classes = array( 'cache' => '\arthur\storage\Cache' ); public function __construct(array $config = array()) { $defaults = array( 'config' => null, 'expiry' => '+999 days', ...
true
919a523128dea8dc31b4079ce04a8eef02306cd9
PHP
FilippoSecchi/Scaffold
/app/Models/Concerns/HasSubscribedUser.php
UTF-8
307
2.703125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace App\Models\Concerns; trait HasSubscribedUser { /** * Check if the model user has an active subscription * in any possible state. * * @return bool */ public function hasActiveSubscription() { return $this->user->hasActiveSubscription(); } }
true
77c1351bef652fc00cc7dd187a1c0083c2928b07
PHP
Mohamed-Hassan-M-M/Hair
/app/Helpers/General.php
UTF-8
512
2.640625
3
[ "MIT" ]
permissive
<?php /* * helper function that auto load(composer.json autoload => files) and then use composer dump-autoload * when project run on server * */ use Illuminate\Support\Str; function saveImage($folder, $img){ $filename = time().$img->hashName(); $img -> storeAs('/', $filename, $folder); $path = $folder...
true
49a3b79eda5a2c96cd8d68fca1fbc14a4bcacbde
PHP
miketvo/yabe-mall
/private/logsman.php
UTF-8
1,875
3.234375
3
[ "MIT" ]
permissive
<?php /* * Constants */ define("ALL_ENTRIES", -2); // To be used with clear_logs_entry() define("LATEST_ENTRY", -1); // To be used with clear_logs_entry() /* * Functions */ /** * Write a new entry into log file * @param string $logs_filepath *...
true
caf50254ff711042e2ddc1346a36bcea34970dcf
PHP
CeoFred/yourhomefuto
/admin/deactivate-users.php
UTF-8
1,827
2.6875
3
[]
no_license
<?php session_start(); require 'inc/dbh.inc.php'; if(!isset($_SESSION['adminid']) & empty($_SESSION['adminid'])){ header('location: login.php'); } ?> <!DOCTYPE html> <html> <head> <?php include 'inc/header.php'; ?> <title>Deactivate a user</title> </head> <body> <?php include'inc/nav.php'; ?> <div class="al...
true
39d744865aa43c4b0b26028c61fa4e4f12357ab1
PHP
saliabodian/eRapport
/Classes/Cdcl/Db/Csv.php
UTF-8
814
3.078125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sb_adm * Date: 02.03.2018 * Time: 13:17 */ namespace Classes\Cdcl\Db; /** * * Class Csv * @package Classes\Cdcl\Db * Exportation des données de manière automatique * avec en entrée $data de type array() et $filename qui est un string pour le nomn du fichier * * @r...
true
795fae890874913b2cf6662c0d9e7b87630d112b
PHP
chargehive/php-sdk
/generated/Model/ChargehiveMethodArchiveRequest.php
UTF-8
605
2.734375
3
[]
no_license
<?php namespace ChargeHive\Php\Sdk\Generated\Model; class ChargehiveMethodArchiveRequest implements \JsonSerializable { /** * * * @var string */ protected $token; /** * * * @return string */ public function getToken() { return $this->token; } ...
true
6429b4fcc62b880ddd801867eeb409002a6d0bbb
PHP
AnthonyBouillon/projet_professionnel
/models/comments.php
UTF-8
5,481
3.25
3
[]
no_license
<?php /** * Classe comments qui permet de créer, afficher, modifier, supprimer et compter les commentaires * Elle hérite de la classe database qui contient la connexion à la base de données */ class comments extends database { /** * Attributs : * L'id de l'utilisateur * L'id de l'article ...
true
bcd922b2edbe62f96d26784871cd811e08b3b823
PHP
Lube0802/wx
/app/Lib/Helper.php
UTF-8
6,962
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Lib; use QrCode; class Helper { /** * json数据返回 * @param int $status * @param string $msg * @param array $data * @return string */ public function sendJson($status = 200, $msg = '', $data = []) { return json_encode([ '...
true
b928beddcf82bf922a19813502603a9838ab39bb
PHP
jaejae-lee/object-oriented-php
/laravel/routes/api.php
UTF-8
2,228
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
true
aef4ea4e8cc54eb987b9de2ee529a240c829b95b
PHP
AkmalAbdullayev/aduka-shopping
/app/Http/Controllers/RegistrationController.php
UTF-8
1,616
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Mail\SendMail; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; class RegistrationController extends Controller { public function index() { return vie...
true
146411eee99279370417964fca9bfa1af68ec000
PHP
sarathiscookie/PHP
/callAnotherClass.php
UTF-8
676
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sarathts * Date: 30/10/18 * Time: 8:19 PM */ class logToDatabase { public function execute($message) { var_dump('This is a database log of user: '.$message); } } class logToFile { public function execute($message) { var_dump('This is a f...
true
ae5e4e59f01b3761a5a75c685a6089685f39fee0
PHP
developer-desk/webdev1-master
/site/lib/its/comp/ITS_ACCOUNT_MANAGER/_util/BL/Frm_Validator.php5
UTF-8
1,733
2.53125
3
[]
no_license
<?php /* Copyright (C) 2009 - 2013 Infinite Tech Solutions Inc - All Rights Reserved * * NOTICE: All information contained herein is, and remains * the PROPERTY OF INFINITE TECH SOLUTIONS INCORPORATED. * The intellectual and technical concepts contained * herein are proprietary to Infinite Tech Solutions Incorporated ...
true
b716212371a08d4cdd793bd634e07e663a880217
PHP
pawprabhu17/php-basic-codes
/insertCompanies01.php
UTF-8
664
2.703125
3
[]
no_license
<?php $hostname = "localhost"; $username = "root"; $password = ""; $dbName = "alphacrm"; $dbConnected = @mysqli_connect($hostname,$username,$password,$dbName); $dbSuccess = true; if($dbConnected) { } else{ echo "SQL Connection FAILED<br /><br />"; $dbSuccess =false; } if($dbSuccess) { $company = "INSE...
true
da4d05cd542257b0c63b15f8a94b2e3fffbf9e87
PHP
mimosafa/www.w-tokyodo.com_neostall
/www/neostall/wp-content/themes/neoyatai-core/functions/functions.php
UTF-8
9,187
2.75
3
[]
no_license
<?php if ( ! function_exists( 'get_series_tax_obj' ) ) { function get_series_tax_obj( $post_id = 0 ) { $arr = get_the_terms( $post_id, 'series' ); if ( ! $arr ) return; $obj = array_pop( $arr ); return $obj; } } /* if ( ! function_exists( 'get_season_pt_o...
true