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
aedec0e6eb6e9b1e89a1b0c10a6b6b1d65885765
PHP
brewerwall/unitz
/src/Temperature.php
UTF-8
2,165
3.390625
3
[ "MIT" ]
permissive
<?php namespace Unitz; use InvalidArgumentException; class Temperature extends AbstractUnitz { private float $fahrenheit; private float $celsius; public function __construct( ?float $fahrenheit = null, ?float $celsius = null, ?float $userValue = null, array $preferences =...
true
bddf8834117b68118703de83ea6f3097a5c424da
PHP
pisko999/mtgforfun
/database/migrations/2018_10_03_000003_create_cards_table.php
UTF-8
1,349
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCardsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cards', function ...
true
658244a84c7fb7b8b6da2796783dcdfe5d03c5cd
PHP
blue-bxy/park-api
/app/Imports/Admin/ParkDeviceImport.php
UTF-8
4,816
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Imports\Admin; use App\Models\Brand; use App\Models\Parks\ParkDevice; use App\Models\Parks\ParkSpace; use Illuminate\Support\Facades\DB; use Maatwebsite\Excel\Concerns\WithHeadingRow; abstract class ParkDeviceImport implements WithHeadingRow { protected $device; /** * 设备编号记录 * ...
true
f950542f2d2e452993ca07127f3872925cba2972
PHP
lhchien/project_ctu
/application/libraries/My_string.php
UTF-8
967
3
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class My_string{ // Biến cục bộ CI chỉ nắm trong string private $CI; // Hàm được khỏi tạo đầu tiên // get_instance() thay cho this bên controller public function __construct(){ $this->CI=& get_instance(); } // ký tự mặc định là 10, char...
true
54c6dd569e672835f314d4d8e5efd0b32cc31995
PHP
konarkkapil1/symfony_quora
/tests/unit/userTest.php
UTF-8
314
2.515625
3
[]
no_license
<?php namespace App\Tests\Util; use App\Entity\User; use PHPUnit\Framework\TestCase; class userTest extends TestCase { /** * @test */ public function testUserName(){ $user = new User(); $user->setName("konark"); $this->assertEquals("konark", $user->getName()); } }
true
8eeb6e491997cbe46fd3c6443be7bcfb89c4c7a1
PHP
jeyj0/AnjaJorreFotografiert
/php/get_select_auftraege.php
UTF-8
351
2.578125
3
[]
no_license
<?php header("Content-Type: text/html; charset=ISO-8859-1"); include_once '../classes/Database.php'; $id = $_GET['id']; $auftraege = $db -> fetch_all_array("SELECT id, datum FROM auftrag WHERE kunde_id = " . $id); foreach ($auftraege as $auftrag) { echo "<option value=\"" . $auftrag['id'] . "\">" . $auftrag...
true
dcd96e1dce5c8e0f8b268d0e8d754aa49841077e
PHP
narfex-com/backend
/app/Observers/ExchangeObserver.php
UTF-8
1,152
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\Exchange; use App\Models\Transaction; use App\Services\Hedge\HedgeService; class ExchangeObserver { private HedgeService $hedgeService; /** * ExchangeObserver constructor. * @param HedgeService $hedgeService */ public function __construct(Hedg...
true
0b31971acb5ac81b3f317397c602019c109a4258
PHP
modmore/BigBrother
/core/components/bigbrother/src/VisitsLineChart.php
UTF-8
3,594
2.625
3
[]
no_license
<?php namespace modmore\BigBrother; use DatePeriod; use DateTime; use Google\Analytics\Data\V1beta\DateRange; use Google\Analytics\Data\V1beta\Dimension; use Google\Analytics\Data\V1beta\Metric; use Google\Analytics\Data\V1beta\OrderBy; use Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy; class VisitsLineChart...
true
e56d4044e8f757a4e79427cf0a21770953d1cabc
PHP
theTlad/IMT2571_DataModellingAndDatabaseSystems
/assignment5/controller.php
UTF-8
2,211
2.9375
3
[]
no_license
<?php include_once("xmlDomApi.php"); include_once("relDB.php"); //include_once("Skier.php"); #Create a new PHP Document Object. $db = new RelDB(); #Create a new DOM Object. $xml = new XmlDomApi(); #- - - WORKING WITH SKIER: - - - #Finds the number of Skier- elements. $skierLength = $xml->findLength("SkierLogs.xml"...
true
388ca047d4ae4bdc5fd9be9f846bca6289c77d84
PHP
LeonColt/skripsi
/Seraph-server/server_script/chat/ChatSeeker.php
UTF-8
984
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: LC * Date: 10/01/2017 * Time: 11:28 */ require_once '../../core/global_variable.php'; require_once 'Chat.php'; class ChatSeeker { const PATH = standart_path."daten/chat"; public function seekByMemberId( int $member_id ) : array { $is = new Dir...
true
ad4f55489db49489aa2e20576050dda2f4d86aeb
PHP
FarisAjeddig/awacon
/src/AppBundle/Controller/AdminController.php
UTF-8
2,502
2.53125
3
[]
no_license
<?php namespace AppBundle\Controller; use AppBundle\Entity\User; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Request; class AdminController extends Controller { /** * @Route("/admin/users", name="a...
true
de14a374de6805f54b2189e0b9d8cba88f47aaa0
PHP
YoannAbran/test-dash-symfony
/Projet_Dashboard/controller/controller.php
UTF-8
7,576
2.65625
3
[]
no_license
<?php function chargerClasse($classe) { require "model/". $classe . '.php'; // On inclut la classe correspondante au paramètre passé. } spl_autoload_register('chargerClasse'); // On enregistre la fonction en autoload pour qu'elle soit appelée dès qu'on instanciera une classe non déclarée. function create() { ...
true
239f7bd0fe27c2210d05c0427b459196e5cabf12
PHP
claudiu-cristea/drupal-behat
/src/Traits/ScreenShot.php
UTF-8
4,360
2.671875
3
[]
no_license
<?php /** * @file * Contains trait class. */ namespace NuvoleWeb\Drupal\Behat\Traits; use Behat\Gherkin\Node\TableNode; use Behat\Mink\Element\NodeElement; use Behat\Mink\Element\DocumentElement; use Behat\Mink\Exception\ExpectationException; use Behat\Behat\Context\Environment\InitializedContextEnvironment; use B...
true
f7e3fc227bc9b204c31ca26051a51a3e9c925515
PHP
jturekburnett/southernbelledeveloper
/Blog/wp-content/themes/underskeleton/inc/customizer.php
UTF-8
4,149
2.53125
3
[ "GPL-2.0-or-later", "GPL-2.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
<?php /** * Underskeleton Theme Customizer. * * @package underskeleton */ /*------------------------------------*\ #CUSTOM SANITIZERS \*------------------------------------*/ function underskeleton_sanitize_checkbox( $checked ) { // Boolean check. return ( ( isset( $checked ) && true == $checked ) ? true...
true
b644ce3d6f202a9e58bae3208c114ada6a6048e0
PHP
point-red/point
/app/Imports/Master/CustomerImport.php
UTF-8
1,294
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Imports\Master; use App\Exceptions\PointException; use App\Model\Master\Branch; use App\Model\Master\Customer; use Illuminate\Support\Collection; use Maatwebsite\Excel\Concerns\ToCollection; class CustomerImport implements ToCollection { public function collection(Collection $rows) { $ind...
true
ce21de145b136b77593b86fdec4ed2180656192e
PHP
varctor/Projet-web
/admin/lib/php/classes/utilisateurDB.class.php
UTF-8
2,471
2.8125
3
[]
no_license
<?php class utilisateurDB extends utilisateur{ private $_db; //private $_utilisateurArray = array(); public function __construct($db) { $this->_db = $db; } public function connection (){ try{ $query ="select * from utilisateur where pseud...
true
fda3dc15fc37d0653727aaa29b26533281475eef
PHP
jahepi-mx/nano-framework
/sistema/ControladorFrontal.php
UTF-8
2,761
3
3
[]
no_license
<?php namespace sistema; /* * 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 ControladorFrontal * * @author javier.hernandez */ class Controlado...
true
e24eaa347ddb8b0d0d15195667e268205699b14c
PHP
rinevo/JobCostManager
/login/user_reg.php
UTF-8
6,118
2.53125
3
[]
no_license
<?php require_once(dirname(__FILE__).'/../define.php'); require_once(dirname(__FILE__).'/../db_config.php'); require_once(dirname(__FILE__).'/../Encode.php'); require_once(dirname(__FILE__).'/../common.php'); require_once(dirname(__FILE__).'/class/UserListSQL.class.php'); require_once(dirname(__FILE__).'/class/GroupLis...
true
2727125e68f137ed39a49f5a346f6041f8e08457
PHP
wallacehenriquesilva/RestFulPHP
/UnipGepPortalProvider/business/InstituicaoBusiness.php
UTF-8
534
3.0625
3
[]
no_license
<?php require_once("util/Factory.php"); /** * @author Robson * */ class InstituicaoBusiness { public $con; public function InstituicaoBusiness() { $this->con = new Factory(); } /** * Pesquisa todas as instituições * @return string */ public func...
true
421eaaa44a957b50b3c101b9ce2bf58c4cbb7806
PHP
Muscurat/K-share
/app/Algorithms/Nanoid/Nanoid.php
UTF-8
1,515
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Algorithms\Nanoid; use Hidehalo\Nanoid\Client as ClientGen; use App\User; class Nanoid { public function __construct() { } //****************************************************************************************************************************** // method for generate an id fo...
true
bb065ecb5d588a1891253e6be3bbb2f76e9cbf2a
PHP
MichaelJamesParsons/Data-Importer
/src/Reporters/ReporterInterface.php
UTF-8
1,652
3.125
3
[ "MIT" ]
permissive
<?php namespace michaeljamesparsons\DataImporter\Reporters; /** * Interface ReporterInterface * @package michaeljamesparsons\DataImporter\Reporters */ interface ReporterInterface { /** * Initializes the reporter's default values. * * @return void */ public function start(); /** ...
true
0d22e8275f557c43026d105a4f8554edb5f5056e
PHP
hason/Pinq
/Tests/Integration/Traversable/GroupByTest.php
UTF-8
2,318
2.625
3
[]
no_license
<?php namespace Pinq\Tests\Integration\Traversable; class GroupByTest extends TraversableTest { protected function _testReturnsNewInstance(\Pinq\ITraversable $traversable) { return $traversable->groupBy(function () { }); } /** * @dataProvider everything */ public functi...
true
f7c174562abade2a3b069a3e7c4a68ec921c7ac1
PHP
morgyken/Settings
/Library/Settings.php
UTF-8
2,089
2.84375
3
[]
no_license
<?php /* * ============================================================================= * * Collabmed Solutions Ltd * Project: Collabmed Health Platform * Author: Samuel Okoth <sodhiambo@collabmed.com> * * ============================================================================= */ namespace Ignite\Setti...
true
3891c7038634351fa9c04be64897fc76b6eed93e
PHP
metaname/php-metaname
/examples/contacts.php
UTF-8
6,829
2.640625
3
[ "MIT" ]
permissive
<?php # Use: # # # Get a list of names of contacts with distinct details: # php contacts.php -l # # Get contact details for a specific name: # php contacts.php -l -c"Joe" -v > /tmp/Joe.json # $EDITOR /tmp/Joe.json # To remove excess output to make valid JSON # cp /tmp/Joe.json /tmp/Joe-updated.json # $ED...
true
fb8de915a367ca3517e862a98641a6b7b9ec6d20
PHP
Power-Lan/train-pictures
/src/Picture.php
UTF-8
612
2.984375
3
[ "MIT" ]
permissive
<?php namespace pl\trains; class Picture { /* * Return the list of picture as a key/value array with train name as key and filepath as value */ static function getList() { $out = array(); if ($dh = opendir(__DIR__ . '/../img/')) { while (($file = readdir($dh)) !== f...
true
5570c37e5ab098b2ad74f7d03a73db2167ca6a65
PHP
EaintMM/UAS_ADMIN
/classes/addresscontr.class.php
UTF-8
456
2.59375
3
[]
no_license
<?php class AddressContr extends Address { public function createAddress($addressno, $street, $township,$city, $zipcode, $telephone, $mobile, $facebook, $email) { $results = $this->getAddressByMobile($mobile); if(empty($results)){ $this->setAddress($addressno, $street, $township,$city,...
true
0ab6557b8b4d0684d33c96b3fcae399f01700695
PHP
tantiancai/php-handwriting
/php/recognizer.php
UTF-8
3,192
3
3
[]
no_license
<?php //require_once './Config.php'; //require_once './class.php'; function recognizer_node_cmp($a, $b) { if($a->score == $b->score) return 0; return ($a->score < $b->score) ? -1 : 1; //从小到大排序 } //识别类 class Recognizer { //获取候选字 //参数:候选字,笔迹特征 function get_results(&$cands, &$feat...
true
dacae90b379f9f765b57d79b564734491b80fbce
PHP
TangGaozeng/myshop
/frontend/controllers/OrderController.php
UTF-8
2,208
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\controllers; use Yii; use frontend\models\order; use frontend\models\OrderSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use app\models\Product; use frontend\models\Money; /** * OrderController implements the CRUD actions for order model. */ ...
true
662415a02fd986fc32dafacf4ae1bda2f4271a4f
PHP
kanboard/kanboard
/tests/integration/ProjectFileProcedureTest.php
UTF-8
2,063
2.546875
3
[ "MIT" ]
permissive
<?php require_once __DIR__.'/BaseProcedureTest.php'; class ProjectFileProcedureTest extends BaseProcedureTest { protected $projectName = 'My project to test project files'; protected $fileId; public function testAll() { $this->assertCreateTeamProject(); $this->assertCreateProjectFile(...
true
d83c6dcad6ba7c3da5eafebd205e2884ab3fc54c
PHP
Sywooch/GlobalRoses
/common/models/Order.php
UTF-8
2,142
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "order". * * @property integer $id * @property string $reference * @property string $id_customer * @property string $price_total * @property string $delivery_info * @property integer $modifed * @property integer $deleted * @pro...
true
102e9dd1c5ffc25d164a7a2cffb21e6b6a522a3e
PHP
keithtumusiime/HRMS
/application/models/Loan_model.php
UTF-8
2,965
2.640625
3
[ "MIT" ]
permissive
<?php class Loan_model extends CI_Model{ function __consturct(){ parent::__construct(); } public function Add_LoanData($data){ $this->db->insert('loan',$data); } public function Add_installData($data){ $this->db->insert('loan_installment', $data); } public function loan_mode...
true
b4cee2009cad6b7ceb1484c3bd331416d0d124ff
PHP
AlphaFantome/ECE-Market_Place
/ecemarket/controller/database/purchase_order_controller.php
UTF-8
1,409
2.84375
3
[]
no_license
<?php require_once('database_controller.php'); require_once(__DIR__ . '/../../model/purcharse_order/purchase_order.php'); class PurchaseOrderController extends DatabaseController { public function __construct() { parent::__construct(); } public function create_purchase_order(PurchaseOrder $pu...
true
4af98fa54be60e8fb2760d0648962f54e254d86f
PHP
yofikurniawan/Belajar-PHP
/explode.php
UTF-8
412
4.03125
4
[]
no_license
<html> <head> <title>Fungsi explode()</title> </head> <body> <h2>Demo memecah string</h2> <?php $str = "PHP Perl Python Ruby LISP"; echo "Sebelum dipecah:<br />"; echo "\$str: " . $str . "<br /><br />"; // memecah string dengan spasi sebagai karakter pembatas $daftarString = explode(' ', $str); echo "Setelah di...
true
affbdd5d9ebe735202d6c66418aeb966cf2cbb26
PHP
lucasvs/desafio
/app/Controller/RasController.php
UTF-8
3,396
2.625
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Ras Controller * * @property Ra $Ra */ class RasController extends AppController { /** * index method * * @return void */ public function index() { $this->Ra->recursive = 0; $this->set('ras', $this->paginate()); ...
true
1077940971c47d7d89e16c4d530a4100df4cb0e9
PHP
wittyatom/shopxie
/shopxie_updated/models/ShopxiePeople.php
UTF-8
1,725
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "shopxie_people". * * @property string $name * @property string $last_name * @property integer $gender * @property string $phone_number * @property string $email * @property string $address_1 * @property string $address_2 * @prope...
true
98698fde31168099998717b29dad105b1ba8a09f
PHP
FootbridgeMediaPensacola/stockphotos-database-interface
/Classes/HttpResponse.php
UTF-8
500
2.796875
3
[]
no_license
<?php /* By Garet C. Green 07/27/2018 */ class HttpResponse{ public function __construct(){ } public function setHeaderContentTypeToJSON(){ header("Content-Type: application/json"); } public function jsonSuccess($data = []){ print(json_encode(array_merge( ["status"=>1], $data ))); ...
true
f1be3106d52427c99ca7acc67ff2b405f1f340d0
PHP
jtl-scx/channel-core
/src/MetaData/Attribute/AttributeEnumValueList.php
UTF-8
1,707
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This File is part of JTL-Software * * User: avermeulen * Date: 2021-03-10 */ namespace JTL\SCX\Lib\Channel\MetaData\Attribute; use InvalidArgumentException; use JTL\Generic\GenericCollection; use JTL\SCX\Lib\Channel\Core\ToArrayTrait; /** * @method AttributeEnumValue offse...
true
b863c9c80189e146aa23fc7013073a9fcf892b60
PHP
xtuling/study_center
/trunk/Exam/Common/Service/CategoryService.class.php
UTF-8
21,464
2.53125
3
[]
no_license
<?php /** * 考试-试卷分类表 * @author: houyingcai * @email: 594609175@qq.com * @date : 2017-05-19 17:45:03 * @version $Id$ */ namespace Common\Service; use Common\Common\Department; use Common\Common\Tag; use Common\Common\User; use Common\Model\CategoryModel; use Common\Model\PaperModel; use Common\Model\RightMod...
true
8108e82dff7f731b16af74328693de31983baec5
PHP
gobran1/rentalSite
/app/View/Components/PropertyFilters.php
UTF-8
2,937
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\View\Components; use Illuminate\Database\Eloquent\Collection; use Illuminate\View\Component; class PropertyFilters extends Component { public $bedroomOptions; public $bathroomOptions; public $sortOptions; public $features; public $additionalFilters; /** * Create a n...
true
ae4040082730ac69f26c01aef126488273f78b04
PHP
xaviersilos/example-mvc
/controller/SongController.php
UTF-8
720
2.546875
3
[]
no_license
<?php require(ROOT . "model/SongModel.php"); function index() { $songs = getAllSongs(); render("song/index", array( 'songs' => $songs) ); } function create() { render("song/create"); } function createSave() { if (createSong()) { header("location:" . URL . "song/index"); exit(); } else { //er is iets...
true
b3b7120cd53c7248435deac2800890c73b7f2d9a
PHP
Pahry/spk_r21
/application/controllers/admin/User.php
UTF-8
1,127
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<? defined('BASEPATH') OR exit('No direct script allowed'); class User extends Ci_Controller { public function __construct() { parent::__construct(); //ini untuk pemuatan helper fungsi, librari class dan model. kalau tidak ada pada setiap fungi harus melakukan pemuatan sendiri. $this->load->model('admin/user_mo...
true
2aa1e8a862c3d79be3eda244b1b1d6eabbeb87ea
PHP
celtric/fixtures-php
/tests/unit/Celtric/Fixtures/FixtureTypes/CacheableDefinitionTest.php
UTF-8
1,636
2.515625
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit\Celtric\Fixtures\FixtureTypes; use Celtric\Fixtures\FixtureDefinition; use Celtric\Fixtures\FixtureTypes\CacheableDefinition; use Celtric\Fixtures\FixtureTypes\ObjectFixture; use Celtric\Fixtures\FixtureTypes\ScalarFixture; use Tests\Utils\Person; final class CacheableDefinitionTest extend...
true
5d3d89a5b96fcf864d08d6145460fdbaf6d74cef
PHP
XiangtingLee/vote
/login/zhu.php
UTF-8
1,665
2.734375
3
[]
no_license
<?php session_start(); $name = $_POST["name"]; $password = $_POST["password"]; $code = $_POST["code"]; //验证码 if ($_SESSION["code"] != $code) { echo 10086; //验证码不一致 } else if (!preg_match('/^[0-9]{9}$/', $name)) { //你在前台JS 部分可以用正则表达式进行 echo 10002; //用户名格式不对 } else if (!preg_match('/^[a-zA-Z]{...
true
9facb2d16fe5970c10bd82000e7665b4a69cac9c
PHP
BeemoLin/test
/share_show_movie.php
UTF-8
11,563
2.5625
3
[]
no_license
<?php /* **分享園地 **已經未使用 */ die('分享園地'); require_once('define.php'); require_once(CONNSQL); require_once(PAGECLASS); mysql_select_db($database_connSQL, $connSQL); $query_Update = "UPDATE share SET share_hits=share_hits+1 WHERE share_id = ".$_GET["share_id"]; $Result = mysql_query($query_Update, $connSQL) or ...
true
c2f06acc69126de12495452a74c84bc29110220d
PHP
phproberto/joomla-model
/extensions/libraries/phproberto_joomla_model/src/State/Filter/BaseFilter.php
UTF-8
3,221
2.734375
3
[]
no_license
<?php /** * @package Phproberto\Joomla\Model * @subpackage State\Filter * * @copyright Copyright (C) 2018 Roberto Segura López. All rights reserved. * @license GNU General Public License version 2 or later; http://www.gnu.org/licenses/gpl-2.0.html */ namespace Phproberto\Joomla\Model\State\Filter; de...
true
78136955b371909a8e36e7118cfefc9c89512cd9
PHP
mariyamihova/Software-technologies
/PHP basics - Exercise/04. Product of 3 numbers.php
UTF-8
853
3.78125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Product of 3 numbers</title> </head> <body> <form> N: <input type="text" name="num1" /> M: <input type="text" name="num2" /> L: <input type="text" name="num3" /> <input type="submit" value="Submit" /> </form> <?php if (isset(...
true
6b15f2d0517e6a7c982cabde8944a72dd3cee420
PHP
iledcom/oopphp
/Singleton/test.php
UTF-8
139
2.671875
3
[]
no_license
<?php require 'singleton.php'; $s1 = singleton::getInstance(); $s2 = singleton::getInstance(); echo $s1->data . "<br>"; echo $s2->data;
true
949b2e5d03ae736d044e8fcedc9f88fa23fb3a0b
PHP
EmanueleMinotto/DomainParserBundle
/src/Validator/Constraints/IsSuffixValid.php
UTF-8
521
2.53125
3
[ "MIT" ]
permissive
<?php namespace EmanueleMinotto\DomainParserBundle\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** * Constraint to check if the suffix is valid or not. * * @author Emanuele Minotto <minottoemanuele@gmail.com> * * @Annotation */ class IsSuffixValid extends Constraint { /** * Cons...
true
58a03e9dafeafa9f85577b2664473ba8f079d067
PHP
AlexanderZon/alice
/app/models/Games/Memory/Question.php
UTF-8
711
2.640625
3
[ "MIT" ]
permissive
<?php namespace Games\Memory; class Question extends \Eloquent { protected $table = 'memory_questions'; protected $fillable = []; use \SoftDeletingTrait; protected $dates = ['deleted_at']; public function evaluation(){ return $this->belongsTo('\\Evaluation'); } public static function...
true
0397e51e92bcd704bb3a23d4182600170086f2eb
PHP
rafyakbar/sertifikasiweb
/support/init.php
UTF-8
2,868
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: rafya * Date: 08/08/2018 * Time: 17:05 */ session_start(); require_once '../Models/User.php'; require_once '../Models/Barang.php'; require_once '../Controllers/AuthController.php'; require_once '../Controllers/BarangController.php'; require_once '../Controllers/KeranjangC...
true
75124b311cf11405c227bb662556ac314d5869b9
PHP
matowens/platform
/src/Oro/Bundle/TranslationBundle/Translation/DatabasePersister.php
UTF-8
3,316
2.640625
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\TranslationBundle\Translation; use Doctrine\DBAL\Platforms\MySqlPlatform; use Doctrine\ORM\EntityManager; use Oro\Bundle\TranslationBundle\Entity\Translation; use Oro\Bundle\TranslationBundle\Entity\Repository\TranslationRepository; class DatabasePersister { /** @var int */ privat...
true
b2cfb023d080d2bbab9de3e9eda7ef117281b806
PHP
gregmag/navplan2
/src/php/Navplan/System/Posix/FileService.php
UTF-8
1,964
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace Navplan\System\Posix; use Exception; use Navplan\System\Domain\FileServiceException; use Navplan\System\UseCase\IFile; use Navplan\System\UseCase\IFileService; // TODO: remove require_once __DIR__ . "/../../NavplanHelper.php"; class FileService implements IFileService { ...
true
9b209533d27987f8761f2a6f923e20b1df1d3c12
PHP
valentinea/Viridis
/admin/saljiMail.php
UTF-8
538
2.5625
3
[]
no_license
<?php if( isset($_POST["email"]) ){ // echo "<script> alert('mail: ". $_POST['email'] ."'); </script>"; $to = ""; $to .= $_POST["email"]; $subject = "Aplikacija GREEAT"; $message = "Proba"; $headers = "From: GREEAT" . "\r\n" . "Reply-To: valentinadumbov@gmail.com" . "\r\n" . ...
true
f9b8a23662438f3e17fe16ee5116223434dc230a
PHP
fuchaoqun/colaphp
/Cola/Ext/Log/Abstract.php
UTF-8
2,481
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * */ abstract class Cola_Ext_Log_Abstract { const EMERG = 0; // Emergency: system is unusable const ALERT = 1; // Alert: action must be taken immediately const CRIT = 2; // Critical: critical conditions const ERR = 3; // Error: error conditions const WARN = 4; // Warn...
true
8c536560c3f1284c05fb2f65a52d4786a332b55d
PHP
tpg/timewarp
/Timewarp/Exceptions/ExceededMaximumPropertyCountException.php
UTF-8
1,003
2.71875
3
[ "MIT" ]
permissive
<?php /** * Timewarp * * @author Warrick Bayman <me@warrickbayman.co.za> * @copyright Copyright (c) THEPUBLICGOOD (Pty) Ltd. * @license MIT License http://opensource.org/licenses/MIT * */ namespace TPG\Timewarp\Exceptions; use TPG\Timewarp\Properties\Property; use TPG\Timewarp\Support\CalendarObject; cla...
true
90c616935c43082123f723e7231f373b5c1137f4
PHP
AlexeyGod/ds-modules-manager
/controllers/ModulesController.php
UTF-8
7,795
2.546875
3
[]
no_license
<?php /** * Created by Digital-Solution.Ru web-studio. * https://digital-solution.ru * support@digital-solution.ru */ namespace modules\manager\controllers; use application\models\User; use framework\components\module\ModuleInstall; use framework\exceptions\ErrorException; use framework\models\Modules; use framewo...
true
35f58865001589eef38fed725b10dbe81872bada
PHP
gagarcr/mdb_us4c
/loop-templates/content.php
UTF-8
3,418
2.75
3
[]
no_license
<?php /** * Post rendering content according to caller of get_template_part. * * @package understrap */ ?> <!-- Custom Tag proccessing. This gets 'portfolio-width' and diplays the content according to the number. --> <?php /* Repeat for 3 posible thumbnails */ for ($i=1; $i < 4; $i++) { //$width = g...
true
e466386977d1c349545eebbaae1341bfabc0c79d
PHP
Xlamac00/DIP2
/src/Repository/UserRepository.php
UTF-8
8,773
2.703125
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Tips; use App\Entity\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface; use Symfony\Component\Security\Core\Exception\UnsupportedUserEx...
true
e292cf5beef0f80fc153d768e8583e16bed18eee
PHP
CallumCarmicheal/BugReportSystem
/php/libs/BugReporter.php
UTF-8
6,586
2.9375
3
[]
no_license
<?php /** * Proj: WhiteCircle * User: CallumCarmicheal * Date: 05/04/2017 * Time: 21:48 */ class BugReporter { public static function ReportBug(&$error) { // Default variables $error = ""; // Check the recaptcha if (!Lib\GoogleRecaptcha::Check()) { $error = "Please validate the reCaptcha!"; goto ...
true
0fa9ae5ecbbcdf6bd4231c4b0e5748e2a0676d5e
PHP
Aarif123456/image_repository_api
/src/Controller/DeleteWorker.php
UTF-8
1,320
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ImageRepository\Controller; use ImageRepository\Exception\{DebugPDOException, DeleteFailedException, MissingParameterException, NoSuchFileException, PDOWriteException}; use ImageRepository\Model\FileManagement\FileManager; use ImageRepository\Model\User; use Im...
true
e674be276013cada13224d81c6a0dc6d43f4d957
PHP
MarchenkoOleksandr/weatherAPI
/app/Http/Models/Forecasts/OpenWeatherMapForecast.php
UTF-8
1,181
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Models\Forecasts; use GuzzleHttp\Client; use Illuminate\Support\Facades\Log; /** * Class OpenWeatherMapForecast * @package App\Http\Models */ class OpenWeatherMapForecast extends BaseForecast { /** * OpenWeatherMapForecast constructor. * @param $country * @param $city ...
true
ee7de3550c4326d7920caeca409289e4b005de86
PHP
georgemiler/flamework-tumblrapp
/www/include/lib_tumblr_users.php
UTF-8
2,619
2.671875
3
[]
no_license
<?php loadlib("random"); ################################################################# function tumblr_users_get_by_oauth_token($token){ $enc_token = AddSlashes($token); $sql = "SELECT * FROM TumblrUsers WHERE oauth_token='{$enc_token}'"; return db_single(db_fetch($sql)); } #######################...
true
f12cd1562dfbf492ed4e4e8d5f299d07b78f8860
PHP
optimosolution/goldenbangladesh
/protected/components/Controller.php
UTF-8
32,327
2.578125
3
[]
no_license
<?php /** * Controller is the customized base controller class. * All controller classes for this application should extend from this base class. */ class Controller extends CController { public $userData; /** * @var string the default layout for the controller view. Defaults to '//layouts/column1', ...
true
657c9bebe17263e0d64e4f8e0d80071a112200f4
PHP
rima1994/covoiturage-1
/Scripts/localite/script_gmap_adresse.php
UTF-8
8,466
2.703125
3
[]
no_license
<?php function findByAddress($address = "") { $url = "http://maps.google.com/maps/api/geocode/json?address=".$address."&sensor=false"; $response = file_get_contents($url); $response = json_decode($response, true); $lat = ((isset($response['results'][0]['geometry']['location']['lat']))...
true
a7906e4f81ccf0d5189938dfe7bcf07912fdc008
PHP
Daedadix/hs-bremen-web-api
/sources/src/Calculator.php
UTF-8
411
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Daedadix * Date: 3/16/2016 * Time: 3:40 PM */ namespace HsBremen\WebApi; class Calculator { public function add($a, $b){ return $a + $b; } public function substract($a, $b){ return $a - $b; } public function multiply($a, $b){ ...
true
159503fe6a33d2dd2d129fe457caa224f9a2d869
PHP
yuetsh/student-sign-system
/show.php
UTF-8
710
2.578125
3
[]
no_license
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>结果展示</title> <style> #content{ margin: 100px auto; width: 50px; text-align: center; } </style> </head> <body> <div id="content"> <?php $link=mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS); if($...
true
829e1daac31d01c6468f2a8431c358b99072678c
PHP
spanitz/silex-restful-controller
/src/spanitz/Silex/RestfulController.php
UTF-8
4,630
2.921875
3
[]
no_license
<?php namespace spanitz\Silex; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpKernel\Exception\HttpException; /** * Class RestfulController * * Simple controller class u...
true
736c89fda7410e6e132aa7d84947247f9da4d330
PHP
acer-haitao/Raspi
/www/cgi-bin/getsite_mysql.php
UTF-8
1,182
2.71875
3
[]
no_license
#!/etc/php/bin/php <?php echo "X-Powered-By: PHP/ 5.6.27\n"; echo "Content-type: text/html\n\n"; ?> <?php Error_reporting(E_ALL); INI_Set('display_errors','on'); $q = isset($_GET["q"]) ? intval($_GET["q"]) : ''; if(empty($q)) { echo '请选择一个网站'; // exit; } $con = mysqli_connect('localhost','root','haitao'); if...
true
d27df07137821bd4aa44d83bdfb09a1fe81ae7ce
PHP
guddus326/2021_App_and_Me_Web
/submit_show.php
UTF-8
508
2.625
3
[]
no_license
<meta charset="UTF-8"> <?php include './db_conn.php'; $sql = "SELECT name, student_id, five, motive FROM submit"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { echo "학번 이름 : ".$row["student_id"]."&nbsp".$row["name"]. "<br> 다...
true
373da7fdfa80533bdc8bf8684cb22ffbf231545c
PHP
mega6382/pet-store
/app/Seeds/ShowroomFixtureLoader.php
UTF-8
805
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MyDataFixtures; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use PetStore\Domain\Showroom\Showroom; class ShowroomFixtureLoader extends AbstractFixture implements O...
true
aaee704842a7827a5cdf55bc8a5143cf6421faa3
PHP
paymang7544/online_bookstore
/online_bookstore/authorlogin_tools.php
UTF-8
1,609
2.921875
3
[]
no_license
<?php #function load to load a page specified as its argument. function load($page = 'author_login.php') { #build a URL string of protocol ,current domain and directory. $url = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['php_SELF']).'/online_bookstore'; #remove any trailing slashes from url,append a for...
true
b8dc8a81731784987dc691de9c6f90fe9c8598fc
PHP
ama542blake/DatabaseProject
/includes/common_query.php
UTF-8
25,855
3.125
3
[]
no_license
<?php // this module is for queries and functions that will be used in many places /* user queries */ // return the ID if the user exists, 0 if not function getUserID($conn, $username) { $query = "SELECT user_id FROM user WHERE user_username = '${username}'"; $result = mysqli_query($con...
true
a62bad6e68373ff186822029f6987c789fede2ff
PHP
kastaneda/test_setapp
/src/Payments/Adapters/DetailedProviderAdapter.php
UTF-8
1,174
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace Setapp\Test\Payments\Adapters; use Setapp\Test\Core\InterfaceInvoice; use Setapp\Test\Payments\InterfaceProvider; use Setapp\Test\Payments\Providers\DetailedProvider; class DetailedProviderAdapter implements InterfaceProvider { const DATE_FORMAT = 'Y-m-d\TH:i:sP'; pr...
true
d859301ef0730c205d2487ecb93193e30a4d21c4
PHP
steffendebruijn/CMS
/application/migrations/2013_05_24_144554_entries.php
UTF-8
801
2.671875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Entries { /** * Make changes to the database. * * @return void */ public function up() { Schema::table('entries', function($table) { $table->create(); $table->increments('id'); $table->string('title', 128); $table...
true
147a1eae66d8bf69df60e4cb8e521675b8f123ba
PHP
hristoviedo/Proyecto-SIPLAFT
/app/Http/Middleware/activeMiddleware.php
UTF-8
845
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class activeMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure ...
true
8d0597da9d4ce0795f828b184790b0609dc88fbd
PHP
website-vikreta/boompanda
/dashboard/php/extras.php
UTF-8
8,435
2.78125
3
[]
no_license
<?php include_once "./db.php"; // getting session variables $email = $_SESSION['email']; $userType = $_SESSION['userType']; extract($_POST); // * ==================================== // * ADD ACTIVITY // * ==================================== if (isset($_POST['addBanner']) and $_SERVER['REQUEST_METHOD'] == 'POST') ...
true
f96cfbf42694a3a379be18d2a9474d70f4def13d
PHP
madasiregar85/belajar
/latfor2.php
UTF-8
351
3.609375
4
[]
no_license
<!DOCTYPE html> <html> <body> <title>contoh if foreach</title> </head> <body> <?php $bulan = array('Januari', 'Februari', 'Maret'); foreach ($bulan as $index =>$value) { if($value == 'Februari'){ echo "cetak bulan ".$index." ".$value; echo "<br>"; } else { echo "Bukan bulan Februari bulan " .$value; echo "<...
true
ecb6de9985ff0fc403d2947c757f29d39f7d0ee0
PHP
santndev/Symfony-5.3-simple
/src/Service/MailService.php
UTF-8
1,575
2.8125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service; use Symfony\Component\Mailer\Exception\TransportExceptionInterface; use Symfony\Component\Mailer\MailerInterface; use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Email; class MailService { private MailerInterface $mailer; public function ...
true
a70183ea73dc34086aebfbd1007898501eb4f89b
PHP
islamov-jahja/Patterns
/src/facade/Computer.php
UTF-8
231
2.609375
3
[]
no_license
<?php namespace facade; use facade\interfaces\ComputerInterface; class Computer implements ComputerInterface { public function plugTheCableIntoTheSocket() { } public function pressToPowerButton() { } }
true
1610030404e2c47aa71f9b48e7bcc9be8d388678
PHP
GimmeMunny/latest
/admin/emailer/php/function.php
UTF-8
3,635
3.109375
3
[]
no_license
<?php // ================================================================ // M A S S E - M A I L E R // ================================================================ // // The script sends e-mails to different e-mail addresses specified // in different text files. The text files can be changed...
true
8798b037a5808a0fb8c7fa04f329ac0abf32a31f
PHP
sjatuk/WSC2015-WebDesign
/Server-A/IR_SERVER_MODULE_A-1/Application/Controller/GameController.php
UTF-8
1,899
2.96875
3
[]
no_license
<?php /** * WorldSkills 2015 * * Created by Mohamad Mohebifar. * Country: Iran */ namespace Application\Controller; use Application\Model\Brick; use Application\Model\Game; use Utilities\Controller; use Utilities\Request; class GameController extends Controller { public function game(Request $request) {...
true
8d5e46c2e787dbfdb19150e3ca2ee7dbb95d555a
PHP
pranxol/Cuet_alumni_web_portal
/after_logged_in_contact.php
UTF-8
2,287
2.609375
3
[]
no_license
<?php // initializing variables $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'registration'); session_start(); if (!isset($_SESSION['username'])) { $_SESSION['msg'] = "You must log in first"; header('location: login.php');...
true
b5e203f033f961e366fa5bb663c0212761533726
PHP
tsufeki/php-lenient-parser
/lib/PhpLenientParser/Statement/Trait_.php
UTF-8
1,394
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace PhpLenientParser\Statement; use PhpLenientParser\Expression\Identifier; use PhpLenientParser\ParserStateInterface; use PhpParser\Node; use PhpParser\Parser\Tokens; class Trait_ implements StatementInterface { /** * @var Identifier */ private $identifierParse...
true
4318fa40c291eea299de16b1b7c3b2880fa06ce5
PHP
tjyang15/php-test
/delete.php
UTF-8
1,015
2.75
3
[]
no_license
<?php //删除自己发起的签到,接受FormID,将删除数据表里signin里面的一条FormID记录,同时删除所有表signinrecord中所有FormID的记录,返回“true”或“false“ header("Content-type:text/html;charset=utf-8"); //设置php连接数据库用utf8编码,不然中文乱码 $servername = "localhost"; $username = "root"; $password = ""; $dbname = "test"; // 创建连接 $conn = new mysqli($servername, $userna...
true
07cd6e219bae08a174a3c47d7fa91698149e12de
PHP
KristjanVeensalu/2.kodutoo-IV-ruhm
/data.class.php
UTF-8
759
2.671875
3
[]
no_license
<?php class data{ private $connection; function __construct($mysqli){ $this->connection = $mysqli;} function dataentry ($location, $upload, $download, $ping , $device, $name) { $stmt = $this->connection->prepare(" INSERT INTO internet_data(location, upload, downloa...
true
21318b2a7894c740ffd8ea7809d5b4a674b487b1
PHP
iannazzi/craiglorious
/app/Classes/Seeder/Demo/tables/ScheduleEntriesTableSeeder.php
UTF-8
3,040
2.515625
3
[]
no_license
<?php namespace App\Classes\Seeder\Demo\tables; use App\Classes\Seeder\BaseSeeder; use App\Models\Craiglorious\System; use App\Models\Tenant\CalendarEntry; use App\Models\Tenant\Employee; use Carbon\Carbon; class ScheduleEntriesTableSeeder extends BaseSeeder { public static function run() { self::cons...
true
2ef13cc17c947fdf3152e3a578b46c6e615953d1
PHP
murat49370/blogphp
/src/App/model/PostManager.php
UTF-8
6,491
2.9375
3
[]
no_license
<?php namespace App\model; use App\Model\Entity\Category; use App\Model\Entity\Post; use Exception; use PDO; /** * Class PostManager * @package App\model */ class PostManager { /** * @var PDO */ private $_db; /** * PostManager constructor. * @param $db */ public function...
true
29e1545d84ae8fc5f50de5b2b24dd378e11d4f20
PHP
Coyote494/ICAR
/code/Visiteur/verification_connexion_visiteur.php
UTF-8
4,677
2.546875
3
[]
no_license
<!-- on ouvre une nouvelle session --> <?php session_start(); ?> <!DOCTYPE html> <html lang = "fr"> <head> <title>Verification Connexion</title> <meta charset="utf-8"> </head> <body> <?php $nom = $_GET["nom"]; $prenom = $_GET["prenom"]; $assurance = $_GET["assurance"]; ...
true
1742f8154ca87b315300837fdf80042f865f1439
PHP
adoy/php-src
/ext/standard/tests/strings/sprintf_variation4.phpt
UTF-8
555
3.359375
3
[ "PHP-3.01", "IJG", "Zlib", "OLDAP-2.8", "BSD-4-Clause-UC", "ISC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-public-domain", "TCL", "BSD-2-Clause", "GD" ]
permissive
--TEST-- sprintf %u With signed integer 32bit --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { die("skip this test is for 32bit platform only"); } ?> --FILE-- <?php /* example#5: various examples */ $n = 43951789; $u = -43951789; // notice the double %%, this prints a literal '%' character var_dump(sprintf("%%u = '%u'"...
true
ca0a8beeb7113766ac051dfa7514e5fa4844e725
PHP
AlphaRecon19/website-template
/lib/Koolserve/Koolserve.php
UTF-8
2,400
2.625
3
[ "Apache-2.0" ]
permissive
<?php /* koolserve * * Koolserve bootstrap php class * * @link https://github.com/AlphaRecon19/website-template * * @author chris@koolserve.uk * * @version 0.0.2 */ class Koolserve{ public $Smarty = ''; private $ksdir = 'lib/Koolserve/'; function __construct($a) { // Get ...
true
196ce29e818d972a5458376b5e7fb9dba44c4a86
PHP
thistehneisen/tobook
/app/database/migrations/2014_08_20_000000_create_table_consumers.php
UTF-8
1,252
2.625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTableConsumers extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (Schema::hasTable('consumers')) { return; } Schema::cr...
true
e753bc0ffe65d9fdb25260b515aac274d058e32a
PHP
javicente03/CorpotulipaGestor
/backend/imagenes/ajuste_factura.php
UTF-8
2,664
2.96875
3
[]
no_license
<?php if(isset($router)){ //Función para subir la imagen del perfil del usuario function subir_imagen($tipo,$imagen,$nombre) { //strstr($cadena1,$cadena2) sirve para evaluar si en la primer cadena de texto existe la segunda cadena de texto //Si dentro del tipo del archivo se encuentra la palabra image significa que ...
true
76e3359f28659d1e88110dd4e0ebee88759f4ad8
PHP
sustcast/sustcast-auth-v0
/oldMeowAPI/app/Http/Controllers/EditTagController.php
UTF-8
1,932
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\DirReader; use App\File; use Illuminate\Http\Request; class EditTagController extends Controller { const SAMPLEDIR = 'M:\\musec'; public function index() { $dirReader = new DirReader(self::SAMPLEDIR); $files = $dirReader->get_files(true); //Get t...
true
bb9642eaf4213b0a0569f1e0ac3bc8f454e3ab58
PHP
imjerrybao/PushApp
/app/SocialAccount.php
UTF-8
1,977
2.78125
3
[ "MIT" ]
permissive
<?php namespace App; use App; use Illuminate\Database\Eloquent\Model; /** * App\SocialAccount * * @property string $token * @property string $id * @property string $platform * @property string $avatar * @property string $nickname * @property string $homepage * @property integer $user_id * @property \Carbon...
true
98a052d71f2453c7bf10687f22c9869ed93a839b
PHP
MuhammadUbaidUllah-0987/php
/Day-32/task-32-3 do while loop.php
UTF-8
70
2.734375
3
[]
no_license
<?php $a=1; do { echo "$a<br>"; $a++; } while ( $a<= 5); ?>
true
5f0e05924039185a7c351433e77a2831bcc5cbb4
PHP
KoalaLoveTree/BDTestTask
/frontend/models/ConfigureVendorForm.php
UTF-8
1,398
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use common\models\Sphere; use common\models\User; use Yii; use yii\base\Model; class ConfigureVendorForm extends Model { /** @var int */ public $sphere; /** * {@inheritdoc} */ public function rules() { return [ ['sphere', 'requir...
true
fc5fc123063ab95e12e013f8623d5083c30736f0
PHP
zzolo/ol_dccph2010_demo
/other/get_osm_tiles.php
UTF-8
1,983
2.578125
3
[]
no_license
<?php /** * Algorithm borrowed form: * http://svn.openstreetmap.org/applications/utils/downloading/tiles_by_bbox/get.pl * * Denmark * NE 57.751949, 15.193240 * SW 54.559132, 8.074720 * * Copenhagen: * NE 55.741779, 12.685440 * SW 55.610779, 12.452950 */ retrieve(); function retrieve() { echo "Starting ...
true
eec644c69ea24f5004106336faafddf5b98bfa23
PHP
tsilis93/uowm_alumni
/admin/reject_story.php
UTF-8
3,144
2.578125
3
[]
no_license
<?php include ("../connectPDO.php"); $id = $_POST['story_id1']; $publication_date = date("0000-00-00"); $comments = ""; $editor = $_POST['editor1']; $newstatus = 0; if(isset($_POST['comments1'])) { $comments = $_POST['comments1']; } $sql = "SELECT * stories WHERE id = ?"; $stmt = $conn->prepare($sql); $stmt-...
true
6366b0aa7d9ac3be45ad1a49a523401c01b0edfd
PHP
joonlabs/phpcommandline
/commandline/programs/ls/init.php
UTF-8
303
2.515625
3
[]
no_license
<?php use PHPCommandLine\lCommand; use PHPCommandLine\lSystem; function lsMain($args, $command){ lCommand::write("> $command"); $files = scandir(lSystem::getPWD()); foreach($files as $f){ if($f!="." and $f!="..") lCommand::write("$f"); } } ?>
true
f571b3278b3544c6840d9ecf6ad66ae4a717b310
PHP
redshirtjim/khlogic
/edit_your_user_settings.php
UTF-8
4,663
2.65625
3
[]
no_license
<?php // edit_your_user_settings.php This script edits a publisher entry. session_start(); require ('include/config.inc.php'); include('include/header.html'); //Include the header require (MYSQL); // Connect and select $email_check = ''; if (isset($_GET['user_id']) && is_numeric($_GET['u...
true