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
bd21b4a4df2c75bf38d2681aad5cb02a3110a67c
PHP
ndawe/masterclass
/setup.php
UTF-8
1,221
3.0625
3
[ "BSD-3-Clause" ]
permissive
<?php require_once('connect.php'); function create_user($username, $password) { global $mysqli; $escapedName = mysqli_real_escape_string($mysqli, stripslashes($username)); $escapedPW = mysqli_real_escape_string($mysqli, stripslashes($password)); $hashedPW = password_hash($escapedPW, PASSWORD_BCRYPT); ...
true
ccc13982ab5cded65c551e9b123075a2b75992b1
PHP
jlaso/my-simple-web
/app/models/core/Pagination/PaginatorViewExtension.php
UTF-8
546
2.65625
3
[ "MIT" ]
permissive
<?php namespace app\models\core\Pagination; // si se pone namespace no se puede invocar desde Twig !! use app\models\core\Pagination\PaginableInterface; use app\models\core\Pagination\PaginationRender; class PaginatorViewExtension { /** * Shows the paginator * * @param \app\models\core\Paginab...
true
32bfe1a7b6ba69a2b355027e039db5b718d905a7
PHP
B-Translator/old_btr_server
/modules/custom/btrCore/callback/latest.inc
UTF-8
959
2.75
3
[]
no_license
<?php /** * @file * RSS feed from B-Translator. */ function btrCore_latest($lng =NULL, $origin =NULL, $project =NULL) { if (empty($lng)) $lng = 'fr'; // Get the domain of the feed in the form of 'origin/project' // (or just 'origin'). $domain = ''; if ( ! empty($origin) ) { $domain = $origin; i...
true
f20b68381ada42c8b614fcf6da972e39059ea7f2
PHP
PriyankaLalge/yoga_project
/view_trainer_api.php
UTF-8
712
2.90625
3
[ "MIT" ]
permissive
<?php /* loc no 7-- //connect to database loc no 8-- // query to database for SELECT in Employee table loc no 19--// 0 result */ include 'config.php'; $sql = "SELECT * FROM trainer ORDER BY e_ID DESC"; $result = $conn->query($sql); $employee = array(); if ($result->num_rows > 0) { // output data of each row w...
true
89cf172ea51fcdb698d051f05368a829be2480d0
PHP
juanlu46/legend-padel
/startbootstrap-grayscale-gh-pages/php/usuarios.php
UTF-8
3,052
2.65625
3
[]
no_license
<?php require_once 'Encriptacion.php'; header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); $mysqli = new mysqli("localhost","mylegendpa","5nm6D092","legendpadel"); if ($mysqli->connect_errno) { echo "Fallo al conectar a...
true
20c8d122796007dc99f9dbbc8cef447155b11c3d
PHP
themitope/jwt_api
/dbconnect.php
UTF-8
471
2.609375
3
[]
no_license
<?php /** * */ class DbConnect { private $server = 'localhost'; private $db_name = 'jwt_api'; private $user = 'root'; private $password = ''; public function connect() { $conn = mysqli_connect($this->server, $this->user, $this->password, $this->db_name); if(mysqli_connect_error()){ die("D...
true
0ea7d3ef91bae51ad7f2ad2135434ef67bec3852
PHP
AzureCloudMonk/The-Art-of-Modern-PHP-8
/tests/Assets/OutputGetter.php
UTF-8
817
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Book\Tests\Assets; use RuntimeException; use Throwable; final class OutputGetter { public static function getOutput(string $path): string { \ob_start(); try { require $path; } catch (Throwable $throwable) { $output = \o...
true
57309e08a24a1db46769a741ba32a196d3a9c1a5
PHP
Slaknoah/roastandbrewApi
/app/Services/Cafe/CreateCafe.php
UTF-8
1,698
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Services\Cafe; use App\Models\Cafe; use App\Http\Resources\Cafe\Cafe as CafeResource; class CreateCafe { private $data; private $company; public function __construct( $newCafeData, $company ) { $this->data = $newCafeData; $this->company = $company; } ...
true
dad3797182bef96c57312541ed17658e0eb50ca1
PHP
caesaradyatma/jatialam
/app/Http/Controllers/PurchasingsController.php
UTF-8
4,969
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Purchasing; use App\Item; use App\Inventory; class PurchasingsController extends Controller { public function index(){ $purchasings = Purchasing::where('deleted_at',NULL)->paginate(10); return view('Purchasing.index')->wit...
true
efc2587cf656f423dcd46811b5740b27c1ca531d
PHP
diQeenx/backpacks
/app/Http/Controllers/Catalog/CatalogController.php
UTF-8
3,509
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Catalog; use App\Models\Product\Brand; use App\Models\Product\Category; use App\Models\Product\Product; use App\Models\Product\Type; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CatalogController extends Controller { private $categories = []; pr...
true
3e4894611092ac3851a3adc67035193ae262f378
PHP
zonoid/tienda
/auxiliary_extensions/tienda_plugin_tool_genericimporter/tool_genericimporter/genericimport.php
UTF-8
8,144
2.625
3
[]
no_license
<?php /** * @version 1.5 * @package Tienda * @author Daniele Rosario * @link http://www.dioscouri.com * @copyright Copyright (C) 2007 Dioscouri Design. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php */ /** ensure this file is being included by a parent f...
true
7000a93a2990cf5c1efef5269ace6bd42274d005
PHP
leocarmo/circuit-breaker-php
/src/Adapters/SwooleTableAdapter.php
UTF-8
4,039
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace LeoCarmo\CircuitBreaker\Adapters; use Swoole\Table; class SwooleTableAdapter implements AdapterInterface { protected Table $table; public function __construct() { $this->checkExtensionLoaded(); $this->table = $this->createTable(); } prote...
true
f89bfd90f1028cdf503afbb27aa4d1c3ca06fba0
PHP
phkel/veebiprogrammeerimine
/tund8/photoupload.php
UTF-8
2,897
2.8125
3
[]
no_license
<?php require("functions.php"); $isImage = ""; $notImage = ""; $imageFileTypes = ""; $fileExistsError = ""; $fileSizeError = ""; $uploadError = ""; $uploadSuccess = ""; $uploadUnsuccessful = ""; //kui pole sisseloginud, siis sisselogimise lehele if(!isset($_SESSION["userId"])) { header("Lo...
true
8726cfde370f88fbdfe891c82cf2256ccf5b224b
PHP
shilpabharamanaik/shilpazend3Fisdap
/vendor/fisdap/ascend-greatplains-php-sdk/tests/Models/PhoneTest.php
UTF-8
3,397
2.796875
3
[]
no_license
<?php namespace Fisdap\Ascend\Greatplains\Phpunit\Models; use Fisdap\Ascend\Greatplains\Models\Phone; use Fisdap\Ascend\Greatplains\Contracts\Phone as PhoneInterface; use Fisdap\Ascend\Greatplains\Contracts\Support\Arrayable; use Fisdap\Ascend\Greatplains\Phpunit\TestCase; use \Mockery as mockery; /** * Class PhoneT...
true
169efcc9905d60b6335ee5cdc80bf45fe1cc7f19
PHP
gustirizkia/backend-filterpedia
/database/seeders/ReplyCommentBlogSeeder.php
UTF-8
619
2.5625
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\ReplyCommentBlog; use Illuminate\Database\Seeder; class ReplyCommentBlogSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = \Faker\Factory::create(); //library faker for dat...
true
b8bd1dd2d63bdd88ee38bcfd4297c628e27028d8
PHP
Sergspm/yii2-soap-app
/console/migrations/m190902_090536_fill_users_table.php
UTF-8
755
2.640625
3
[]
permissive
<?php use frontend\models\SignupForm; use yii\db\Migration; /** * Class m190902_090536_fill_users_table */ class m190902_090536_fill_users_table extends Migration { /** * @return bool|void * @throws \yii\base\Exception */ public function safeUp() { $users = [ [ ...
true
39bb20ce2de5ae4b0214d67625a0ee40eea85c6e
PHP
Sammaye/mongoyii-php7
/File.php
UTF-8
7,645
2.984375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace sammaye\mongoyii; use MongoDB\BSON\ObjectID; use MongoDB\GridFS\GridFSDownload; use Yii; use CUploadedFile; use sammaye\mongoyii\Document; use sammaye\mongoyii\Exception; /** * The MongoYii representation of a helper for uploading files to GridFS. * * It can accept an input file ...
true
66fd024a092dd686622dd9edf77ab3184ca4f508
PHP
marscore/hhvm
/hphp/test/slow/object/651.php
UTF-8
225
3.359375
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php interface I { public function test($a); } class A implements I { public function test($a) { print $a; } } <<__EntryPoint>> function main_651() { $obj = new A(); var_dump($obj instanceof I); $obj->test('cool'); }
true
918d21610441f12a30f52d4f34b6421eb859ce46
PHP
Final-Stack/project-stack
/database/migrations/2014_10_12_000000_create_users_table.php
UTF-8
1,142
2.53125
3
[ "CC-BY-4.0" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
true
a580d0c3e716eff069265a67aa5449b962267bb6
PHP
DBRisinajumi/audittrail
/components/AudittrailHistory.php
UTF-8
669
2.546875
3
[]
no_license
<?php /** * create active record grid with full audit trail history * */ class AudittrailHistory extends CWidget { /** * @var model */ public $model = FALSE; /** * grid table html id * @var string */ public $id = 'audittrail_history_grid'; public function run(...
true
3ef2208f470fe938b25a4d33dd4e4e0b47608070
PHP
GaryDelgadoDeAlmeida/API-Medicament
/src/Command/ImportCompositionCommand.php
UTF-8
1,985
2.71875
3
[]
no_license
<?php namespace App\Command; ini_set('memory_limit', '1024M'); // or you could use 1G use App\Manager\FileManager; use App\Manager\CompositionManager; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console...
true
16a2da7e91089929134041a2bda143306bc9b373
PHP
laisz/blog-core-php-oop
/inc/sidebar.php
UTF-8
1,601
2.8125
3
[]
no_license
<div class="sidebar clear"> <div class="samesidebar clear"> <h2>Categories</h2> <ul> <?php $cat_query = "SELECT * FROM {$cat_table}"; $category = $db->select( $cat_query ); if( $category ) { //$catid = null; // we need to initialize $catid here, otherwise its scope will finished inside fi...
true
de38dd25345bb2ac9995db85442554819d149878
PHP
domstor-project/kww-domstorlib
/vendor/Spv/Form/Field/RadioSet.php
UTF-8
824
2.671875
3
[]
no_license
<?php /** * Description of Select * * @author pahhan */ class Spv_Form_Field_RadioSet extends Spv_Form_Form { protected $options; protected $template = 'fields/radio_set.html.php'; public function setOptions(array $options) { $this->options = $options; return $this; } pub...
true
dd79496a61550609b9eac10f8d6b094dcfc7a760
PHP
some-yummy-nick/task-force
/src/service/UpdateInfo.php
UTF-8
351
2.5625
3
[]
permissive
<?php namespace htmlacademy\service; use frontend\models\Info; class UpdateInfo { public function index($id, $category, $message, $user_id) { $info = new Info(); $info->category = $category; $info->message = $message; $info->task_id = $id; $info->user_id = $user_id; ...
true
44a8485df5fa07881b9e99136c701687abdea5da
PHP
andricasaputra/e-office
/app/Http/Controllers/Operasional/Admin/DatabaseManagerController.php
UTF-8
9,428
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Operasional\Admin; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Storage; class DatabaseManagerController extends Controller { /** * Untuk menyimpan nama database * * @var string...
true
582596947acb91f63ebe5815c8edcf9bc4ad93b8
PHP
ihanchuk/BSA2016-HW
/src/Greeting/Greeting.php
UTF-8
1,824
2.84375
3
[]
no_license
<?php namespace Greeting; class Greeting{ protected $name; public function __construct($name) { $this->name = $name; } protected $quotesCollection = [ 0=>["author"=>"Черчель", "text"=>"Сегодняшним миром правят озабоченные политики, каждый из которых думае...
true
4e15e45e1a5ca129590447df9f62d96d883b05d6
PHP
thanhtrung1999/slideWebPHP
/Day16_5_Frorm_Pratice_Form_Upload/chua_bai_tap.php
UTF-8
3,825
3.140625
3
[]
no_license
<?php //BT1 //xử lý form //khai báo 2 biến chứa thông tin lỗi và thông báo thành công $error = ''; $result = ''; if (isset($_POST['submit'])) { //debug biến để nhìn và thao tác cho dễ echo "<pre>"; print_r($_POST); echo "</pre>"; //tạo các biến trung gian để lưu giá trị $name = $_POST['name']; ...
true
e7f54c94356245e298bf16bba741cd8acae2e49e
PHP
windywany/wulacms
/modules/pay/classes/OrderHandlerManager.php
UTF-8
702
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of wulacms. * * (c) Leo Ning <windywany@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace pay\classes; class OrderHandlerManager { public static function notify($type, $order) { ...
true
cbc84002233e5178632323542d9811e6b3003792
PHP
open-orchestra/open-orchestra-media-admin-bundle
/MediaAdmin/MediaForm/MediaFormStrategyInterface.php
UTF-8
807
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace OpenOrchestra\MediaAdmin\MediaForm; use OpenOrchestra\Media\Model\MediaInterface; use Symfony\Component\Form\FormInterface; /** * Interface MediaFormStrategyInterface */ interface MediaFormStrategyInterface { /** * @param MediaInterface $media * * @return bool */ public ...
true
56ce65ba8f4e46c01536ee5459ad076c7a7ec61e
PHP
LeReverandNox/My_Framework
/lib/LPDR/Model.php
UTF-8
3,812
2.984375
3
[]
no_license
<?php namespace LPDR { abstract class Model { private static $hostname; private static $port; private static $socket; private static $username; private static $password; private static $dbname; protected static ...
true
32bfffff148cc1d6f8617e9f09316af2ee38f453
PHP
idiosyncraticee/othervenues
/SimilarityScoring.php
UTF-8
5,930
3.0625
3
[]
no_license
<?php require_once "SongkickData.php"; class SimilarityScoring extends SongkickData { public $similarityScoresArray = array(); private $dictionary = array(); private $preferences = array(); public $data_array = array(); protected $called_class = "SimilarityScoring"; public function _...
true
59583eb0eea53ebacead937997c8af210fc4d0d9
PHP
fangslayyer/Networking
/add_platform.php
UTF-8
873
2.546875
3
[]
no_license
<?php require('config.php'); if(isset($_GET['edit_id'])) { $EditMode = true; } else { $EditMode = false; } if($EditMode) { $sql = "SELECT * FROM Platform WHERE ID = $_GET[edit_id]"; $result = mysqli_query($link, $sql); $EditRow = mysqli_fetch_array($result); } ?> <!DOCTYPE html> <html> <head> <title>Add Platfo...
true
03ffc0fbe715e2835dd7090f8e0cffb1f8a2aa81
PHP
bluewhale1020/php-mlp
/src/DatasetManager.php
UTF-8
3,119
3
3
[]
no_license
<?php namespace Dataset; use Exception; class DatasetManager { protected $column_names=[]; protected $num_of_features = 0; protected $features; protected $targets; protected $testFeatures; protected $testTargets; protected $trainFeatures; protected $trainTargets; public func...
true
d715fe124f3725d95e98936bddf383dd92ec0c07
PHP
dongjie1/AlgorithmCHUNZHAO
/Week_01/TwoSum.php
UTF-8
1,520
3.765625
4
[]
no_license
<?php /** * https://leetcode-cn.com/problems/two-sum/ * 1. 两数之和 //给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 的那 两个 整数,并返回它们的数组下标。 // // 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 // // 你可以按任意顺序返回答案。 // // // // 示例 1: // // //输入:nums = [2,7,11,15], target = 9 //输出:[0,1] //解释:因为 nums[0] + nums[1] == 9 ,返回 [0, 1] 。 // // ...
true
ce61266816c03e12667151de10d42342a371bd22
PHP
davidseidel/blw
/lib/PSP/BLW_PSP_EditableValueHolder.php
UTF-8
1,244
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php BLW_CORE_ClassLoader::import('app.lib.PSP.BLW_PSP_ValueHolder'); BLW_CORE_ClassLoader::import('app.lib.PSP.validator.BLW_PSP_Validator'); interface BLW_PSP_EditableValueHolder extends BLW_PSP_ValueHolder { /** * Add a Validator instance to the set associated with this component. * * @param BLW_PSP_Validat...
true
8fa721b2c0d9ebc89924b2a29799cd04010f81f0
PHP
CODEbyPoHsiang/SimpleDB_CRUD
/app/Http/Controllers/PrimitiveSQLController.php
UTF-8
2,534
2.84375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\PrimitiveSQL; use DB; class PrimitiveSQLController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // 使用ORM取資料 ...
true
483de14633b1f62d609e31f0ec9ad561c08af3ae
PHP
EliHood/elioop
/index.php
UTF-8
3,039
2.859375
3
[]
no_license
<?php session_start(); require_once 'bootstrap.php'; // Report simple running errors $guest = new \myApp\User(); $username = htmlentities(trim($_POST['txt_username'])); $unpass = htmlentities(trim($_POST['txt_password'])); $password = password_hash($unpass, PASSWORD_BCRYPT, ['cost' => 12] ); $unemail = $_POST['t...
true
35010a0bae2a537070b7c4d7c3e3d3d8017b3edb
PHP
luidgi94/SITE-WEB-CINEMA-MVC-PHP-TWIG-MYSQL-BOOTSTRAP-
/mvccinema/controller/creer_compte.php
UTF-8
1,469
2.65625
3
[]
no_license
<?php if (isset($_POST['mail']) && isset($_POST['password'])) { if (empty($_POST['mail']) || empty($_POST['password'])) { echo $twig->render('registers.html.twig',['erreur2' => "Vous devez nous fournir un e-mail et un mot de passe !"]); } else { ...
true
df03cbbbb0595c83075021d2605b5c83e6f7396c
PHP
quadratic-gmbh/larashare
/app/Console/Commands/GeocodeRentalPlaces.php
UTF-8
1,893
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\RentalPlace; use App\Services\Geocoder; use App\Services\Notifier; use Illuminate\Console\Command; class GeocodeRentalPlaces extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'geoc...
true
72511b289be18b579ced138df69d465802396789
PHP
myexistance/silverstripe-email_reminder
/src/Api/EmailReminderReplacerClassBase.php
UTF-8
3,549
2.65625
3
[]
no_license
<?php namespace SunnySideUp\EmailReminder\Api; use SilverStripe\Control\Director; use SilverStripe\ORM\DataObject; use SilverStripe\View\ViewableData; use SunnySideUp\EmailReminder\Email\EmailReminderMailer; use SunnySideUp\EmailReminder\Interfaces\EmailReminderReplacerClassInterface; class EmailReminderReplacerClas...
true
3da2fb8f24f490b45134f1001c40972668d95271
PHP
AndreaPo/Organize-Me-
/showTask.php
UTF-8
2,151
2.640625
3
[]
no_license
<?php include __DIR__ . '/connection.php'; $email = $_SESSION['email']; $sql = "SELECT *, DATE(dateinput) FROM task WHERE email = '$email'"; $res = $pdo->query($sql); while($row = $res->fetch()){ if($row['status'] > 30 && $row['status'] < 1...
true
ca9ce957f28ce5605fcff473cf6150714e0d8fb5
PHP
DamonK19/DnD-Character-Sheet-Generator
/public/step6.php
UTF-8
5,673
2.515625
3
[ "MIT" ]
permissive
<?php require "templates/header.php"; ?> <?php include "templates/nav.php"; ?> <form action="" method="post"> <?php $con = NEW MySQLi("localhost","root","root","dnd"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } //background equipment Se...
true
64ee1196fc210fb207b50117df33a1aac1f8a19e
PHP
michimoy/memory_diary
/ajaxMemoryFavorit.php
UTF-8
2,417
2.578125
3
[]
no_license
<?php //共通変数・関数ファイルを読込み require('function.php'); debug('「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「'); debug('「 Ajax '); debug('「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「'); debugLogStart(); //================================ // Ajax処理 //================================ // postがあり、ユーザーIDがあり、ログインしている場合 if(isset($_POST['me...
true
f119ec17dc272bf2c57a2137f584758822e28870
PHP
YacoubBadran/DP-Exercise1-Part2
/GENERATE.php
UTF-8
616
2.546875
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <?php /* $xml = new SimpleXMLElement('<xml/>'); $xml->addChild('name', $_GET["name"]); $xml->addChild('title', $_GET["title"]); $xml->addChild('firstname', $_GET["firstname"]); $xml->ad...
true
a49c841833d158b1ef70b77c8197eea9f45ad683
PHP
HBFormation2017/Php
/Exercice9.php
UTF-8
514
3.484375
3
[]
no_license
<?php // Compter le nb de notes les notes au-dessus de la moyenne $notes = [10, 12.6, 11, 1, 19, 9.3, 5]; $total = count($notes); $somme = 0; for ($i = 0; $i < $total ;$i++): $somme += $notes[$i]; endfor; $moy = $somme/$total; $sup = 0; $inf = 0; for($i = 0; $i <$total; $i++): if($notes[$i] >...
true
ac0599762e60bdf012b980d8be31136a5495aeff
PHP
aymenbagh/web
/categorie.php
UTF-8
786
2.90625
3
[]
no_license
<?php class Categorie { private $id; private $nom; private $souscategories; private $productcount; public function getid() { return $this->id; } public function getnom() { return $this->nom; } public function getsouscat() { ...
true
d74dc8a5db40faba7dc9f2714adc760659d9b92c
PHP
wmlmusic/wmlmusicguide
/includes/classes/class.reset.php
UTF-8
1,246
2.671875
3
[]
no_license
<?php /* 0741d51429cb184b0e3fb5e9e9e1b3f2:ayd01m9k * Customer Class Developed By Mukesh Rai * for http://www.elrada.com * Copyright (c) 2011- 2012 elrada.com */ #include('array2xml.php'); include_once('class.database.php'); class Pages extends Database { #private $data = array(); private $sql = nu...
true
9d96637f7357e3bfe8e9b324b5f41eade2b2e0ec
PHP
TuyetMy123/DEMO
/app/models/DiaDiem_model.php
UTF-8
7,742
2.578125
3
[]
no_license
<?php class DiaDiem_model extends CI_Model { /** * Chèn một địa điểm vào bảng. Không bao gồm ảnh đại diện và danh mục hình ảnh. * Sau khi chèn phải upload hình ảnh và gọi updateAvatar($id) để cập nhật ảnh đại diện. * * @return string Trả về mã địa điểm nếu thành công. Trả về false nếu không thàn...
true
f3944f7c804b0332ba9432b9cef21a9331b00ad0
PHP
sonluiz/php1902e
/array/arraydachieu.php
UTF-8
1,848
3.453125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ABC * Date: 5/25/2019 * Time: 6:27 PM */ // cách 1 khai bao mang da chieu $mang= array(); $mang["sv01"] = array("name" => "nguyen hong son", "age" => 19 , "alldiem" => "9, 8, 6"); $mang["sv02"] = array("name" => "nguyen mai anh", "age" => 20 , "alldiem" => "9, 8, 10"); $man...
true
47b1e3603efceb13b24543a8819f495395347afa
PHP
bomj321/sistema-funeraria
/admin/ajax/actualizar_productos.php
UTF-8
4,771
2.546875
3
[]
no_license
<?php session_start(); require_once('../connect.php'); $id_user_unico=$_SESSION["unicoid"]; $id_user_session=$_SESSION["usuarioid"]; ////////////////////ENTREGAR SERVICIO if (isset($_GET['id_producto_entregar']) AND isset($_GET['actualizar_producto']))//codigo elimina un elemento del array { $id_producto=intval($...
true
49cdd35e795d45c333a6b40ed599b360064d1684
PHP
dariokolar/RocketCore
/www_root/admin/modules/dictionary/_lang.class.php
UTF-8
3,261
2.578125
3
[]
no_license
<?php class lang{ function dejData($id){ $id = intval($id); $query = "SELECT * FROM tbLangs WHERE id = '$id'"; $data = mysqli_query($link, $query); while ($zaznam = mysql_fetch_assoc($data)) { return $zaznam; } } function dejList($page, $quer...
true
c15291fc83d1702b08f917123a505b14f0ffe965
PHP
iamevans/php_basic
/book1/1-10/generator-02.php
UTF-8
304
3.375
3
[]
no_license
<?php function gen(){ yield "gen() 1 실행"; yield "gen() 2 실행"; // 3번째 yield는 gen2() 제너레이터로 연결 yield from gen2(); } function gen2(){ yield "gen2() 3 실행"; yield "gen2() 4 실행"; } foreach (gen() as $val){ echo $val."<br>"; } ?>
true
2c3422ddce92787bb003cbae8e7c77db95197d10
PHP
mikaeljorhult/brackets-php-code-quality-tools
/modules/vendor/phpcs/rulesets/Drupal/Sniffs/Files/LineLengthSniff.php
UTF-8
4,420
2.828125
3
[ "MIT" ]
permissive
<?php /** * Drupal_Sniffs_Files_LineLengthSniff. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @link http://pear.php.net/package/PHP_CodeSniffer */ /** * Checks comment lines in the file, and throws warnings if they are over 80 * characters in length. * * @category PHP * @package ...
true
a921bbc0e5b8055285ab5a85da6fa12c6937d49b
PHP
apsxj/json
/src/Links.php
UTF-8
2,332
3.296875
3
[ "MIT" ]
permissive
<?php /** * JSON Links Object * * @category Server Software * @package apsxj/json * @author Roderic Linguri <apsxj@mail.com> * @copyright 2021 Roderic Linguri * @license https://github.com/apsxj/json/blob/main/LICENSE MIT * @link https://github.com/apsxj/json * @version 0.1.1 * @since 0.1....
true
d8ee59ec317d5a1e294c2be18f0eb2f00c265309
PHP
hanzhaozxd/docker-lnmp-swoft-emqx
/www/swoft.localhost/app/Helper/Functions.php
UTF-8
857
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Unlicense" ]
permissive
<?php use Swoft\Context\Context; use Swoft\Http\Message\ContentType; use Swoft\Http\Message\Response; /** * Custom global functions */ function user_func(): string { return 'hello'; } /** * 拼装json格式的接口返回数据 * * @param int $code * @param string $message * @param array $data * @return string */ function m...
true
d19f85706d757abc23b1b4fcec83ea0f3ce39766
PHP
gcoronelc/UCH_PROG-II_2017-1
/Sem06/ParaElParcial/prueba/Prueba01.php
UTF-8
615
2.953125
3
[]
no_license
<?php include "../service/PrestamoService.php"; // Datos $meses = 12; $capital = 1200; $inteMes = 5; // Proceso $repo = procPrestamoCuotaVariable($meses,$capital,$inteMes); // Reporte echo "Meses: $meses<br/>"; echo "Capital: $capital<br/>"; echo "Inte. Mes: $inteMes<br/>"; ?> <table> <tr> <td>MES</td> <t...
true
d0b136b7b2ffeea2bc4610ac7f279749012231c6
PHP
c9s/MiniPear
/src/MiniPear/PearChannel.php
UTF-8
3,344
2.671875
3
[ "MIT" ]
permissive
<?php namespace MiniPear; use DOMDocument; use Exception; use MiniPear\CurlDownloader; class PearChannel { public $logger; public $downloader; public $host; public $alias; public $name; public $restType; /* url list */ public $channelXmlUrl; public $channelBaseUrl; public $ch...
true
9fd99b903277e6a7ca64c63fd2d423c8aa257e6f
PHP
Hertzian/apischool
/app/Http/Controllers/api/admin/GroupsController.php
UTF-8
1,444
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\api\admin; use App\Group; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Resources\admin\GroupsResource; class GroupsController extends Controller { public function index(){ $groups = Group::paginate(5); return new GroupsResour...
true
ba000dc3541db06e1f2770819458f5cf3ff42fe5
PHP
deysalex/pro
/application/forms/Registration.php
UTF-8
2,534
2.515625
3
[]
no_license
<?php class Application_Form_Registration extends Zend_Form { public function init() { $this->setName('Registration'); $this->setMethod('post'); $isEmptyMessage = 'Значение не может быть пустым'; //-----------------------------------------------------------------------------------...
true
9915ae1b9b21bbbfb90d0004e0e438af4f3c5938
PHP
simply-framework/router
/src/HttpMethod.php
UTF-8
1,714
3.25
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Simply\Router; /** * Provides valid values for the HTTP request method. * @author Riikka Kalliomäki <riikka.kalliomaki@gmail.com> * @copyright Copyright (c) 2018-2019 Riikka Kalliomäki * @license http://opensource.org/licenses/mit-license.php MIT License */ class HttpMethod { /** The HTTP GET...
true
d6965ccccc0482c67ccff29603f04e87bdb4833a
PHP
kyleslie2/practicing_php
/12 WFC- Web services/php/Scripts/Site.php
UTF-8
2,727
2.578125
3
[]
no_license
<?php //Receive and process the ajax calls from Site.js $appConfigs = parse_ini_file("Lab6.ini"); $wsdl = $appConfigs["restaurantReviewServiceWsdl"]; $reviewClient = new SoapClient($wsdl); $ajax_var = $_GET['fetch']; switch ($ajax_var) { case "names": get_names($reviewClient); break; case "r...
true
4085a4a90eaa27b5700d22ceeca4be22fcef5c77
PHP
Delwin444/php-gaming-website
/src/ConnectFour/Port/Adapter/Persistence/Projection/GameProjection.php
UTF-8
1,180
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gaming\ConnectFour\Port\Adapter\Persistence\Projection; use Gaming\Common\EventStore\NoCommit; use Gaming\Common\EventStore\StoredEvent; use Gaming\Common\EventStore\StoredEventSubscriber; use Gaming\ConnectFour\Application\Game\Query\Model\Game\Game; use Gaming\ConnectFour\A...
true
d5db7a83590bcb0bd63c9c1855a7b080b11e4d14
PHP
stk2k/charcoalphp2
/src/exception/FileRenameException.class.php
UTF-8
562
2.65625
3
[ "MIT" ]
permissive
<?php /** * Exception caused by failure in renaming file * * PHP version 5 * * @package exceptions * @author CharcoalPHP Development Team * @copyright 2008 stk2k, sazysoft */ class Charcoal_FileRenameException extends Charcoal_RuntimeException { public function __construct( $old_file, $new_file, $prev = NU...
true
3bb6d4085ce091fb99038d02cbfdde516e58c382
PHP
simonsmith/Google-Map-Geocode
/Google_Map_Geocode.php
UTF-8
2,815
3.125
3
[]
no_license
<?php /* * Usage: * $geo = new Google_Map_Geocode(); * $geo->get_address('London, UK'); * $geo->get_latlong('51.535879,0.696966'); * * Simon Smith - http://blink-design.net */ class Google_Map_Geocode { private $url = 'http://maps.googleapis.com/maps...
true
34e8130e855a00b5c582c632420ad8b1f8deb227
PHP
alfiannsx98/Kelompok1_TIFD
/Tugas/functionKecapABC.php
UTF-8
1,677
3.125
3
[]
no_license
<?php error_reporting(0); $n = $_GET["n"]; ?> <form action="" method="post"> <?php for ($x = 0; $x < $n; $x++) { ?> <h3>Masukkan Jumlah Penjualan Kecap Bulan ke-<?php echo "$x" ?></h3> <input type="number" name="<?php echo "y$x" ?>"> <?php $Jx += $x; } ?> <h3>Masukkan ...
true
5a5c7cbaa6c39576c277349b97d8a600ca0df172
PHP
datagutt/PinIB
/app/models/Thread.php
UTF-8
1,667
2.921875
3
[ "Apache-2.0" ]
permissive
<?php namespace PinIB\Models; class Thread extends \PinIB\Model{ protected $table = 'threads'; /** * @param integer $amount Amount of threads. **/ public function threads($amount = 10){ $query = new \PinIB\SQLQuery($this->table); if($cache = $this->redis->get('threads')){ $threads = unserialize($cache); ...
true
32c7eb62e4e5281fad949f043e694256e3d0ef19
PHP
dankostic/example
/php/intro.php
UTF-8
3,548
2.703125
3
[]
no_license
<div class="tab-pane active" id="intro"> <div class="col-md-12"> <div class="container"> <div class="panel panel-default"> <div class="panel-heading">Constants</div> <div class="panel-body"> <div class="constants"> ...
true
bef5756951146982a7cd1bd635067560d687992b
PHP
giselleMM/PPE-Parking-re
/app/Http/Controllers/AuthController.php
UTF-8
3,642
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\admin; use App\Enums\AccountEnum; use App\Enums\AuthEnum; use App\personnel; use App\utilisateur; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Request; class AuthCon...
true
63614cc7ff41de21fef56161139317d2fd365609
PHP
Cerdic/spip-zone-plugins
/step/inc/step_infos_plugin.php
UTF-8
4,017
2.65625
3
[]
no_license
<?php if (!defined("_ECRIRE_INC_VERSION")) return; // Fonctions analysant les fichiers plugin.xml et archives.xml en decoulant // Il faudrait aussi admettre les fichiers paquet.xml de la 2.2 include_spip('inc/xml'); function step_get_infos_plugin($constante, $p, $actifs, $recents) { if($constante == '_DIR_PLUGINS_...
true
008ebc465d6fa459f3e98f00516d1c31c2c6741f
PHP
gemedina/code_sample
/access.php
UTF-8
6,361
3.203125
3
[]
no_license
<?php // Declarando uma classe para acessar esse arquivo php class access { // Variaveis Globais de conexão var $host = null; var $user = null; var $pass = null; var $name = null; var $conn = null; var $result = null; // Construection Class function __construct($dbhost, $...
true
3f9f6a244e298c0f5d44216fe39245901dba3b72
PHP
XluNl/mhsh
/common/models/WechatImage.php
UTF-8
1,380
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; /** * This is the model class for table "{{%wechat_image}}". * * @property string $id * @property string $url * @property string $module * @property integer $company_id * @property integer $created_at * @property integer $updated_at */ class WechatImage extends \yii\db\ActiveRe...
true
7dc84b8f8a953df9808b2a0aae3d22e722aeee48
PHP
weipinglee/company
/application/Bootstrap.php
UTF-8
1,882
2.546875
3
[]
no_license
<?php /** * Bootstrap类, 在这个类中, 所以以_init开头的方法 * 都会被调用, 调用次序和申明次序相同 * * @author Laruence * @date 2011-05-13 15:24 * @version $Id$ */ class Bootstrap extends Yaf\Bootstrap_Abstract { protected $config; /** * 把配置存到注册表 */ function _initConfig(Yaf\Dispatcher $dispatcher) { $this->config = Yaf\Applicati...
true
cf1234d265d638d9087164af201ed57cd42ab4ca
PHP
recognant/guidesite
/processor/parser.php
WINDOWS-1252
2,067
2.78125
3
[]
no_license
<?php include_once(dirname(__FILE__) . "/../utils/index.php"); $tree = new Tree(); // complete list of valid tokens $tokenlist = array("title", "icon", "br", "u", "i", "b", "*", "img", "size", "important", "list", "code", "quote", "url", "alert", "panel", "video", "wowdb", "header"); class Parser { function parse...
true
088892b4263693ed2ef544429e0d8a9beff93af4
PHP
ieskandari/ipak
/sys/tools/tools.php
UTF-8
6,995
2.65625
3
[]
no_license
<?php namespace sys; class tools { public static function Createfolder($path) { if (!file_exists($path)) { mkdir($path, 0777, true); } } public static function deletefolder($path) { if (file_exists($path)) { self::deleteFolders($path); } ...
true
0c6995ba4ae8e9b15408b013bc4d7cfc28d01b61
PHP
kishan-dk/core-php-CRED
/index.php
UTF-8
2,410
2.640625
3
[]
no_license
<?php include('connection.php'); ?> <!DOCTYPE html> <html> <head> <title>PHP CRUD</title> <style type="text/css"> .manageMember { width: 50%; margin: auto; } table { width: 100%; margin-top: 20px; } </style> </head>...
true
6daa1994ff7a8cf51a25bf158249508992c951e2
PHP
vaishalipattewar/member-portal
/dashboard.php
UTF-8
2,052
2.625
3
[]
no_license
<?php include('session.php'); ?> <!DOCTYPE html> <html> <head> <title>Your Home Page</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body background="background3.jpg"> <div id="profile"> <b id="welcome">Welcome : <i><?php echo $login_session; ?></i></b> <b id="dashboard"><span id="...
true
1f21ee65afa37b45a6d1604c13cfc87670a64fdd
PHP
monitophp/mkr
/src/Lib/Database.php
UTF-8
4,253
2.703125
3
[]
no_license
<?php namespace MonitoMkr\Lib; class Database { const VERSION = '1.0.0'; /** * 1.0.0 - 2020-10-01 * initial release */ protected $connection; public function __construct($connection = null) { $this->connection = $connection; } public function columnDefaults() {...
true
f0aa31e40f53820bfd537d8fdf46ea87b5416a14
PHP
kyledang/phalcon
/app/core/BaseModel.php
UTF-8
683
2.671875
3
[]
no_license
<?php use Phalcon\Mvc\Model; use Phalcon\Mvc\Model\Behavior\SoftDelete; /** * Created by PhpStorm. * User: kyle * Date: 8/14/16 * Time: 7:29 PM */ class BaseModel extends Model { public $created_at; public $updated_at; public $softdelete = true; public function initialize(){ if($this->so...
true
2b1881d06bbd137b3fe5dadeb33a16f18b13ec15
PHP
HAMZAH-DAFIR/Posts-project
/app/Observers/PostObserver.php
UTF-8
1,774
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\Post; use Illuminate\Support\Facades\Cache; class PostObserver { /** * Handle the Post "created" event. * * @param \App\Models\Post $post * @return void */ public function created(Post $post) { // } /** * Handl...
true
d3ec5a3eac0445f3cc45bf3ddee18a5740dbb94b
PHP
fershopls/ContpaqiMasterpiece
/lib/Bin/App.php
UTF-8
1,029
2.953125
3
[]
no_license
<?php namespace lib\Bin; use lib\Reporter\ReporterInterface; class App { protected $pdo; protected $dbs; protected $modules; public function __construct($pdo, $dbs = []) { $this->pdo = $pdo; $this->dbs = $dbs; } public function run($classModule, $p...
true
dcc66c849aa87bf2369b6b869dac874904dcbb27
PHP
BackupTheBerlios/limb-svn
/packages/php5/common/branches/trunk/site_objects/ImageObject.class.php
UTF-8
1,133
2.609375
3
[]
no_license
<?php /********************************************************************************** * Copyright 2004 BIT, Ltd. http://limb-project.com, mailto: support@limb-project.com * * Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html) **************************************************************...
true
37effa0d3698735ab4e6a2ea6ef1c4d791e3b077
PHP
ktaris/yii2-components
/aws/S3Interface.php
UTF-8
1,250
2.78125
3
[ "MIT" ]
permissive
<?php namespace ktaris\aws; /** * Interfaz a ser utilizada por modelos que se conectan con S3 para * almacenar o obtener archivos. */ interface S3Interface { /** * Regresa el nombre del bucket al que se pretende acceder en AWS S3. * * @return string nombre del bucket en AWS S3. */ publi...
true
92a0f026153b0dbb08ed85ccc9f79aa6965d2035
PHP
SBERP/BACKEND
/app/Core/Settings/Templates/Properties/TemplateNamePropertyTrait.php
UTF-8
430
2.640625
3
[]
no_license
<?php namespace ERP\Core\Settings\Templates\Properties; /** * @author Reema Patel<reema.p@siliconbrain.in> */ trait TemplateNamePropertyTrait { /** * @var templateName */ private $templateName; /** * @param int $templateName */ public function setTemplateName($templateName) { $this->templateN...
true
38a00e3c28ad643d20a3a1bf452200c756697fee
PHP
lovexiongmao/emp
/view/updateEmpUI.php
GB18030
1,348
2.640625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <?php require_once '../model/EmpService.class.php'; //ҳҪʾ׼޸ĵûϢ $id=$_GET['id']; //ͨidȡûϢ $empServiece=new EmpService(); //$arr=$empServiece->getEmpById($id); $emp=$empServiece->getEmpById($id); ?> <head> <meta charset="gbk" /> <title>Ա¼ҳ</title> </head> <body> <h1>޸ĹԱ</h1> <for...
true
daf4a09cd663a2abb3e93d99d0b3654a23259a12
PHP
andy-love-coding/larabbs
/app/Observers/ReplyObserver.php
UTF-8
1,487
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\Reply; use App\Notifications\TopicReplied; // creating, created, updating, updated, saving, // saved, deleting, deleted, restoring, restored // Reply 模型监控器 class ReplyObserver { // 新增一条回复时,话题的回复数 reply_count 加 1;并触发通知,通知作者 public function created(Reply $reply) ...
true
8afa855f7bfdc03437be673015d6eb6ca8c76be1
PHP
kltdaer111/gm_server
/php/php/data.php
UTF-8
7,333
2.609375
3
[]
no_license
<?php // 测试php是否可以拿到数据库中的数据 // 做个路由 action为url中的参数 // query_type 为 1 新增玩家 2 活跃玩家 3 玩家留存 4 玩家流失 5 付费转化 //$data_info=isset($_POST["data"])?$_POST["data"]:""; //$data = json_decode($data_info); $datemin = $_GET['datemin']; $datemax = $_GET['datemax']; $query_type = $_G...
true
36730f70519f064bc854663b4560fbf04ec44680
PHP
gmadez/phonebook
/functions.php
UTF-8
2,958
2.640625
3
[]
no_license
<?php function addUser($name, $phone, $email, $group) { if (isset($_POST['groups']) && $_POST['groups']!=""){ $group = $_POST['groups']; $sql = "INSERT INTO users ". "(user_name, phone, email, assigned_group) ". "VALUES('$name','$phone', '$email', '$group')"; } else { $sql = "INSERT INTO users ". "...
true
47d8316d3e4777e0ee4404fa945324d1f1341990
PHP
LucaHermann/Camagru
/php/setting_validation.php
UTF-8
4,018
2.578125
3
[]
no_license
<?php require_once('../config/connect.php'); session_start(); $success = "Success !"; $fail = "Failure !"; $iduser = $_SESSION["id"]; if (isset($_POST['New_password']) && isset($_POST['Confirm_password']) && isset($_POST['Code'])){ $verif = $bdd->prepare('SELECT codepw FROM user WHERE id = :id'); $verif->bindVal...
true
3151073a324c86f4e0b111c20624a885549c5510
PHP
route4me/route4me-php-sdk
/src/Route4Me/TelematicsGateway/TelematicsVendors.php
UTF-8
1,221
2.59375
3
[]
no_license
<?php namespace Route4Me\TelematicsGateway; use Route4Me\Enum\Endpoint; use Route4Me\Common as Common; use Route4Me\Route4Me as Route4Me; /** * Telematics vendors' list item data structure. */ class TelematicsVendors extends Common { /** * Unique ID of a telematics vendor. * @var type string */ ...
true
dc49a6950b98d313cd4325b4897569c151d75fd5
PHP
omomi/QuizSection
/quiz/highScore.php
UTF-8
2,739
2.734375
3
[]
no_license
<?php $con = mysqli_connect("servername", "username", "password", "databasename"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { $Id = ""; $dateofentry = ""; header('Content-Type: application/json'); if ($Id == "") ...
true
d080969c7ce618c5aa7a4d2960c7b7a05cd39c2f
PHP
KompeNnet/WebLabs
/6_8/functions.php
UTF-8
2,449
2.65625
3
[]
no_license
<?php function GetMainInfo() { $url = "http://api.openweathermap.org/data/2.5/forecast/daily?q=Minsk&mode=json&units=metric&cnt=4&lang=en&appid=23b4abe43b4554582b08aa8e8a599f24"; $data = @file_get_contents($url); if ($data) { $data_json = json_decode($data); ...
true
e3f0de8334f36916988850d7e0f8a96fb9dc7c82
PHP
intrum/api
/example/external_dialog_api_example/dialogs.api.php
UTF-8
3,596
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Intrum; class DialogsApi{ /** @__construct @param $host host crm intrum @param $apikey API ключ */ public function __construct ($host , $apikey) { $this->host = $host; $this->key = $apikey; } private function request ($type , $params = null) { $url = "http://{$this->host}:81/shared...
true
80fa4a93d149ace4be6c71a115a08cc2247f8acd
PHP
whatjoesays/notts-digital
/app/src/Adapter/MeetupAdapter.php
UTF-8
3,486
2.84375
3
[]
no_license
<?php /** * Nottingham Digital events * * @link https://github.com/pavlakis/notts-digital * @copyright Copyright (c) 2016 Antonios Pavlakis * @license https://github.com/pavlakis/notts-digital/blob/master/LICENSE (BSD 3-Clause License) */ namespace NottsDigital\Adapter; use GuzzleHttp\Client; use NottsDig...
true
54d0baf9a3ac744ab8ba0ceaf537f8acab960a07
PHP
camaech/responsive-tables-wp
/responsive-tables.php
UTF-8
2,360
2.796875
3
[]
no_license
<?php /* * Plugin Name: Responsive Tables * Description: Responsive Tables based on Zurb's Responsive Tables * Version: 1.0 * Author: Blue Door Consulting, LLC * Author URI: http://www.bluedoorconsulting.com */ if(!defined('ABSPATH')) die(); class ResponsiveTables { static $add_script; function __construct(){ add...
true
63a87e6855a092d5c52251f9b25da9d6b1000ec7
PHP
IaninaBasystiuk/MVC-PHP
/core/manager.class.php
UTF-8
2,708
3.015625
3
[]
no_license
<?php include_once "Connexion.class.php"; include_once "ManagerBase.class.php"; class Manager implements ManagerBase{ private $connexion; public function __construct(){ $this->connexion = Connexion::getInstance(); } public function inserer($table, $valeur){ //$valeur array("codePermanent"=>"etud2010","...
true
8356c18953523b41d6b2fc30b2572a077299cbae
PHP
UziTech/prado
/framework/Web/UI/WebControls/IListControlAdapter.php
UTF-8
1,335
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * TListControl class file * * @author Robin J. Rogge <rojaro@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com> * @link https://github.com/pradosoft/prado * @copyright Copyright &copy; 2005-2016 The PRADO Group * @license https://github.com/pradosoft/prado/blob/master/LICENSE * @package Prado\Web\UI...
true
a94b6a8ba0a353d0827681b41c9a13a02095f52c
PHP
tonydspaniard/textrank
/lib/PageRank.php
UTF-8
8,832
2.78125
3
[]
no_license
<?php /* +---------------------------------------------------------------------------------+ | Copyright (c) 2010 TextRank | +---------------------------------------------------------------------------------+ | Redistribution and use in source and binary forms...
true
b8e283db8e629e8263cc7deb117ea6efdbdf2095
PHP
ncmalitha/MessageBird
/app/Models/QueueableMessage.php
UTF-8
2,056
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: malitha * Date: 8/28/2017 * Time: 5:17 PM */ namespace Models; require_once 'Model.php'; class QueueableMessage extends Model { protected $table = 'message_queue'; /**Saves new message to the database in message_queue * @param $recipient * @param $ori...
true
ee8c560c656aba5ce3470a9b755013127f2a7c1b
PHP
bhalexx/blog
/app/App.php
UTF-8
3,038
2.703125
3
[]
no_license
<?php namespace App; use Core\Autoloader; use Core\Config; use Core\Database\MySQLDatabase; use Core\Router\Router; class App { private $db_instance; private static $instance; public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new App(); } return self...
true
498e1a78d87de62769e40da561a4f5e247c21f9d
PHP
connormcdxc/Loge
/test.php
UTF-8
1,330
2.546875
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET, POST"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); $servername = "localhost"; $username = "connorm4_useloge"; $password = ",x^O8OK-xd=["; $dbname = "connorm4_loge"; $postdata ...
true