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
f6da6a60c74cf9a290e3427e72151b6500b5ba30
PHP
porruthaii/thesis
/rap-v096/rdfapi-php/api/sparql/SparqlEngine/ResultRenderer/Default.php
UTF-8
8,635
2.671875
3
[]
no_license
<?php require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/ResultRenderer.php'; /** * Default result renderer for SparqlEngine * * @author Tobias Gauß <tobias.gauss@web.de> * @author Christian Weiske <cweiske@cweiske.de> * @license http://www.gnu.org/licenses/lgpl.html LGPL * * @package sparql */ class S...
true
3b956fc794f8384f82a55742178e6d9a9ab48294
PHP
ahamed-kashif/drivers_hub
/app/includes/user/car/show.inc.php
UTF-8
576
2.75
3
[]
no_license
<?php if(empty($_GET['id'])){ header("Location: ./list.php?error=Wrong%20Url!!"); } $id = $_GET['id']; //connection $conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $car = ""; try{ $result = mysqli_query($conn, "SELEC...
true
16df018ad3473e6073ffedfb4b4f52008cb49543
PHP
evrimulgen/php-978-1-8471-9363-6
/_src/ch2/bindvars.php
UTF-8
888
2.6875
3
[ "Apache-2.0" ]
permissive
<?php //File: bindvars.php if(!$dbConn = oci_connect('hr', 'hr', '//localhost/orcl')) { $err = oci_error(); trigger_error('Could not establish a connection: ' . $err['message'], E_USER_ERROR); }; $depts = array(array("deptno" => 330, "deptname" => 'Research'), array...
true
644eb748fd40cfccc295e6d44998864ed3f9625d
PHP
felipexpert/pure
/entity/ProdutoFornecedor.php
UTF-8
1,198
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: geppetto * Date: 10/07/17 * Time: 16:27 */ namespace pure\entity; use pure\Util; class ProdutoFornecedor { private $produtoId; private $fornecedorId; private $codigo; private $observacao; /** * ProdutoFornecedor constructor. * @param $produtoId * @pa...
true
a4e3fa614bf4610fd2bdd586797ab03a50caa1ec
PHP
somehow-yw/service-providers
/app/Models/AuthenticatedUser.php
UTF-8
388
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: coderxiao * Date: 17-3-2 * Time: 上午10:45 */ namespace App\Models; class AuthenticatedUser { protected $user; public function __construct($user) { $this->user = $user; } /** * @return \Zdp\ServiceProvider\Data\Models\User */ publ...
true
83df6cb5cce22136c026142f50dc105aecb0a932
PHP
lequangbksg02/PHP
/day5/interface 'Colorable' cho các lớp hình học/kiemtravaduyetmang.php
UTF-8
539
3.359375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 18/02/2019 * Time: 16:47 CH */ include_once ("Square.php"); include_once ("Rectangle.php"); $cn = new Rectangle(2,4); echo $cn->getArea(); echo "<br>"; $cn->howToColor(4); echo "<br>"; $vuong = new Square(4,4); echo $vuong->getArea(); echo "<br>";...
true
0322b77f0311f9afd66062b4bc19d815aed8f8fd
PHP
p5ych0/laracrypt
/tests/SerialTest.php
UTF-8
3,609
2.875
3
[ "MIT" ]
permissive
<?php namespace P5ych0\Laracrypt\Tests; use P5ych0\Laracrypt\Feistel; use Illuminate\Contracts\Encryption\EncryptException; use Illuminate\Contracts\Encryption\DecryptException; /** * Class SerialTest */ class SerialTest extends TestCase { /* ----------------------------------------------------------------...
true
82caddce8d9b887d24f9d622cf0394ec7d659068
PHP
Zyten/dmon-duino
/transitThingSpeak.php
UTF-8
1,028
2.5625
3
[ "MIT" ]
permissive
<?php $temp= 0; $humidity= 0; $dust= 0; $temp= $_GET['temp']; if($temp == 0) { echo '{"temp":"0"}'; exit(0); } echo '{"temp":"'.$temp.'"}'; $humidity= $_GET['humidity']; if($humidity== 0) { echo '{"humidity":"0"}'; exit(0); } echo '{"humidity":"'.$humidity.'"}'; $dust= $_GET['dust']; if($dust== 0) { echo...
true
37d55fa3d58167d45315b348d19331af5c071f50
PHP
fabiomigliorini/MGLara
/app/Models/Feriado.php
UTF-8
4,710
2.890625
3
[]
no_license
<?php namespace MGLara\Models; use Carbon\Carbon; /** * Campos * @property bigint $codferiado NOT NULL DEFAULT nextval('tblferiado_codferiado_seq'::regclass) * @property date $data NOT NULL * @property varc...
true
e3452aa7f6f3db9c277bd605823d10b6cad44bf6
PHP
yaobolun/fyls
/Public/imp.php
UTF-8
4,191
2.875
3
[]
no_license
<?php require_once "PHPExcel/Classes/PHPExcel.php"; //引入文件 require_once "PHPExcel/Classes/PHPExcel/IOFactory.php"; //引入文件 require_once "PHPExcel/Excel5.php"; //引入文件 require_once "PHPExcel/Excel2007.php"; //引入文件 /** *导入excel的方法 *时间:2016-03-01 *此页面编码为UTF-8 *测试时使用TP框架 */ //生成读取类 function createReader($filename){ ...
true
e503a8a87af431e8d241abc91e652bde6c86fbc2
PHP
Andryhsm/oulib2.1
/save2/test_pdf.php
UTF-8
1,362
3.015625
3
[]
no_license
<?php /** * HTML2PDF Library - example * * HTML => PDF convertor * distributed under the LGPL License * * @package Html2pdf * @author Laurent MINGUET <webmaster@html2pdf.fr> * @copyright 2016 Laurent MINGUET * * isset($_GET['vuehtml']) is not mandatory * it allow to display the result in the HTML format...
true
a4ae4ad3062ae9a9860e434e9a9a8d9daf6ce5fd
PHP
never-alone/neveralone
/server/api.php
UTF-8
3,015
2.6875
3
[]
no_license
<?php require 'config.php'; $request=$_SERVER['REQUEST_URI']; $path=parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $db = new PDO( $config['dbname'], $config['dbuser'], $config['dbpassword'], array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); mysql_query("SET NAMES 'utf8'", $db); switch($path){ case '/v1...
true
23bc797b44f1d526e8c4b40b35a351c2a7323437
PHP
illuminate3/nested
/public/_unused/app/CategoryController copy.php
UTF-8
5,375
2.671875
3
[]
no_license
<?php //namespace controllers; //use Item as Item; /** * This controller is used to display categorys. */ class CategoryController extends BaseController { protected $layout = 'layouts.master'; /** * The category storage. * * @var Category */ protected $category; /* public function __construct(Catego...
true
d0fb6a2201ecf2342f15456745681c47358580fc
PHP
AbhishekBaiju/panel
/tests/Unit/Services/Users/UserUpdateServiceTest.php
UTF-8
4,274
2.546875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Tests\Unit\Services\Users; use Mockery as m; use Tests\TestCase; use Pterodactyl\Models\User; use Illuminate\Support\Collection; use Illuminate\Contracts\Hashing\Hasher; use Pterodactyl\Services\Users\UserUpdateService; use Pterodactyl\Contracts\Repository\UserRepositoryInterface; class UserUpdateSer...
true
14bb508258ec14708e92c50a61863bff54b16289
PHP
ZvP22/Licenta
/search.php
UTF-8
2,077
2.53125
3
[]
no_license
<?php include('header.php'); ?> <div class="content"> <?php session_start(); require_once('includes/connection.php'); $sql = "SELECT * FROM products"; if(isset($_GET['status']) & !empty($_GET['status'])){ if($_GET['status'] == 'success'){ echo "<div class=\"alert alert-success\" role=\"...
true
ef789bdee6d55aaafdc5ca3fabce15f7a9b1faf3
PHP
RichardAcevedo/bomberos-api
/app/Http/Controllers/ProfesionController.php
UTF-8
2,079
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Profesion; class ProfesionController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Profesion::all(); ...
true
2d27363a7dd470066f66994eba6ea36ff1153a86
PHP
mauryparra/SirecuWeb
/app/Trimestre.php
UTF-8
853
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Trimestre extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'trimestres'; /** * Indicates if the model should be timestamped. * * @var bool */ pub...
true
f787eeeafb6d632948accace27b96937c721459c
PHP
wdiaz/Design-Patterns
/tests/Strategy/Customer/CustomerTest.php
UTF-8
1,121
2.90625
3
[]
no_license
<?php use WalterDiaz\Patterns\Strategy\Customer\Context; use WalterDiaz\Patterns\Strategy\Customer\HappyHourStrategy; use WalterDiaz\Patterns\Strategy\Customer\NormalStrategy; /** * Description of CustomerTest * * @author wdiaz */ class CustomerTest extends PHPUnit_Framework_TestCase { public function testN...
true
305bad3849892bba7f2817266cf263f33badc12a
PHP
cherylnielsen/Physics-In-Motion-Website
/private/db_controller/NoticeToSectionController.php
UTF-8
2,218
2.921875
3
[ "MIT" ]
permissive
<?php class NoticeToSectionController extends DatabaseController { public function __construct() {} //($notice_id, $to_section_id) protected function getData($db_result, $db_connection) { $dataArray = array(); if($db_result) { while ($row = mysqli_fetch_array($db_result, MYSQLI_ASSOC)) { ...
true
4c38a0c3e3d6d2adeeb36e5df4336b5fa879d1e8
PHP
Bahindiemma/PHP_ASSIGNMENT
/add_new_seasion.php
UTF-8
577
2.71875
3
[]
no_license
<?php $host = "localhost"; $user = "root"; $password = ""; $db = "premier_league"; $conn = mysqli_connect("$host", "$user", "$password", "$db"); /* $newSeason = "CREATE TABLE season(ID INT NOT NULL AUTO_INCREMENT, Home_Team VARCHAR(50), Away_Team VARCHAR(50), Home_Goals INT(11), Away_Goals INT(11), PRIMARY KEY(ID) )";...
true
1240e97cff7dad2e6f7ae2f4bc1c4e2c5246fd53
PHP
monirjhossain/PHP
/09mar2020/file.php
UTF-8
316
3.171875
3
[]
no_license
<?php // Read the file into an array $users = file('users1.txt'); // Cycle through the array foreach ($users as $user) { // Parse the line, retrieving the name and e-mail address list($name, $email) = explode(',', $user); ?> <a href="mailto:<?php echo $email ?>"><?php echo $name ?></a><br> <?php } ?>
true
68339da6d0fa0b3aba430f74cb2905f654ba02f7
PHP
WPPlugins/events-calendar-by-plugistan
/classes/templateparsers/Standard.php
UTF-8
2,327
2.671875
3
[]
no_license
<?php /** Käesoleva loomingu autoriõigused kuuluvad Matis Halmannile ja Aktsiamaailm OÜ-le @licence GPL v2 */ /** * Description of Eabi_Ipenelo_Calendar_Templateparser_Standard * * @author matishalmann */ class Eabi_Ipenelo_Calendar_Templateparser_Standard { //put your code here publi...
true
3f4abb742eb9c44686dcb6561ee88ceeb4ff4b65
PHP
abdallamarojillo/Online-Business-Transactions-Management-System
/app/functions/printExpense.php
UTF-8
1,816
2.5625
3
[]
no_license
<?php require_once("../../incs/authenticator.php"); require_once("../../assets/libs/tcpdf/tcpdf.php"); function fetch_data() { require_once("../../incs/conn.php"); $output = ''; $sql = "SELECT * FROM expenses ORDER BY expenseId DESC"; $result = mysqli_query($dbc, $sql); $number = 0; ...
true
03967d81eece8c0e1542bedaf0acb4325eaa2f36
PHP
vugraph/vugraph
/app/database/seeds/CitiesTableSeeder.php
UTF-8
644
2.59375
3
[ "MIT" ]
permissive
<?php class CitiesTableSeeder extends Seeder { public function run() { DB::statement('SET FOREIGN_KEY_CHECKS=0'); DB::table('cities')->truncate(); DB::statement('SET FOREIGN_KEY_CHECKS=1'); $cities_raw = explode("\n", file_get_contents(app_path().'/database/seeds/cities.txt')); foreach($cities_raw as $cit...
true
341ebabf39f630a8f0c9ea5bda0d138a328c646f
PHP
pc-codyh/pongchamp2014
/stats/left-menu-player-profiles.php
UTF-8
1,165
3.109375
3
[]
no_license
<?php require '../database-connect.php'; $query = 'SELECT * FROM `seasons` ORDER BY `id` DESC'; $runQuery = mysql_query($query); ?> <ul> <?php echo '<li id="overall"><img src="img/overall.png" /><div style="margin: 0 0 0 19px;">Overall</div></li>'; for ($i = 0; $i < mysql_num_rows($runQuery); $i++) { ...
true
7831539a297c6a1d250793ad841e57a00c7c88ee
PHP
breath-file/data-repository
/src/Controller/MetricController.php
UTF-8
2,008
2.671875
3
[]
no_license
<?php declare(strict_types=1); /** * @author Julien Mercier-Rojas <julien@jeckel-lab.fr> * Created at : 25/06/19 */ namespace App\Controller; use App\Domain\Entity\MeasureEntity; use App\Formatter\PrometheusFormatter; use DateTimeImmutable; use Exception; use Illuminate\Database\Capsule\Manager; use Illuminate\Sup...
true
bc9eb6566534cc00e8f2107349de549e8603151a
PHP
jpennors/fablab_webapp
/app/Http/Controllers/AdministrativesController.php
UTF-8
1,310
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use App\Administrative; class AdministrativesController extends Controller { public static $rightName = 'administrative'; /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ pu...
true
b38e1f35e7919d437100a571eee82d6f2b56602d
PHP
nemyr/doctest
/migrations/m200908_181006_create_ads_table.php
UTF-8
767
2.59375
3
[]
no_license
<?php use yii\db\Migration; /** * Handles the creation of table `{{%ads}}`. */ class m200908_181006_create_ads_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('{{%ads}}', [ 'id' => $this->primaryKey(), 'name' => $th...
true
bae6d59211b1c522839627229be8c0cba49eb5d7
PHP
XemoTangch/yii2-basic-study
/components/helper/MessageHelper.php
UTF-8
1,147
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Author: jiangm * Email: jmphper@foxmail.com * Date: 2017/12/18 * Time: 15:36 * Desc: */ namespace app\components\helper; use yii\base\Component; use app\components\event\MessageEvent; use yii\base\Event; class MessageHelper extends Component { const EVENT_MESSAGE_SEND = 'message-...
true
30ad2ddbd417645f535de90dca9c61a3004811ab
PHP
mell421/UDEMY_DEPOT
/PHP/POO_udemy/Session2/Employes.php
UTF-8
990
3.453125
3
[]
no_license
<?php class Employes { private $nom; private $prenom; private $age; public function __construct($nom, $prenom, $age) { $this->setNom($nom); $this->setPrenom($prenom); $this->setAge($age); } public function setNom($nom) { if (isset($nom)) { ...
true
5b932a2ab04f5f1b48615446ee5eeda52f5476dd
PHP
eprincev-egor/task
/api/newComment.php
UTF-8
484
2.671875
3
[]
no_license
<? $id_task = $_POST["id_task"]; $id_user = $_POST["id_user"]; $message = $_POST["message"]; $date = time() * 1000; $dbh = getDBH(); $sth = $dbh->prepare("INSERT INTO comment (id_user, id_task, message, date) VALUES (:id_user, :id_task, :message, :date)"); $sth->execute(array( ":id_user" => $id_user...
true
01c9c8f6d927707843f6822cb54061cc2f8d548f
PHP
mengtest/sy_gm
/app/Http/Middleware/loginAuthentication.php
UTF-8
898
2.625
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use DB; class loginAuthentication { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (!se...
true
2d3f99da8808e5ad0ed97dd885f40b1ef1e6ed26
PHP
uk-gov-mirror/dvsa.olcs-common
/Common/src/Common/FormService/Form/Lva/FinancialHistory.php
UTF-8
3,565
2.515625
3
[ "MIT" ]
permissive
<?php namespace Common\FormService\Form\Lva; use Common\Form\Elements\Types\HtmlTranslated; use Common\FormService\Form\AbstractFormService; use Common\Form\Form; use Common\RefData; use Laminas\Form\ElementInterface; use Laminas\Form\FieldsetInterface; use Laminas\Http\Request; /** * FinancialHistory Form * * @a...
true
bfec8f2c5354d6900a2f0e99c05c51e7d8eaa0bd
PHP
vojtechportes/cmshadow4
/backend/app/Http/Controllers/CatalogItemsController.php
UTF-8
10,892
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\CatalogItems; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use Illuminate\Support\Facades\DB; use App\CatalogItemTemplateFields; class CatalogItemsController extends Controller { /** * Gets paginated list of catalog items * * @param Illuminate\...
true
010c65cc2be05ae85bfee57d7527d1d630a9cfe8
PHP
jannyHou/hotelBooking
/booking.php
UTF-8
804
2.5625
3
[]
no_license
<?php include 'config_db.php'; $hotelID = $_GET['hotelID']; $roomNo = $_GET['roomNo']; $guestID = $_GET['guestID']; $startDate = $_GET['startDate']; $endDate = $_GET['endDate']; echo $hotelID; echo $roomNo; echo $guestID; echo $startDate; if(mysql_query("INSERT INTO booking (hotelID, roomNo, guestID, startD...
true
7913d37074fab009dfceccca3c8d0f2fb998fb5d
PHP
mohiticubes255/icubesProduct
/apiCalls/test.php
UTF-8
1,348
3.3125
3
[]
no_license
<?php class Campaigns { public $name; public $size; Public $id; public function __construct($name, $id) { $this->name = $name; $this->id = $id; } public function details() { echo "\n The campaign details are :: name => {$this->name} and id is => {$this-...
true
6805eebbe5b016a1b112c24bdad1a3209dd6ceac
PHP
getwws/getw
/src/Session.php
UTF-8
4,530
2.78125
3
[ "MIT" ]
permissive
<?php // +---------------------------------------------------------------------- // | GETW © OpenSource CMS // +---------------------------------------------------------------------- // | Copyright (c) 2014-2016 http://www.getw.com All rights reserved. // | Copyright (c) 2014-2016 嘉兴领格信息技术有限公司,并保留所有权利。 // +-----------...
true
c4d19173d1d7ba6005d56b6f094d522e556fff9d
PHP
munusphp/munus
/tests/Value/ComparatorTest.php
UTF-8
880
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Munus\Tests\Value; use Munus\Collection\GenericList; use Munus\Value\Comparator; use PHPUnit\Framework\TestCase; final class ComparatorTest extends TestCase { public function testComparePrimitives(): void { self::assertTrue(Comparator::equals(1, 1)); ...
true
13e81ecee35b4c515c7846784792708efa1f918c
PHP
craftsmancoding/moxycart
/elements/snippets/getProductsByTerm.php
UTF-8
3,056
2.515625
3
[]
no_license
<?php /** * @name getProductsByTerm * @description Returns a list of products associated with the given Taxonomical Term ID (Requires the Taxonomies AddOn) * * * Parameters * ----------------------------- * @param string $outerTpl Format the Outer Wrapper of List (Optional) * @param string $innerTpl Format the...
true
b7d41d92868550872c75e77bd140ee8c9c2db8d7
PHP
techotaku/YAUC.php
/test/RouterTest.php
UTF-8
1,778
2.5625
3
[]
no_license
<?php /** * YAUC.php * * @author Ian Li <i@techotaku.net> * @copyright Ian Li <i@techotaku.net>, All rights reserved. * @link https://github.com/techotaku/YAUC.php */ namespace Yauc\Test; use Yauc\Router; /** * Router Test */ class RouterTest extends \PHPUnit_Framework_TestCase { p...
true
cdd5474c7ef2c77449d9107aa234df216d8f8944
PHP
swatinirmal/swatinirmalcode
/app/Order.php
UTF-8
1,885
2.546875
3
[]
no_license
<?php namespace Corp\Plugins\eCommerce\Models; use DB; use Illuminate\Database\Eloquent\Model; class Order extends Model { public $table = 'ec_orders'; protected $fillable = [ 'name', 'gender', 'email', 'phone', 'street_address', 'payment', 'meta', 'message', 'status', 'total_price', 'user_i...
true
6901165842f933ab1fb5a66f55bf6f211873f3c7
PHP
elsawye/library
/library/application/controllers/library.php
UTF-8
5,110
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class library extends CI_Controller { public function __construct(){ parent::__construct(); //this lines are callers for the models $this->load->model('login_model'); $this->load->model('search_model'); $this->load->mode...
true
2f80f5e569bed8ecbdbf6f69af099c277ff420f5
PHP
babu-sarath/datatable
/conn.php
UTF-8
473
2.890625
3
[]
no_license
<?php $host='localhost'; $user='root'; $pass=''; $dbname='imms'; //Set the Data source name (DCN) $dsn='mysql:host='.$host.';dbname='.$dbname; //Create pdo instance $con=new PDO($dsn, $user, $pass); //basically a connection string $con->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); //setting the defau...
true
6648cf1cdc6d40d0a744f3f5548c5baf08fefec3
PHP
wau-tr/Downloader-application
/tests/Traits/TaskTestTrait.php
UTF-8
795
2.59375
3
[]
no_license
<?php namespace Tests\Traits; use App\Models\Task; use App\Jobs\ProcessTask; /** * Traits for tests related to tasks. */ trait TaskTestTrait { /** * Task model class. * * @var class */ protected $model = Task::class; /** * API tasks ednpoint. * * @var string */...
true
b38edebdd8879c172a1409c689910d85e9fe1e2c
PHP
gpandovski/lessons
/Lesson47/laravel-auth/app/Http/Controllers/HomeController.php
UTF-8
860
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { // $this->middleware('auth'); } /** * Middleware provide a conve...
true
9c20b5ad1567763404d3a23cdcc13f25d72a92b7
PHP
antanas-story/SocTaksi
/script/classes/randomizer.php
UTF-8
719
3.5
4
[]
no_license
<?php class Randomizer { public static function any($number) { $result = ""; for($i=0; $i<$number; $i++) if(mt_rand(0,1)==1) { $result .= Randomizer::letters(1); } else { $result .= Randomizer::numbers(1); } ...
true
b476dc1cd30022d4d0cf43ad2d0630123a406813
PHP
baaslaawe/systempos
/application/libraries/vendor/convertloop/convertloop-php/src/convertloop.php
UTF-8
464
2.734375
3
[]
no_license
<?php namespace ConvertLoop; class ConvertLoop { private $client; public function __construct($appId, $apiKey, $version) { $this->client = new Client($appId, $apiKey, $version); } public function people() { return new People($this->client); } public function eventLogs() { ...
true
549db607661fb1ae57b6eaa6ff0ad090cbf2cd95
PHP
VerticalTab/Pillow
/src/VerticalTab/Pillow/ResultSet.php
UTF-8
1,364
2.8125
3
[ "MIT" ]
permissive
<?php /** * @author Rob Apodaca <rob.apodaca@gmail.com> * @copyright Copyright (c) 2011, Rob Apodaca */ namespace VerticalTab\Pillow; use \SimpleXMLElement; use \SplObjectStorage; use \Iterator; use \ArrayAccess; use \Exception; class ResultSet implements Iterator, ArrayAccess { /** * * @var array[int]Obj...
true
f897b610cb0091faee7026e40d0831a005538a0b
PHP
mbrabenec/codingbootcamp-exercises
/day25-php-requests/request.php
UTF-8
2,001
3.015625
3
[]
no_license
<?php session_start(); // if (isset($_GET['name'])) { // $user_name = $_GET['name']; // } else { // $user_name = 'Guest'; // } // $user_name = isset($_GET['name']) ? $_GET['name'] : 'Guest'; $user_name = $_GET['name'] ?? 'Guest'; $product_id = $_GET['product_id'] ?? 'ID NOT SET!'; $page = $_GET['page'] ?? ...
true
6346584ca64bb3b5be58d3871c3d5b94f6ea2841
PHP
halloverden/symfony-validator-constraints-bundle
/Helpers/PhoneNumberHelper.php
UTF-8
1,282
2.828125
3
[ "MIT" ]
permissive
<?php namespace HalloVerden\ValidatorConstraintsBundle\Helpers; use libphonenumber\NumberParseException; use libphonenumber\PhoneNumber; use libphonenumber\PhoneNumberUtil; class PhoneNumberHelper { private static $phoneNumbers = []; /** * @param string $number * @param bool $throwOnParseError * @p...
true
1bf13f739a8bc51286c6f2bc68eb5d0163c24275
PHP
jpagov/smp
/app/functions/staffs.php
UTF-8
3,853
2.625
3
[]
no_license
<?php /** * Theme functions for staffs */ function has_staffs() { return Registry::get('total_staffs', 0) > 0; } function staffs() { $staffs = Registry::get('staffs'); if($result = $staffs->valid()) { // register single staff Registry::set('staff', $staffs->current()); // move to next $staffs->next(); ...
true
625f0546c84ab58466dbb075002e79905a4e19df
PHP
be2clack/openplayer
/app/Catalog.php
UTF-8
341
2.625
3
[]
no_license
<?php namespace App; class Catalog extends \Lib\Base\App { public function init() { $statManager = new \Manager\Stat; $this->artists = $statManager->getTopArtists( \Lib\Config::getInstance()->getOption( 'app', 'catalogSize', 50 ...
true
d02ffd050c067479946a350b3407a71cfc3ddd4c
PHP
jocsuarez17/sistema-de-inventario
/pos/modelos/select2.modelo.php
UTF-8
688
2.65625
3
[]
no_license
<?php require_once "conexion.php"; class select2model { public function selectCatWithAll() { $stmt = Conexion::conectar()->prepare("SELECT id,nombre FROM clientes"); $stmt->execute(); $cat = $stmt -> fetchAll(); $text = ' <select class="select2" name="selectCatWithAll" style="width:300px;" id="conc...
true
41bb3f891dee20ccadceb285b80d2bab310c7e3e
PHP
silverstripe/silverstripe-framework
/src/ORM/Filters/EndsWithFilter.php
UTF-8
429
2.796875
3
[ "CC-BY-3.0", "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\ORM\Filters; /** * Matches textual content with a substring match on a text fragment leading * to the end of the string. * * <code> * "abcdefg" => "defg" # true * "abcdefg" => "abcd" # false * </code> */ class EndsWithFilter extends PartialMatchFilter { protected static $mat...
true
95b94584ff53f1ec3e8e80bbe59559817a7cf612
PHP
arif98741/multicourier
/src/Log/Log.php
UTF-8
2,255
2.53125
3
[ "MIT" ]
permissive
<?php namespace Xenon\MultiCourier\Log; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Xenon\MultiCourier\Models\MultiCourierLog; class Log { /** * Add New Log to Model * @since v1.0....
true
b965880bbe6242bb0346ce1242304285f69f99a1
PHP
LangeHenrik/SDU-ITI-F19
/madre10/PHP/Model/postDAO.php
UTF-8
2,569
2.78125
3
[]
no_license
<?php include_once(__DIR__ . '/entities/user.php'); include_once(__DIR__ . '/entities/post.php'); include_once(__DIR__ . '/entities/comment.php'); require_once __DIR__ . '/database/database.php'; function getUserPosts($userId) { $sql = 'SELECT images.id as image_id, file_name, title, description, owner, username...
true
cd3d3b1f8097b49a1a38aa1d70096c529ab0aec4
PHP
mgrunwaldt/cot
/Back/basic/models/Errors.php
UTF-8
1,463
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "errors". * * @property int $id * @property int $administrator_id * @property int $user_id * @property string $title * @property string $message * @property string $aux * @property string $ip * @property string $browser * @proper...
true
8180d9a51c8d8a90ed172b3a74332acb22b43e60
PHP
DoSomething/gladiator
/app/helpers.php
UTF-8
3,326
2.859375
3
[ "MIT" ]
permissive
<?php use Carbon\Carbon; /** * Build a CSV from the supplied data. * * @param array $data * @return \League\Csv $csv */ function build_csv($data) { $csv = \League\Csv\Writer::createFromFileObject(new \SplTempFileObject()); $csv->insertAll($data); return $csv; } /** * Convert a string 'true' or...
true
1c69c25001e5b0881f015544075605ecb815aa41
PHP
kloudltd/WHMCS-7.8.0-decoded
/vendor/symfony/polyfill-php54/Resources/stubs/CallbackFilterIterator.php
UTF-8
766
2.5625
3
[ "MIT" ]
permissive
<?php /* * @ PHP 5.6 * @ Decoder version : 1.0.0.1 * @ Release on : 24.03.2018 * @ Website : http://EasyToYou.eu */ /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was dist...
true
6dced00815d2b3ab2cba79af7a402bc0a585ea12
PHP
yaroslavian/guestbook
/modules/send-message.php
UTF-8
488
2.640625
3
[]
no_license
<?php include '../lib.php'; session_start(); # Check for $_GET request to send new message. If ok, validate and write it to the DB isset($_GET['message']) && write_message( (isset($_SESSION['username']) ? $_SESSION['username'] : 'Guest'), $_GET['message'], $page ); function write_message($user, $messa...
true
cfbea4fd880e73fcc8bd15f52f3d09f02759c035
PHP
nugaBox/bowling
/pj/playing/printTable.php
UTF-8
6,065
2.734375
3
[]
no_license
<?php // ====================== INFO ========================== // Program Name : printTable.php // Description : 스코어보드 점수 테이블 // Path : /bowling/pj/playing/printTable.php // // ====================================================== ?> <table class="table-score" border="1" width="100%"> <tbody> <!-- =========...
true
27f7205f497949ee5269f4529e59001b06022f58
PHP
overconsulting/LazyPHP-widget
/Widget/controllers/WpollsController.php
UTF-8
1,702
2.515625
3
[ "MIT" ]
permissive
<?php namespace Widget\controllers; use app\controllers\FrontController; use Core\Router; use Core\models\Site; use Widget\models\Poll; use Widget\models\PollResult; class WpollsController extends FrontController { public function sendAction() { $pollClass = $this->loadModel('Poll'); $pollRes...
true
1cb0f462e4af766342f0afb0dd75cffd349168d7
PHP
netcore/module-category
/Models/CategoryIcon.php
UTF-8
2,271
2.6875
3
[ "MIT" ]
permissive
<?php namespace Modules\Category\Models; use Illuminate\Database\Eloquent\Model; use Codesleeve\Stapler\ORM\EloquentTrait; use Codesleeve\Stapler\ORM\StaplerableInterface; class CategoryIcon extends Model implements StaplerableInterface { use EloquentTrait; /** * The "booting" method of the model. ...
true
e0ba8b5d647d69b9f3647df7d182d61d2ff68235
PHP
mpmeleshko/calculator
/app/Services/Calculator/Calculator.php
UTF-8
995
3.015625
3
[ "MIT" ]
permissive
<?php namespace App\Services\Calculator; use App\Factories\OperationFactory; use App\Services\Calculator\Contracts\ICalculator; use App\Services\Calculator\Contracts\IValue; class Calculator implements ICalculator { /** * @var IValue */ private $IValue; /** * Calculator constructor. ...
true
9cdf64a47cebd7f890488e788a95fad0e46ea007
PHP
LeoMachado94/wsbndaf
/src/StructType/ProdutoDispensacaoType.php
UTF-8
2,573
2.8125
3
[]
no_license
<?php namespace StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for ProdutoDispensacaoType StructType * @subpackage Structs */ class ProdutoDispensacaoType extends ProdutoType { /** * The dtCompetencia * Meta informations extracted from the WSDL * - base: xsd:...
true
ee512846e45ff5347499b344a8b2f70873330e98
PHP
shahid1104/php
/login/model/auth.php
UTF-8
3,280
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pcsaini * Date: 8/12/16 * Time: 1:49 AM */ class auth_model extends DBconfig{ public function __construct() { $connection = new DBconfig(); $this->connection = $connection->connectToDatabase(); $this->helper = new helper(); } publi...
true
7c36564ce3e00139446d7f76882785410d5e6f81
PHP
Gueststream-Inc/iqware
/src/API/GetGiftCertificateConfigurationResponse.php
UTF-8
1,093
2.65625
3
[ "MIT" ]
permissive
<?php namespace Gueststream\PMS\IQWare\API; class GetGiftCertificateConfigurationResponse { /** * @var cGiftCertificate $GetGiftCertificateConfigurationResult */ protected $GetGiftCertificateConfigurationResult = null; /** * @param cGiftCertificate $GetGiftCertificateConfigurationResult ...
true
eff70f629da1445b6e9ce673be508ee140d84caa
PHP
rocketeers/rocketeer
/src/Rocketeer/Tasks/Check.php
UTF-8
2,529
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of Rocketeer * * (c) Maxime Fabre <ehtnam6@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Rocketeer\Tasks; /** * Check if the server is ready to receive the application. */...
true
deecdf17a64693dd53e29534ae8c2728e17a144a
PHP
arielmaloney/GraveRegistryApp
/get_verifiable.php
UTF-8
1,135
2.546875
3
[]
no_license
<?php include 'DatabaseConfig.php'; $con = mysqli_connect($HostName, $HostUser, $HostPass, $DatabaseName); $user = $_GET['user']; // Create query statements $Sql_Select_Verifiable = "SELECT * FROM marker WHERE user != '$user' AND is_verified = '0' AND needs_change = '0'"; // Get SELECT query result $Ve...
true
9f9030442b6ef5e3f9f90c4748b9c64920e7a20b
PHP
jweiwu/beverages-dealer-api
/app/Services/CityService.php
UTF-8
317
2.640625
3
[]
no_license
<?php namespace App\Services; use App\Repositories\CityRepository; class CityService { protected $repository; public function __construct(CityRepository $repository) { $this->repository = $repository; } public function getAll() { return $this->repository->all(); } }
true
b71b2ed6ac7f06d980c3fa5e0ea9a2017b462634
PHP
meetdemio/demio-php-sdk
/examples/events-list.php
UTF-8
709
2.671875
3
[]
no_license
<?php /** * @author Oleksandr Torosh <webtorua@gmail.com> */ // Including Composer autoload.php require '../vendor/autoload.php'; // Api Key and Secret $api_key = 'HD2MUQaScuajohrm2ccXlqj69zMWQ0uB'; $api_secret = '4Jkz9HMeI8HgS'; // Demio Client initialization $client = new \Demio\Client($api_key, $api_secret); ...
true
fae4cf307b54485a7a76927e715115efafc951ea
PHP
AGelzer/magento2-code-generator
/Model/GeneratorResult.php
UTF-8
1,732
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of Code Generator for Magento. * (c) 2017. Rostyslav Tymoshenko <krifollk@gmail.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Krifollk\CodeGenerator\Model; use...
true
58aaebdc97c794c50daf5bcd40afbd6d04afa016
PHP
farry19/RestClient-PHP
/Controllers/todoController.php
UTF-8
824
2.71875
3
[]
no_license
<?php namespace Controllers; use RestClient\Request; use Models\Entry; class todoController extends Request { public function index(){ return $this->view('todo/index',array( 'entries' => Entry::all() )); } public function add(){ return $this->view('todo/add'); } public function edit($id){ return $...
true
b8efd9c3a95f02923cbbc05d8216c3d39f4e9dd2
PHP
hschiebold/ep3-bs
/vendor/payum/core/Payum/Core/Tests/Reply/HttpPostRedirectTest.php
UTF-8
3,919
2.640625
3
[ "MIT" ]
permissive
<?php namespace Payum\Core\Tests\Reply; use Payum\Core\Reply\HttpPostRedirect; use PHPUnit\Framework\TestCase; class HttpPostRedirectTest extends TestCase { /** * @test */ public function shouldImplementReplyInterface() { $rc = new \ReflectionClass('Payum\Core\Reply\HttpPostRedirect'); ...
true
50807e07cb40650ae860a3c68e211c1da167d7f6
PHP
AndManowar/laravel_test
/app/Components/User/Models/User.php
UTF-8
695
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Components\User\Models; use App\Components\Rbac\Traits\Rbac; /** * @property int $id * @property string $name * @property string $email * @property string $password * @property string $remember_token * @property string $created_at * @property string $updated_at * @property Post[] $posts ...
true
044f21cdd78a21ded2c6bd1b72462a66ec7ed0af
PHP
naashton/tidey
/scripts/tidey_noaa.php
UTF-8
1,647
2.640625
3
[]
no_license
<?php $curl = curl_init(); //$product = "air_temperature"; //$product = "water_temperature"; $product = "air_pressure"; $station = "8658163"; curl_setopt_array($curl, array( CURLOPT_URL => "http://tidesandcurrents.noaa.gov/api/datagetter?range=24&station={$station}&product={$product}&units=english&time_zone=lst...
true
72402a66d2010d6191ae5322dc4be38c7b694585
PHP
Medialo/slam4-PHP
/TD4 - PHP/controller/ControllerVoiture.php
ISO-8859-1
1,078
2.546875
3
[]
no_license
<?php require_once ('../model/ModelVoiture.php'); // chargement du modle class ControllerVoiture { public static function readAll() { $tab_v = ModelVoiture::getAllVoitures(); //appel au modle pour gerer la BD require ('../view/voiture/list.php'); //"redirige" vers la vue } public static function read() { i...
true
7befdcbe52b83b1be80b17a21db69e5ce253963a
PHP
mateusleonhardt/cd-codificador
/gera-grafico.php
UTF-8
2,182
2.9375
3
[]
no_license
<?php // requisição da classe PHPlot require_once 'phplot library/phplot.php'; ini_set('memory_limit', '2048M'); $use_shapes = "squared"; $bits = $_GET['bits']; $splitedBits = str_split($bits); $cod = array(); $i = 0; foreach ($splitedBits as $bitPalavra) { if ($i == 0){ $bit = $bitPalavra; } else{ $bitAnter...
true
13e8052bb4a0e728db0cd097002ba0d8ff3e1b22
PHP
Nikhil-Abidh/Leave-Management-System-Final-
/WebAttendence/updatememberinfo.php
UTF-8
1,564
2.59375
3
[]
no_license
<?php session_start(); $con = mysqli_connect("localhost","root","","webattend"); if(! $con) echo "Error Occured".mysqli_error($con); else echo "Connected"; $userid = $_SESSION['userId']; $query = "select * from users where id='$userid' "; $result = mysqli_query($con,$query); $row = mysqli_fetch_assoc($result); ?> <!D...
true
254ade09274db9eec84e1a17cdbcc19849ae87be
PHP
aquagenuity/dataset1
/application/classes/application.class.php
UTF-8
1,791
2.9375
3
[]
no_license
<?php class Application{ public $application_id; public $application_name; public $creation_dtm; public $last_update_dtm; function __construct(){ $num_args = func_num_args(); switch($num_args){ case 0: $this->application_id = 0; break; case 1: $result = func_get_arg(0); for...
true
088e24626d2b241861c691b3d4c834c5eb3d9485
PHP
goozp/zPhal
/app/modules/admin/components/Media.php
UTF-8
4,611
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace ZPhal\Modules\Admin\Components; use Phalcon\Di; use Phalcon\Events\ManagerInterface; use Phalcon\Events\EventsAwareInterface; use ZPhal\Models\Resources; class Media implements EventsAwareInterface { protected $_eventsManager; public function setEventsManager(ManagerInterface $eventsManager)...
true
cc502c1f711474ba6c0005af4a89367411f252f6
PHP
GabrielDornescu/Pentastagiu
/result.php
UTF-8
2,968
3.015625
3
[]
no_license
<<<<<<< HEAD <?php include_once "functions.php"; include_once "classes/crud.php"; include_once 'db_connect.php'; $crud = new Crud($db); $start = 0; $end = 0; $iterations = 0; if (isset($_GET['id'])) { $id = $_GET['id']; $result = $crud->getNumb($id); $start = $result['start']; $end =...
true
98808415ce6b1d38064224c35b353fd19d9e3bee
PHP
profdenis/IntroPHP
/PartB_PHP_Examples/B4_basic_forms/name4.php
UTF-8
777
3
3
[]
no_license
<?php require_once "../../common/functions_defs.php"; $title = "Part B4 -- Simple name form"; require_once "../../common/header.php"; $name_error = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty(trim($_POST["name"]))) { $name_error = "Error: no name provided"; } else { $name = clean_...
true
2383d5de707cd5d2139d1847bd39160da10a24bc
PHP
vhs/nomos
/app/contracts/IIpnService1.php
UTF-8
746
2.515625
3
[]
no_license
<?php /** * User: Steven Smethurst */ namespace app\contracts; use vhs\services\IContract; interface IIpnService1 extends IContract { /** * @permission administrator * @return mixed */ public function GetAll(); /** * @permission administrator * @param $ipnId * @return mixed...
true
c7f8f51a6906ee75695ff2a42e57d33a1c64707c
PHP
syafiq555/car-rental-system-api
/models/Car.php
UTF-8
793
2.984375
3
[]
no_license
<?php class Car implements iGetManufacturer, iGetModel, iNullCheck { public $id; public $plate_number; public $price_per_hour; private $model; public $model_name; public $manufacturer_name; public $year; public $approved; public function __construct(Model $model=null) { if ($model) { $this...
true
a9d0aba2bd1e30c74f19239cdbcfee9abe5e10ed
PHP
tillkahlbrock/autodns-spike
/src/Autodns/Request/Task/Query/OrQuery.php
UTF-8
416
2.703125
3
[]
no_license
<?php namespace Autodns\Request\Task\Query; use Autodns\Request\Task\Query; class OrQuery implements Query { private $left; private $right; public function __construct(Query $left, Query $right) { $this->left = $left; $this->right = $right; } public function asArray() ...
true
ae4665543ee2fab4aea6bc56e87f0c9f7bc82190
PHP
NaijaProgrammer/nonye
/user-auth/twitter/twitter-auth - Copy.php
UTF-8
9,489
2.65625
3
[]
no_license
<?php /* * $data members: * consumer_key * consumer_secret * token_secret * extra_oauth_data array(oauth_callback, oauth_token) * * Official docs: https://dev.twitter.com/web/sign-in/implementing * credits: http://stackoverflow.com/a/21290729/1743192, http://stackoverflow.com/a/21430461/1743192, https://blog.jacobemer...
true
4672a63e0231b7f8c43250cb11908dfd605f3be7
PHP
chrisunum/Pro-Manager
/core/app.php
UTF-8
1,171
2.796875
3
[]
no_license
<?php class App{ protected $controller = "home"; protected $method = "index"; protected $params; public function __construct(){ $url = $this->parseURL(); if(file_exists("controllers/".str_replace(".php","",strtolower($url[0])).".php")){ $this->controller = str_replace(".php","",strtolower($url[0])); ...
true
262f90f02f630f25e859c4573676a5579ce4a3e1
PHP
phperEric/Blogger
/catdel.php
UTF-8
665
2.546875
3
[]
no_license
<?php $cat_id=$_GET['cat_id']; $conn=mysql_connect('127.0.0.1','root','123456'); mysql_query('use name',$conn); mysql_query('set names utf8'); if(!is_numeric($cat_id)){ echo "栏目不合法"; exit(); } $sql="select count(*) from cat where cat_id=$cat_id"; $rs=mysql_query($sql); if(mysql_fetch_row($rs)[0]==0){ echo "栏目不存...
true
35ef014b9196220c9c5774de398177a53385da0c
PHP
baltpeter/internetmarke-php
/src/baltpeter/Internetmarke/PersonName.php
UTF-8
1,737
3.21875
3
[ "MIT" ]
permissive
<?php namespace baltpeter\Internetmarke; class PersonName extends ApiResult { /** * @var string */ protected $salutation; /** * @var string */ protected $title; /** * @var string */ protected $firstname; /** * @var string */ protected $lastname; ...
true
958c6d80a4330afab89ea4fb6bf3f0046e1be6de
PHP
xRubin/brainstorm
/source/Strategy.php
UTF-8
587
3.28125
3
[]
no_license
<?php namespace Brainstorm; abstract class Strategy { /** @var Quiz */ protected $quiz; /** * @param Quiz $quiz */ public function __construct(Quiz $quiz) { $this->quiz = $quiz; } /** * @return Quiz */ public function getQuiz() { ...
true
40ee3058bc356875397e2d19d4f9c8d4d139497e
PHP
nalton-software/WebsiteV1
/p5Whiteboard/scripts/addMessage.php
UTF-8
1,521
2.859375
3
[]
no_license
<?php const roomDataFileUrl = "../!roomdata.txt"; //$bannedUsernames = file_get_contents("../bannedUsernames.txt"); $username = $_POST["username"]; $content = $_POST["content"]; $roomId = $_POST["roomId"]; // (check data - implement in future) // read file $roomDataStr = file_get_contents(roomDataFileUrl); // do ch...
true
cbd771a3e48f2e5aa9803e3b548868b7bddac97f
PHP
VictorRabelo/Project_Basic-php
/vendor/MF/Init/Bootstrap.php
UTF-8
1,622
3.0625
3
[]
no_license
<?php //As classes Abstract não podem ser istanciadas somente herdadas, MF se trata das configuração do frameWork //protected é protegido porem pode ser herdado, o private é somente daquele objeto //Quando uma abstract class que defini um metodo abstract, quando a classe filho herda deve ser implementar o metodo n...
true
319fe119633378b6a30bdf6df4f66b536c262979
PHP
BroCow/cs341-php_2021
/web/wk5Assignments/textData.php
UTF-8
8,382
2.65625
3
[]
no_license
<?php require 'connection.php'; //get_db() function created in connection.php $db = get_db(); session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content...
true
72ab21f15b850ebff8e8c54310e90b72afac6e28
PHP
klismannhoffmann/AulasDePHP
/aula02/comando_saida_print_r.php
UTF-8
528
3.203125
3
[]
no_license
<?php /* print_r-> imprime conteudo de uma variavel explanativa assim com var_dump(), mas em um formato mais legivel para o programador com os conteudos alinhados e suprimindo os tipos de dados. print_r-> possui um segundo parametro chamada return que quando setada em true imprime na memoria. */ print_r('o...
true
07bb8c3d3d9e12a68929f8a9c80902687a8012f2
PHP
kamilov/yadelalpizdato-framework
/Database/Builder/Delete.php
UTF-8
696
2.65625
3
[]
no_license
<?php /** * Created by Kamilov Ramazan * Email: ramazan@kamilov.ru * Site: www.kamilov.ru * File: Delete.php */ namespace Karma\Database\Builder; class Delete extends Where { public function compile() { $table = reset($this -> tables); $condition = parent::compile(); if(str...
true
60a6755589485c7d791b6973f2bc343ea595c286
PHP
naxrun/wecore
/recommendation.php
UTF-8
3,008
2.609375
3
[ "MIT" ]
permissive
<?php // Website Content Recommendation Engine // Developed by Naxrun - available for everyone // This script returning the recommendation based on IP or UID // Initial configuration require_once('includes/g_functions.php'); header('Content-type: application/json'); $response = createResponse(); // Connect to databa...
true
e53af902e5b4fd4190bb586fbb900c424d16252a
PHP
abdyek/yuforms
/src/Api/Model/Share.php
UTF-8
1,080
2.625
3
[ "MIT" ]
permissive
<?php namespace Yuforms\Api\Model; class Share { public static function getUnfinished($formId) { return \ShareQuery::create()->filterByStopDateTime(null)->findOneByFormId($formId); } public static function gets($formId) { $shares = \ShareQuery::create()->findByFormId($formId); retu...
true
9dae8cfbb843277e9e0c22a8d20892eb2de81c9d
PHP
adriansalvatori/alma-one
/public_html/app/plugins/learndash/src/Core/Template/Tabs/Tabs.php
UTF-8
2,948
2.953125
3
[ "MIT" ]
permissive
<?php /** * LearnDash Tabs collection class. * * @since 4.6.0 * * @package LearnDash\Core */ /** NOTICE: This code is currently under development and may not be stable. * Its functionality, behavior, and interfaces may change at any time without notice. * Please refrain from using it in production or other c...
true
646fa2c7dc5be102c1e611ded864bd4c1d4bc938
PHP
smb158/PIRAS
/php/myread.php
UTF-8
612
2.90625
3
[]
no_license
<?php echo "TRANSCRIPT-START<br>"; $studentspage = file_get_contents("m1.students.txt"); $studentslines = explode("\n",$studentspage); $gradespage = file_get_contents("m1.grades.txt"); $gradeslines = explode("\n",$gradespage); echo "STUDENT FILE:<br>"; foreach ($studentslines as $currentline){ if(preg_ma...
true