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
61452ade95115743549b9c5f4faeffc97654ad45
PHP
alissoncarneiro/crm
/modulos/venda/classes/class.Venda.Parametro.php
ISO-8859-1
14,522
2.59375
3
[]
no_license
<?php /* * class.VendaParametro.php * Autor: Alex * 28/10/2010 16:25 * - * * Log de Alteraes * yyyy-mm-dd <Pessoa responsvel> <Descrio das alteraes> */ class VendaParametro{ private $DadosParametro; public function __construct(){ $SqlParametro = "SELECT * FROM is_venda_parametro"; $Qr...
true
81e1a985896ee3a499e42dbcf02c1ae39d0ca215
PHP
Brunus75/alanska
/Modele/Commentaire.php
UTF-8
3,246
2.609375
3
[]
no_license
<?php namespace Alanska\Modele; /** * Created by PhpStorm. * User: leconte_bruno * Date: 13/07/2017 * Time: 23:51 */ class Commentaire extends CommentaireRepository { private $com_id; private $com_author; private $com_content; private $com_date; private $parent_id; private $com_signale; ...
true
3bc445627bb9d2cce5835284501c2a6c362bc646
PHP
qq272775425/demo5
/php2016/day7/2/03-test.php
GB18030
915
3.53125
4
[]
no_license
<?php class A{ private $n1; private $n2; private $n3; //ʹ__set public function __set($pro_name,$pro_val){ $this->pro_name=$pro_val; } //ʹ__getԻȡе public function __get($pro_name){ if(isset($pro_name)){ return $this->pro_name; }else{ return null; } } } $a1=new A(); $a1->...
true
cee0609eb3f65fbd022585c4856ea019e784d1b1
PHP
GlennVanHaute/PHPGroep14
/classes/nieuwMenu.class.php
UTF-8
2,536
3
3
[]
no_license
<?php include_once('db.class.php'); class nieuwMenu { private $m_iid; private $m_snieuwMenu; private $m_snieuwMenuDetails; private $m_inieuwMenuPrijs; public function __set($p_sProperty, $p_vValue) { switch($p_sProperty) { case "id": $this->m_iid = $p_vValue; break; case "naam": $this-...
true
c4c7738c29fd6ef03ca1d2865b1621382bbf42c8
PHP
naffis/rejectmail-php
/init/type/time.type.php
UTF-8
2,816
2.890625
3
[]
no_license
<? // Class time // v 3.0. class Ttime { function insert(&$values) { GLOBAL $data; $name = $data->element_name; if (isset($values[$name.'_hour']) && isset($values[$name.'_minute'])) { $rez = $values[$name.'_hour'].':'.$values[$name.'_minute'].':'.'00'; } elseif (isset($values[$name])) { $...
true
96815c6deca4a6e93504550ef4f8a1b6b451b951
PHP
kingwar888/WebBasic
/13AJAX/day02/foreach.php
UTF-8
290
3.28125
3
[]
no_license
<?php $list = [21,54,25,60]; foreach($list as $num){ echo "$num <br>"; } echo '<hr>'; foreach($list as $key=>$num){ echo "$key - $num<br>"; } echo '<hr>'; //关联数组只能使用foreach $emp = ['pid'=>'101','pname'=>'tom']; foreach($emp as $k=>$v){ echo "$k - $v<br>"; } ?>
true
a5650bbabe97a321d0c7830d0e06b438e56a9e5e
PHP
Flynsarmy/image-optimizer
/src/ImageOptimizer/CommandOptimizer.php
UTF-8
948
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ImageOptimizer; /** * Runs the Command upon optimization */ class CommandOptimizer implements Optimizer { public Command $command; /** * @var null|\Closure|array<string> */ public null|\Closure|array $extraArgs; /** * @param Command $command ...
true
edbd3f9b394671212e18e7357045fe052aaddb05
PHP
Oceanwalker10/Lab-Exercise-PHPBasic3
/lab13-exercise05.php
UTF-8
754
2.625
3
[]
no_license
<html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Exercise 13-5 Inheritance</title> <!-- Latest compiled and minified Bootstrap Core CSS --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <header> <h1>A List of Vehicle...
true
5f23a792a55db73e5f59ea178e86a125121ef145
PHP
eventjuicer/api-components
/src/Services/ImageHandler/Storage.php
UTF-8
2,351
2.953125
3
[]
no_license
<?php namespace Eventjuicer\Services\ImageHandler; use Illuminate\Database\Eloquent\Model; class Storage { protected $owner; protected $relative_source_path; protected $storage; protected $object_type; protected $object_id; protected $target_dir; protected $full_target_path; function __construct(Mo...
true
788c3f2a05445e872dfb9b9b1231797592730e6b
PHP
bytebunch/bbwpforums
/forums/templates/users-message-view.php
UTF-8
3,892
2.625
3
[ "MIT" ]
permissive
<?php global $current_user, $wpdb; $message_id = sql_ready(post_ready($wp_query->query_vars["message"])); if(isset($wp_query->query_vars["inbox"])){ $sql = 'UPDATE '.$wpdb->bbf_messages.' SET read_status=1 WHERE ID = '.$message_id.' AND user_id = '.$current_user->ID; $wpdb->query($sql); $sql = 'SELECT * FROM '.$wpd...
true
3f5bdd19df2ee8aed261b0dd9f1b794db8c9ed7a
PHP
diegosrtrainning/php-foundation
/topic-one/control-structures/coalesce.php
UTF-8
445
2.5625
3
[]
no_license
<?php $data = ['field_one' => 'I want to became ', 'field_three' => 'PHP certified!']; $data['field_two'] = $data['field_two'] ?? null; echo $data['field_one'], $data['field_two'],$data['field_three']; echo "\n\n"; // Notice: Undefined index: field_five in $data = ['field_four' => 'I want...
true
24611956be01b433e1d97260d2f36b095bddffc5
PHP
Turma-Back-end-Development-Flag/my-student
/examples/cast.php
UTF-8
161
2.796875
3
[ "MIT" ]
permissive
<?php 2 === (int) '2'; 0 === (int) 'page'; true === (boolean) '2'; ['2'] === (array) '2'; $obj = new stdClass; $obj->zero = '2'; $obj === (object) ['2'];
true
91c4dd7ca2a9d60e605f0d9c0567a4d4d5754354
PHP
1409A-2/ETE
/app/Model/RP.php
UTF-8
1,010
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Model; use DB; use Illuminate\Database\Eloquent\Model; class RP extends Model { protected $table = "r_p"; public $timestamps = false; public static function setRole($data){ return self::insert($data); } public static function delOne($r_id){ return self::where('r...
true
eee4788e01c34257cff31970d12529df6637cbe5
PHP
kgrohit/CareCappital
/CMS/chartData.php
UTF-8
1,518
3.078125
3
[]
no_license
<?php require("../init.php"); // Needs the clientID, the biomarker you're trying to track, and the time duration $client = $_GET['clientid']; $bio = $_GET['bio']; $date1 = $_GET['date1']; $date2 = $_GET['date2']; //init array to hold values $date_and_values = array(); //get options $ti...
true
e04c52b85d27b5b2530010d3b9a08cdd08fe635f
PHP
nguyetnguyen-1106/BookStore
/view/indexAdmin.php
UTF-8
13,216
2.65625
3
[]
no_license
<?php require_once "../database/database.php"; if (isset($_POST["delete"])) { delete($_POST["delete"]); } if (isset($_POST["add"])) { $title = $_POST["title"]; $author = $_POST["author"]; $publishing = $_POST["publishing"]; $page = $_POST["numberOfPages"]; $publishingYear = $_POST["publishingYear"]; $...
true
a80925971c5f672ab142c5f86f8af7c0e7a5873e
PHP
Maimouna60/phpp1e1
/php.partie1.exercie2/index.php
UTF-8
520
2.953125
3
[]
no_license
<!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="UTF-8/"> <link rel="stylesheet" type="text/css" href="style.css" /> <title>partie1 Exo 2</title> </head> <body> <p> <?php $firstname = 'Kante '; $lastname = 'Maimouna ...
true
5e296776aa82243730c0cac75017bbfe101b52d5
PHP
Jako/CustomRequest
/core/components/customrequest/processors/mgr/configs/create.class.php
UTF-8
1,689
2.59375
3
[]
no_license
<?php /** * Create a Config * * @package customrequest * @subpackage processors */ use TreehillStudio\CustomRequest\Processors\ObjectCreateProcessor; class CustomrequestConfigsCreateProcessor extends ObjectCreateProcessor { public $classKey = 'CustomrequestConfigs'; public $objectType = 'customrequest.co...
true
bcc18ffbabf27bdbe8fa1dc70197d287625c9627
PHP
abigimportant/filmstacks-v1
/apps/frontend/modules/account/actions/actions.class.php
UTF-8
6,187
2.75
3
[]
no_license
<?php /** * A Symfony actions class for managing the actions of the Account module. * * @category Actions classes * @package Filmstacks * @subpackage account * @author Nicholas Pellant <contact@nickpellant.com> * @copyright 2007-2009 Filmstacks <staff@filmstacks.tv> * @version 0.1.0 * @link ...
true
ebd244d3881080e41fede662bb46e5123ac2520a
PHP
WebCommision/ProjetSiteFede
/model/dao/utilisateurDAO.php
UTF-8
622
2.625
3
[]
no_license
<?php function selectCarriere($bdd,$id_utilisateur) { ////////////////////////////////////////////////stock data into array // run query $query = $bdd->prepare("SELECT nom_poste, promotion_comite, nom_cercle FROM election join comite on election.id_comite= comite.id_comite where id_utilisateur=? ORDE...
true
ea0b01133d7842b4ba73bb196df50ec703148d1f
PHP
stevewood593/russ_goldman
/vendor/luka8088/phops/code/luka8088/phops/convert.php
UTF-8
3,186
3.296875
3
[ "MIT" ]
permissive
<?php namespace luka8088\phops; use \RuntimeException; /** * Converts a `$value` of any type to a value of `$type`. * * If passed in value cannot be converted to a `$type` then a `RuntimeException` is thrown. * * @param string $type * @param mixed $value * @return mixed */ function convertTo ($type, $value) ...
true
16046c7af3d957ff52a71630bd877a7d76ad5929
PHP
gsmcwhirter/krai
/script/demo/includes/modules/user.module/actions/profile.action.php
UTF-8
1,368
2.578125
3
[ "MIT" ]
permissive
<?php /** * Krai application skeleton application module * @package Demo * @subpackage Actions * @author Greg McWhirter <gsmcwhirter@gmail.com> * @copyright Copyright (c) 2008, Greg McWhirter * @license http://www.opensource.org/licenses/mit-license.php MIT License */ /** * Displays user profile pages * @pack...
true
1c62b50392078e1b5bb69ae52fd7faef6be8ad22
PHP
Lookaine/lp-dioc-tp5
/src/Entity/Potion.php
UTF-8
1,582
3
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Class Potion * @package App\Entity * @ORM\Entity * @ORM\Table(name="potion") */ class Potion { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\...
true
193f2518b1fa93b2d090caaa5c2ff1732ff00a6a
PHP
hamihaa/TDD-forum
/app/Listeners/NotifyMentionedUsers.php
UTF-8
803
3
3
[]
no_license
<?php namespace App\Listeners; use App\Events\ThreadHasNewReply; use App\Notifications\YouWereMentioned; use App\User; class NotifyMentionedUsers { /** * Handle the event. * @param ThreadHasNewReply $event * @return void */ public function handle(ThreadHasNewReply $event) { ...
true
7309f937289784426fc0abcb726335e01b8b3c78
PHP
slogsdon/php-web-component-ssr
/src/CustomHTMLElement.php
UTF-8
3,970
3
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace WebComponentSSR; use DOMDocument; class CustomHTMLElement { /** @var string */ const MBSTRING_ENCODING_HTML = 'HTML-ENTITIES'; /** @var string */ const MBSTRING_ENCODING_UTF8 = 'UTF-8'; /** @var string|string[]|null */ protected $data = null; /*...
true
8cc9575c31ac9726f8c9ac83e2e00bc631728e08
PHP
tareq-git/PHP-Practice
/arrayLoop.php
UTF-8
814
3.828125
4
[]
no_license
<?php //Create array. $cities=array( "Tokyo", "Mexico City", "New York City", "Mumbai", "Seoul", "Shanghai", "Lagos", "Buenos Aires", "Cairo", "London" ); echo $arrlength = count($cities) . "<br/>"; for ($i=0; $i < $arrlength; $i++) { echo "$cities[$i]"; echo "<br>"; } echo ...
true
f4ad03d56662c266a2bb1e48040d5554a92eb899
PHP
nirolph/hero
/src/Player/Factory/FactoryInterface.php
UTF-8
554
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: florin * Date: 18.10.2016 * Time: 18:26 */ namespace Player\Factory; use Match\Broadcaster\BroadcasterInterface; /** * Player factory * Interface FactoryInterface * @package Player\Factory */ interface FactoryInterface { /** * Create a player * @return...
true
8c9d1931fbe1faf26e33157e7f1035e5846caf13
PHP
TheBestMan/xml2
/tools/Xml2PhpClass.php
UTF-8
5,872
3.109375
3
[]
no_license
<?php class Xml2PhpClass { /** * @var BuildObject */ private $class; /** * @var string */ private $pathDestination; public function __construct() { $this->class = new BuildObject(); $this->pathDestination = './'; } public function fromFile(string $file...
true
a4159a3b2927e6d22ad5ce9565fee7fb5e368485
PHP
Artemis-Haven/xavier-aurelie
/src/Entity/CarpoolAnswer.php
UTF-8
3,583
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CarpoolAnswerRepository") */ class CarpoolAnswer { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="strin...
true
15a2c1e7e28c4dfcae3349be09c119257dc42caf
PHP
ThomasWiestBF/TestProjekt
/classes/Configuration/Configuration.php
UTF-8
611
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: thomas * Date: 03.06.2015 * Time: 15:32 */ namespace classes\Configuration; abstract class Configuration { protected static $aryConfigValues = []; /** * @param string $strConfigKey * * @return string * @throws \Exception */ public st...
true
d63bc424279493340af6f2a418a3a6de36cb1db2
PHP
fatmaali/Restaurant-System
/Old project/pagesClasses.php
UTF-8
747
2.921875
3
[]
no_license
<?php include_once "connect.php"; echo 'HIIIII'; class MenuDesign { public $ID; public $Action; static function SelectAll() {echo'hii'; $sql="select * from pages ";echo'Hiii'; $v = mysql_query($sql) or die(mysql_error()); $i=0; $Result; //echo $result; while ($row = mysql_fetch_array($v)) { //$...
true
2876198e21d7f4a226e856c61710f17314eb5b25
PHP
deuterium7/strategy-test
/tests/StrategyTest.php
UTF-8
751
2.96875
3
[]
no_license
<?php namespace AlexanderZabornyi\StrategyTest\Tests; use AlexanderZabornyi\StrategyTest\BublSortStrategy; use AlexanderZabornyi\StrategyTest\QuickSortStrategy; use AlexanderZabornyi\StrategyTest\Sorter; use PHPUnit\Framework\TestCase; class StrategyTest extends TestCase { public function testBublSort() { ...
true
562e51c04fc596963d26f0c99c78a63fffd73a70
PHP
SimplyCodedSoftware/integration-messaging
/src/Messaging/Handler/Processor/MethodInvoker/Converter/AllHeadersBuilder.php
UTF-8
1,306
2.6875
3
[ "MIT" ]
permissive
<?php namespace SimplyCodedSoftware\Messaging\Handler\Processor\MethodInvoker\Converter; use SimplyCodedSoftware\Messaging\Handler\ParameterConverter; use SimplyCodedSoftware\Messaging\Handler\ParameterConverterBuilder; use SimplyCodedSoftware\Messaging\Handler\ReferenceSearchService; /** * Class AllHeadersBuilder...
true
20d9ee4c4c94f0e17c8836b25abe60a4083e0e3c
PHP
liloo2040/symbnb
/src/Service/PaginationService.php
UTF-8
3,193
2.875
3
[]
no_license
<?php namespace App\Service; use Twig\Environment; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\HttpFoundation\RequestStack; class PaginationService { private $entityClass; private $limit = 10; private $currentPage = 1; private $manager; private $twig; private $route; ...
true
0c667f56aeb68742d67d2ede816d9b39c071cdf8
PHP
KasunDA/ITB-Student-Partner
/14027/API.php
UTF-8
1,972
2.8125
3
[]
no_license
<?php /* WEB SERIVCES FUNCTIONS */ function tulis_file(){ require_once("dbconf.php"); $result = mysqli_query($conn, "SELECT * FROM buku"); $xml = new DOMDocument('1.0'); $xml->preserveWhiteSpace = true; $xml->formatOutput = true; // Buat kerapihan file $group = $xml->createElement('KelompokJurnal'); ...
true
754080da3a051c406cf5f3ea548e023a9ce590e5
PHP
Arpit235/tracelabo
/modeles/questions.php
UTF-8
269
2.53125
3
[]
no_license
<?PHP include "config.php"; function afficherQuestionsPosees() { $sql="SELECT * FROM questionsPosees"; $db=config::getConnexion(); try { $liste=$db->query($sql); return $liste; } catch (Exception $e){ die('Erreur: '.$e->getMessage()); } } ?>
true
2fe009823fe8b94b3ca15aee58f83256b2f25017
PHP
DivanteLtd/magento2-review-api
/src/Model/Review/Validator/NicknameValidator.php
UTF-8
1,359
2.765625
3
[ "MIT" ]
permissive
<?php /** * Copyright Divante Sp. z o.o. * See LICENSE_DIVANTE.txt for license details. */ declare(strict_types=1); namespace Divante\ReviewApi\Model\Review\Validator; use Divante\ReviewApi\Api\Data\ReviewInterface; use Divante\ReviewApi\Validation\ValidationResult; use Divante\ReviewApi\Validation\ValidationResul...
true
272929f0bdc8fbccb8773d0709f42811fa64d89f
PHP
ngthucdotcom/SSO-Applied
/CT263/admin/controller/manage_supplier_controller.php
UTF-8
11,290
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: trana * Date: 11/7/2017 * Time: 9:31 AM */ require_once "module/supplier.php"; require_once "view/supplier_view.php"; class manage_supplier_controller { private $supplier, $supplier_view; public function __construct() { $this->supplier = new supplier(...
true
4f6a8d6bfd601d19da16a1d3228cc9f3d0969f0d
PHP
eltonsalles/pravaler-validator
/Pravaler/Validations/AbstractHandler.php
UTF-8
750
2.6875
3
[ "MIT" ]
permissive
<?php namespace Pravaler\Component\Validator\Validations; use Symfony\Component\Validator\Constraint; abstract class AbstractHandler { /** * @var AbstractHandler $nextHandle */ protected $nextHandle; /** * @var string $nameHandle */ protected $nameHandle; /** * @var Con...
true
051c22e05af27fc7fc8a8c3311610a8be6a910ce
PHP
Kamelian/Relatorio_PI
/Desenho/siresp/classes/Controller.php
UTF-8
898
2.796875
3
[]
no_license
<?php abstract class Controller{ protected $request; protected $action; public function __construct($action, $request){ $this->action=$action; $this->request=$request; } public function executeAction(){ /*Resolução Ficha 5 - deteçao da passagem do parametro "id" do URL para passar ao méto...
true
dfda4d6444a88c8ddc126a1759dff0e84a7440c3
PHP
iwasen/MyProg
/charara/inc/mail.php
EUC-JP
6,199
2.578125
3
[]
no_license
<? /****************************************************** ' System :֤Factoryץ󥯥롼ɥե ' Content:᡼ؿ '******************************************************/ // t_send_mail_data˥å function send_mail_data($subject, $from, $reply_to, $body, $mail_header='', $send_date='', $mail_type='0', $end_sql='') { separate_a...
true
063d11aa6307adf7a7903c6a00d166427c868d2b
PHP
yosshii50/HowIsYourProgress
/ScheduleList.php
UTF-8
669
2.984375
3
[ "MIT" ]
permissive
<?php // ファイルから読み込み、行ごとの配列に格納 $Filedata_arr = file( 'Schedule.txt' ); // 行番号 $LineNo = 0; // 配列初期化 $Send_arr = []; // 行ごとの配列から、行ごとに処理 foreach ( $Filedata_arr as &$Line_data ){ $Line_arr = []; $LineNo += 1; $Line_arr[] = $LineNo; // [TAB]区切りを配列に格納 $Line_arr = array_merge( $Line_arr , explode( "\t" , $Line...
true
94ada3e24e3a2b36323a0409a66062e88574b7c8
PHP
oddsigve/BIVAS
/Assignment3/htdocs/admin/pages/tool.php
UTF-8
7,872
2.703125
3
[]
no_license
<!--The php file that displays the add Verktøy form and the list of Verktøy added to the database --> <?php require("../../../../../private/CuU17/include/connect.php"); ?> <?php $query = "SELECT DISTINCT type FROM specification_dropDown"; $row = mysqli_query($connect, $query) or die("Could not get companies to datab...
true
971ca2f36c35cdae826c971a9a276b02ab6197f2
PHP
matiux/php-design-patterns
/src/Composite/Menu/MenuComponent.php
UTF-8
1,040
3.15625
3
[]
no_license
<?php declare(strict_types=1); namespace DesignPatterns\Composite\Menu; use LogicException; abstract class MenuComponent { // Composite methods public function add(MenuComponent $menuComponent): void { throw new LogicException(); } public function remove(MenuComponent $menuComponent): v...
true
d002a63d9a002c123474b6471823dc695ab000cf
PHP
nainasjdr/teste_campeonato
/campeonato.php
UTF-8
3,898
2.53125
3
[]
no_license
<?php include_once('menu.php');?> <html> <head> <title> Campeonato Libertadores </title> <link rel="stylesheet" type="text/css" href="style.css"> <meta charset="UTF-8"> </head> <body> Problema 3: <br> Sql que podem ser executadas: <br> (SELECT T.nome, C.ano, R.pontos FROM time T INNER JOIN resultado R on T.id_time=R....
true
c2fd35a3f5eb3324ab233a8e4845c92d04f481f8
PHP
JKleinne/trading
/backend/models/Wallet.php
UTF-8
1,133
2.859375
3
[]
no_license
<?php class Wallet extends Model { function __construct(){ parent::__construct(); } public function getWalletByUserIdAndTicker($user_id, $ticker) { $stmt = $this->_connection->prepare("SELECT * FROM Wallet WHERE user_id = :user_id AND ticker = :ticker"); $stmt->execute(['user_id...
true
2d77a31fa4007b12ae95f6c8fc2a45a650687d8e
PHP
Fisssy/UOGproject
/order.php
UTF-8
1,621
2.625
3
[]
no_license
<?php require("doa.php"); $connect = connectDB(); $name=$_POST['name']; $pickuplocation=$_POST['pickuplocation']; $date=$_POST['date']; $time=$_POST['time']; $car=$_POST['car']; if(isset($_POST['name'])) { if (validate_input()) { $sql = "INSERT INTO detail(pickuplocation, date, time, ca...
true
da56bfb76a8d43195b0de10e5dd68f15acd64788
PHP
benjaminjonard/koillection
/src/Twig/VisibilityRuntime.php
UTF-8
2,072
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Twig; use App\Enum\VisibilityEnum; use Symfony\Contracts\Translation\TranslatorInterface; use Twig\Extension\RuntimeExtensionInterface; class VisibilityRuntime implements RuntimeExtensionInterface { public function __construct( private readonly TranslatorInte...
true
f9cce8a31126c85226405b26905d549bb296994b
PHP
phphleb/framework
/Constructor/VCreator.php
UTF-8
1,108
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * Displaying content from a file. * * Отображение контента из файла. */ namespace Hleb\Constructor; final class VCreator { /** @internal */ private $hlTemplatePath = ''; /** * @param string $includePath * * @internal */ public function __con...
true
018fa0678add47c2cc6ba2ebdfbadc034ce73bd8
PHP
stefan-solmundson/ss-SomeApp
/database/seeds/UserSeeder.php
UTF-8
3,018
2.65625
3
[ "MIT" ]
permissive
<?php use App\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /* * Make sure the seed emails, are changed to real addresses for Adria...
true
b5a4cd4f3e3fe30e18978627acb89aa957db0ff2
PHP
ArasayRB/shopping_cart
/app/controllers/User_Controller.php
UTF-8
2,646
2.515625
3
[]
no_license
<?php namespace app\controllers; use app\Redirect; use app\Validator; use app\controllers\{Product_Controller,UserPay_Controller,Session_Controller}; use app\models\{Product,User,Session,SessionUser}; use config\{ServiceSession}; use core\{BaseController}; class User_Controller extends BaseController { public fun...
true
228070334511e7ae479f886934554c53a3024aef
PHP
capukampan/CUCT-project
/lib/database.php
UTF-8
2,239
2.734375
3
[]
no_license
<? /**** Class Database ****/ Class MyDatabase{ /**** function connect to database ****/ function MyDatabase($strHost,$strDB,$strUser,$strPassword){ $this->objConnect = mysql_pconnect($strHost,$strUser,$strPassword); $this->DB = mysql_select_db($strDB); $this->lang = mysql_query("SET NAMES UTF8"); } /**** f...
true
c9983341517637c17458fe4a21be3f3487ad3e1c
PHP
Ratha8/rachna
/model/managecertificate.php
UTF-8
8,055
2.515625
3
[]
no_license
<?php include 'certificate.php'; function getAllAttendance(){ } function insertCertificate($certificate){ $conn = getConnection(); $sql = "INSERT INTO t_certificates( student_id, cert_type, level, level_id, score, grade, date, issus_date, ...
true
22837105034ca2460b664b20ab9d5116ec8a8623
PHP
Siellph/testKTelekom
/src/models/add_edit_form.php
UTF-8
5,552
2.53125
3
[]
no_license
<?php include "../config/db.php"; $id = $_GET['id']; if ($id){ $sql = "SELECT * FROM `customers` WHERE `id` = '$id'"; $res = mysqli_query($connect, $sql); $table = mysqli_fetch_assoc($res); //данные из БД при редактировании строки $city_org = $table['city_org']; $contract = $table['contract']...
true
80ac77ca109155e97790455bcc78f463f83d4a35
PHP
mjacobus/php-query-builder
/tests/POTests/QueryBuilder/Clauses/UpdateClauseTest.php
UTF-8
783
2.671875
3
[ "MIT" ]
permissive
<?php namespace POTests\QueryBuilder; use PHPUnit_Framework_TestCase; use PO\QueryBuilder; use PO\QueryBuilder\Clauses\UpdateClause; /** * @author Marcelo Jacobus <marcelo.jacobus@gmail.com> */ class UpdateClauseTest extends PHPUnit_Framework_TestCase { /** * @param PO\QueryBuilder\Clauses\UpdateClause ...
true
f590880d8b88ec36d567833ab85031473542f1c5
PHP
Mrunalinge/Client-Quality-Systems
/api/steps/create.php
UTF-8
1,598
2.71875
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow_Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Header: Content-Type, Access-Content-Allow-Headers, Authorization, X-Requested-With"); //get datab...
true
9189ac786073de46987d6e082240eb6d1cc170fa
PHP
Julez404/haushaltsbuch
/test.php
UTF-8
1,314
2.96875
3
[]
no_license
<?php $procedure = $_POST['postprocedure']; $date = $_POST['date']; $dbname = "finance"; // Create connection $sql = new mysqli(ini_get("mysqli.default_host"), ini_get("mysqli.default_user"),ini_get("mysqli.default_pw"), $dbname); // Check connection if ($sql->connect_error) { http_response_code(550); die("Connec...
true
da4c837096e6d9f3c5b53e896939bce50ac80fde
PHP
bluware/frame
/active-record/ActiveRecord/Query.php
UTF-8
10,251
2.75
3
[ "MIT" ]
permissive
<?php /** * Bluware PHP Lite & Scaleable Web Frame. * * @author Eugen Melnychenko */ namespace Frame\ActiveRecord; use Frame\Data\Writable; use Frame\Database\Adapter; use Frame\Database\Manager; use Frame\Database\Query as Q; abstract class Query extends Writable { /** * @const ONE */ co...
true
2115dc5cc9da84696e1433c6fd9e482ff322b7d4
PHP
vkKlaus/phpDiplom
/views/order/saveOrder.php
UTF-8
5,486
2.65625
3
[]
no_license
<?php require $_SERVER['DOCUMENT_ROOT'] . '/views/layouts/index.php'; resetFilterSession(); $error = '/'; $title = ''; if (isset($_POST['saveOrder'])) { $_SESSION['deliv'] = isset($_POST['deliv']) ? $_POST['deliv'] : -1; $deliv = getTable($pdo, "delivery", "`id`=" . $_POST['deliv'], '`cost`'); $_SESSION...
true
22617dad9fd7f66396e3c904c54373c25768758f
PHP
rpecorreia/MedicineManagment
/app/Http/Controllers/HomeController.php
UTF-8
2,728
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\Hospital; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ //vai aceder ...
true
f88913edf6ee9c11d79833ea0d0348894ef8df95
PHP
AmebaUy/memory
/email_send.php
UTF-8
2,293
2.515625
3
[]
no_license
<?php require_once('phpmailer/class.phpmailer.php'); //datos del formulario $nombre = $_POST['nombre']; $trabajode = $_POST['trabajode']; $email = $_POST['email']; $empresa = $_POST['empresa']; $mensaje = $_POST['mensaje']; //logo root construction $rootFolder_Array = explode('/', dirname(__FILE__)); $rootArrayCount =...
true
5a22242fd77a77e72ff8d7e3ede2caef14061db2
PHP
Lerida/CRM404
/SEProject/classes/coments.class.php
UTF-8
726
3.15625
3
[]
no_license
<?php class Coments{ private $timee; private $coment; private $rate; public function __construct($d,$c,$r){ $this->timee=$d; $this->coment=$c; $this->rate=$r; } public function getTimee(){return $this->timee;} public fun...
true
a034e0c0c564a68fd11496a4e86ec0c2ba80a107
PHP
Sotatek-SangDo/hr-backend
/app/Imports/InterviewImport.php
UTF-8
590
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Models\Interview; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class InterviewImport implements ToModel, WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public funct...
true
6abf8beadb079aff89b1a2568a96d85c50e8e317
PHP
krtek4/php-functional
/src/FantasyLand/Semigroup.php
UTF-8
240
2.9375
3
[ "MIT" ]
permissive
<?php namespace FantasyLand; interface Semigroup { /** * Return result of applying one semigroup with another. * * @param Semigroup $value * @return Semigroup */ public function concat(Semigroup $value); }
true
32ea49a1b16cfdd3e84c8bad27fd5eda04f2abb9
PHP
kiboko-labs/flyimg
/src/Image/CommandChain.php
UTF-8
890
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace Flyimg\Image; use Flyimg\Image\Command\CommandInterface; use Imagine\Image\ImageInterface; use Traversable; final class CommandChain implements CommandInterface, \Countable, \IteratorAggregate { /** * @var CommandInterface[] */ private $commands; public function __construct(Com...
true
b178a8d49a2900e38f007ac9140a87380fdf2657
PHP
dbanik29/Academic-Projects
/Course Management-Web Programming/13_Reg_by_admin.php
UTF-8
1,349
2.75
3
[]
no_license
<?php $db_host = 'localhost'; // Nama Server $db_user = 'root'; // User Server $db_pass = ''; // Password Server $db_name = 'course'; // Nama Database $conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (!$conn) { die ('Fail to connect to MySQL: ' . mysqli_connect_error()); } $sql = 'SELECT id...
true
29de9690687bc4188d5174746dce15c61f1ff3ff
PHP
octavioreyes1/call_center
/classes/UsuarioDao.php
UTF-8
4,598
2.96875
3
[]
no_license
<?php require_once 'Usuario.php'; require_once 'TipoUsuario.php'; /** * UsuarioDao.php * * PHP version 5 * * @category CallCenter.DAO * @package CallCenter.Bd * @author Ivan Tinajero <ivanetinajero@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @link http://ca...
true
3f44bf5367f0f3eb054cb57026eb7f460ef501e1
PHP
avkey89/study_rabbitmq
/src/Classes/AbstractProducer.php
UTF-8
1,337
2.9375
3
[]
no_license
<?php namespace App\Classes; use App\Interfaces\ProducerInterface; use App\Traits\RabbitMQConnection; use PhpAmqpLib\Message\AMQPMessage; abstract class AbstractProducer implements ProducerInterface { use RabbitMQConnection; private $connect; private $channel; private $queue; ...
true
54904a7858c8b2e13212742c0ef7bcc4bb60a612
PHP
pharreX19/delivery_manager
/app/Domain/Comment/CommentCreateService.php
UTF-8
201
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Customer; use App\Customer; class CustomerCreateService{ public function execute(array $validatedRequest) { return Customer::create($validatedRequest); } }
true
82189d1689604b84b4e0915466eaa009b38cf2e1
PHP
alexandra-fedotova/zf3-sample-app
/module/Zsa/Pip/src/Collection/AssignedPipsTrait.php
UTF-8
4,871
2.578125
3
[]
no_license
<?php namespace Zsa\Pip\Collection; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Criteria; use Zsa\Pip\Dto\PipRelation\PipRelationTo; use Zsa\Pip\Entity\Enum\PipStatusEnum; use Zsa\Pip\Entity\Pip; use Zsa\Pip\Entity\PipRelation; /** * T...
true
e80d8160ed7be69f35127ba5e0c3f721f4ae4b19
PHP
it-blaster/uploadable-bundle
/File/UploadableFile.php
UTF-8
778
2.828125
3
[ "MIT" ]
permissive
<?php namespace Fenrizbes\UploadableBundle\File; use Symfony\Component\HttpFoundation\File\File; class UploadableFile extends File { /** * Path to the project's root directory * * @var string */ protected $root_path; /** * Web path to the file * * @var string */ ...
true
8366fddadb4c4869c522564ac20cb4d2afe52f80
PHP
nitorKK/till
/task/task6-7/cookie_input .php
UTF-8
794
2.65625
3
[]
no_license
<?php if (isset($_POST['submit'])) { $id = $_POST['id']; $password = $_POST['password']; setcookie("id",$id,time()+60*60*24*14); setcookie("password",$password,time()+60*60*24*14); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-...
true
37fe2572feba68ab58efe95747161b9cb4313612
PHP
jiahongwei/newland-project
/protected/modules/student/controllers/StudentManageController.php
UTF-8
3,969
2.546875
3
[]
no_license
<?php define ( PAGESIZE, 15); /** * 学生管理 * 增删改查 * * @author 徐晨阳 * @link localhost/index.php?r=student/teacherManage/findAll * @link localhost/index.php?r=student/teacherManage/add */ class StudentManageController extends XAdminiBase { public function actionFindAll() { try { // 分页取数据 $criteria = new CDb...
true
fb818360a014bdc3d57b8b75101f16c3995946be
PHP
tomir/q
/engine/libraries/Enp/Db/Select/Builder.php
UTF-8
1,884
2.890625
3
[]
no_license
<?php namespace Enp\Db\Select; /** * @package Enp * @category Enp_Db_Select * @author Piotr Flasza * @author Artur Świerc * * @TODO Trzeba się zastanowić czy wrzucamy również tutaj obsługę filtrów własnych oraz pluginów. */ class Builder { /** * @var \Zend_Db_Select */ protected $select; /** * ...
true
2c4fbec47f3d6294513165f63aa26c6e4d9f387a
PHP
jkjoy/phpwind
/phpwind9/src/applications/admin/service/dao/AdminCustomDao.php
UTF-8
1,147
2.625
3
[ "Apache-2.0" ]
permissive
<?php Wind::import('ADMIN:library.AdminBaseDao'); /** * 常用菜单数据访问层 * * @author Qiong Wu <papa0924@gmail.com> 2011-11-12 * @copyright ©2003-2103 phpwind.com * @license http://www.windframework.com * * @version $Id: AdminCustomDao.php 21801 2012-12-13 09:31:09Z yishuo $ */ class AdminCustomDao extends AdminBaseDa...
true
8c9adc6df22a1ff65b0a707f7713b67f35b7c46a
PHP
ValentineGhesq/MiniFacebook
/traitement/recherche.php
UTF-8
924
2.53125
3
[]
no_license
<?php $sql = "SELECT * FROM user WHERE id NOT IN ( SELECT user.id FROM user INNER JOIN lien ON idUtilisateur1=user.id AND idUTilisateur2=? UNION SELECT user.id FROM user INNER JOIN lien ON idUtilisateur2=user.id AND idUTilisateur1=? UNION SELECT user.id from user WHERE id = ?)"; $query = $pdo->prepare($sql); $query-...
true
fcd1b0f58eeb9826f8f029239c772468850748d9
PHP
kamdjouduplex/ERP
/app/Console/Commands/GetPageScreenshot.php
UTF-8
1,394
2.515625
3
[]
no_license
<?php namespace App\Console\Commands; use App\CronJobReport; use App\PageScreenshots; use App\Services\Bots\Screenshot; use Carbon\Carbon; use Illuminate\Console\Command; class GetPageScreenshot extends Command { /** * The name and signature of the console command. * * @var string */ prot...
true
5c8ede6f3f9f172504a2a23bff2bf515a51ad3af
PHP
1verapoles/its
/send.php
UTF-8
2,053
2.578125
3
[]
no_license
<?php // Файлы phpmailer require 'phpmailer/PHPMailer.php'; require 'phpmailer/SMTP.php'; require 'phpmailer/Exception.php'; // Переменные, которые отправляет пользователь $name = $_POST['name']; $surname = $_POST['surname']; $email = $_POST['email']; $date = $_POST['date']; $days = $_POST['days']; $comin = $_POST['...
true
710d4c1135bb17abb35eb9d708be616cecbd37fc
PHP
vanilla/jsConnectPHP
/tests/JsConnectTest.php
UTF-8
2,909
2.609375
3
[ "MIT" ]
permissive
<?php /** * @author Todd Burry <todd@vanillaforums.com> * @copyright 2009-2023 Vanilla Forums Inc. * @license MIT */ namespace Vanilla\JsConnect\Tests; use Firebase\JWT\JWT; use PHPUnit\Framework\TestCase; use Vanilla\JsConnect\Exceptions\FieldNotFoundException; use Vanilla\JsConnect\Exceptions\InvalidValueExcept...
true
c1ee8795886b055b4313a52aed98eaa66e64c92c
PHP
sonrac/symfony-seed-command
/src/SimpleSeedWithCheckExists.php
UTF-8
3,639
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * * @author Sergii Donii <doniysa@gmail.com> */ namespace sonrac\SimpleSeed; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Query\QueryBuilder; /** * Class SimpleSeedWithCheckExists. * * @author Sergii Donii <doniysa@gmail.com> */ abstract class SimpleSeedWithCheckExists ex...
true
aa620fb1e738b6665aec73adb5ca75a88c38597c
PHP
eziagorchee/create.read_drugs_api
/src/routes/drugs.php
UTF-8
2,984
3.1875
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; //This Is used to Upload user Data to the API Endpoints $app->post('/api/drugs/create', function (Request $request, Response $response, array $args) { //If It Corresponds, Start the SQL Operat...
true
b65d0216cdda152a71778a8955248b81bb31c80c
PHP
MarcoAmato/ProgettoTWeb
/php/advert.php
UTF-8
919
2.609375
3
[]
no_license
<?php if(!isset($_SERVER["REQUEST_METHOD"]) || $_SERVER["REQUEST_METHOD"]!="POST"){ header("HTTP/1.1 400 Invalid Request"); exit("ERROR 400: Invalid request - This service accepts only POST requests."); } include './common.php'; try { $db = dbconnect(); } catch (PDOExceptio...
true
15eec43c84d5e0148ab592c4e75b3abef9d17795
PHP
madebykrol/iflvg
/yogi/framework/security/interfaces/IPrincipal.php
UTF-8
393
2.6875
3
[]
no_license
<?php namespace yogi\framework\security\interfaces; use yogi\framework\security\interfaces\IIdentity; use yogi\framework\utils\ArrayList; interface IPrincipal { /** * @return IIdentity */ public function getIdentity(); public function setIdentity(IIdentity $identity); public function isInRole($role); pub...
true
2fbe308da6ba39b416e7fc006ddf49dcfee69785
PHP
Syd5705/New-Projet_3
/Controleur/ControleurBillet.php
UTF-8
4,368
3.109375
3
[]
no_license
<?php require_once 'Modele/BilletManager.php'; require_once 'Modele/CommentaireManager.php'; require_once 'Vue/Vue.php'; class ControleurBillet { private $billet; private $commentaire; public function __construct() { //on a acces au modele billet et au modele commentaire, o...
true
8a97f2465e5b3153b77ad2aeb9a9b25e1451597e
PHP
alexandrSS/demo.loc
/frontend/models/ArticlesCategory.php
UTF-8
1,798
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "articles_category". * * @property integer $id * @property string $title * @property string $alias * @property integer $parent_id * @property integer $status_id * @property integer $created_at * @p...
true
c13d48c51ef987ffedb5bc911d760194bed1eb43
PHP
ashduckett/shout
/register.php
UTF-8
3,960
3.0625
3
[]
no_license
<?php require_once (__DIR__ . '\DBObjects\Organisation.class.php'); require_once (__DIR__ . '\DBObjects\User.class.php'); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); try { // Validate email $email = filter_input(INPUT_PO...
true
cee185a2d8e87027639c71176125c4353de7b04d
PHP
carono/yandex-dzen
/src/Client.php
UTF-8
5,350
2.53125
3
[]
no_license
<?php namespace YandexDzen; use DiDom\Document; use GuzzleHttp\Cookie\CookieJar; use \GuzzleHttp\Exception\GuzzleException; class Client { const USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'; const URL_AUTH_FORM = 'https://passport.yan...
true
e18bca4aa9211b0b7bca789731c2b3f55c6bf9b6
PHP
asumara/size
/size.php
UTF-8
3,716
2.734375
3
[]
no_license
<? function dirToArray($dir) { $result = array(); $cdir = scandir($dir); foreach ($cdir as $key => $value) { if (!in_array($value,array(".",".."))) { if (is_dir($dir.DIRECTORY_SEPARATOR.$value)) $result["isfolder_".$value] = dirToArray($dir.DIRECTORY_SEPARATOR.$value); else $r...
true
f76a45aa911d1e699e60ad657594f63d6e1c81fa
PHP
dunn-g/surveys
/surveyor_change_password.php
UTF-8
4,947
2.984375
3
[]
no_license
<?php # DISPLAY COMPLETE SURVEYOR REGISTRATION PAGE. #$SurveyorId = 10; session_start(); ini_set('display_errors', 'On'); error_reporting(E_ALL | E_STRICT); # Connect to the database. if ($_SESSION[ 'SurveyorId' ] == 10 ){ require( '../connectlaptop_db.php' ) ; } else { require( '../...
true
4172f6be1eb947d779e77750a688b4869a4aac10
PHP
brandon369/apithon16
/modelos/usuario.modelo.php
UTF-8
644
2.6875
3
[]
no_license
<?php class ModeloUsuario{ public function mdlUsuario($item){ $stmt = Conexion::mdlConectar()->prepare("SELECT * FROM tblUsuarios WHERE documento = :valor"); $stmt -> bindParam(":valor", $item); $stmt -> execute(); return $stmt -> fetch(); $stmt = null; } public fu...
true
2018cdd78421768c26a9e674f3ab962761cea9e4
PHP
aklivecai/jcrm2
/protected/modules/workflow/components/FlowProducer.php
UTF-8
1,050
2.8125
3
[]
no_license
<?php /** * 流程生成者 */ class FlowProducer { public function __construct() { } /* * 批量设置流程步骤,已弃用 */ public function setStep(array $stepArr, $flow_id) { $db_con = Yii::app()->db; $transaction = $db_con->beginTransaction(); try { $step_no = 1; $model...
true
c7b2603fa7eeb8e312ef46bcd25e0f2c5c03f264
PHP
King-Yung/task1
/myfile/index.php
UTF-8
247
3.234375
3
[]
no_license
<?php $number = range(0,6); $sum=array(3,13,23); ?> <!DOCTYPE html> <html> <head> <title>Task</title> </head> <body> <div> <ul> <?php print_r ($number); ?> <li><?php echo array_sum($sum); ?></li> </ul> </div> </body> </html>
true
815f1fa88c29bddc4cd9ca8ff6bca3fd6809a24c
PHP
Open-Wide/OWMonitoring
/classes/owmonitoringlogger.php
UTF-8
3,404
2.859375
3
[]
no_license
<?php class OWMonitoringLogger { const NOTICELOG = 'notice'; const ERRORLOG = 'error'; const WARNINGLOG = 'warning'; const ERRORLOG_FILE = 'owmonitoring-error.log'; const WARNINGLOG_FILE = 'owmonitoring-warning.log'; const NOTICELOG_FILE = 'owmonitoring-notice.log'; protected static $cli;...
true
47b6fa7e84d0581286e83809510cab70b3357bee
PHP
ruselufa/GetCourse-PHP-SDK
/lib/GetCourse/Message.php
UTF-8
1,244
2.78125
3
[]
no_license
<?php namespace GetCourse; use GetCourse\core\Model; /** * Класс Message * для отправки рассылки * * @package GetCourse * * @property array message */ class Message extends Model { /** * Email пользователя * @param $email * @return $this */ public function setEmail($email) { $this->message['email...
true
8402934f65c866a8d33c4fffd57911b7c0a5c0c5
PHP
AmaraLiving/php-onehydra
/src/Amara/OneHydra/Http/Transport/GuzzleTransport.php
UTF-8
1,507
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the php-onehydra package. * * (c) Amara Living Ltd * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Amara\OneHydra\Http\Transport; use Amara\OneHydra\Exception\HttpTransportException; use...
true
2b159e1de185701e8e563d830aa676c6ca479101
PHP
AndrasCirce/web-part-one
/formularios/pass2.php
UTF-8
1,151
2.65625
3
[]
no_license
<html> <head> <title>Conoces la password?</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <h1>Conoces la password?</h1> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <input type="text" name="pw"> ...
true
686ade95ba692b8db8f349c45b9b0156f5916db5
PHP
laurenreeder/Visitor_Counter
/index.php
UTF-8
501
2.796875
3
[]
no_license
<html> <head> <title>Lauren's PHP Page</title> </head> <body> <?php echo '<p>Welcome to Lauren\'s page.</p>'; $browser = escapeshellcmd($_SERVER["HTTP_USER_AGENT"]); shell_exec("python ../cgi-bin/pscript1.py"); $output = shell_exec("python ../cgi-bin/pscript2.py"); echo "<pre>"; echo "The total number of visitors so fa...
true
2ed129e562fd18a826272a868ef79ee691f55134
PHP
patrickmanzon/events
/app/Http/Controllers/EventsController.php
UTF-8
1,369
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Event; use Carbon\CarbonPeriod; use Illuminate\Http\Request; use App\Http\Requests\CreateEventRequest; use Carbon\Carbon; class EventsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response ...
true
c561e2b331ad90c1292a9a140489503fd8d374f9
PHP
Garanaw/sugarcloud
/application/helpers/MY_string_helper.php
UTF-8
2,442
2.9375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); function add_trailing_slash($url){ if (!preg_match("/.*\/$/", $url)) { $url .= '/'; //"$url" . DIRECTORY_SEPARATOR; } return $url; } function trim_extension($string, $exts = array()){ $defaults = array('.css', '.js');...
true
076c3938ff53bbb9ae325b40c8fea5a3e68d5344
PHP
sujanshresthanet/CMS-PHP
/admin/includes/admin_operation/post_ops/post_create.php
UTF-8
7,790
2.875
3
[]
no_license
<?php ///Code With PHP... if (isset($_POST['publish-post'])) { $post_title = $_POST['title']; $post_title = mysqli_real_escape_string($connection, $post_title); $post_user = $_POST['user']; $post_user = mysqli_real_escape_string($connection, $post_user); $post_category_id = $_POST['category-id']; ...
true
7b9df103d1d4963514834281301dd9fd44cf589e
PHP
jordan-sf/laravel_review
/database/migrations/2018_03_08_032353_reviews.php
UTF-8
1,052
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Reviews extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('reviews', function (Bluepri...
true