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
aedf66963f834ace51c02867ccb77fe4fd9b36c8
PHP
edwardstock/minified
/common/helpers/DateTime.php
UTF-8
2,150
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: edwardstock * Date: 21.03.14 * Time: 13:03 */ namespace common\helpers; class DateTime { const MYSQL_DATETIME_FORMAT = 'Y-m-d H:i:s'; const MYSQL_DATE_FORMAT = 'Y-m-d'; /** * Returns current datetime * @return bool|string */ public static function getDateTime...
true
e4895f9e20547bc0f117c2a93dedf26b9c06a46b
PHP
MrBertie/taskpaperplus-server
/www/taskpaper/inc/content.class.php
UTF-8
12,798
2.984375
3
[ "MIT" ]
permissive
<?php namespace tpp\model; /** * Simple data structure: all data for one Taskpaper; easily serialised. */ class Content { // Taken from file name and path /** * @var string Full file path to this taskpaper (incl. name and extension). */ public $file_path = ''; /** * @var string Fil...
true
ef47669d943c614277362fd91296774e672e4773
PHP
ko4a/AIUniversityTestCase
/src/Service/ValidationService.php
UTF-8
1,403
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service; use App\Exception\ValidationFailedException; use Symfony\Component\Validator\Context\ExecutionContextInterface; use Symfony\Contracts\Translation\TranslatorInterface; class ValidationService { private TranslatorInterface $translator; private FlightServic...
true
31faaae8911ebd89a162f4e07175f19dd85be856
PHP
thisLucio/3Termo-Tds-UniSalesiano2020
/WEB ll/Projeto09/exemploSetGet/usaSet.php
UTF-8
441
3.1875
3
[]
no_license
<?php require_once("classes/MetodoSet.class.php"); $objeto = new MetodoSet(); $objeto->codigo = "123"; $objeto->descricao = "um exemploi X"; $objeto->setvalor("250"); //echo "O código é " . $objeto->codigo; //echo "<br>Agora com o método getCodigo: " . $objeto->getCodigo(); echo "<br>Codigo = " ...
true
9f5fc8b7d2d15f951ff0094ddb61f1b27fc90031
PHP
dimmsd/demo-exchange
/app/Services/Sbr.php
UTF-8
3,086
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use GuzzleHttp\Client; use Carbon\Carbon; class Sbr { protected $url_currency_list = 'http://www.cbr.ru/scripts/XML_valFull.asp'; protected $url_currency_rate = 'http://www.cbr.ru/scripts/XML_dynamic.asp?date_req1=%s&date_req2=%s&VAL_NM_RQ=%s'; protected $data = []; p...
true
2d20bfd797299d3d058a5df3dc2ca976f9e40fea
PHP
iobotis/a-php-rank
/src/Ranking/Mysqli/AdvancedRanking.php
UTF-8
7,056
2.984375
3
[ "MIT" ]
permissive
<?php namespace Ranking\Mysqli; use Ranking\ModelInterface; use Ranking\Object; use Ranking\Mysqli\SimpleRanking; /** * Advanced ranking is the same as Simple ranking with an optional condition and an optional secondary order. * This way you can rank mysql rows by group. * * @author Ioannis Botis * @date 30/8/2...
true
086dae04029434cef0c7342b003b0ed1d7114001
PHP
juanDeVicente/upuntes-rest-api
/src/Project/Utils/Model.php
UTF-8
324
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: juand * Date: 27/03/2019 * Time: 9:31 */ namespace Project\Utils; interface Model { /** * @return la instancia del modelo como un array */ public function as_array(); /** * @return los datos del modelo que se implementa */ public static function model_data()...
true
ef41cd1f8bfe1a3f938344c8dcf716237dcb465c
PHP
emery-williams/reserve-request
/print.php
UTF-8
2,854
2.78125
3
[]
no_license
<?php // Connect to the database include("login.php"); // Get the course id $course = sprintf("%d", $_GET["course_id"]); // Get the options for sorting the list $SortOption = array( "call" => "i.call_number_sort", "author" => "i.author", "title" => "i.title_sort", "terms" => "i.loan_period, i.library"); // Sort...
true
6ddfef9b2f8e7b67682224f21554a45876bf38f9
PHP
victorasta/cardoffice
/models/CategoriaModel.php
UTF-8
3,009
2.75
3
[]
no_license
<?php class CategoriaModel { function __construct() { } public function consultar_categorias() { $stmt = Database::get()->prepare("SELECT C.ID_CATEGORIA, C.NOMBRE_CATEGORIA, C.ESTADO_CATEGORIA FROM categoria C ORDER BY C.NOMBRE_CATEGORIA"); if (!$stmt->execute()) { ...
true
6c1f7991413f84ac920bbf685b2c8449d709a734
PHP
kitami-no1s/no1s_test
/spreadsheet_api/sales_extractor.php
UTF-8
1,445
3.03125
3
[]
no_license
<?php header("Content-type: text/html; charset=utf-8"); $sheet_id = "11BCnspCt2Mut3nhc4WMY6CYTd0zF9C3eCzsk1AEpKLM"; // シートID $range = "sales!A1:E6"; // 抽出範囲 $apikey = "APIKEY"; // APIキー $url = "https://sheets.googleapi.com/v4/spreadsheets/" . $sheet_id . "/values/" . $range . "?key=" . $apikey; $sales = getApiDataCur...
true
820e714f13fa9305a58ccd73b183abc66d64c7fb
PHP
VinyVidal/binary-referral
/app/Http/Controllers/UserController.php
UTF-8
4,178
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Auth; class UserController extends Controller { public function earnPoints() { $user = Auth::user(); $user->points += 100; $user->save(); return redirect()->back...
true
4dec4bc01791e79f6861f27db99bc2f95d80fa8e
PHP
robinjimenez/PW_PWBOX_GROUP_7
/src/Model/UseCase/GetUserUseCase.php
UTF-8
658
2.96875
3
[]
no_license
<?php namespace PWBox\Model\UseCase; use PWBox\Model\UserRepository; use PWBox\Model\User; class GetUserUseCase { /** UserRepository */ private $repo; public function __construct(UserRepository $repo) { $this->repo = $repo; } public function __invoke(array $rawData) { $u...
true
7c4c2a41698f5ca78bd1105f523b1041f0bf2848
PHP
faniabdo99/markad
/app/Http/Controllers/ContactController.php
UTF-8
2,012
2.8125
3
[]
no_license
<?php //The Father Of All Controllers ... namespace App\Http\Controllers; //Additionall Needed Facades use Illuminate\Http\Request; use Mail; //Models use App\Message; //Mails use App\Mail\ContactNoticeMail; class ContactController extends Controller{ //Get Request From User and Validate it public function ...
true
51a089b69804c7ea958d573f0ed2daee68cae602
PHP
MarcoAntonioMamani/EasyMarketLaravelWeb
/app/Http/Requests/ClienteFormRequest.php
UTF-8
716
2.609375
3
[ "MIT" ]
permissive
<?php namespace EasyMarket\Http\Requests; use EasyMarket\Http\Requests\Request; class ClienteFormRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the ...
true
49402101ef2fe92409a9fc59bd358847f37d644d
PHP
alejandromartincruz/film_api
/src/Bundle/FilmBundle/Application/Command/DeleteFilmCommand.php
UTF-8
1,312
2.71875
3
[ "MIT" ]
permissive
<?php namespace Bundle\FilmBundle\Application\Command; use Bundle\FilmBundle\Application\Usecase\DeleteFilm; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; clas...
true
5f466442fb7659cfe8b1bcf7aa942a2b7b4824a2
PHP
rayson-x/EasyPay
/src/Notifies/BaseNoitfy.php
UTF-8
1,782
2.71875
3
[]
no_license
<?php namespace EasyPay\Notifies; use EasyPay\TradeData\BaseTradeData; use EasyPay\Interfaces\NotifyInterface; /** * 支付通知信息 * * @method mixed getOriginal(string $name = null) * @method array toArray() * @method string toJson() * @method string toXml() * * Class BaseNotify * @package EasyPay\Notifies */ a...
true
44bec9806dd30dce4b00fe71a069bbccc7818d94
PHP
AnnaBelka/tasks
/models/TasksModel.php
UTF-8
6,845
2.859375
3
[]
no_license
<?php class TasksModel extends Model { protected $name; protected $email; protected $body; protected $image; protected $status; public $width_image = 320; public $height_image = 240; public $limit = 3; public function __construct() {...
true
ab1495b65a4bfa5c28907b072d3aa99ea5110c52
PHP
rnuernberg/chameleon-shop
/src/ShopBundle/RuntimeCache/ProductStatisticsServiceRuntimeCacheDecorator.php
UTF-8
2,179
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Chameleon System (https://www.chameleonsystem.com). * * (c) ESONO AG (https://www.esono.de) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ChameleonSystem\ShopBundle\RuntimeCache; u...
true
756c3035b9a3794e699ab9f8ceb603df4ee4d2bd
PHP
UTRS/utrs
/public_html/src/statsLib.php
UTF-8
23,507
2.828125
3
[ "MIT" ]
permissive
<?php error_reporting(E_ALL); ini_set('display_errors', 'On'); require_once('exceptions.php'); require_once('unblocklib.php'); require_once('appealObject.php'); require_once('userObject.php'); /** * Get an array containing database rows representing the desired appeals. * @param array $criteria an array ...
true
a468978d538b8636da64013e99c5ff380b347774
PHP
symcloud/distributed-storage
/src/Symcloud/Component/Common/Factory.php
UTF-8
2,059
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symcloud Distributed-Storage. * * (c) Symcloud and Johannes Wachter * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symcloud\Component\Common; use ProxyManager\Factory\LazyLoadingValueHolderFactory...
true
e973736172aac5e3ca4c9a14e84790285d7157e1
PHP
Fatoumata-art/greta
/greta77/php/search.php
UTF-8
1,053
2.53125
3
[ "CC-BY-4.0", "MIT" ]
permissive
<?php header('Content-Type: application/html'); $requete = $pdo->query('SELECT id, nom_formation, date_entree, date_sortie, duree, niveau_entree, niveau_sortie, financement FROM formation LIMIT 1'); while($formations=$requete->fetch(PDO::FETCH_ASSOC)) { ?> <div class="col-lg-3 col-md-6"> <div class="...
true
88892595eb21c51a40dfee57c5f03df49408026a
PHP
urukalo/umLogger
/src/umLogger/formaters/umFormatterAbstract.php
UTF-8
537
3
3
[]
no_license
<?php namespace umLogger\formaters; /** * umFormatterAbstract * * @author Miki */ abstract class umFormatterAbstract implements umFormaterInterface { /* * replace placeholders in message with values from content array * @param string * @param array */ public function formate($mes...
true
2be07f2b6c6667210ad4cdaa182c928ab755b602
PHP
bfrancisco1/php-fundamentals
/functions/defaultparameters.php
UTF-8
221
3
3
[]
no_license
<?php function booksByAuthorYear($tempAuthorName, $tempYear = 1900) { echo $tempYear; echo "\n"; echo $tempAuthorName; echo "\n"; } $year = 1920; $authorName = "William Shakespeare"; booksByAuthorYear($authorName);
true
63f8446906e8272657ad435e9a3d88a70c2e4a2d
PHP
Ocramius/ocramius.github.com
/src/JoindInBundle/Client.php
UTF-8
1,959
2.875
3
[]
no_license
<?php namespace JoindInBundle; use InvalidArgumentException; use GuzzleHttp\ClientInterface; /** * Client to get information about a user * previously configured * * @author Jefersson Nathan <malukenho@phpse.net> */ class Client { /** * Url to get information about a user */ const API_USER_URL...
true
48d67e4947af2e6ada096dd383c17a388ff48430
PHP
iamluc/dunkerque
/features/bootstrap/RestContext.php
UTF-8
3,574
2.640625
3
[ "MIT" ]
permissive
<?php use Behat\Behat\Hook\Scope\AfterScenarioScope; use Behat\Behat\Hook\Scope\BeforeScenarioScope; use Behat\Gherkin\Node\PyStringNode; use Sanpi\Behatch\Context\RestContext as BaseRestContext; use Sanpi\Behatch\HttpCall\Request; class RestContext extends BaseRestContext { protected $headers = []; protected...
true
73fb16419229a8b01e32fd3790e5c9be7bc6797d
PHP
iridance/ECPayAIO_PHP
/Aio/Enum/PaymentMethod.php
UTF-8
583
2.578125
3
[]
no_license
<?php namespace Ecpay\Aio\Enum; /** * 付款方式。 */ abstract class PaymentMethod { /** * 不指定付款方式。 */ const ALL = 'AllPay'; /** * 信用卡付費。 */ const Credit = 'Credit'; /** * 網路 ATM。 */ const WebATM = 'WebATM'; /** * 自動櫃員機。 */ const ATM = 'ATM'; ...
true
c4e59069812cfe22946a9fe7bde20e79062d2278
PHP
sad-spirit/pg-builder
/src/sad_spirit/pg_builder/nodes/TypeName.php
UTF-8
3,757
2.71875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Query builder for Postgres backed by SQL parser * * LICENSE * * This source file is subject to BSD 2-Clause License that is bundled * with this package in the file LICENSE and available at the URL * https://raw.githubusercontent.com/sad-spirit/pg-builder/master/LICENSE * * @package sad_spirit\pg...
true
2e9a3e9e3d97378e83e5d7d021b6884d7444b7fb
PHP
Canddi/CANDDi_ai
/src/php/Lookup/Person.php
UTF-8
4,187
2.8125
3
[]
no_license
<?php /** * Service for CANDDi Person Lookup * https://api.canddi.net/person/.... * * @TODO REFACTOR THIS TO a separate composer package * * @author Tim Langley **/ namespace CanddiAi\Lookup; use CanddiAi\Singleton\InterfaceSingleton; use CanddiAi\Traits\TraitSingleton; class Person implements InterfaceSi...
true
44558962716713f7b18d86a91999c2910672992d
PHP
JAAMRI/CERVA_BACK_END
/src/Zfzmyrjlmj/AuthenticationBundle/Controller/AuthController.php
UTF-8
3,394
2.609375
3
[]
no_license
<?php namespace Zfzmyrjlmj\AuthenticationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use FOS\RestBundle\Controller\Annotations\Post; use FOS\RestBundle\Controller\Annotations\Get; use FOS\...
true
f94e81acee558d03664e502e197271b0dddc2138
PHP
SayenkoDesign/accesslasers
/wp-content/themes/sd-accesslasers/template-parts/404/hero.php
UTF-8
1,797
2.65625
3
[]
no_license
<?php /* 404 - Hero */ if( ! class_exists( 'Page_404__Hero' ) ) { class Page_404__Hero extends Element_Section { public function __construct() { parent::__construct(); $fields['heading'] = get_field( 'error_404_heading', 'option' ); $this->set_...
true
bc5d7dcbb706c5b7baf7566a0a4425724bd66cdc
PHP
lemonlyue/DesignPatterns
/Source/Factory/SimpleFactory/Factory.php
UTF-8
918
3.25
3
[]
no_license
<?php namespace DesignPatterns\Factory\SimpleFactory; use DesignPatterns\Factory\Add; use DesignPatterns\Factory\Div; use DesignPatterns\Factory\Mul; use DesignPatterns\Factory\Sub; /** * 工厂 * * Class Factory * @package DesignPatterns\Factory */ class Factory { /** * 创建运算 * * @param string $...
true
4ff1a4ef10b9343bc1eb7fcad92923aa25b507d5
PHP
magnobiet/eloquent-uuid
/src/Laravolt/Database/Eloquent/Uuid.php
UTF-8
834
2.59375
3
[]
no_license
<?php namespace Laravolt\Database\Eloquent; use Exception; use Ramsey\Uuid\Uuid as BaseUuid; trait Uuid { public function createUuid() { return BaseUuid::uuid4()->toString(); } public function fillUuid(array $columns = []) { if (!isset($this->uuid)) { throw new Exce...
true
4ada1c1cc572fcaa7cf59dfea7c3e36185f0b372
PHP
aloiseau17/myprecious-back
/app/Http/Controllers/UserOptionsController.php
UTF-8
948
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; // Repository use App\Repositories\UserOptionsRepository; // Request use App\Http\Requests\UserOptionsRequest; class UserOptionsController extends Controller { public function __construct(UserOptionsRepository $userOptions) { $this->userOptionsRepo = $userOpti...
true
ea47876e3f249d578cba560aa7cdd4e1a492c369
PHP
OlabodeAbesin/example-2
/src/Domain/Factory/UUIDFactory.php
UTF-8
180
2.5625
3
[]
no_license
<?php namespace App\Domain\Factory; use Symfony\Component\Uid\Uuid; class UUIDFactory { public function generate():string{ return Uuid::v4()->toRfc4122(); } }
true
4afc9d05aa62ce7096f87d6ed695b03b60684ecc
PHP
angeldev20/project_management
/application/helpers/mention_helper.php
UTF-8
1,366
2.84375
3
[]
no_license
<?php if ( ! defined( 'BASEPATH' ) ) { exit( 'No direct script access allowed' ); } /** * @param $content * @param $user_id * * @return bool|array * @internal param $mentions * */ function has_mentioned( $content, $user_id = false ) { $users = User::find( 'all', array( 'conditions' => array( 'status=?', 'acti...
true
8b50a9e6e2c1c7f7b5296e36f45755d5642a20dc
PHP
overwilli/newspazios2
/models/reportes/template_intereses_mora.php
UTF-8
2,769
2.78125
3
[ "BSD-3-Clause" ]
permissive
<page > <page_footer> <table style="width: 100%;border:1px solid black "> <tr> <td style="text-align: left; width: 50%"><?php echo date('d/m/Y h:i:s') ?></td> <td style="text-align: right; width: 50%"><b>Página [[page_cu]]/[[page_nb]]</b></td> ...
true
7f660e36f3e95a40348fd856cc928568f5ad286a
PHP
realmdigital/realmdigital-functional-php
/src/Functional/Sequences/LinearSequence.php
UTF-8
1,157
3.109375
3
[ "MIT" ]
permissive
<?php /** * @package Functional-php * @author Lars Strojny <lstrojny@php.net> * @copyright 2011-2021 Lars Strojny * @license https://opensource.org/licenses/MIT MIT * @link https://github.com/lstrojny/functional-php */ namespace Functional\Sequences; use Functional\Exceptions\InvalidArgumentExcepti...
true
43385498ea2e1c54817eea5c37b4c3cba6bc5ba4
PHP
Felidaeblackblue/php_new
/correctionusers.php
UTF-8
1,471
3.71875
4
[]
no_license
<?php $name = 'Jon'; // string $age = 54; // integer $bool = true; //bool $users = ['Maurice', 'Georgette', 'Marc', 'Odile']; // array $null = null; //$obj = {}; // while / for / foreach // $a = 0; // while ($a <= 10) { // echo $a; // echo '<br>'; // $a++; // } // for ($i=0; $i < c...
true
d1b1de1486f1cec99a0d87a6f8ae4eefada7216f
PHP
deboorn/BingSearchAPI
/BingSearch.php
UTF-8
3,067
2.734375
3
[]
no_license
<?php /* * Simple PHP 5 cURL Wrapper for the Bing Search API via Windows Azure Marketplace * @author Daniel Boorn info@rapiddigitalllc.com * @copyright 2012 Daniel Boorn * @bingapidoc https://datamarket.azure.com/dataset/bing/search#schema * @license apache 2.0, code is distributed "as is", use at own risk...
true
f84d0c78023bd4af238881bcfc5d643ce50c20e9
PHP
AliRizqi/AliRizqi.github.io
/yourMusic.php
UTF-8
1,292
2.65625
3
[]
no_license
<?php include("includes/includedFiles.php"); ?> <div class="playlistContainer"> <div class=gridViewContainer> <h2>Playlists</h2> <div class="buttonItems"> <button class="button blue" onclick="createPlaylist()">NEW PLAYLIST</button> </div> <?php $username...
true
cca5c28a0a1914e6890c99a6232003604bc0ac14
PHP
Vogi28/project-AideDom
/src/Model/ReviewManager.php
UTF-8
477
2.65625
3
[]
no_license
<?php namespace App\Model; class ReviewManager extends AbstractManager { /** * */ const TABLE = 'review'; /** * Initializes this class. */ public function __construct() { parent::__construct(self::TABLE); } public function reviewSelect() { return ...
true
529b2d298a3cdfe8d1509094ad7e87ccf3c867d3
PHP
justinani/simpleblog
/Classes/Domain/Model/Blog.php
UTF-8
4,065
2.75
3
[]
no_license
<?php namespace ExtbaseBook\Simpleblog\Domain\Model; /*** * * This file is part of the "Simple Blog Extension" Extension for TYPO3 CMS. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * (c) 2021 Autor Name <xxx@xx.de>, Beispi...
true
ae195ae227b914771d5bdba309ddff62dce2ebca
PHP
marktheunissen/trainingwheels
/controller/src/TrainingWheels/Conn/LocalServerConn.php
UTF-8
2,090
3
3
[]
no_license
<?php namespace TrainingWheels\Conn; use TrainingWheels\Log\Log; use Exception; class LocalServerConn extends ServerConn { protected function process($input) { if (is_string($input)) { $commands = array($input); } else if (is_array($input)) { $commands = $input; } else { throw...
true
02ff4c85968b4e5f7f99062913e1f805c853c9e4
PHP
kup9tko/study
/index.php
UTF-8
2,044
2.703125
3
[]
no_license
<?php echo 'I\'m "banan".'; echo '<br/>'; $str = 'wefgwkej4hr23ok4j,02j34geывапАУВЫВfw-fio-2joo,pwnv03i v!!pdvj# ##*(&(*&(&%*&'; echo strlen($str); echo '<br/>'; echo substr($str, 7, 15); echo '<br/>'; echo preg_replace ("/[aeiouAEIOUаеёиоуыэюяАЕЁИОУЫЭЮЯ]/u", "$", $str); echo '<br/>'; echo strtoupper($str); echo '<br/>...
true
5c57923e69388972c730890fcff990fc6149f89b
PHP
letypbarbosa/TDD
/lab000-equacoes/flavio/Equacao2grau.php
UTF-8
777
3.5
4
[]
no_license
<?php /** * */ /** * */ class Equacao2grau { public $a; public $b; public $c; public $delta; public $raiz1; public $raiz2; /** * * @param type $a * @param type $b * @param type $c */ public function Equacao2grau($a, $b, $c){ $this->a = $a; ...
true
c7fe81ac2b8cc10b4088c3625772ee7bcc179a47
PHP
jefremassingue/spatie-permission-generate
/src/SpatiePermissionGenerate.php
UTF-8
6,675
2.765625
3
[ "MIT" ]
permissive
<?php namespace Jefre\SpatiePermissionGenerate; use Spatie\Permission\Models\Permission; class SpatiePermissionGenerate { /** * Array of classes to ignore when scanning for methods. * * @var array */ private static $ignore_classes; /** * Array of methods and functions to ignore...
true
1c02067482e7634218e9cdfbd67596e77aba5c65
PHP
edincausevic/PHP-CMS
/post.php
UTF-8
3,486
2.609375
3
[]
no_license
<?php include 'includes/db.php'; ?> <?php include 'includes/header.php'; ?> <!-- Navigation --> <?php include 'includes/navigation.php'; ?> <!-- Page Content --> <div class="container"> <div class="row"> <!-- Blog Entries Column --> <div class="col-md-8"> <?php if(isset($_GET['p_id'])) { $clic...
true
14df880a3eebacdb07f12e27e899b6d3a022438d
PHP
guilhermegehres/hotel
/hotel_api/app/Http/Middleware/ApiAuth.php
UTF-8
850
2.640625
3
[]
no_license
<?php namespace App\Http\Middleware; use App\Service\JwtManager; use Closure; use App\Message; class ApiAuth { private $msg; function __construct(){ $this->msg = new Message(); } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \C...
true
0bf053f38205502b55510043f228954ccb1101a9
PHP
Oreli1/toto_project
/public/upload.php
UTF-8
3,347
2.625
3
[]
no_license
<!--<pre>--> <?php require_once __DIR__.'/../inc/config.php'; if(!empty($_POST)) { //print_r($_POST); //print_r($_FILES); if(isset($_POST['fileForm'])){ if(!empty($_FILES)){ $fileForm = isset($_FILES['fileForm']) ? $_FILES['fileForm'] : array(); $formOk=true; $allowedExtensions = array('csv'); ...
true
53548a1affba199b64002680df9e074f80b4b518
PHP
kapkory/sahl_health_app
/app/Repositories/StatusRepository.php
UTF-8
2,349
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; class StatusRepository { public static function getInstitutionStatus($state){ $statuses = [ 'inactive'=>0, 'active'=>1, 'rejected'=>2 ]; return self::returnState($state,$statuses); } public static function getPa...
true
5f10b5de83f3c869dcc77d507a82e9501c6fddc3
PHP
Klenaa/Tech_Care
/view/html/FAQ_Salem.php
UTF-8
2,891
2.546875
3
[]
no_license
<?php //require '../../model/connect.php'; try { $bdd = new PDO('mysql:host=localhost:3307;dbname=db;charset=utf8', 'root', 'root'); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } ?> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../css/FAQ_Salem.css"/> <meta c...
true
c63b2dd14a8d7dfc4e48bee90b80396cd81726ef
PHP
joesboat/D5_Joomla_Libraries
/connectMysqliDatabase.php
UTF-8
2,872
2.921875
3
[]
no_license
<?php /** * @package USPS Libraries * @subpackage connectMysqliDatabase.php * @purpose Low level PHP Library routines to interface with MySql database * @copyright Copyright (C) 2015 Joseph P. Gibson. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ require_once...
true
3742ecea2b45bea232ce5911e8656220cd3db0ef
PHP
kabuto64425/twittertest
/tweet.php
UTF-8
4,437
2.59375
3
[]
no_license
<?php $api_key = 'C2YLvwvhzWm2RFtJ3uVGkyLEz' ; // APIキー $api_secret = 'im5xaViA508y3GvnbkoB2bD8l6QKnPV5xKIaEozUFmfgLvWjKa' ; // APIシークレット $access_token = '207173453-5l2hafmrRbfkqhSJtWBt7qTSY0we1slp5vnI98pS' ; // アクセストークン $access_token_secret = '8ucpfLBprjc1vSZ2OzRD5aZmMchWx57Q4qlG0M6Ju6Oav' ; // アクセストークンシークレット $reques...
true
3decb4882177199f28d5efc93ff4c8f19e036294
PHP
cosnics/cosnics
/src/Chamilo/Libraries/Cache/CacheManagement/CacheManagerBuilder.php
UTF-8
1,477
3.125
3
[ "MIT" ]
permissive
<?php namespace Chamilo\Libraries\Cache\CacheManagement; /** * Builds the cache manager by adding custom cache services directly (through code) and indirectly * (through dependency injection). * Uses CacheServiceConstructor classes so multiple packages can provide * their own cache services * * @package Chamilo\...
true
22aab8f6b74bd9454d3fbdc0f2c9aae469f6ad0b
PHP
thiagoinnfo/challenge-pp
/tests/MockyNotificationTest.php
UTF-8
683
2.53125
3
[ "MIT" ]
permissive
<?php use App\Libraries\Notification\MockyNotification; /** * Class MockyNotificationTest */ class MockyNotificationTest extends TestCase { /** * @var MockyNotification */ private $mockyNotification; /** * Method setUp */ public function setUp(): void { $this->mocky...
true
9c0750994fd6dfcf4e53fcb8837c85a72cd91933
PHP
apradillap/free-public-api
/api/ip.php
UTF-8
669
2.59375
3
[]
no_license
<?php // https://stackoverflow.com/questions/3003145/how-to-get-the-client-ip-address-in-php $ip = false; foreach (array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) { if (arr...
true
2053f2613f50c61be4dcef707380c46176e73334
PHP
renedekat/puzzle-38
/38.php
UTF-8
2,807
3.234375
3
[]
no_license
<?php // Grid of 19 numbers consisting of 15 rows of which each has to add up to 38 /* * A B C * D E F G * H I J K L * M N O P * Q R S */ // Create range of available numbers $range = range(1, 19); // Create grid of positions $positions = []; foreach (range('A', 'S') as $let...
true
52a4085834bacc0b114a60e536a1281652496357
PHP
ayermac/php-demo
/old/imooc-comment/index.php
UTF-8
2,568
2.765625
3
[]
no_license
<?php error_reporting(E_ERROR|E_WARNING|E_PARSE); require_once 'connect.php'; require_once 'comment.class.php'; $sql="SELECT username,email,url,face,content,pubTime FROM comments"; $mysqli_result=$mysqli->query($sql); if($mysqli_result&& $mysqli_result->num_rows>0){ while($row=$mysqli_result->fetch_assoc()){ $comme...
true
92120db27b07fda94e7be60c9a0c318d2d6b8d80
PHP
SHejder/amo
/src/Builder/LeadBuilder.php
UTF-8
1,578
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: QA * Date: 22.03.2019 * Time: 16:32 */ namespace src\Builder; class LeadBuilder implements BuilderInterface { protected $lead; /** * @return $this */ public function create() { $this->lead = new \stdClass(); return $this; }...
true
5a8191db33083c27f3ea60c70b6b7b9083009297
PHP
viniciustessmann/friendly-bike
/form.php
UTF-8
3,025
2.578125
3
[]
no_license
<?php session_start(); require_once __DIR__ . '/vendor/autoload.php'; // change path as needed // Include required libraries use Facebook\Facebook; use Facebook\Exceptions\FacebookResponseException; use Facebook\Exceptions\FacebookSDKException; /* * Configuration and setup Facebook SDK */ $appId = '283120...
true
fa5d17199233116889057d99bdad279677a0eaf2
PHP
Eldaen/task-tracker-gu
/basic/models/TelegramSubscribe.php
UTF-8
1,037
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "telegram_subscribe". * * @property integer $id_telegram_subscription * @property integer $id_user * @property integer $id_telegram_user * @property integer $id_event */ class TelegramSubscribe extends \yii\db\ActiveRecord { /** ...
true
a3552bae1eca9bda082fcbb65a40438b1bb0ffba
PHP
Vladus25/laravel-general-crud
/MatchesFake/app/Match.php
UTF-8
623
2.875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Match extends Model { // Serve per non fare confuzione al laravel con plurale protected $table = 'matches'; // Per sicurezza serve la chiave assegnabile di massa di ciascuna colonna protected $fillable = [ 'team1', 'team2', 'poi...
true
1a13c6ece161df743b7fd013e7dd45caa62cb1b1
PHP
efikas/uplinks
/toup/index.php
UTF-8
8,152
2.625
3
[]
no_license
<?php /** * @author Akintola Oluwaseun * @copyright 2017 */ ob_start(); session_start(); require_once 'dbconnect.php'; // it will never let you open index(login) page if session is set if ( isset($_SESSION['user'])!="" ) { header("Location: dashboard.php"); exit; } $error = false; if( isset($_PO...
true
d298c71de59d76c4cccabdec4a1c3adbac508be5
PHP
mfsylla/Ansible_creation_de_machines_virtuelles_a_la_demande_projet_fini
/vm_maker_site_web/appliquer-editer-profile.php
UTF-8
848
2.828125
3
[]
no_license
<?php session_start(); ?> <?php $host_db = "localhost"; $user_db = "root"; $pass_db = "root"; $db_name = "vm_database_v2"; $tbl_name = "users_vm"; $conexion = new mysqli($host_db, $user_db, $pass_db, $db_name); if ($conexion->connect_error) { die("La conexion falló: " . $conexion->connect_error); } $alias = $_SES...
true
eeb370a6b0b3f7ffdf13a862d26e6b4f63d3faf9
PHP
fjmn2001/php_ddd_skeleton
/tests/Todo/Tasks/Domain/TaskMother.php
UTF-8
754
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace Medine\Tests\Todo\Tasks\Domain; use Medine\Todo\Tasks\Application\Create\CreateTaskCommand; use Medine\Todo\Tasks\Domain\Task; use Medine\Todo\Tasks\Domain\TaskId; use Medine\Todo\Tasks\Domain\TaskName; final class TaskMother { public static function create(TaskId $id, T...
true
acb5945e91bbe1db7d245ff0836c4e3eff7fb652
PHP
pedrovitorti/seci
/config_bd/bd_usuarios.php
UTF-8
502
2.765625
3
[]
no_license
<?php // pegando usuarios do banco de dados $sql1 = pg_query("SELECT id,nome,usuario,admin FROM usuarios ORDER BY nome ASC;;") or die("Erro no comando SQL"); // TABELA: usuarios if (! $sql1) { echo "Consulta não foi executada!"; } $_SESSION['qtd_usuarios'] = pg_numrows($sql1); $i = 0; while ($row = pg_fetch_arra...
true
7e2ae3b53053282a9cb41443aa402b6b63667cbd
PHP
kevinknelson/xing-repository
/src/Xing/Models/Search/SearchOperator.php
UTF-8
1,324
2.75
3
[ "MIT" ]
permissive
<?php /** * @package Xing\Models\Search * @copyright 2013 Kevin K. Nelson (xingcreative.com) * Licensed under the MIT license */ namespace Xing\Models\Search { use Xing\System\AEnum; /** * * @method static SearchOperator IsEqualTo() * @method static SearchOperator IsNotEqualTo() * @method static SearchOp...
true
5d316b973b171828bc2f1ecd6c3cbfa08be169dc
PHP
nooraojanen/PHP
/H3/T2.php
UTF-8
1,822
2.71875
3
[]
no_license
<title>Autolaskuri T2</title> <h3 style=background-color:#fed;color:#000>Autolaskuri</h3> <?php // autolaskuri-T2.php // Pääohjelma session_start(); $vw_lkm = isset($_SESSION['vw_lkm']) ? $_SESSION['vw_lkm'] : 0; // changed COOKIES to SESSION $opel_lkm = isset($_SESSION['opel_lkm']) ? $_SESSION['opel_lk...
true
7b66c45b1e382257227f6aa61db9232838bdfc5a
PHP
maglnet/ComposerRequireChecker
/src/ComposerRequireChecker/DefinedSymbolsLocator/LocateDefinedSymbolsFromASTRoots.php
UTF-8
1,144
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ComposerRequireChecker\DefinedSymbolsLocator; use ComposerRequireChecker\NodeVisitor\DefinedSymbolCollector; use PhpParser\Node; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor\NameResolver; use Traversable; use function array_merge; use function array_unique; use fun...
true
16f59150540c02adbe541019bba37d10df3da18d
PHP
carstenlucke/swarch_php
/public/ws/helloclient.php
UTF-8
374
2.546875
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: clucke * Date: 10.01.18 * Time: 03:27 */ const WS_HOST = "host.docker.internal"; const WS_PORT = "9999"; $client = new SoapClient("http://" . WS_HOST . ":" . WS_PORT . "/helloworld?wsdl"); var_dump($client->__getFunctions()); var_dump($client->__getTypes()); var_du...
true
f728ca83c648e1f369691e26688c50fc8e4a496a
PHP
sohamchatterjee50/project-movie
/cinema-world/functions.php
UTF-8
477
2.765625
3
[]
no_license
<?php //function for generating the dynamic option list function get_option_list($table,$col_id,$col_value,$sel=0) { $db = mysqli_connect("localhost","root","","cinema") or die(mysql_error()); $sql="SELECT * FROM $table order by $col_id"; $rs=mysqli_query($db,$sql) or die(mysql_error()); $option_list="<option></op...
true
5e09abaf31fe09302fd67ef96452d6a1d3cb1fce
PHP
jordillobetdomingo/TFM_LetEmTalk
/src/src/Component/Application/Chat/Response/CreatePillResponse.php
UTF-8
1,095
2.75
3
[]
no_license
<?php namespace LetEmTalk\Component\Application\Chat\Response; use LetEmTalk\Component\Domain\Authorization\Service\UserPermission; use LetEmTalk\Component\Domain\Chat\Entity\Pill; class CreatePillResponse { private Pill $pill; private UserPermission $userPermissions; public function __construct(Pill ...
true
08c465ec8cc9bf41699cb7e3f4b5c3f7bd1080b9
PHP
fallewi/site
/app/code/Potato/Crawler/Observer/Queue/AddStoreToQueue.php
UTF-8
759
2.609375
3
[]
no_license
<?php namespace Potato\Crawler\Observer\Queue; use Magento\Framework\Event\Observer as EventObserver; use Magento\Framework\Event\ObserverInterface; use Potato\Crawler\Model\Manager\QueueManager; /** * Class AddStoreToQueue */ class AddStoreToQueue extends AbstractQueue implements ObserverInterface { /** *...
true
be65d4ecc2cb95c8d69d3b8334d4fa39c5e999f2
PHP
RonDarby/Larinterface
/src/Larinterface.php
UTF-8
12,522
2.6875
3
[ "MIT" ]
permissive
<?php namespace Bsharp\Larinterface; use Illuminate\Filesystem\ClassFinder; use Illuminate\Filesystem\Filesystem; use App; use ReflectionClass; use ReflectionMethod; /** * Class Larinterface * @package Bsharp\Larinterface */ class Larinterface { // Returned by the generate method in case of success. const ...
true
e300435c64a14f8a109e476434f35aadb9babe96
PHP
sslab-gatech/autofz
/docker/benchmark/seeds/fuzzer-test-suite/php-fuzz-parser/throw_002.phpt
UTF-8
2,454
3.5
4
[ "MIT" ]
permissive
<?php class Foo { public function createNotFoundException() { return new Exception('Not found'); } public function throwException() { throw $this->createNotFoundException(); } public static function staticCreateNotFoundException() { return new Exception('Static not found')...
true
f38c26fcfaa67d4291bd80a0e6a6aece05886271
PHP
hvs-fasya/lining
/app/models/Trainer.php
UTF-8
3,489
2.828125
3
[]
no_license
<?php class Trainer extends Eloquent { protected $fillable = ['name','description','portrait']; public static $trainerValidation = array( 'trainerName'=>'required|max:50|unique:trainers,name', 'trainerDescr'=>'required' //'image'=>'image' ); public static function makePortra...
true
ca9f8ca2c75cd76bdd14c0693d388172f51afc3f
PHP
top-think/think-queue
/src/queue/Connector.php
UTF-8
4,130
2.59375
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
true
b0306e55c9d8a3461971e4e80c34074d7ee013fe
PHP
ranm8/WixFrameworkComponent
/InstanceDecoder.php
UTF-8
2,579
3.140625
3
[]
no_license
<?php namespace Wix\FrameworkComponent; use Wix\FrameworkComponent\Exception\InvalidInstanceException; use Wix\FrameworkComponent\Instance\Instance; use Wix\FrameworkComponent\Instance\InstanceInterface; /** * A service that decodes Wix instances. It has one public method: parse. It accepts a Wix instance and retur...
true
96740c9d19caeaf46c4742a6e96d0c59b1939d24
PHP
andmarss/mvctask
/App/Database/Task.php
UTF-8
398
2.640625
3
[]
no_license
<?php /** * Class Post * @package App\Database */ namespace App\Database; class Task extends Model { public static $table = 'tasks'; protected static $fillable = [ 'title', 'content', 'slug', 'picture', 'created_at', 'user_id' ]; public function us...
true
8eacdc49e8ae7defd89b0339751f340728de4b69
PHP
led007/projeto_1
/api/servicos.php
UTF-8
3,379
2.609375
3
[]
no_license
<?php include_once('../bd/conexao.php'); $acao = $_GET['acao'] ?? 'redirect'; //deletar, salvar, alterar $metodo = $_SERVER['REQUEST_METHOD']; if(isset($_GET['id']) && $acao == 'deletar' && $metodo == 'DELETE') { $id = $_GET['id']; if ($id == '' || !is_numeric($id)) { $data['mensagem'] = 'ID é obrigatório e deve...
true
fdbf75b10551130bfd823e5766c0fd3eb4c152ad
PHP
rayGreycloud/php-course-diaz
/_practical-app/10.php
UTF-8
946
3.203125
3
[]
no_license
<?php include "functions.php"; ?> <?php include "includes/header.php";?> <section class="content"> <aside class="col-xs-4"> <?php Navigation();?> </aside><!--SIDEBAR--> <article class="main-content col-xs-8"> <?php class Dog { var $breed = "boxer"; var $color = "brown"; var $weight = 75; var $age =...
true
bde50dfd96a54d7e126e3d89bc24dec902c4ae96
PHP
atutby/PHP_first
/rename.php
UTF-8
1,059
2.921875
3
[]
no_license
<?php // if (!rename("hello.txt", "subdir/hello.txt")) // echo "Ошибка премещения файла"; // else echo "Файл перемещён"; // if (copy("hello.txt", "hello_copy.txt")) // echo "Копия файла создана"; // else echo "Ошибка копирования файла"; // if (unlink("hello_copy.txt")) // echo "Файл удалён"; // else echo "Ошибка п...
true
bf0b8f4dfa0c594068342555184abf6dcfdad852
PHP
clubrob/roblindsey-laravel
/app/Http/Controllers/MailController.php
UTF-8
1,010
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Mail\Thanks; use App\Mail\ContactMessage; class MailController extends Controller { public function contact(Request $request) { //Server validation form data $validatedData = $request->validate([ 'name' => ...
true
2b2359abee26cfea466e4da49a01451aa2b08c0f
PHP
thien7121996/banapp
/app/Http/Controllers/ChanDoanCacLoaiController.php
UTF-8
1,051
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Chandoancacloai; use Illuminate\Http\Request; class ChanDoanCacLoaiController extends Controller { public function index() { $chandoan = Chandoancacloai::all(); return $chandoan->toJson(); } public function sto...
true
01d0859197e6c2add85bd14e7e019dd049e919bb
PHP
cucbui57/TMDT
/admin/application/model/model.php
UTF-8
3,895
2.703125
3
[]
no_license
<?php class Model { /** * @param object $db A PDO database connection */ function __construct($db) { try { $this->db = $db; } catch (PDOException $e) { exit('Database connection could not be established.'); } } public function getList($tabl...
true
e2b45886789661737b1dd98fee640d3abed74afc
PHP
XarigamiND/xarigami-modules-formantibot
/xarclass/securelogic.php
UTF-8
2,222
2.765625
3
[]
no_license
<?php /** * Simple number sum for logic captcha * * @package Xarigami modules * @license GPL {@link http://www.gnu.org/licenses/gpl.html} * * @subpackage Formantibot * @copyright (C) 2008-2011 2skies.com * @link http://xarigami.com/project/formantibot */ class securlogic { public $testsum = ''; publi...
true
89f38d4b47c151d0a0565259f2f6291abf5f8748
PHP
ccardenasn/PracticeSystem
/protected/controllers/FunSendMail.php
UTF-8
2,020
2.71875
3
[]
no_license
<?php function sendPassword($destino,$asunto,$rut,$nombre,$clave){ //date_default_timezone_set('America/Santiago'); //metodo para enviar mail desde servidor /*$html="<html><body><p>Esto es un email enviado de forma automatica. Por favor no responder. Gracias</p><p><b>Se ha creado su usuario</b></p><p>...
true
70d840bbf52c2cc4abadd21b28361915cbf8ed25
PHP
nucknine/PHP-Projects
/4-3_PDO/pdo/05-query.php
UTF-8
164
2.859375
3
[]
no_license
<?php $db = new PDO("sqlite:users.db"); $sql = "SELECT * FROM user"; foreach ($db->query($sql) as $row){ print $row['name'] .' - '. $row['email'] . '<br>'; }
true
3a1129771cba0279be9b247fd50d74782ccb7438
PHP
JaguarJack/file-generate
/src/Build/Class_.php
UTF-8
4,337
2.625
3
[]
no_license
<?php namespace JaguarJack\Generate\Build; use PhpParser\Builder\TraitUseAdaptation; use PhpParser\BuilderFactory; use PhpParser\Comment\Doc; use PhpParser\Node\Const_; use PhpParser\Node\Name; use PhpParser\Node\Stmt\ClassConst; use PhpParser\Node\Stmt\TraitUse; class Class_ extends \PhpParser\Builder\Class_ { /...
true
5ceb57c1aede480633560b586481efcbb97fb1c3
PHP
julitaras/proyecto1
/app/Http/Controllers/PostController.php
UTF-8
1,837
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class PostController extends Controller { public function mostrar(){ $posts = \App\Post::all(); $variables = [ "posts" => $posts, ]; return view('posts', $variables); } public function show($id) { $post = \App\Post::find($id); ...
true
2601f13d5234d27926d455a4c8d2e9c44ad90c25
PHP
inclanfunk/agrosig
/app/database/migrations/2015_04_13_075632_create_cares_table.php
UTF-8
1,167
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateCaresTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cares', function(Blueprint $table) { $table->increments('id'); $table->int...
true
bbe9f48cb2c17ef74431f3a32004917ca5a384d8
PHP
raniadhahbi/TP2
/edit.php
UTF-8
1,531
2.734375
3
[]
no_license
<?php require('database.php'); //on appelle notre fichier de config $id = null; if (!empty($_GET['id'])) { $id = $_REQUEST['id']; } if (null == $id) { header("location:index.php"); } else { //on lance la connection et la requete $pdo = Database ::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO...
true
9e7211f982469f78d752201bca6e0a2c3046ef6c
PHP
mcarson24/AdventOfCode2016
/day-4/src/RoomCode.php
UTF-8
1,833
3.234375
3
[]
no_license
<?php namespace App; class RoomCode { protected $encryptedData; public $roomName; public $sectorID; public function __construct($encryptedData) { $this->encryptedData = $encryptedData; $this->roomName = $this->roomName(); $this->sectorID = $this->sectorID(); } public function encryptedD...
true
3e874f04c0758b66f85d6c278815f21267652110
PHP
jatinder-pal/reservApp
/products.php
UTF-8
1,445
2.53125
3
[]
no_license
<?php require __DIR__.'/conf.php'; //Configuration require __DIR__.'/vendor/autoload.php'; use phpish\shopify; $access_token = $_REQUEST['access_token']; $shopify = shopify\client($_REQUEST['shop'], SHOPIFY_APP_API_KEY, $access_token ); try { $products = $shopify('GET /admin/products.json'); if($products)...
true
f0488f3b55580582f3b3aace55ed34827798770c
PHP
Djulo/chessclans
/app/Http/Controllers/ProfileController.php
UTF-8
15,061
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Traits\UploadTrait; use App\User; use App\Admin; use DB; use App\Game; use Auth; use App\Friend; /**autor Ognjen Bogicevic 0571/2016 * autor Stefan Pusica 0088/2016 * ProfileController je klasa koja nasledjuje Controller klasu laravela * od...
true
941d78d122daf0994fc846fb6a10712ceb95bad1
PHP
xenhim/web__project
/backend/search.php
UTF-8
1,364
2.734375
3
[]
no_license
<?php $conn = new mysqli("localhost", "root", "", "doctruyen"); if($conn->connect_error){ die("Connection Failed: ".$conn->connect_error); } if(isset($_POST["comic"])){ $output = ""; $name = $_POST['comic']; // $query = "SELECT * FROM stories WHERE ...
true
4db44e5dea515dd9e5018a547c367403cc9a6dd6
PHP
AndrewTachilin/Paysera-test
/app/Services/Wallet/MathOperations.php
UTF-8
1,651
3.03125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Services\Wallet; use App\Contracts\Services\Wallet\WalletOperationsInterface; class MathOperations implements WalletOperationsInterface { public function roundToThousandths(string $amount, int $scale = 0): string { $amountInCoins = $this->multiply($amount...
true
540caaef008779ff336b1004234117a8d5b0663a
PHP
scottyhalliday/DesIdeCloud_Infra
/src/analyserver/delete_cases.php
UTF-8
829
2.515625
3
[]
no_license
<?php session_start(); require_once "functions.php"; require_once "case_explorer.php"; // Case ID's were passed as a string of case id's seperated by commas $case_ids = explode(",", $_POST['action']); error_log("CASE_IDS : " . $case_ids . " post " . $_POST['action']); for ($i=0; $i < count...
true
b9a15386b08dee0982b46314afd1fea228df8222
PHP
lihu6491/blogForLaravel
/app/Service/Post/PostContentService.php
UTF-8
2,771
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Service\Post; use Carbon\Carbon; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Facades\DB; use App\Service\Post\PostContentAbstractService; use App\Model\PostContentModel; class PostContentService extends PostContentAbstractService { protected static $instances = []; ...
true
08de31c02298d4ee34eb184b85d496c169639140
PHP
EYcab/CampCreekEnvironmentalScienceProject
/display.php
UTF-8
687
2.78125
3
[]
no_license
<?php /* Delete data from the database */ $link = mysqli_connect("localhost", "root","", "userinfo"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $output = ''; $result = mysql_query("SELECT username FROM users ORDER BY username ASC"); while(...
true