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
77701dd528f011620420c482a54c0a1c0dee685c
PHP
phpcrazy/wpa13
/ooproject/src/wpa13/loaders/ViewLoader.php
UTF-8
873
2.765625
3
[]
no_license
<?php use Philo\Blade\Blade; class View { public static function make($view, $data = null) { // blade template $views = DD . '/app/views'; $cache = DD . '/app/cache'; $blade = new Blade($views, $cache); /* // Twig template $loader = new Twig_Loader_Filesystem(DD . '/app/views'); // point twig h...
true
ba19638dad3e0ccfaaa429084442f0c2e60e3223
PHP
kingsquare/communibase-databag
/tests/RemoveFromBagTest.php
UTF-8
2,302
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Communibase\Tests; use Communibase\DataBag; use Communibase\InvalidDataBagPathException; use PHPUnit\Framework\TestCase; class RemoveFromBagTest extends TestCase { /** * @var DataBag */ private $dataBag; /** * @var array<string,mixed> */ ...
true
bbb65d7b8ab2a79f7352d0e18471f7a0371cc442
PHP
negm/ikimuk
/class/class.submissions.php
UTF-8
3,476
2.953125
3
[]
no_license
<?php /******************************************************************************* * Class Name: submissions * File Name: class.submissions.php * Generated: Thursday, Nov 15, 2012 - 7:16:56 CET * - for Table: submissions * - in Database: ikimuk * Created by: table2class (http://www.steve...
true
0b50e02dab43c22987d7dedaa03df0f6605129a3
PHP
themaxsandelin/twitter
/resources/functions/data.php
UTF-8
21,327
2.640625
3
[ "MIT" ]
permissive
<?php require_once("database.php"); $loginErrors = [ "Windows error. Login credentials invalid. Windows shutting down.", "Invalid login, come on dude..", "Guess what? Invalid login, b*tch.", "Error 404. Login credentials not found.", "Game over. Try again.", "Wrong login...really? How hard can it be?", "These ...
true
f1650d55dfe10a88bc9f34d54620965fbfb27df6
PHP
fengxin5571/dyz_manage
/action/index/action.sms.php
UTF-8
987
2.546875
3
[]
no_license
<?php /** * 独一张管理app短信验证码类 * @date: 2017年6月19日 下午3:35:02 * @author: fx */ if (! defined("CORE")) exit("error"); if ($do == "getverifycode") { // 获取短信验证码 $mobile = $_REQUEST['mobile']; // 手机号 $type = $_REQUEST['type'] ?? 0; if (empty($mobile)) { echo '{"code":"500","msg":"手机不能为空"}'; e...
true
ae9920d99f938738250fecc05f34ea279523114e
PHP
Yukilynnren/MoviesDatabase
/back-end/actions/updatemovie.php
UTF-8
942
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>PSC - Staff : Update Movie</title> <link rel="stylesheet" href="../../style.css"> </head> <body> <h1>PSC - Staff Access : Update Movie</h1> <hr> <?php include '../inc/getwhichmovie.inc.php'; if ($selected_movie) : ?> ...
true
dbd9f9dcab371389f511101d282d3245f245139e
PHP
entiu/finplay-heroku
/server.php
UTF-8
2,747
2.828125
3
[]
no_license
<?php session_start(); // Initialize variables $username = ""; $email = ""; $errors = array(); // Connect to the database $db = mysqli_connect('localhost', 'root', 'entiu', 'finplay'); /******* REGISTRATION *******/ /****************************/ if (isset($_POST['reg-user'])) { // Receive all input...
true
b258f262fffe7dfcce76f0e8f39737836dd45de0
PHP
HassanAlsaleh/items_chat_bot
/connect.php
UTF-8
473
2.6875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "robotbase"; // Establish the connection $connection = new mysqli($servername, $username, $password); if (!$connection){ die("Connection failed: ". mysqli_connect_error()); } // Connect with the database $selected_db =...
true
ffc1a58a6601b4951f7849eadc856fe9a04b8dcf
PHP
steinkrauz/sauron-eye
/index.php
WINDOWS-1251
1,296
2.53125
3
[]
no_license
<?php require('tbl.php'); require('generator.php'); require('menu.php'); class IndexGenerator extends AbstractGenerator{ function generate() { $this->data["title"]=" "; $this->data["menu"]=makeMenu(); $numTotal = $this->mdb->getFullCount(); $numToday = $this->mdb->getTodayCo...
true
b02b3beb2a78474b44ffc0815d99ef24ba4b303c
PHP
fangda4281/nego
/model/doself.php
UTF-8
2,553
2.765625
3
[]
no_license
<?php /* * 1.6 * input:action "doself" * output:"self infomation",later should be xml file input:action "saveinfo" output:used to save user's new selfinfo. * */ //$_SESSION['userId'] = "1";//need to change later session_start(); $action = $_REQUEST["action"]; $name = $_REQUEST["name"]; $image ...
true
2b784f595705d52b414208d13c7ae23f4bf53dcc
PHP
nenuadrian/Secret-Republic-Hacking-Browser-Game-V3
/includes/class/abclass.php
UTF-8
3,249
2.625
3
[ "CC-BY-4.0" ]
permissive
<?php class Abilities extends Alpha { function __construct() { parent::__construct(); global $userData; $userData["level"] = $this->user["level"]; $userData["maxEnergy"] = $this->user["maxEnergy"]; if ($this->user['id']) { $uab = $this->uclass->getUserAbilities($this->user["id"],...
true
ca7b6efb6e10dbb51187ed13074b421e35aaed09
PHP
andrevanzuydam/shapehtml
/shapejs/src/shape.php
UTF-8
55,782
2.5625
3
[]
no_license
<?php if (!function_exists("function_alias")) { function function_alias ($original, $alias) { $args = func_get_args(); assert('count($args) == 2'); assert('is_string($original) && is_string($alias)'); // valid function name - http://php.net/manual/en/functions.user-defined.php assert('p...
true
6d93ad7812fef5d8ff12b6518a14374e4fd9c3a9
PHP
PaolaCuadros/ORI-BSC
/module/Caracteristica/src/Caracteristica/Model/CaracteristicaTable.php
UTF-8
3,251
2.5625
3
[]
no_license
<?php namespace Caracteristica\Model; use Zend\Db\Adapter\Adapter; use Zend\Db\ResultSet\ResultSet; use Zend\Db\TableGateway\AbstractTableGateway; class CaracteristicaTable extends AbstractTableGateway { protected $table ='caracteristica'; public function __construct(Adapter $adapter) { $th...
true
638edb5dadd31cc4ea5097d9d07ddfeb42a95acf
PHP
molinos8/ejemplospanda
/FeaturesValidatorFactory.php
UTF-8
802
2.53125
3
[]
no_license
<?php namespace OKNManager\BM\Validators\Features; use \OKNManager\BM\Validators\BaseValidatorFactory; /** * Class to create an action validator of the Features business model */ class FeaturesValidatorFactory extends BaseValidatorFactory { /** * Validation Error code if the action validator was not found...
true
0ea71c9d320feb95c6375039940b1c9fa0b79301
PHP
mpierzchalski/etl-processor
/lib/INL/ETL/Transform/SimpleObjectTransformer.php
UTF-8
2,983
2.609375
3
[ "MIT" ]
permissive
<?php namespace INL\ETL\Transform; use INL\ETL\ExtractedItemData; use INL\ETL\Transformer; use INL\ETL\TransformerExtension; use Symfony\Component\PropertyAccess\PropertyAccess; /** * @package inlworkaround * @author Michał Pierzchalski <michal.pierzchalski@gmail.com> * @license MIT */ class SimpleObjectTransfo...
true
c1d74c8f32fc620d0d61a62ce6b74cd8abdbea48
PHP
JoakimZebic/TypeApp
/pages/register.php
UTF-8
2,077
2.859375
3
[]
no_license
<?php header("Content-type: application/json"); $username = $_POST['user']; $password = $_POST['pass']; $email = $_POST['mail']; $userRe = "/^[A-z][a-z]{2}[\da-z]{0,7}$/"; $passRe = "/[\w\d\W\D\s]{5,}/"; $mailRe = "/^[A-z\d]{2,}(\.?(\W\D)?[A-z\d]{2,})*\@\w{2,}(\.\w{2,})*$/"; ...
true
f256fc61520b0f154e509ae7c4cca082ab333586
PHP
openclerk/forms
/src/Validateable.php
UTF-8
1,524
3.0625
3
[]
no_license
<?php namespace OpenclerkForms; class Validateable { function __construct(Form $form, $key) { $this->form = $form; $this->key = $key; } function required($error = null) { if ($error === null) { $error = $this->form->getTitle($this->key) . " is required"; } $this->form->addValidator($t...
true
a79b3f7a39b070c9c7319c4e791a5b9c89bbb6e0
PHP
HOLMESsamuel/urbanfarm
/modele/requeteActualites.php
UTF-8
2,357
3.65625
4
[]
no_license
<?php /** * recupere le contennu de l'article dont le titre est celui entré en paramètre */ function recupereArticle(PDO $bdd, String $titre){ $req = $bdd->prepare("SELECT * FROM article WHERE titre=?"); $req->execute(array($titre)); $row=$req->fetch(); echo "<br><a cl...
true
70d0da7e2d20204fcb30b4908415f71e360654d3
PHP
WackyStudio/flatblog-engine
/tests/unit/Settings/SettingsReferencesHandlerTest.php
UTF-8
8,237
2.59375
3
[ "MIT" ]
permissive
<?php use WackyStudio\Flatblog\Exceptions\DirectoryReferenceInSettingsNotFoundException; use WackyStudio\Flatblog\Exceptions\FileReferencedInSettingsNotFoundException; use WackyStudio\Flatblog\File; use WackyStudio\Flatblog\Parsers\ParserManager; use WackyStudio\Flatblog\Settings\SettingsReferencesHandler; class Setti...
true
8202ef1a5b8543763b2c9eca0af92564c3af1997
PHP
phel-lang/phel-lang
/src/php/Printer/TypePrinter/TypePrinterInterface.php
UTF-8
214
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phel\Printer\TypePrinter; /** * @template T */ interface TypePrinterInterface { /** * @param T $form */ public function print(mixed $form): string; }
true
82afe61182b16943218c70825b84d184efa7ec5e
PHP
Suntxu/11
/addons/docs/Docs.php
UTF-8
1,418
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace addons\docs; use app\common\library\Menu; use think\Addons; /** * 文档生成插件 */ class Docs extends Addons { /** * 插件安装方法 * @return bool */ public function install() { $menu = [ [ 'name' => 'docs', 'title' => '文档管理', ...
true
0795dad05201b3b2d4b56133f78132b7f4fc79ab
PHP
kuzma17/k_parser
/app/Paginates/WallpaperPaginate.php
UTF-8
352
2.625
3
[]
no_license
<?php namespace App\Paginates; class WallpaperPaginate implements Paginate { /** * Gets the next page. */ public function getNextPage($dom) { $element = $dom->find('ul#yw0 li.selected', 0); $element = $element->next_sibling()->find('a', 0); $element = $element ->href; ...
true
1f1f2057d1ba64cacd47dff0e50577d9597b190b
PHP
ChristAristide/prestashop-web-service
/views/shop_urls.tpl.php
UTF-8
1,154
2.53125
3
[]
no_license
<?php global $PWS; $PWS->read_resource_all('shop_urls'); $shop_urls = $PWS->get_retrieved_resource(); $view_options = ['compact', 'full']; $view_option = 'full'; $attributes_list = []; $shop_url_attributes = [ 'id', 'id_shop', 'active', 'main', 'domain', 'domain_ssl', 'physical_uri', 'v...
true
3cf7dee0a4b5c806ee79940b0c281bcdb7ccd2d5
PHP
josephjlee/eCommercePHP
/getComments.php
UTF-8
1,427
2.78125
3
[]
no_license
<?php require 'connection.php'; function getComments($id){ try{ $sql = $GLOBALS['db']->prepare('SELECT product_id, rating, images, text, username, c.created_at FROM comments AS c, users AS u WHERE product_id = :id AND c.user_id = u.id'); $sql->bindValue(':id', $id); $sql->execute(); ...
true
edc5d81b50f7bc7d3f1f84b477b867f4dedc16c2
PHP
peachpiecompiler/peachpie
/tests/xml/simplexml_009.php
UTF-8
837
3.109375
3
[ "Apache-2.0" ]
permissive
<?php namespace xml\simplexml_009; function traverse_xml($pad,$xml) { foreach($xml->children() as $name => $node) { echo $pad."<$name"; foreach($node->attributes() as $attr => $value) { echo " $attr=\"$value\""; } echo ">\n"; traverse_xml($pad." ",$node); echo $pad."</$name>\n"; } }...
true
38f73726790618223710bf75ae9c1766ce8c41c7
PHP
connyay/giffy-laravel
/app/Giffy/Repositories/GifRepositoryInterface.php
UTF-8
1,347
3.125
3
[]
no_license
<?php namespace Giffy\Repositories; interface GifRepositoryInterface { /** * Get all of the gifs. * * @return array */ public function all(); /** * Paginate the gifs. * * @param int $per_page * * @return array */ public function paginate( $per_page ); ...
true
cfc2b815d1458b22721a753a339d04567e07cf9a
PHP
lxh843649540/learnProject
/011 AJAX/Day02/Day02ALL/src/3.php
UTF-8
716
3.96875
4
[]
no_license
<?php //练习 15:00--15:15 //1:创建3.php使用 向客户端输出1个* echo('*'); //2:创建4.php使用 向客户端输出50个* //$i->php 变量名叫 $i for($i=0;$i<50;$i++){ echo('*'); } echo('<br />'); //3:创建5.php使用 向客户端输出5行10列* //创建二层循环,外层循环控制行数 // 内层循环控制列数 for($i=0;$i<5;$i++){ //循环输出 10列* for($j=0;$j<10;$j++){ echo('*'); } //输出 换行'<br />...
true
9ec3903df8f1eb6aae4b3b4e163e79e097f38a9a
PHP
CrestApps/laravel-code-generator
/src/Commands/Bases/CreateScaffoldCommandBase.php
UTF-8
7,772
2.703125
3
[ "MIT" ]
permissive
<?php namespace CrestApps\CodeGenerator\Commands\Bases; use CrestApps\CodeGenerator\Models\Bases\ScaffoldInputBase; use CrestApps\CodeGenerator\Models\Field; use CrestApps\CodeGenerator\Support\Helpers; use CrestApps\CodeGenerator\Traits\CommonCommand; use CrestApps\CodeGenerator\Traits\ScaffoldTrait; use Exception; ...
true
2b90268ae15cba30d2f7dbfb18191c6d8da2490e
PHP
vipcristedo/php21.zent
/Unit03/HW/BT2/delete.php
UTF-8
620
2.6875
3
[]
no_license
<?php if (!empty($_POST['delete'])) { session_start(); function getAllStudents() { return isset($_SESSION['SV']) ? $_SESSION['SV'] : array(); } function getStudent($mSV) { $SV = getAllStudents(); foreach ($SV as $item) { if ($item['mSV'] == $mSV){ return $item; } } return array(); } funct...
true
c978c65a9e399f5718d294c5a45b951f9a9f179c
PHP
zhuxungit/mymvcblog
/Application/Controller/Admin/IndexController.class.php
UTF-8
650
2.5625
3
[]
no_license
<?php namespace Controller\Admin; use Model\UserModel; /** * 后台首页 * @package Controller\Admin */ class IndexController extends \Controller\Admin\BaseController { private $usermodel; public function __construct() { parent::__construct(); //实例化用户模型 $usermodel = new UserModel(); ...
true
a8c4673ba972867f999deda7f83b25444688f923
PHP
rezoanahmed/varconphp
/index.php
UTF-8
1,063
3.40625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> <title>Variables and Constants</title> </head> <body> <div id="header"> <?php echo "Variables can be reassigned but constants can'...
true
4bbafb57dc271e70663f3d0e970ec2a731d7aa09
PHP
brandid/hello-pro
/lib/onboarding-functions.php
UTF-8
5,301
2.65625
3
[]
no_license
<?php /** * Custom functions to run during Genesis Onboarding (One-Click Theme Setup) * * @since 2.0 * * @package Hello Pro */ add_action( 'genesis_onboarding_after_import_content', 'hello_pro_remove_default_blog_meta', 25, 2 ); /** * Removes the default "Hello World" post if it exists. * * @param string $con...
true
3eea97c59ffa9cc9c86c19f9626721bde305c1a5
PHP
seamory/during-university
/php/basic-class/DB.php
UTF-8
8,381
3.125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Brocade * Date: 18.1.16 * Time: 21:08 * 事例代码: * $db = new DB("localhost","root","password"); 创建一个数据库实例 * $db->setDB("mysql"); 选择一个操作的数据库 * $db->select("db")->query(); 返回mysql数据库中的db表数据 * $db->select("db")->field(array("host","db"))->query(); 返回mysql数据库中的db表ho...
true
49c6b904a29f9491b8c993f83084b8d7a465c114
PHP
laht/jj222kc_webbutveckling_med_php
/base/view/View.php
UTF-8
2,608
2.84375
3
[]
no_license
<?php namespace base\view; require_once("common/view/Page.php"); class View { //member variables for dependencies private $loginView; private $postView; private $registerView; private $commentsView; //initiate member variables public function __construct(\login\view\LoginView $loginView, \posts\vie...
true
698db6701fe3fccb9ef3a8eb885202fec52e9a5c
PHP
guoyu07/php_test_file
/peanut_array_count_values.php
UTF-8
196
2.5625
3
[]
no_license
<?php $a = array(1,2,3,4,1,2,3,4,"as","cs","cs","bs","as",array()); print_r(array_count_values($a)); echo "\r\n-------------------------------------\r\n"; print_r(peanut_array_count_values($a));
true
371a6f81a6fe1e4b9ec7a8c45996a0e7e20c45fa
PHP
flukedit/igdb-php-wrapper
/src/Requests/Base.php
UTF-8
922
2.78125
3
[]
no_license
<?php namespace Flukedit\IgdbPhpWrapper\Requests; use Flukedit\IgdbPhpWrapper\Client; abstract class Base { /** @var Client */ protected $client; /** @var string */ protected $method = 'POST'; /** @var string */ protected $endpoint; /** @var array */ protected $defaultFields = []; ...
true
aa5d4d435a5f89042e61b1d2a3b5e881b819ff8f
PHP
appgears/AppGearPlatformBundle
/src/PlatformBundle/Twig/AtomExtension.php
UTF-8
3,576
2.609375
3
[]
no_license
<?php namespace AppGear\PlatformBundle\Twig; use AppGear\PlatformBundle\Service\TaggedManager; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Расширение делает доступными в шаблонах атомы, помеченные соответствующим образом * * @package AppGear\PlatformBundle\Twig */ class AtomExtension exte...
true
a5e7cfc9fd681ab2958da4b6219467b20779cffc
PHP
Nadiasalsabil/jamming-website
/control/art.php
UTF-8
361
2.546875
3
[]
no_license
<?php class Library { public function __construct() { $this->db = new PDO('mysql:host=localhost;dbname=jamming','root',''); } //CRUD J-Article //show public function showArt() { $sql = "SELECT * FROM j_article ORDER BY id_article DESC"; $query = $this->db->query(...
true
0d0ad0d71e58b7914b5cea7e61414352708dc78e
PHP
Spameri/TravianZ
/app/GameModule/Model/MData/MDataModel.php
UTF-8
635
2.609375
3
[]
no_license
<?php namespace App\GameModule\Model\MData; use App; class MDataModel extends App\Model\BaseModel { protected $table = 'mdata'; /** * @param int $uid * @return array */ public function getUnread($uid) { return $this->database->select('*')->from($this->table) ->where('viewed != 1') ->where('send =...
true
50e37d5603298534055c145ef5c1406f1ff63eb1
PHP
barbazul/magento-2.3
/app/code/DrubuNet/Andreani/Model/Source/Modo.php
UTF-8
530
2.515625
3
[]
no_license
<?php namespace DrubuNet\Andreani\Model\Source; /** * Class Modo * * @description Opciones customizadas para seleccionar el modo habilitado del metodo de pago. * @author * @package DrubuNet\Andreani\Model\Source */ class Modo { /** * Options getter * * @return array */ public functio...
true
50553593b9d0a7b97517a9c0d65c05f538a73c57
PHP
gitter-badger/php-api-client
/src/EtkinlikApi/Service/IlceService.php
UTF-8
1,612
2.71875
3
[]
no_license
<?php namespace EtkinlikApi\Service; use EtkinlikApi\Container; use EtkinlikApi\Exception\BilinmeyenDurumException; use EtkinlikApi\Exception\KayitBulunamadiException; use EtkinlikApi\Exception\YetkilendirmeException; use EtkinlikApi\Model\Ilce; use Exception; use Httpful\Response; class IlceService { /** * ...
true
db866d0395d1dc8ac6de2a4be838fdf08894f0e2
PHP
mehdibo/42Intra
/src/Request.php
UTF-8
2,182
2.96875
3
[]
no_license
<?php namespace Spoody\Intra; class Request { /** * @var \Zend\Http\Client */ private $client; /** * @var IntraToken */ private $token; private $api_endpoint; public function __construct(\Zend\Http\Client $client, string $api_endpoint, \Spoody\IntraToken $token) { ...
true
a12d578f1c0d3b2fa450502b98cb6ff3a2f80848
PHP
munny006/E-Commerce-Blog
/admin/views/manage-product-view.php
UTF-8
1,312
2.71875
3
[]
no_license
<?php $obj_adminBack = new adminBack(); $product_info = $obj_adminBack->display_product(); if (isset($_GET['prostat'])) { $proid = $_GET['id']; if ($_GET['prostat'] == 'delete') { $msg = $obj_adminBack->delete_product($proid); } } ?> <h2>Manage product</h2> <?php if (isset($msg)) { echo $msg; } ?> <table clas...
true
fccaa33a9c76b75a3064eba3a5b6ddff84c387ad
PHP
bnsoufiane/ifr
/app/start/global.php
UTF-8
3,944
2.625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Register The Laravel Class Loader |-------------------------------------------------------------------------- | | In addition to using Composer, you may use the Laravel class loader to | load your controllers and models. This is use...
true
391155624c0d1ee672110ccac0853df3236882df
PHP
crswan/girl-scouts
/php/test.php
UTF-8
2,197
3.3125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Wendy's PHP samples</title> </head> <body> <table wid...
true
48c994b4bb0ba5a5728bccbe93c8ce031a8f84d9
PHP
khoaanh2212/karamba-backend
/src/AppBundle/DomainServices/DealerBackgroundImageDomainService.php
UTF-8
1,020
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: sergi * Date: 28/07/16 * Time: 16:41 */ namespace AppBundle\DomainServices; use AppBundle\Entity\DealerBackgroundImage; use AppBundle\Registry\DealerBackgroundImageRegistry; use Symfony\Component\HttpFoundation\File\UploadedFile; class DealerBackgroundImageDomainSer...
true
e8271e7b2a4f008a0e39dcf03f28e39db67ede36
PHP
moiz-alnoor/php-my-business
/Models/M_Employee.php
UTF-8
2,682
2.640625
3
[]
no_license
<?php class M_Employee extends D_Employee { public function insert(){ if(isset($this->new_emp) and ($this->emp_name)){ $connect_db = new connect_db(); $this->sql = $connect_db->query("insert into emp (company_name,company_key,manager_key,emp_key,emp_name,job_type_in,tel,...
true
56c648f025ec802b696f2e8d8140a920d17520fe
PHP
Yuzunoha/labot-task-yuzunoha
/php-pre-challenge2/index.php
UTF-8
537
3.9375
4
[]
no_license
<?php $array = array(3, 2, 1, 4, 15, 18, 13, 99, 77, 66, 1, 100, 0); bubbleSort($array); print_r($array); function swap(array &$a, int $idxLeft, int $idxRight): void { $tmp = $a[$idxLeft]; $a[$idxLeft] = $a[$idxRight]; $a[$idxRight] = $tmp; } function bubbleSort(array &$a): void { $len = count($a); for ($i ...
true
f20f190d7b106be6548766505478ecec05fec9a7
PHP
santoshsakate/restaurant_managment
/saveUser.php
UTF-8
1,130
2.578125
3
[ "MIT" ]
permissive
<?php require_once 'dbconnection.php'; if(!empty($_POST)){ $first_name= $_POST['first_name']; $last_name= $_POST['last_name']; $address= $_POST['address']; $city= $_POST['city']; $country= $_POST['country']; $postal_code= $_POST['postal_code']; $username= $_POST['username']; $password= $_POST['password']; $role= $_PO...
true
a314ead642673133e514e8a632b423cfac7a51c9
PHP
dineshkumargovindaraj/Halifax-Science-Library
/public_html/project/addTransaction.php
UTF-8
3,801
2.671875
3
[]
no_license
<html> <head> <title> addTransaction.php </title> </head> <body background="book.png"> <h2><b><u><font color='#c42170'>Form to add a new Transaction...</font></u></b></h2> <form method="POST"> &emsp;&emsp;&emsp;Customer ID&emsp; <input type="text" name="customerID"><p> &emsp;Purchased Items ID &emsp;&emsp;&emsp;&emsp...
true
a3886a7dae5c5643bef5e3242eb9c142d0b362a7
PHP
picoss/SMoney
/src/SMoneyError.php
UTF-8
1,528
2.828125
3
[ "MIT" ]
permissive
<?php namespace Picoss\SMoney; use GuzzleHttp\Message\RequestInterface; use GuzzleHttp\Message\ResponseInterface; class SMoneyError { /** * Code * * @var string */ protected $Code; /** * ErrorMessage * * @var string */ protected $ErrorMessage; /** * ...
true
588f94bb64dd4e98fa66b81202c3aa817fc8a719
PHP
dimitrybatishchev/burrito-php-framework
/index.php
UTF-8
1,584
2.5625
3
[]
no_license
<?php // подключаем необходимые файлы define('ROOT', dirname(__FILE__)); require_once('SplClassLoader.php'); $loader = new SplClassLoader(null, ROOT.'\lib\\', ROOT.'\src\\'); $loader->register(); $app = new Burrito\Framework\Application(); $app->run(); /** $dbh = new \PDO('mysql:host=localhost;dbname=fram...
true
f77c538fdd291db5ef76b1f56cc9b668ce70ffc1
PHP
thanhvunguyen/arduino
/shared/libraries/Logger/Log4php.php
UTF-8
3,987
2.65625
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * ログドライバ - Log4php * * @author Yoshikazu Ozawa */ class APP_Log_driver_log4php { protected $_levels = array( 'FATAL' => '0', 'ERROR' => '1', 'WARN' => '1', 'DEBUG' => '2', 'INFO' => '3', ...
true
5ddafd9aca0264a3ad745f0e5a8a48a0904a803d
PHP
toilaloc/connect-db-package
/tests/ConnectDBTest.php
UTF-8
898
2.5625
3
[]
no_license
<?php namespace Tests; use PHPUnit\Framework\TestCase; use App\Database; class ConnectDBTest extends TestCase { public $success = true; public function testConnectPostgresql() { $db = pg_connect("host=some-postgres dbname=postgres user=postgres password=123"); if($d...
true
54cbf3ea5140a9e8fc5e09900e19a2548bbaa465
PHP
AlexanderKosianchuk/luche
/src/component/ChannelComponent.php
UTF-8
13,295
2.59375
3
[ "MIT" ]
permissive
<?php namespace Component; class ChannelComponent extends BaseComponent { const NO_COMPRESSION = 'none'; const AROUND_RANGE_COMPRESSION = 'aroundRange'; const GENERAL_COMPRESSION = 'general'; public static function getNoCompressionType() { return self::NO_COMPRESSION; } public sta...
true
04038dc5ead503f3139292ebed51f849daaf513d
PHP
munusphp/munus
/src/GenericMatch.php
UTF-8
1,794
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Munus; use Munus\Collection\GenericList; use Munus\Exception\MatchNotFoundException; use Munus\Exception\MultipleDefaultCasesException; use Munus\Match\DefaultCase; use Munus\Match\MatchCase; /** * @template T */ class GenericMatch { /** * @var T */ priva...
true
2e6dbef7bbc19a6bc815981fde54906951709aca
PHP
Souvik-d-cr7/souvik.github.com
/ps_7.php
UTF-8
842
3.046875
3
[]
no_license
<?php $math = $_POST['math']; $phy = $_POST['phy']; $chem = $_POST['chem']; $eng = $_POST['eng']; $be = $_POST['be']; if($math > $phy and $math > $chem and $math > $eng and $math > $be){ echo "Highest marks among the all five subject is in Mathematics = ". $math; } elseif($phy > $math and $phy > $chem ...
true
91a69847e4dd4fce07dc44a2e19cff42fe4d96e8
PHP
giovaninogueira/ARESP-PHP
/Data/Controller/Fornecedor.class.php
UTF-8
4,102
2.546875
3
[ "MIT" ]
permissive
<?php /** * Skyfall Micro-Framework * Generate ORM Controller * Version 1.0.0 */ namespace Data\Controller; use Data\Model\Fornecedor as modelForncedor; use SkyfallFramework\Common\Exception\ExceptionFramework; use SkyfallFramework\Common\Utils\Utils; class Fornecedor { /** * Skyfall Micro-Framework * Controller...
true
8cf46743f81c5737abcae501c9cd8f6ae33fd918
PHP
rueduphp/octo
/lib/app.php
UTF-8
24,302
2.5625
3
[ "MIT" ]
permissive
<?php namespace Octo; use ArrayAccess as AA; use Closure; use GuzzleHttp\Psr7\Response as Psr7Response; use Psr\Http\Message\ServerRequestInterface; use Zend\Expressive\Router\FastRouteRouter; class App implements AA, AppInterface { use Macroable; protected static $ins...
true
9c75a0aec7b944e6e01bb697ec2714cf15408298
PHP
NorthArea/design
/patterns/php/src/Behavioral/Mediator/Conceptual/ComponentTwo.php
UTF-8
352
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Behavioral\Mediator\Conceptual; use App\Behavioral\Mediator\Conceptual\Contracts\AbstractComponent; class ComponentTwo extends AbstractComponent { public function doC(): void { $this->mediator->notify($this, "C"); } public function doD(): void { $this->media...
true
739d1229d96360bfdf84604a34bd046d00807fd1
PHP
Around-You/TMY-Management
/module/Application/src/Application/Form/StaffForm.php
UTF-8
3,606
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Application\Form; use Zend\Form\Form; use Zend\ServiceManager\ServiceLocatorInterface; class StaffForm extends Form { /** * * @param ServiceLocatorInterface $sl * @return Application\Form\MemberForm */ public static function getInstance(ServiceLocatorInterface $sl) { ...
true
55a609f7c1004bbedd082b674b65b1d631b3fe03
PHP
tahitinuiarena/themes
/functions/crumble-sharethis-widget.php
UTF-8
3,372
2.609375
3
[]
no_license
<?php add_action('widgets_init','CrumbleMagazine_sharethis_load_widgets'); function CrumbleMagazine_sharethis_load_widgets(){ register_widget("CrumbleMagazine_ShareThis_Widget"); } /* ========================================================================== Widget class. This class handles ever...
true
c662ccc1777d5dd3a84a0d78cfe23f5337fa40c7
PHP
Tier27/mbc
/box/MBC/imagene/places.php
UTF-8
3,068
2.640625
3
[]
no_license
<?php require_once("functions.php"); ?> <?php $pagename='places'; ?> <div class='big-container'> <?php if (isset($_GET) && !empty($_GET)) { print_r($_GET); print_r($_POST); $Place = $_GET['Place']; $Region = $_GET['Region']; $PID = get_set_id($Place); $RID = get_set_id($Region); echo $Place.' goes to '.$...
true
c66e9571410f4ee879592ddee9900b8cdd0bcfbd
PHP
cha63506/library-324
/extensions/CompareProduct.php
UTF-8
1,625
2.953125
3
[]
no_license
<?php namespace vendor\definer\library\extensions; use yii; /** * Class CompareProduct - Класс для добавления товаров в сравнение. * * Добавить в конфигурацию компонент * * 'compare' => [ * 'class' => 'vendor\definer\library\extensions\CompareProduct', * ], * * Пример использования: * ... * // Инициа...
true
a0b7af78ad165d15e8d2b21f84e1b0ce44f6d7b6
PHP
ObserverOfTime/7SegmentDisplays
/PHP/PHP.php
UTF-8
401
3.234375
3
[ "GLWTPL", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function invalid($string) { return preg_match('/[gkmqvwxzio]/i', $string); } $longest = ''; $maxlen = 0; foreach (file('words.txt') as $word) { if (!invalid($word)) { if (strlen($word) == $maxlen) { $longest .= $word; } elseif (strlen($word) > $maxlen) { $longest...
true
99cf9bdbe8f6f6a03c511af01f3bf720a9a744a0
PHP
DOMEYD/DeviLanV3
/src/UA/BlogBundle/Entity/FAQ.php
UTF-8
1,383
2.578125
3
[]
no_license
<?php namespace UA\BlogBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * FAQ * * @ORM\Table(name="_faq") * @ORM\Entity */ class FAQ { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** ...
true
077ebb03f609e8f358b9a700805243c9b7bf766b
PHP
keyvan21904/Store
/welcome.php
UTF-8
3,321
2.515625
3
[]
no_license
<!-- <script type="text/javascript"> $(document).ready(function($) { $.cookie("userme=yyy"); }); </script> --> <!-- <?php echo 'امروز ' . farsiDate(date('Y-m-d H:i:s'), "l d F ماه Y-H:i"); ?> --><?php if (@$_SESSION['username']): ?> <div> Welcome <?php echo $_SESSION['username']." <br> ".$_SESSION['email'] ?>...
true
69a775ecf01ad8d464b2ee3f01c7605fa428c0fe
PHP
abuc1998/php-functions
/functions.php
UTF-8
1,574
3.484375
3
[]
no_license
<?php //functions //$sentence="the quick brown fox jumped over a lazy dog"; // //echo strtoupper($sentence); //"<br>"; //$upper=strtoupper($sentence); // //echo "upper case version is<br> $upper" ; //$sentensi="THIS IS A BOY"; // //echo strtolower($sentensi); $name="Abraham kimutai"; echo str_word_count($name); ...
true
ffc7558dde74ad7d061fd16693609182e653f8f1
PHP
maxnik/textino
/application/libraries/Safe_pagination.php
UTF-8
422
2.6875
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); class Safe_pagination { public function __construct($page, $per_page, $total_items) { $this->per_page = $per_page; $this->total_items = $total_items; $this->total_pages = ceil($total_items / $per_page); $this->page = ($page < 1 || ...
true
34f335ce490ada83987e44bd7120d1db29206abc
PHP
karayabin/universe-snapshot
/universe/Ling/BeeFramework/Notation/String/StringParser/ExpressionDiscoverer/CandyExpressionDiscoverer.php
UTF-8
2,927
2.96875
3
[]
no_license
<?php /* * This file is part of the BeeFramework package. * * (c) Ling Talfi <lingtalfi@bee-framework.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ling\BeeFramework\Notation\String\StringParser\ExpressionDiscove...
true
28ff86d2fc4984aade21c68418e9794c21ed7830
PHP
progmedia/markdownable
/src/Markdownable/Tag/Blockquote.php
UTF-8
601
3.09375
3
[ "MIT" ]
permissive
<?php /** * Markdownable * * @author Phil Bennett (@philipobenito) * @license MIT (see LICENSE file) */ namespace Markdownable\Tag; /** * Blockquote */ class Blockquote implements ParserInterface { /** * {@inheritdoc} */ public function parse($node) { $content = trim($node->nodeVa...
true
211a34105b99b9ab920f4f680c8c262a19bf77e1
PHP
inglis-dl/beartooth
/api/ui/widget/appointment_add.class.php
UTF-8
3,621
2.765625
3
[]
no_license
<?php /** * appointment_add.class.php * * @author Patrick Emond <emondpd@mcmaster.ca> * @package sabretooth\ui * @filesource */ namespace sabretooth\ui\widget; use sabretooth\log, sabretooth\util; use sabretooth\business as bus; use sabretooth\database as db; use sabretooth\exception as exc; /** * widget appo...
true
1be9ff36aef08e116b2781baf1c548c7a57df996
PHP
thofik93/anakbeken
/libs/class/DB.php
UTF-8
5,451
2.796875
3
[]
no_license
<?php class DB { var $date; var $call; function DB ($hostname,$username,$dbname,$dbpass) { $this->date = date("M")."_".date("d")."_".date("Y"); $this->call = new PDO('mysql:host='.$hostname.';dbname='.$dbname.';charset=utf8', $username, $dbpass); $this->call->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMOD...
true
a65b4cae3045658f77515cde22ccfb645e0514f6
PHP
muxiaofefei/pkp-10suiji
/show.php
UTF-8
1,096
2.65625
3
[]
no_license
<a href="#" onclick="javascropt:location.href = document.referrer;">返回</a> <?php header("Content-type:text/html;charset=utf-8"); //禁用错误报告 // error_reporting(0); require_once('conn.php'); $id = $_GET["id"]; // 处理连接错误 try { // 连接数据库 $conn = new PDO("mysql:host=$mysql_server_name;dbname=$mysql_database", $mysql_u...
true
747fe6d7a5d2b033c4de4dd938b9f586f35ddbd1
PHP
jintuchad/cvp
/app/controllers/UserController.php
UTF-8
6,681
2.5625
3
[]
no_license
<?php use Cvp\Repos\User\UserRepository; use Cvp\Services\UserService; use Cvp\Mailers\UserMailer; class UserController extends \BaseController { protected $userRepo; protected $userService; /** * Create a new controller instance. * * @param UserRepository $userRepo * @param UserService $userService ...
true
2798114673f323e324e8ca764d37bd987f042748
PHP
ashtonG/ramp
/tests/application/models/BasicFieldTest.php
UTF-8
15,567
2.53125
3
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
<?php require_once 'TestConfiguration.php'; class models_BasicFieldTest extends PHPUnit_Framework_TestCase { public function setUp() { // Reset database to known state TestConfiguration::setupDatabase(); } public function testSpecifyingOnlyFieldName() { $testName = 'MyField...
true
cad0000ab4c895cd0db78b8dd01695d7a2e26920
PHP
Sywooch/raketos
/common/models/Invoice.php
UTF-8
2,196
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "invoice". * * @property integer $id * @property integer $sum * @property integer $id_ads * @property integer $id_tariff * @property integer $id_user * @property integer $status * @property integer $created_at * @property integ...
true
100dd02de54e2dd17834cb081b6540f5daacf077
PHP
ywhpeter/headl
/controller/index/page.php
UTF-8
2,522
2.578125
3
[]
no_license
<?php include '../core/db.php'; class page extends db { const PER_PAGE = 6; //首页 public function index() { //接受分类id if (isset($_GET['cid'])) { $cid = $_GET['cid']; } else { $cid = 1; } //接受page if (isset($_GET['page'])) { ...
true
2cde5069ec5e379306153abb2d82fc4d2ad81dbf
PHP
gazsp/web-apps
/code/001-login-form/index.php
UTF-8
553
3.0625
3
[]
no_license
<?php // Start a session to store the user logged in status session_start(); $logged_in = false; $username = 'hello@example.com'; $password = 'password'; // Has the user submitted the form? if (!empty($_POST)) { if (isset($_POST['username']) && isset($_POST['password'])) { if ($_POST['username'] == $use...
true
3bad5bdfd0dba50caec08bcb057683873aba3f49
PHP
honkkki/php-design
/Common/Register.php
UTF-8
384
2.96875
3
[]
no_license
<?php namespace Common; // 注册树模式 class Register { // 把对象存在一个数组里 protected static $array; static function set($alias, $ob) { self::$array[$alias] = $ob; } static function get($alias) { return self::$array[$alias]; } static function _unset($alias) { un...
true
f59c55aae2af7023e4d3eb2df4c9bf6fd3ca0faa
PHP
St-Vlad/blog
/app/core/View.php
UTF-8
1,075
2.875
3
[]
no_license
<?php namespace App\Core; class View { public function render(Page $page) { return $this->renderLayout($page, $this->renderView($page)); } private function renderLayout(Page $page, $content) { $layoutPath = $_SERVER['DOCUMENT_ROOT'] . "/app/project/layouts/{$page->getLayout()}.php...
true
6b2056a7f617c06b61e3ef0bf553683d6fcdbfad
PHP
xVICTORx/mair3d
/Tienda/application/models/service/subcategoriaservice.php
UTF-8
2,279
2.5625
3
[]
no_license
<?php class SubCategoriaService extends CI_Model { private $subcategoriaDao; private $categoriaDao; public function __construct() { parent::__construct(); $this->subcategoriaDao = new SubcategoriaDao(); $this->categoriaDao = new CategoriaDao(); } public functi...
true
34c9051c35de800dae6ceac90867499f45cc0ae2
PHP
vnsepulveda/challengeFALABELLA
/challengeFalabella.php
UTF-8
751
3.390625
3
[]
no_license
<html> <head> <title>Challenge FALABELLA</title> </head> <body> <?php $opciones = ["Falabella", "IT", "Integraciones"]; $multiplos=array(); for ($i = 1; $i <= 100; $i++){ echo chequeoMultiplo($i, $multiplos, $opciones)."<br>"; } function chequeoMultiplo($i, $multiplos, $opciones){ ...
true
f55787a8d6fe0cea57dd851e54ca7c60f54a9502
PHP
podolskivlad/gift.of.by123
/send.php
UTF-8
1,397
2.65625
3
[]
no_license
<meta charset="utf-8"> <?php $urok="Заказ елок"; error_reporting( E_ERROR ); //Отключение предупреждений и нотайсов (warning и notice) на сайте // создание переменных из полей формы if (isset($_POST['name1'])) {$name1 = $_POST['name1']; if ($name1 == '') {unset($name1);}} if (isset($_POST['phone1'])) {$phon...
true
877fa63b28475146eb215f399efca3095baa4987
PHP
phan/phan
/src/Phan/Language/Element/Property.php
UTF-8
17,224
2.65625
3
[ "Apache-2.0", "ISC", "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phan\Language\Element; use ast; use Closure; use Phan\AST\ASTReverter; use Phan\Exception\IssueException; use Phan\Issue; use Phan\Language\Context; use Phan\Language\FQSEN\FullyQualifiedClassName; use Phan\Language\FQSEN\FullyQualifiedPropertyName; use Phan\Language\Scope\Pr...
true
269ca23b897e33994c2ffeead0e8bd1604b2f35b
PHP
DiszaJatnika/BahanAjarPHP
/Form.php
UTF-8
1,167
2.921875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <form action="#" method="get"> Masukan Angka 1 : <input type="text" name="angka1"> <br><br> Masukan Angka 2 : <input type="text" name="angka2"> <br><br> <button>Proses</button> </form> </body> </html> <?php @$angka1 = $_GET['angka1']; @$ang...
true
2ba153510e534ff408bd6c01b9925f664127347b
PHP
pestphp/pest
/src/Repositories/TestRepository.php
UTF-8
6,092
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Pest\Repositories; use Closure; use Pest\Contracts\TestCaseFilter; use Pest\Contracts\TestCaseMethodFilter; use Pest\Exceptions\TestCaseAlreadyInUse; use Pest\Exceptions\TestCaseClassOrTraitNotFound; use Pest\Factories\TestCaseFactory; use Pest\Factories\TestCaseMethodFactory...
true
d15ece1da6a13bc224624b09916bcb66cc32fef5
PHP
jeminic/php-issue
/totalvotes.php
UTF-8
468
2.828125
3
[]
no_license
<?php $conn = mysqli_connect("localhost" , "root" , "" , "campusmights"); if ($conn-> connect_error){ die("connection failed:" . $conn-> connect_error); } $sql= "SELECT SUM(TOTAL_VOTES) AS value_sum FROM totalvotes"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of...
true
8245de000cef8caf785cbe145f2627560d1f461d
PHP
ebukaodini/ejustice
/public/@api/signin.php
UTF-8
671
2.625
3
[]
no_license
<?php /** * Summary: the device is signed to an officer with the officer_badge_no after confirming that the officer_badge_no exist on the server * */ include ('../includes.php'); $officer_badge_no = isset($_REQUEST['officer_badge_no']) && (trim($_REQUEST['officer_badge_no']) != null) ? $_REQUEST['officer_badge_no...
true
9a89b8a87e66fb639338b1cf81e9b866461878ee
PHP
zhouxinxin1994/-interactive
/php/sendmail.php
GB18030
1,831
2.546875
3
[ "Apache-2.0" ]
permissive
<?php header('Content-type:text/html;charset=UTF-8'); date_default_timezone_set('PRC'); require_once("PHPMailer-master/language/phpmailer.lang-zh_cn.php"); require_once("PHPMailer-master/src/PHPMailer.php"); require_once("PHPMailer-master/src/SMTP.php"); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP;...
true
cb100faf4a1a2c4a5ab0adf250b522c487833223
PHP
Stefan-Chonov-zz/Dopamine
/api/app/routes/News.php
UTF-8
8,465
2.765625
3
[]
no_license
<?php use App\Core\Helpers\RequestMethod; use App\Core\Helpers\StringExtensions; use App\Core\Log; use App\Models\News as NewsModel; use App\Routes\BaseRoute; use App\Core\Helpers\ResponseFormat; use App\Core\Response; class News extends BaseRoute { private $log; private $newsModel; /** * Country co...
true
bd34905f395946bc2f9f32a9f8f30fa156b488bd
PHP
Jornhn/TripleXL
/src/Controller/CvsController.php
UTF-8
7,929
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Emil * Date: 11-01-17 * Time: 09:35 */ namespace App\Controller; class CvsController extends AppController { // In this public string the video path name is stored public $video = null; // This function gets all the CVs who are from the user where u logged i...
true
4028771de12363da7cdd3e98c7c5bdf665ceb2c0
PHP
vahitserifsaglam1/GemFramework
/Application/Components/Database/Helpers/Pagination.php
UTF-8
2,419
3.0625
3
[]
no_license
<?php /** * Gem Framework Pagination sınıfı -> Sayfalama İşlemlerinde Kullanılır * * @package Gem\Components\Database\Helpers * @copyright (c) 2015, MyfcYazilim * @author vahitserifsaglam <vahit.serif119@gmail.com> * @version 1.0 */ namespace Gem\Components\Database\Helpers...
true
9fa5ad9e2337f1b87e22d9a9a613607051e2c91d
PHP
shahsbrothers/shahsbrothers.com.pk
/admin/core/edit_user.php
UTF-8
1,212
2.71875
3
[]
no_license
<?php // Include config file include_once ('conn.php'); $errors = array(); // array to hold validation errors $data = array(); // array to pass back data if($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST['new_pass_e'])) $errors['error'] = 'New Password Cannot ...
true
ebe04cdfbfc0cc68783363cbede21d2319170132
PHP
Geeklog-Core/test-framework
/testpackage/suite/geeklog/system/classes/uploadClassTest.php
UTF-8
8,780
2.6875
3
[]
no_license
<?php /** * Simple tests for the upload class * * Obviously, we can't really test the upload functionality. So test at least * the getter / setter methods. */ require_once 'PHPUnit/Framework.php'; require_once 'tst.class.php'; require_once Tst::$root.'system/classes/upload.class.php'; class uploadClass extends PHPU...
true
6e7218e7aff2d1c116507d80276e77a6282c8d49
PHP
alyazidade/ya
/operator/kebutuhan-tambah.php
UTF-8
2,077
2.515625
3
[]
no_license
<?php include "class/kebutuhan.php"; $kebutuhan = new Kebutuhan(); if(isset($_POST['submit'])){ $nama_kebutuhan = $_POST['nama_kebutuhan']; $tanggal = $_POST['tanggal']; $data = "'$nama_kebutuhan', '$tanggal'"; $tambah = $kebutuhan->tambah($data); if ($tambah) { header("Location: operator.php?page=kebut...
true
4b93ff4f755686a0e9260f452725b8fdae882849
PHP
sada059/maxlife
/send.php
UTF-8
1,421
2.796875
3
[]
no_license
<?php foreach ($_POST as $key => $value) { if (($key <> 'question' and strlen($value) > 100) or strpos($value, '=') > 0) { exit("invalid variable"); } } require_once "/usr/share/php/Mail.php"; $to = "foodstorage@maxlifefoods.com"; $from = "foodstorage@maxlifefoods.com"; $email = $_POST['em...
true
4004906e9844f27f01ecbe8c30b37974b356caa3
PHP
prosvetovEvgeniy/ideabank
/common/models/repositories/comment/CommentRepository.php
UTF-8
4,557
2.890625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\repositories\comment; use common\models\activerecords\Comment; use common\models\builders\CommentEntityBuilder; use common\models\entities\CommentEntity; use common\models\interfaces\IRepository; use yii\db\Exception; use Yii; use common\models\interfaces\IEntity; /** * Class CommentRe...
true
08cd2aa96e5183265477544aee37b38f56fc7768
PHP
nehapraveer/tripping-nemesis
/menu.php
UTF-8
1,589
2.515625
3
[ "MIT" ]
permissive
<?php function activeClass($page) { $cur_page = get_page_name(); if ($cur_page == $page) { return "active"; } return ""; } ?> <div class="masthead clearfix"> <div class="inner"> <span class="logo"> <canvas id="logo" class="logo-canvas" width="70" height="70"> ...
true
d5dc0b9e8dccd8e20ece8ca39607db1ec54c69b4
PHP
jvish2030/Online-Notes-App
/forgotpassword.php
UTF-8
4,479
2.8125
3
[]
no_license
<?php // <!--start session--> // <!--connect to the database--> include('connection.php'); // <!--check user input--> // <!-- define error msg--> $missingEmail = '<p><strong>Please enter your email address!</strong></p>'; $invalidEmail = '<p><strong>Please enter a valid email address!</strong></p>'; //...
true