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
932f1d56a6f97e13d6649e3475322e5ec47652b5
PHP
wajuest/EC-site
/user_confirm.php
UTF-8
1,050
2.828125
3
[]
no_license
<?php // var_dump($_POST); session_start(); var_dump($_SESSION); if(!isset($_SESSION)) { header("Location: user_register.php"); exit(); } else { $userName = $_SESSION["name"]; $address = $_SESSION["address"]; $email = $_SESSION["email"]; $password = $_SESSION["password"]; } ?> <!DOCTYPE html> <html> <b...
true
e91017ed1040cf495e115ef1daca41fc6d6a26cd
PHP
TheMagicalKing/phpOpgaver
/ffxivhouse.php
UTF-8
4,744
2.578125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>Denne side er baseret på hvor meget Gil du mangler før du har råd til...
true
df75d87f8022fd42166e01b85a60ddbfe33f688a
PHP
dafik/dfi-zf
/src/Dfi/View/Helper/DynamicForm/Button.php
UTF-8
4,165
2.875
3
[ "MIT" ]
permissive
<?php namespace Dfi\View\Helper\DynamicForm; class Button { /** * @var string */ protected $name; /** * @var string */ protected $type; /** * @var string */ protected $url; /** * @var Callback */ protected $successCallback; /** * @va...
true
a66612f98e712e30c6fe8be214f36d5583587597
PHP
lihongxing/xiaoheicms
/models/UniAccount.php
UTF-8
1,532
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%uni_account}}". * * @property string $uniacid * @property integer $groupid * @property string $name * @property string $description * @property string $default_acid * @property integer $rank */ class UniAccount extends \yii\db\...
true
f40f0b8fd5fd2885dc54692ac0b3f91b37432f57
PHP
Erdem5560/SBAN
/src/Erdem5560/SureliBan/Form/ModalForm.php
UTF-8
1,922
2.53125
3
[]
no_license
<?php /* _____ _ | ____|_ __ __| | ___ _ __ ___ | _| | '__/ _` |/ _ \ '_ ` _ \ | |___| | | (_| | __/ | | | | | |_____|_| \__,_|\___|_| |_| |_| ____ ____ __ ___ | ___| ___| / /_ / _ \ ...
true
2d213317f804e21f7ed6b5d535c98fc841121a20
PHP
Larium/larium_security
/src/Larium/Security/Authorize/Ability.php
UTF-8
7,933
2.90625
3
[ "MIT" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ namespace Larium\Security\Authorize; class Ability { protected $rules = array(); protected $default_alias_actions = array( 'read' => array('index', 'show'), 'create' => array('new'), 'update' => array('edit'), ...
true
f599882e9e3faf2a361ede978985e5306428409b
PHP
ajfwebdev/php-tuf
/tests/Unit/FileStorageTest.php
UTF-8
1,502
2.84375
3
[ "MIT" ]
permissive
<?php namespace Tuf\Tests\Unit; use PHPUnit\Framework\TestCase; use Tuf\Client\DurableStorage\FileStorage; /** * @coversDefaultClass \Tuf\Client\DurableStorage\FileStorage */ class FileStorageTest extends TestCase { /** * Tests creating a FileStorage object with an invalid directory. * * @return...
true
abac85d96a483a496fdaa967b8e8476cd58c0fa5
PHP
SBC2000/registrations
/web/classes/Team.php
UTF-8
1,306
3
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Vincent * Date: 5-5-2015 * Time: 14:46 */ class Team { const Registered = 1, Confirmed = 2, Rejected = -1; private $id; private $teamname; private $teamtype; private $teamlevel; private $teamstatus; function __construct...
true
15774575ac98aec666031acde9567575c91e188e
PHP
flash-global/payment-package
/src/PaymentPackage.php
UTF-8
1,526
2.671875
3
[]
no_license
<?php namespace Fei\Service\Payment\Package; use Fei\Service\Payment\Client\Payer; use Fei\Service\Payment\Package\Config\PaymentParam; use ObjectivePHP\Application\ApplicationInterface; /** * Class PaymentPackage * * @package Fei\Service\Payment\Package */ class PaymentPackage { const DEFAULT_IDENTIFIER = '...
true
970cadfd6055e7d3ad92070bf603d852fed1b1e4
PHP
jiangj4/ScheduleMe
/start.php
UTF-8
453
2.515625
3
[]
no_license
<?php include("common.php"); //remember to set cookie if (isset($_COOKIE['user'])) { $user = $_COOKIE['user']; $id = $_COOKIE['id']; $db = newPDO(); if(verifyUser($id, $db)) header('Location: home.php'); else header('Location: userinfo.php'); } else { header('Location: index.php'); } // c...
true
b38131cedabb3564ee96a4e655c06c2ff51845be
PHP
apache/netbeans
/php/php.editor/test/unit/data/testfiles/parser/foldingCycles_1.php
UTF-8
595
3.28125
3
[ "Apache-2.0" ]
permissive
<?php class ClassName { function __construct() { while (true) { } do { } while(true); switch ($foo) { case 1: { } default: { } } for ($i = 0; $i < 10...
true
8ad109502ab5ca8bce6e5b48ca222bc0fcba16be
PHP
k19c90/EECS448_Lab5
/Part6/ViewUserPosts.php
UTF-8
682
2.796875
3
[]
no_license
<?php echo "<table border=\"1\">"; echo "<tr> <th>post_id</th> <th>author_id</th> <th>content</th> </tr>"; $mysqli = new mysqli("mysql.eecs.ku.edu", "k310c546", "Choo9eiK", "k310c546"); if ($mysqli->connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } $user_id = $_...
true
313d01a1a81e4ffbe36b82072644539c2e382583
PHP
baptisteanorga/PHP-Blog
/views/listPosts.php
UTF-8
805
2.5625
3
[]
no_license
<!-- Titre de la page --> <?php $title = 'Liste des chapitres'; ?> <!-- Contenu de la page --> <?php ob_start(); ?> <?php while ($post = $posts->fetch()) { ?> <div class="LastPost"><h4><?= (html_entity_decode($post['title'])) ?></h4></div> <div class="trait"></div> <p>Publié le <?= $post['...
true
c919c9daf42d244cffc0164549f68a94e0db132f
PHP
raulrene/sfaw-test
/site-dan/classes/Courses.php
UTF-8
2,723
3.328125
3
[]
no_license
<?php class Course{ private $id, $name,$price, $picture, $author, $user, $stars; private $table = 'courses'; //retrieve table object using prepared statements public function getAllLimit(){ global $db; $data = $db->fetch_rows("Select * from $this->table LIMIT 4"); return $data...
true
a4ec32ad8114ae0aff75921f7d8a7b1951d8fdf5
PHP
VahagIvanyan/Login-and-Poll-by-PHP-MVC
/model/login_model.php
UTF-8
1,004
2.6875
3
[]
no_license
<?php class login_model extends model{ public function __construct() { //echo md5('Vahag'); } public function run(){ try { $this->db = new Database(); } catch (PDOException $e) { die('Database connection could not be established.'); } $login = 'Vahag'; $password...
true
447dd7457c5f9595f5b36ceb6bed80a162d5c011
PHP
edde-framework/edde-framework
/src/Edde/Api/Stream/IConnector.php
UTF-8
250
2.8125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Edde\Api\Stream; interface IConnector { /** * @return IConnection */ public function getConnection(): IConnection; /** * @return IConnector */ public function close(): IConnector; }
true
bffe082223aab2131e5730f729bd9e9232579e77
PHP
frederic-meyrou/aboo
/lib/fonctions.php
UTF-8
5,976
3
3
[]
no_license
<!-- © Copyright : Aboo / www.aboo.fr : Frédéric MEYROU : tous droits réservés --> <?php // Vérifie que la chaine est une date (Booléen) function IsDate( $Str ) { $Stamp = strtotime( $Str ); $Month = date( 'm', $Stamp ); $Day = date( 'd', $Stamp ); $Year = date( 'Y', $Stamp ); return checkdate( $Month, ...
true
c3ed876c71244bbe5a2cb3f147c59bff39e01405
PHP
Bestrafer94/bonuses
/src/Handler/DepositCommandHandler.php
UTF-8
1,057
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Handler; use App\Event\AllocateMoneyEvent; use App\Event\DepositBonusAssignEvent; use App\Events; use App\Handler\Command\DepositCommand; use Symfony\Component\EventDispatcher\EventDispatcherInterface; class DepositCommandHandler { /** * @var EventDispatcherInte...
true
a3dad490b055982d1ed6ca793456eb9fe7cef3b1
PHP
webgraphe/phlip
/src/Operation/LanguageConstruct/LetOperation.php
UTF-8
2,730
2.6875
3
[ "MIT" ]
permissive
<?php namespace Webgraphe\Phlip\Operation\LanguageConstruct; use Webgraphe\Phlip\Atom\IdentifierAtom; use Webgraphe\Phlip\Contracts\ScopeContract; use Webgraphe\Phlip\Exception\AssertionException; use Webgraphe\Phlip\FormCollection\FormList; use Webgraphe\Phlip\Operation\ManualOperation; class LetOperation extends M...
true
d30fdec429aa11f07ba11ebaa062498d73254d44
PHP
enumerrata/www.27tree.com
/search/class/dataHelper.class.php
UTF-8
946
2.765625
3
[]
no_license
<?php class dataHelper { public static function splitPages($total, $pageLite) { $pages = round(($total - 1) / $pageLite + 0.5); if ($total <= $pageLite) return false; else return $pages; } public static function packQueryURL($arr = array()) { ...
true
9f307184df3e006d7bb534419ac8caedbd44cf56
PHP
gusLopezC/PHP_API_Slim_Openpay
/src/libs/connection.php
UTF-8
848
3.25
3
[ "MIT" ]
permissive
<?php /** * Class PDO Connection */ class PDOConnection { /** * This function create a database connection * * @return object database connection */ public static function getConnection() { /** @var string $host - Hostname */ $host = DB_HOST; /** @var string $user - Database username */ $user = D...
true
3aba0c0917be3c257846a8aae3a87b688c295e02
PHP
PetrSladek/z3v-system
/app/forms/RaceForm.php
UTF-8
1,730
2.734375
3
[]
no_license
<?php namespace App\Forms; use App\Forms\Base\BaseModalForm; use App\Model\Checkpoint; use App\Model\Race; use App\Forms\Base\Form; use Nette\Utils\DateTime; /** * Class RaceForm * @package App\Forms * @property Race|null $entity */ class RaceForm extends BaseModalForm { /** * @var string Class name o...
true
a5b1e2964d40c1f52a0270ed98ad0496fea56a85
PHP
VentusSpiritus/Adv-Web-Dev-Frameworks-Assignment-3
/417000658NONWEBA/tests/ViewTest.php
UTF-8
880
2.8125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use QuwisSystem\Framework\View; require "config.php"; require 'autoload.php'; class testHelper extends View{ public function getTpl() : string{ return $this->tpl; } public function getVariableData() : array{ return $this->variable_dat...
true
b498d0378bf7c6ef59ffbdf0ec3cdc1988dabd31
PHP
tinimi/river
/sudoku/sudoku.php
UTF-8
6,256
3.328125
3
[]
no_license
<?php ini_set('memory_limit','1G'); function readFromFile($filename) { $f = fopen($filename, 'r'); $sudoku = []; $i = 0; while ($s = fgets($f)) { $s = preg_replace("/\s/", "", $s); if (empty($s)) { continue; } for ($j = 0; $j < 9; $j++) { if (!preg_match('/^[\d_]$/', $s[$j])) { die("Invalid symbo...
true
4d3b4640730818179f3df3798f7c8b599059c094
PHP
AyushiVaish/php_projects
/login/welcome.php
UTF-8
389
2.6875
3
[]
no_license
<?php session_start(); // session is a way to store information(in variables) to be used accross multiple pages. if(!$_SESSION['email']) { header("Location :login.php");//use for the redirection to login page } ?> <html> <head><title>Registration</title></head> <body> <h1>Welcome</h1> <br> <?php echo $_SESSION['emai...
true
bb088335d4b025a9c5c2a80b9b0b52f808bf0892
PHP
tomasreb/prototipoMedicSafe
/database/migrations/2018_10_12_184258_create_studies_table.php
UTF-8
1,156
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStudiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('studies', funct...
true
e6c8b982e12098533c65643de2a8730b58b1cd62
PHP
bmautohk/s3
/application/classes/model/admin/profitconfigform.php
UTF-8
1,434
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php class Model_Admin_ProfitConfigForm { public $action; public $customer_id; public $success; public $errors; public function populate($post) { $this->action = isset($post['action']) ? $post['action'] : NULL; $this->profitConfigs = array(); if (isset($post['profitConfig'])) { foreach ($post['pro...
true
c4640ca63ffbe3d5f6cf866002103ef04888c218
PHP
Dracooooola/task4php
/classes/Carshering.php
UTF-8
464
2.96875
3
[]
no_license
<?php require_once 'iCarshering.php'; abstract class Carshering implements iCarshering { protected function checkAge($age){ if($age < 18 || $age > 65){ echo 'Возраст не подходит'; die; } elseif ($age >= 18 && $age <= 21) { return 1.1; } else { ...
true
8dd25ffb4792e0317a9b7473453e298c92644201
PHP
wwschung2/24store
/paypal/APIError.php
UTF-8
1,560
2.65625
3
[]
no_license
<?php /************************************************* APIError.php Displays error parameters. Called by DoDirectPaymentReceipt.php, TransactionDetails.php, GetExpressCheckoutDetails.php and DoExpressCheckoutPayment.php. *************************************************/ session_start(); $resArray=$_S...
true
bd7b70e6226b0add5cb40b55243bd4b22efc25cc
PHP
vasily-kartashov/alexa-skills-kit-model
/src/Services/ListManagement/AlexaListBuilder.php
UTF-8
2,045
3.15625
3
[]
no_license
<?php namespace Alexa\Model\Services\ListManagement; abstract class AlexaListBuilder { /** @var callable */ private $constructor; /** @var string|null */ private $listId = null; /** @var string|null */ private $name = null; /** @var ListState|null */ private $state = null; /** ...
true
a1e7758da9ba9522396607a7d601eedfbd014ee9
PHP
LartTyler/WordpressSDK
/src/Entity/Features/PasswordCapableTrait.php
UTF-8
583
2.703125
3
[]
no_license
<?php namespace DaybreakStudios\WordpressSDK\Entity\Features; /** * For use with {@see PasswordCapableInterface}. * * @package DaybreakStudios\WordpressSDK\Entity\Features * @see PasswordCapableInterface */ trait PasswordCapableTrait { /** * @return string|null */ public function getPassword...
true
37f0a4d98b56662b3629700938a045d53a858bd5
PHP
kaszas-jana/fizzbuzz
/src/Output/OutputInteger.php
UTF-8
469
3.1875
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Output; use App\Comparable\IntegerInterface; class OutputInteger implements OutputInterface { /** @var IntegerInterface */ private $integerInterface; public function __construct(IntegerInterface $integerInterface) { $this->integerInterface = $in...
true
f5f4aadc711cffc560c8fa9fc1f521b3bfffd727
PHP
ssathaporn/php-private-fund-register-form
/register_func.php
UTF-8
1,383
2.671875
3
[]
no_license
<?php require_once ('vendor/autoload.php'); define('DB_NAME', 'fund'); define('DB_USER', 'root'); define('DB_PASSWORD', ''); function pr($array) { echo '<pre>'; print_r($array); echo '</pre>'; } function checkbox_value_to_array($datas){ $result = []; ...
true
a812610e9d96327aedf0fc1a29520d54f95643a4
PHP
akilasachintha/simple-php-website
/login.php
UTF-8
1,680
2.78125
3
[]
no_license
<?php $title = 'Login'; ?> <?php require_once 'includes/header.php'; ?> <?php require_once 'db/conn.php'; ?> <?php //Second method to form validation if ($_SERVER['REQUEST_METHOD'] == 'POST') { $username = strtolower(trim($_POST['username'])); $password = $_POST['password']; $newPassword = md5($password . $use...
true
9f0e3fef042108574ef4a4dcd04f0679cd14e318
PHP
benjaminhansen/workday-wsdl
/src/StructType/Worker_Request_ReferencesType.php
UTF-8
7,828
2.765625
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Worker_Request_ReferencesType StructType * Meta information extracted from the WSDL * - documentation: Utilize the Request References element to retrieve a specific instance(s) of Worker and its ass...
true
b5092c44f133b5bc8e98857c249b16b695fc0c47
PHP
isaCarvalho/MyTodo
/model/Query.php
UTF-8
1,453
2.90625
3
[]
no_license
<?php class Query { private static $conn; public static function conn() { try { self::$conn = new PDO('pgsql:host=ec2-50-19-222-129.compute-1.amazonaws.com;dbname=daai4d9af0ek7v', 'footbtalruicvi', 'c90aafb2807df2562c7028e62acdcaf335bfba8d5cf725bf34284a5be5b376f7'); self::$conn->setAttribute(PDO::ATTR_ER...
true
a7dff033b1a1055bd8d8a3237ee39894e530e4d6
PHP
there4/fogbugz-php-cli
/src/FogBugz/Command/StopCommand.php
UTF-8
1,106
2.546875
3
[]
no_license
<?php namespace FogBugz\Command; use There4\FogBugz\ApiError; use FogBugz\Cli\AuthCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class StopCommand extends AuthCommand { public function __construct() ...
true
5e82cff917babdf941f0c8287ecb6564f69d27e8
PHP
SergCodes/php-ecommerce-website
/result.php
UTF-8
9,528
2.75
3
[]
no_license
<!DOCTYPE html> <html> <?php include("html/adv_search.php"); ?> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="styles/new_style.css" media="all" </link> </head> <body> <div class="content" > <div id="book_container"> <?php @cart(); @saveForLat...
true
0c541463e1f5e4476e62a2ade1b9046631e602a6
PHP
fahrulputra40/framework
/src/Neutrino/HttpClient/Contract/Parser/Parserize.php
UTF-8
264
2.765625
3
[ "MIT" ]
permissive
<?php namespace Neutrino\HttpClient\Contract\Parser; /** * Interface Parserize * * @package Neutrino\HttpClient\Contract\Parser */ interface Parserize { /** * @param string $raw * * @return mixed */ public function parse($raw); }
true
f948e1bf09cb3afbd0c9f69a12f5d84094e58e42
PHP
Shiiny/BlogForteRoche
/entity/CommentEntity.php
UTF-8
418
2.640625
3
[]
no_license
<?php namespace blog\entity; use blog\entity\Entity; use \DateTime; class CommentEntity extends Entity { public function getUrl($id) { return 'index.php?p=chapters.single&id=' . $id; } public function getExtrait($length) { return substr($this->comment, 0, $length); } public function getDate($datefmt) { ...
true
049bdf2270cac83a798f48089afb850aa3a50be1
PHP
GackaMaxymilian/TEB
/4_form/skrypt.php
UTF-8
690
2.90625
3
[]
no_license
<!DOCTYPE html> <html lang="pl" dir="ltr"> <head> <meta charset="utf-8"> <title>Pole i obwód</title> </head> <body> <?php if (!empty($_POST['SideA']) && !empty($_POST['SideB'])) { $a=str_replace(",", ".", $_POST['SideA']); $b=str_replace(",", ".", $_POST['SideB']); $ar...
true
2cf8e2b02c4f833a841a5791c6692b72ac33d5d0
PHP
lourenco-lima-cunha/desafio
/app/dao/DAOGenerico.php
UTF-8
4,025
3.171875
3
[]
no_license
<?php abstract class DAOGenerico { protected $_objectFactory; protected $connection; public function __construct(){ $this->connection = mysqli_connect("localhost", "llcfromhell", "", "atividade"); /* check connection */ ...
true
aed67536c7d62d71521de6ef1f79f073cad9b9de
PHP
nemis/Fm
/system/core/model.php
UTF-8
2,114
2.609375
3
[]
no_license
<?php class Model { protected $table_name; public $bean; protected $iterations; private $db; protected $fields; protected $direction = 'asc'; protected $orderby = 'id'; protected $limit = 100000; protected $offset = 0; public function __construct($table_name, $id=0, & $db = false) { if ($id ...
true
eae7132e5ed5f6d4c2365d025d0e703399e72c6f
PHP
alts/Excelsior
/libs/ExcelsiorComment.php
UTF-8
300
2.625
3
[]
no_license
<?php class ExcelsiorComment extends ExcelsiorTag { public function __construct($attrs, $children) { if (count($children) === 1 && !($children[0] instanceof ExcelsiorTag)) { $children = array(new ExcelsiorData($children[0])); } parent::__construct('Comment', $attrs, $children); } } ?>
true
cd59de45af8bf040c70befa52ed8a2346aae3d82
PHP
LaurynasPOC/PHP_Sprintas3
/views/updateEmp.php
UTF-8
2,432
2.84375
3
[]
no_license
<?php namespace EmpData; include_once 'bootstrap.php'; if(isset($_REQUEST['eupdate'])){ $emp = $entityManager->find('EmpData\Employees', $_REQUEST['update_id']); $emp->setName($_REQUEST['name']); $emp->setLastname($_REQUEST['lastname']); $emp->setAge($_REQUEST['age']); $emp->setPhone_number($_REQUE...
true
c659c61a32af34adef8ffeb613365b99419523d1
PHP
arevars/arevars
/library/core/PDOAdapter.class.php
UTF-8
1,720
3.21875
3
[]
no_license
<?php class PDOAdapter { protected $_host, $_user, $_password, $_dbname, $_result; public $con; public function __construct($host, $user, $password, $dbName, $persistant = false) { $this->_host = $host; $this->_user = $user; ...
true
fe2493a58e2be9f5b2575e87656ad73d37e0875e
PHP
nizamcse/itassetm
/database/seeds/UnitOfMesurementTableSeeder.php
UTF-8
402
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class UnitOfMesurementTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $unit = new \App\UnitOfMesurement(); $unit->name = 'PCS'; $unit->save(); $unit = new \App\...
true
b3eedd92e6df9c02799d7d749df7db82523e40f1
PHP
ColoredCow/laravel-gsuite
/src/Services/Service.php
UTF-8
1,294
2.546875
3
[ "MIT" ]
permissive
<?php namespace ColoredCow\LaravelGSuite\Services; use Google_Client; use Google_Service_Directory; abstract class Service { protected $client; public $service; /** * Get scopes required for the service to make the API calls. * * @return array */ abstract public function getServi...
true
2a8c2abf8e50bfc8bb48038d3e688a7ba9e57f5f
PHP
rajeshwws/Magento2_SalesTab
/Interview/SalesTab/Model/OrderUpdate.php
UTF-8
1,289
2.765625
3
[]
no_license
<?php namespace Interview\SalesTab\Model; class OrderUpdate implements \Interview\SalesTab\Api\Data\OrderUpdateInterface { protected $customerOrderId; protected $currencyCode; protected $orderStatus; protected $entityType; protected $entityId; public function getCustomerOrderId(){ ...
true
54339c027a05d065e79d78ce59400bcb0918971f
PHP
nicklos17/appserver
/source/apps/mdu/models/CommentsModel.php
UTF-8
3,403
2.671875
3
[]
no_license
<?php namespace Appserver\Mdu\Models; class CommentsModel extends ModelBase { /** * 添加评论 */ public function addComment($uid, $uname, $locusId, $content, $addtime, $lcUid, $lcName) { if($this->db->execute('INSERT INTO `cloud_locus_comments` (`u_id`, `u_name`, `locus_id`, '. '`lc_...
true
f08cf3ce1b0b8ee09a4901d3eb44e4ff97a09232
PHP
bankareta/FINAL
/admin/class/config.php
UTF-8
850
2.75
3
[]
no_license
<?php /* * *KONFIGURASI SISTEM * */ class db_config { /*DATABASE*/ protected $mysqli; private $db_host = "localhost"; private $db_user = "root"; private $db_pass = ""; private $db_name = "panonbandung"; public $location_zone = "Asia/Jakarta"; public function __construct() { $thi...
true
71e3f2547a57ccdb3bf40c069cdd89f8b55175fb
PHP
YasirRana89/REST-APIS
/blogapi/api/category.php
UTF-8
1,240
2.546875
3
[]
no_license
<?php // include database and object files include_once './config/db_connection.php'; include_once './objects/category.php'; // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); function getCategory(){ $conn = n...
true
569105d55b6abae5557825f46a388258034ea375
PHP
psdevelop/erp-web-framework-photoservice
/classes/data_model/person.class.php
UTF-8
1,191
2.6875
3
[]
no_license
<?php /** * @author Poltarokov SP * @copyright 2011 */ require_once(dirname(__FILE__)."/data_object.class.php"); require_once(dirname(__FILE__)."/person_type.class.php"); class Person extends DataObject { public $person_type_id; public $first_name; public $last_name; public $sur_name; public...
true
6f6845f76a622b6b37a398883e87f7ab4f98a173
PHP
mahendra8347/collegebox
/college/faculty/login.php
UTF-8
4,780
2.734375
3
[]
no_license
<?php session_start(); session_destroy(); session_start(); include '../includes/database.php'; $user_err = $password_err = ""; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $username = $_POST['username']; $password = $_POST['password']; $dep = $_POST['department']; $my_option = trim($username); $m...
true
9e0e7da9dc147156b33212315c91bc024ec11338
PHP
montashir92/PHP-OOP-Programming
/workwithmethodandobject.php
UTF-8
1,364
3.796875
4
[]
no_license
//OOP Work With Methods and Object. <!-- <?php include ="function.php"; ?> --> <form action="" method="post"> <table> <tr> <td>Enter the first Number : </td> <td><input type="number" name="num1"/></td> </tr> <tr> <td>Enter the second Number : </td...
true
369f88638074f765cba78350079a84194aa3e29f
PHP
marmureanuweb/profitshare-client
/src/Profitshare.php
UTF-8
6,850
2.578125
3
[ "MIT" ]
permissive
<?php namespace ProfitshareClient; use JsonMapper; use JsonMapper_Exception; use ProfitshareClient\Model\Advertiser; use ProfitshareClient\Model\Campaigns; use ProfitshareClient\Model\Commissions; use ProfitshareClient\Model\Products; use Symfony\Component\HttpClient\HttpClient; use Symfony\Contracts\HttpClient\Excep...
true
e84adb0ab342fd0420e4dd5c092ad9dde8591a07
PHP
rezawikan/e-learning
/classes/DataStudent/DataStudent.php
UTF-8
630
2.828125
3
[]
no_license
<?php namespace Elearn\DataStudent; use PDO; use DateTime; use Elearn\Database\Database; class DataStudent { private $conn; public function __construct() { $this->conn = Database::getInstance(); } public function createDataStudent() { try { $user = $this->conn; ...
true
6612671705ddacb5141958a4960c0b3708fe191d
PHP
denninnka/Events
/function.php
UTF-8
3,133
3.15625
3
[]
no_license
<?php /** * @var $tpl_name Name of the template * @var $tpl_values Values assigned to temlate */ function render($tpl_name, $tpl_values = array()){ foreach ($tpl_values as $key => $value){ $$key = $value; } if(file_exists('templates/'.$tpl_name.'.tpl.php')){ include_once('templates/'.$tp...
true
7e410bbccda60a039b53e9dadeb701848102817b
PHP
lucasmatsui/transaction-challenge
/src/app/Infrastructure/Repositories/UserRepository.php
UTF-8
1,208
2.78125
3
[]
no_license
<?php namespace Infrastructure\Repositories; use Domain\Cnpj; use Domain\Cpf; use Domain\Email; use Domain\Name; use Domain\Entity\Users\Shopkeeper; use Domain\Entity\Users\Customer; use Infrastructure\Factories\UserFactory; use Domain\Repositories\UserRepositoryInterface; use Illuminate\Support\Facades\DB; use Ram...
true
b70b393ac5228a165f26c73175db9fbaa7d232e0
PHP
Abbeville/nacoss
/database/seeds/ProgrammesTableSeeder.php
UTF-8
486
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class ProgrammesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $programmes = array( array('name' => 'FT'), array('name' => 'PT'), ...
true
9f96168286ffea9e097aa4ad66bf5a32bcea4e24
PHP
robin-moser/traefik-sso
/src/includes/class.secret.php
UTF-8
1,078
3.203125
3
[]
no_license
<?php /** * Custom Secret Class * * Manages the Secret to generate hashes for the cookies and define delimimters * @author Robin Moser <mail@robinmoser.de> */ class Secret { # the storage of the sso secret protected static $file = '/tmp/sso_secret'; /** * returns the secret and creates one, i...
true
73c491ef3161b74fe2588cf1e0757f47a6d37bb7
PHP
git123456789/Pyramid
/Component/Translation/Youdao.php
UTF-8
1,640
2.671875
3
[ "MIT" ]
permissive
<?php /** * @file * * Youdao翻译 * @see http://fanyi.youdao.com/openapi?path=web-mode */ namespace Pyramid\Component\Translation; class Youdao { /** * 翻译API地址 */ protected $url = 'http://fanyi.youdao.com/openapi.do?'; /** * 配置 */ protected $config = array( 'keyfrom' ...
true
d173910ade8c19571ba1cbd4d53c7d1c73157f46
PHP
amelierevel/Track-your-visits
/controllers/registerVisitorFormCtrl.php
UTF-8
6,444
3.046875
3
[]
no_license
<?php //insertion de la class database et du model users include_once path::getClassesPath() . 'database.php'; include_once path::getModelsPath() . 'users.php'; //déclaration de la regex nom $regexName = '/^[A-Za-zäâéèëêîïôöüÿç\-\']+$/'; //déclaration de la regex username le limitant à 25 caractères $regexUsername = ...
true
92ec3db71f5fc6df4522da59b9ad9c9627335ffe
PHP
EbarriosCode/WebEnvios
/Web-envios/Panel-admin/model/Perfil_model.php
UTF-8
1,024
2.90625
3
[ "MIT" ]
permissive
<?php class User{ private $conn,$db,$usuarios; public function __construct() { require_once('../../../Web-envios/model/Conexion.php'); $this->conn = new Conexion(); $this->db = $this->conn->Conectar(); $this->usuarios = array(); } public function getUsuarios($nombre) { $sql = "SELECT id...
true
a54d2c97a97f7ffa97c4c5c7e4e8d553c266511f
PHP
jingshouyan/rsa
/src/Rsa/Rsa.php
UTF-8
6,349
3.34375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2015/8/11 * Time: 13:58 */ namespace Jingshouyan\Rsa; class Rsa { protected $priKey; protected $pubKey; /** * 构造函数 * * @param string $pubKeyStr 公钥BASE64格式字符串,不包含begin/end * @param string $priKeyStr 私钥BASE64格式字符串,不包含begin/end。非加密私钥...
true
d2affe238c726fca265787e54820c53b84ce1adc
PHP
kunx-edu/OpCacheGUI
/test/Unit/Network/Ip/SingleTest.php
UTF-8
1,699
2.609375
3
[ "MIT" ]
permissive
<?php namespace OpCacheGUITest\Unit\Network\Ip; use OpCacheGUI\Network\Ip\Single; class SingleTest extends \PHPUnit_Framework_TestCase { /** */ public function testConstructCorrectInstance() { $ipRange = new Single(); $this->assertInstanceOf('\\OpCacheGUI\\Network\\Ip\\Converter', $...
true
d42c1dad9d6803b9626de2d6149ed8066856b5cf
PHP
JuliaDSolano/Programacao
/2info3/1° Tri/funcoes.php
UTF-8
652
3.75
4
[]
no_license
<?php /** * Created by PhpStorm. * User: aluno * Date: 22/03/17 * Time: 10:08 */ //get = buscar //getNome(){ //set = informar ou cadastrar //variavel $nome está no escopo local /** * @param string $nome * @param int $idade */ // function digaOla(string $nome, int $idade){ // echo "Olá $nome" . "\n";...
true
466edf6d6d92517111383e280fd5bbb2128069a0
PHP
webeweb/xmltv-library
/src/Model/Rating.php
UTF-8
1,267
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the xmltv-library package. * * (c) 2019 WEBEWEB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WBW\Library\XmlTv\Model; use WBW\Library\XmlTv\Serializer\JsonSerializer; use WBW\Library\...
true
d07599a383ce9a2f575057fbc9b64e9c73c1678f
PHP
unstable-cacao/Novel
/src/Novel/Core/Tokens/OOP/Variables/IMemberVariableToken.php
UTF-8
444
2.515625
3
[]
no_license
<?php namespace Novel\Core\Tokens\OOP\Variables; use Novel\Core\IToken; use Novel\Core\Tokens\INamedToken; use Novel\Core\Tokens\Functions\Common\IStaticable; use Novel\Core\Tokens\OOP\Accessibility\IWithAccessibilityToken; interface IMemberVariableToken extends INamedToken, IWithAccessibilityToken, IStaticable ...
true
734b6b815d3dd9b0786d3fdfad7a1484a2230dd9
PHP
pateltejasmca/mia-chat
/mia-chat/installation/installer.classes.php
UTF-8
11,821
2.828125
3
[ "MIT" ]
permissive
<?php /** * Used to perform the database portable installation of Mia */ class MiaInstaller { /** @private string Internal variable to hold the db resource */ private $db; /** @private string Internal variable to hold the db platform type */ private $dbVendor; /** @private string Internal variable ...
true
2f682be85eb9b9e274c15f4b48e78d86ed8750e6
PHP
kaafivikrant/Rentlify
/dashboard/ltr/php/event_collection.php
UTF-8
4,475
2.53125
3
[]
no_license
<?php include_once "config.php"; $postdata = file_get_contents("php://input"); $request = json_decode($postdata); $b_selected = $request->b_selected; $ref = $request->ref; function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ...
true
001f204817aaeb1a7f5e4045029727fef1b8a3e3
PHP
fahimc/RSVP_TemplateAdmin
/admin/lib/php/rsvpseats.php
UTF-8
1,001
2.671875
3
[]
no_license
<?php Class RSVP { private $codes; private $rsvpcode; public function init() { if(isset($_POST['rsvpcode'])||stripcslashes($_POST['rsvpcode'])!="") { $this->rsvpcode=stripcslashes($_POST['rsvpcode']); //load codes $this->codes = file_get_contents('../../resource/sitedata/data.csv'); if(!$this->codes...
true
39c1b45a23f28ade8a3349b176a5b161ecb1f3bf
PHP
wayneherridge/cs313-php
/web/blog/core/dbconnect.php
UTF-8
899
3.03125
3
[]
no_license
<?php function getDB() { $db = null; $dbUrl = getenv('DATABASE_URL'); if (empty($dbUrl)) { // Use Local DB $dbUser = 'postgres'; $dbPassword = 'Password123'; $connection = 'pgsql:host=localhost;dbname=Blog'; } else { // Use Remote DB $dbOpt...
true
c576c9f5e329d4a9d4e7d06519c5017e94481407
PHP
DmitriyRudenskiy/landing-generator
/app/Http/Controllers/Admin/LabelController.php
UTF-8
1,564
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Models\Label; use Illuminate\Http\Request; use Laravel\Lumen\Routing\Controller; class LabelController extends Controller { /** * @var Label */ private $repository; public function __construct(Label $repository) { $this->repository...
true
4cd6c16953d6aff56b91a3f22e7a7c2a0c7db0da
PHP
larktraditionalarts/chaplin-child
/functions/wpforms_process_complete.php
UTF-8
4,471
2.578125
3
[]
no_license
<?php if ( ! function_exists( 'lta_process_contact_form' ) ) : function lta_process_contact_form( $fields, $entry, $form_data, $entry_id ) { $id = absint($form_data['id']); // Restrict output to our two forms. if ($id !== 1327 && $id !== 112) { return; } $values = lta_map_fields_to_assoc(...
true
bd6d5681359968b8ba40c6a68acbd202e15ca661
PHP
Rinipow/magico
/src/Controller/MagicoController.php
UTF-8
2,297
2.5625
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Magico; use App\Form\MagicoType; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; class MagicoController extends Abstr...
true
b92a552483a3329bad49454e0954612366882147
PHP
jarellalvarez/RedPin
/php/map1.php
UTF-8
1,869
2.640625
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } include 'db.php'; //----------if the session id is set, use this users id and name for the database input following if(isset($_SESSION['id'])){ $userid = $_SESSION['id'] ; $userName = $_SESSION['username']; } //-------...
true
a0b15e67eb66a7614103ad36362eb73d058f649e
PHP
baherdev/php_poo
/building4_3.php
UTF-8
178
2.90625
3
[]
no_license
<?php trait User{ private $userName; function setUserName($userName){ $this->userName = $userName; echo '<br> The user name of the costumer is : '.$this->userName; } } ?>
true
189565f5804785f6e423fb823369dd756c0d5158
PHP
MaerielBenedicto/researchprojectYear04
/database/factories/PostFactory.php
UTF-8
1,230
2.734375
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Post; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class PostFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Post::class; /** ...
true
4e7daf236fe562a5f27f2b5c59f8a6da972f535a
PHP
mimbar/laravel-sentinel-example
/app/Models/Auth/User.php
UTF-8
507
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models\Auth; use Cartalyst\Sentinel\Users\EloquentUser; class User extends EloquentUser { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'email', 'password', 'first_name', 'last_name', 'permissions', ...
true
0f3ba962344160806507254e7ef4bdab5ee6585c
PHP
rocker76/slim3-rest-api
/app/Controllers/UsersController.php
UTF-8
4,077
2.84375
3
[ "MIT" ]
permissive
<?php /** * Token authentication using JWT (Json Web Tokens), with configuration of public routes and routes that require authentication. * * @author Enzo Nagata <enzo.nagata@gmail.com> * @link https://fb.com/enzomassaharunagata * @version 0.0.1 * @license https://opensource.org/licenses/mit-license.ph...
true
3b1e40fa363cd6785710b4458fbae0c279489e68
PHP
Aleksandra7798/fitness
/app/process_logout.php
UTF-8
564
2.5625
3
[]
no_license
<?php session_start(); if ($_SERVER["REQUEST_METHOD"] == "GET") { // Usuwanie wszystkie zmienne sesji $_SESSION = array(); if (ini_get("session.use_cookies")) { $params = session_get_cookie_params(); setcookie( session_name(), '', time() - 42000, ...
true
674cf39a385972be7fe9e8576e5e8deb1f04f6bd
PHP
yashdudhat/project
/product_manager/index.php
UTF-8
1,590
2.59375
3
[]
no_license
<?php require('../model/database.php'); require('../model/product_db.php'); require('../model/category_db.php'); // THE REQUIRES ABOVE ARE GOING TO BE JUST ACKNOWLEGED BUT BY-PASSED WHILE DEBUGGING! // setting the value of the Saction variable $action = filter_input(INPUT_POST, 'action'); // simple validation if ...
true
9ba462e34f0339ab6df68d0719cfd674ac11e073
PHP
weirdwater/love9
/index.php
UTF-8
2,897
2.703125
3
[]
no_license
<?php require 'includes/initialize.php'; $view = filter_input(INPUT_GET, 'view', FILTER_SANITIZE_STRING); $id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT); $action = filter_input(INPUT_GET, 'action', FILTER_SANITIZE_STRING); $showProfile = false; /* Profile Setup * Site doesn't work unless the user has a per...
true
62c970bd2d69a03f645a1d875be23bcfd9ef1c09
PHP
halbertofabian/VeranoItz
/appsummer.dao/EstudianteDao.php
UTF-8
5,678
2.921875
3
[]
no_license
<?php require_once 'conexion.php'; require_once '../appsummer.clases/Estudiante.php'; class EstudianteDao { private $con = null; private $pps = null; private $rs = null; public function __construct() { } public function createstudents($Estudiante) { $student_privacity = ''...
true
162aa6ac6f4632a092655acc3dbf5b8698621228
PHP
mahmudalhakim/WEBB20-PHP
/Lektion-10/Videobutiken-V3/models/Model.php
UTF-8
265
2.96875
3
[]
no_license
<?php class Model { private $db; public function __construct($database) { $this->db = $database; } public function fetchAllMovies() { $movies = $this->db->select("SELECT * FROM films"); return $movies; } }
true
f03c5150c9e52d30620e011948673474d08e38d2
PHP
magento-hackathon/LoggerSentry
/lib/sentry/sentry/lib/Raven/Stacktrace.php
UTF-8
10,950
2.765625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Small helper class to inspect the stacktrace * * @package raven */ class Raven_Stacktrace { public static $statements = array( 'include', 'include_once', 'require', 'require_once', ); public static function get_stack_info($frames, ...
true
c9b7a7548f7ca4fdf7ce490fbed0041141078561
PHP
MobydickUA/URL-info
/core/controller.php
UTF-8
496
2.71875
3
[]
no_license
<?php class Controller { public $model; public $view; function __construct($parameters = NULL) { $this->view = new View(); } function action_index() { } private function set_header() { include_once("views/header.html"); } private function set_footer() { include_once("views/footer.html"); } ...
true
faa4b4dbc7218c89ab76e9e3556b6aa57d43e275
PHP
epalermo92/rover-kata
/src/Models/Rover.php
UTF-8
613
3.109375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Models; use App\Models\Direction\AbstractDirection; class Rover { /** @var Position */ private $position; /** @var AbstractDirection */ private $directionFacing; public function __construct(Position $position, AbstractDirection $directionFacing) ...
true
d189406aabaf9e2a1796d4bc3aa7849b7d169514
PHP
dennisblight/slim3-api-skeleton
/core/Exceptions/ServerErrorException.php
UTF-8
262
2.703125
3
[]
no_license
<?php namespace Core\Exceptions; class ServerErrorException extends ResponseException { protected $status = 500; public function __construct(string $message = 'Server Error', int $code = 2500) { parent::__construct($message, $code); } }
true
f50d3a8679829acc9f359d4af4900ab3a3a4c047
PHP
evanyc15/OldStartupPROCPHP
/assets/php/globalref/get_user_info.php
UTF-8
931
2.59375
3
[]
no_license
<?php $user_id = $_SESSION['id']; $firstName;// First name of user $lastName;// Last name of user $about;// About information of user $profilePicture;// Profile picture of user $city;// City of user $state;// State of user $row;// For other needed information $newUser; //checks if the user is new! //$ne...
true
4af5119a7e5ce205ec97b26c1d30f1244ad408da
PHP
duanjunhua/php
/study/day1/array.php
UTF-8
2,140
4.125
4
[]
no_license
<?php //数组能够在单个变量中存储多个值 $cars = array("BMW", "Volvo", "Toyota"); // echo $cars[0]; foreach ($cars as $value) { echo $value . "<br>"; } echo "<br>"; //php中有三种数组 /** * 数值数组:带有数字ID键的数组 * 关联数组:带有指定键的数组,每个键关联一个值 * 多维数组:包含一个或多个数组的数组 */ //数值数组 //1.自动分配ID键 $language = array("Java", "Python", "Scala", "...
true
96a2d34b784cadc47a374ba352dd6eebed60808c
PHP
blmowner/hms_188
/app/WardHelper.php
UTF-8
1,723
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use DB; use App\Encounter; use Log; class WardHelper { public $ward_code; function __construct($code) { $this->ward_code = $code; } public function totalBed() { $beds = Bed::where('ward_code', $this->ward_code) ->count(); return $beds; } public funct...
true
effb66583588a5a5a17e934786b201cabfcd5f4e
PHP
Maxzilla60/DenMax-Webproject
/Mini/myproject/test/Dao/PDOStatusReportDAOTest.php
UTF-8
5,287
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: dennis * Date: 29.10.17 * Time: 20:17 */ use Mini\Dao\PDOStatusReportDAO; use Mini\Model\StatusReport; use PHPUnit\Framework\TestCase; class PDOStatusReportDAOTest extends TestCase { public function setUp(){ $this->connection = new PDO('sqlite::memory'); ...
true
cc057cc486891d6b42a6db82e5f945546c9bdb3f
PHP
buster95/confident
/confident/ApiObjects/Route.php
UTF-8
3,446
2.921875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Confident\ApiObjects; use Exception; use Confident\Utilities\BodyHelper; use Confident\Utilities\ReflectionHelper; use Confident\Utilities\UrlHelper; class Route { private $url; private $method; private $callback; private $params = array(); private $middlewares = array(); pub...
true
239266cdfb1dbb12eb1ca49cb0f072cf15420ab5
PHP
CedrickOka/wsse-authentication-bundle
/src/Command/DeactivateUserCommand.php
UTF-8
986
2.671875
3
[ "MIT" ]
permissive
<?php namespace Oka\WSSEAuthenticationBundle\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * * @author Cedrick Oka Baidai <okacedrick@gmail.com> * */ class DeactivateUserCommand extends UserCommand { protected static $defaultName = 'oka:wss...
true
9d82074fc33bbdaf6f9b75ab52f768eb32cf6e11
PHP
jmy569999675/student_2.0
/cj-update.php
UTF-8
2,516
2.671875
3
[]
no_license
<?php include "head.php" ?> <?php $kid=empty($_GET["kid"])?"null":$_GET["kid"]; if ($kid=="null") { die("请选择要修改的记录"); }else{ include("conn.php"); //执行SQL语句 $sql = "select ID,课程编号,学号,成绩 from xuanxiu"; $result = mysqli_query($conn,$sql); // 输出数据 if (mysqli_num_rows($result)>0) { // 将查询结果转换成数组 $r...
true
7506c6a95836e342fb4dae2c054d451ec62f427d
PHP
jurispetrovs/php-basics
/flow-of-control/03_exc.php
UTF-8
330
4.46875
4
[]
no_license
<?php /* Write a program that reads an positive integer and count the number of digits the number has. */ function countOfDigits(int $number): string { return 'The number of digits the number has is ' . strlen($number); } $number = (int)readline('Please enter your number: '); echo countOfDigits...
true
a49014a7602e13203d6d219f53d67d0085021888
PHP
Lab42-Team/kbds
/commands/SoftwareComponentController.php
UTF-8
8,202
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\commands; use yii\helpers\Console; use yii\console\Exception; use yii\console\Controller; use app\modules\software_component\models\SoftwareComponent; /** * SoftwareComponentController реализует консольные команды для работы с программными компонентами. * Создание программных компонент по умолч...
true
c60c9a3f3d32cfec602eee15768dbf24a6b5cc11
PHP
MartynovArtyom/php-laravel-angular
/app/Webhooks/Middleware/MailgunWebhook.php
UTF-8
752
2.8125
3
[]
no_license
<?php namespace App\Http\Middleware; use App\Exceptions\ForbiddenException; class MailgunWebhook { public function handle($request, \Closure $next) { $body = $request->all(); if ($this->verify(env('MAILGUN_SECRET'), $body['token'], $body['timestamp'], $body['signature'])) { return ...
true