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
3107e46399f1df46aba22ddf499376e0644c5c59
PHP
dyninc-cs/DNS-Print_Zones_Or_Nodes
/PHP/pnz.php
UTF-8
6,939
2.6875
3
[]
no_license
#!/usr/bin/php <?php #This script will print out either a list of all zones or a list of all nodes and optionally write them to a file #The credentials are read out of a configuration file in the same directory named conifg.ini in the format: #Usage: %php pnz.php [-z|-n] [options] #Options: #-h, --help Show this he...
true
9e754049b3407d32459c9ec618853594ac3ce256
PHP
jberns88/metoffice
/examples/tomorrowDayForecast.php
UTF-8
878
2.953125
3
[]
no_license
<?php use Jberns88\MetOffice\Client; require __DIR__ . '/autoload.php'; //You're API key from the MetOffice $client = new Client(['key' => '<API KEY>']); $locations = $client->getForecastLocations(); foreach ($locations as $location) { try { $forecasts = $location->getDailyForecasts(); $day = ...
true
12f7b95530bdcf56486ae4f85edffe6f7304ff7c
PHP
thomson470/public
/php/slim-doctrine/app/src/com/sprint/sms/api/dao/RoleDao.php
UTF-8
1,920
2.578125
3
[]
no_license
<?php namespace App\com\sprint\sms\api\dao; use \App\com\sprint\sms\api\base\BaseDao; use \App\com\sprint\sms\api\bean\Page; use \App\com\sprint\sms\api\domain\Role; use \App\com\sprint\sms\api\util\AppConstant; use \App\com\sprint\sms\api\util\DaoUtil; use \App\com\sprint\sms\api\util\StringUtil; class RoleDao exten...
true
8d59519ab9da0a402da3b2497aa94285c355dcf9
PHP
KilianLdev/Lespotagersducoin
/db.php
UTF-8
404
2.625
3
[]
no_license
<?php function db_connect(){ try { $host = "localhost"; $dbname = "lespotagersducoin"; $user = "root"; $password = "root"; $db = new PDO('mysql:host='.$host.';dbname='.$dbname.'', $user, $password); return $db; } catch (Exception $e) { die('ERREUR : '.$e->getMessage())...
true
5c0f0df599e3b1fbc60b7c24e59cc9e82bf2e5b8
PHP
rezozero/canonical-email
/src/Strategy/GSuiteStrategy.php
UTF-8
2,198
2.65625
3
[ "MIT" ]
permissive
<?php namespace RZ\CanonicalEmail\Strategy; use Assert\Assert; use Assert\AssertionFailedException; use RZ\CanonicalEmail\Exception\EmailNotSupported; /** * Class GSuiteStrategy * * @package RZ\CanonicalEmail\Strategy * @see https://support.google.com/mail/answer/10313?hl=fr */ class GSuiteStrategy implements C...
true
84797fcb7e3f71bf82c4506b68239317f1b826b5
PHP
inunosinsi/soycms
/cms/common/action/site/Block/RemoveAction.class.php
UTF-8
417
2.609375
3
[]
no_license
<?php class RemoveAction extends SOY2Action{ private $id; function setId($id){ $this->id = $id; } function execute(){ $logic = SOY2Logic::createInstance("logic.site.Block.BlockLogic"); $pageId = $logic->getById($this->id)->getPageId(); $logic->delete($this->id); ...
true
419e0d22072e290173b2e8bdee264cf5d2aa1cbb
PHP
fatpixel/simulator
/app/Bootstrap.php
UTF-8
3,119
2.546875
3
[ "MIT" ]
permissive
<?php namespace SimpleZoo; use League\Container\Container; use League\Plates\Engine; use League\Route\Http\Exception\NotFoundException; use League\Route\RouteCollection; use Okneloper\Session\Session; use RuntimeException; use Zend\Diactoros\Response; use Zend\Diactoros\Response\SapiEmitter; use Zend\Diactoros\ServerR...
true
471d3ba8f52a4c5e5b85eefcbcaab0131ce2f289
PHP
pgoergler/Quartz
/src/Quartz/Converter/PgSQL/TimeWithTimezoneConverter.php
UTF-8
1,313
2.9375
3
[]
no_license
<?php namespace Quartz\Converter\PgSQL; /** * Description of TimeWithTimezoneConverter * * @author paul */ class TimeWithTimezoneConverter implements \Quartz\Converter\Converter { public function fromDb($data, $type, $typeParameter) { if ($data === 'NULL' || $data === 'null' || $data === null || ...
true
49735144952752c847626ba33b51416373bfbede
PHP
spartacus1994/PHP_Basic_Tutorial
/array_splice.php
UTF-8
290
3.09375
3
[]
no_license
<?php $color=["red","green","blue","yellow"]; $morecolor=["pink","black","white"]; //array_splice($color,start,length); //array_splice($color,2,2); //array_splice($color,-3,2); //for combining two array. array_splice($color,1,3,$morecolor); echo "<pre>"; print_r($color);
true
c8f82056ea9e5f77ba1217f447e0afa8e1cc8a00
PHP
smedlock/snake-game
/index.php
UTF-8
4,972
2.515625
3
[]
no_license
<?php // Turn on error reporting & include required files error_reporting(E_ALL); require_once ('vendor/autoload.php'); require_once ('model/db-functions.php'); require_once ('model/login.php'); include ('model/validate.php'); // Instantiate base, set debug and start session $f3 = Base::instance(); session...
true
9232d7868266f2718617affa2f0f526db2a8b73a
PHP
konutix/przychodnia
/classes/user/UserModel.php
UTF-8
1,493
2.828125
3
[]
no_license
<?php include 'classes/includes.php'; class UserModel extends DbConnect { public function getUserData($id) { $query="select * from users where id=".$id; $select = $this->connect()->query($query)->fetch(); $data['login'] = $select['login']; $data['hash'] = $select['has...
true
91eeea1ec611295c33337c5e5eee39220327ea66
PHP
Al-1117/laravel-relations
/database/seeds/AlbumsTableSeeder.php
UTF-8
839
3.09375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Faker\Generator as Faker; use App\Album; class AlbumsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(Faker $faker) { // Inizializzo un ciclo for per popolare la tabella con il faker; ...
true
2e918866f056f87e474d2e51a4ebdc3a6cfb809c
PHP
HogenYuan/Hogen-wechatBot
/app/Exceptions/Client/ValidationException.php
UTF-8
2,183
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Exceptions\Client; use App\Exceptions\BaseException; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Validator as ValidatorFacade; /** * Class ValidationException * * @package App\Exceptions\Client */ class ValidationException extends BaseException { /** * The validator i...
true
afada0f7244034d530fe58bc0508dc8eada89c38
PHP
Vleks/sdk
/src/Entities/OrderLines.php
UTF-8
1,031
2.59375
3
[ "MIT" ]
permissive
<?php namespace Vleks\SDK\Entities; use Vleks\SDK\Model; use Vleks\SDK\Entities\OrderLine; class OrderLines extends Model { public function __construct($data = null) { $this->fields = array ( 'OrderLine' => array ('value' => array(), 'type' => array(OrderLine::class)) );...
true
aa85e85c8b63a6202cbc852277157b22ba5490e2
PHP
abdulloboy/kutubxona.uz
/common/models/UserM.php
UTF-8
2,761
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "user". * * @property integer $id * @property string $name * @property string $fullName * @property string $department * @property string $position * @property string $telephone * @property string $auth_key * @property string $...
true
64fb30521f2f70ae045f548d1e86ca0df97e51c3
PHP
mounten2657/awork
/lib/database/Model.php
UTF-8
16,390
2.84375
3
[]
no_license
<?php namespace database; /** * 模型类 */ class Model { /** @var int 查询类型 */ const SQL_TYPE_SELECT = 1; /** @var int 插入类型 */ const SQL_TYPE_INSERT = 2; /** @var int 更新类型 */ const SQL_TYPE_UPDATE = 3; /** @var int 删除类型 */ const SQL_TYPE_DELETE = 4; /** @var array 条件运算符 */ const ...
true
ecbc9c068bf15a5a30bf0d02516fb59e9c802d94
PHP
zeniemand/advanced_shop
/models/Category.php
UTF-8
3,126
3
3
[]
no_license
<?php class Category { /** * return array Categories with status = 1 * */ public static function getCategoriesList(){ //Подключаемся к БД: $db = DB::getConnection(); $categoruList = array(); $sql = 'SELECT id, name FROM category ' . ' WHERE status ...
true
93c94ab470aecf664ea7bc74d0859e48465c17f0
PHP
TiagoSilva2000/lp3-compra-certa-backend
/php/www/src/utils/ControllerHelper.php
UTF-8
378
2.8125
3
[]
no_license
<?php use Psr\Http\Message\ResponseInterface as Response; class ControllerHelper { public static function formatResponse(Response $response, mixed $content): Response { $arr = (array) $content; $payload = json_encode($arr); $response->getBody()->write($payload); return $response->withH...
true
890b2d6ca20a4602192400b0a2293debb0ced4a0
PHP
gonzalo-esig/TentativeJavascript
/api-rest/reservation/lire_un.php
UTF-8
2,323
2.703125
3
[]
no_license
<?php // Headers requis header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: GET"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-Wit...
true
2f3c70570ec66d9a30aaf6eff9b3b9304868f1c9
PHP
eugeniomartelli/cs
/corpsearch final/Classes/Produtos.php
UTF-8
1,927
2.890625
3
[]
no_license
<?php include_once 'DAO.php'; class Produtos extends DAO{ public function getAll() { $query = DAO::$db->prepare('SELECT * FROM produtos ORDER BY nome'); // $query = parent::$db->prepare('SELECT * FROM produtos ORDER BY nome'); $query->execute(); return $query->fetchAll(); }...
true
74a39d001d8dd7d7a20a7d835bca537dbdca4f03
PHP
Vaseekaran-V/Student-Teacher-Platform
/Updateimg.php
UTF-8
1,680
2.9375
3
[]
no_license
<?php session_start();?> <?php require_once('includes/conn.php'); require_once('includes/functions.php'); ?> <?php if(!isset($_SESSION['userid'])){ header('Location:index.php');} ?> <?php $erros = array(); if (isset($_POST['submit'])) { $delete_user = $_SESSION['userid']; $delete_from='img/'; $im...
true
648adf3fb1a5040d2153ed5f3750b7c1fc0d2b99
PHP
xoopscube/xcl
/xoops_trust_path/modules/xupdate/class/ftp/phpseclib/Crypt/RC2.php
UTF-8
24,244
2.984375
3
[ "BSD-2-Clause", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown", "GPL-2.0-only", "MIT" ]
permissive
<?php /** * Pure-PHP implementation of RC2. * * Uses mcrypt, if available, and an internal implementation, otherwise. * * PHP versions 4 and 5 * * Useful resources are as follows: * * - {@link https://tools.ietf.org/html/rfc2268} * * Here's a short example of how to use this library: * <code> * <?php * ...
true
76b0fc92a24afe141f9ea222738065f37b9b4b48
PHP
AlexisLosenko/PHP-exercices
/1.exercices/3.boucles/index.php
UTF-8
2,286
3.34375
3
[]
no_license
<?php //Exercice 01 $dix=0; //Exercice 02 $un=0; $deux=45; //Exercice 03 $un1=100; $deux1=45; //Exercice 04 $dix1=1; //Exercice 05 //Exercice 06 //Exercice 07 //Exercice 08 ?> <!DOCTYPE html> <html lang="fr"> <head> <title>Les boucles</title> <meta charset="UTF-8"> <link rel="sty...
true
1461ba61c15a5aa0345c5afb161efd30b47273bf
PHP
winglechen/kyphp
/webui/classes/webui/controller/webui.php
UTF-8
612
2.609375
3
[]
no_license
<?php /** * The webui controller * */ namespace Ky\Webui\Controller; class Webui { public static function run() { echo 'I am the controller webui'; $output = ''; $suite = null; $coms = array(); //get view $view = 'default.php'; $layout = ...
true
207467baa99c1643188bdc25766b316dffea0dd9
PHP
TRAD3R/cha
/app/Modules/Console/migrations/m200113_081135_create_swatches_table.php
UTF-8
1,706
2.78125
3
[]
no_license
<?php use yii\db\Migration; /** * Handles the creation of table `{{%swatches}}`. */ class m200113_081135_create_swatches_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('{{%swatches}}', [ 'id' => $this->primaryKey(), ...
true
f9bc2bd559cb20e43335f9bebf406ed82dbac959
PHP
Gabrqueiroz/php7
/Conceitos/ifelse_pratica.php
UTF-8
1,030
3.453125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Curso PHP</title> </head> <body> <h1>If Else Pratica </h1> <?php $cartao_loja= true ;...
true
b775af79249e6cbf6e3db9b55f6732029bd66935
PHP
amidav16/GitHub-Gruppe8
/PHP/login.php
UTF-8
569
2.59375
3
[]
no_license
<?php session_start(); include 'dbh.inc.php'; if (isset($_POST['loginSubmit'])) { $uid = mysqli_escape_string($db, $_POST['uid']); $pwd = mysqli_escape_string($db, $_POST['pwd']); $sql = "SELECT * FROM users WHERE uid='$uid' AND pwd='$pwd'"; $result = $db->query($sql); if(mysqli_num_rows($result) > 0) ...
true
999a03bce33a986c17f1a1ba3339e2c9baaa37dc
PHP
hasan225/php-files
/39 Destructor.php
UTF-8
593
3.984375
4
[]
no_license
<?php class employee{ public $name; public $age; public $salary; // constructor without any arguments // function __construct() // { // echo "hello " ; // } function __construct($name,$age,$salary){ $this->name=$name; $this->age=$age; $this-...
true
4dd4ed7d57337de6e119fbf4e7fa12b2e958b85e
PHP
jeanpul/maintenance-blueportail
/lib/BluePHP/BlueSystem/CallClassHTML.php
UTF-8
710
2.578125
3
[ "Apache-2.0" ]
permissive
<?php error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ini_set('display_errors', true); $params = array( "__class" => null, "__id" => "", "__function" => "render" ); if(PHP_SAPI == 'cli') { $output = array(); parse_str($argv[1], $output); $params = array_merge($params, $output); } els...
true
2b4512611011134d08fa7f39c78e84deb876de1a
PHP
BrunoD77/brunodiasNEUcsye6220Fall2011FP_1
/src/php/FunctionCallView.php
UTF-8
1,158
3.171875
3
[]
no_license
<?php /** Function Call View Class: * This class provides data for the user interface to accomplish the following listed in the Final Project Changes and Additions document * dated: 11/30/11 * * Description: * A user selects a class and then a function in that class. Then the view shows where the function is u...
true
a82b6b5c5db53af872f3c329ba3d729a1c271a42
PHP
JamesMcAvoy/projet-web
/src/controllers/Controller/EventController.php
UTF-8
5,516
2.578125
3
[]
no_license
<?php namespace Controllers\Controller; use Controllers\Controller; use Controllers\Controller\IdeaController as Idea; use Controllers\Controller\PictureController as Pic; use Models\Model; final class EventController extends Controller { public static function index($req, $res) { $session = parent::ge...
true
ca30a62b2bc5292d5a530dfc3bdaada055e7f457
PHP
quocdatphp/project
/banhang/contact.php
UTF-8
5,053
2.578125
3
[]
no_license
<?php require_once __DIR__. "/autoload/autoload.php"; // if (isset($_SESSION['name_id'])) // { // echo "<script>alert('Bạn đã có tài khoản bạn không được vào đây');location.href='index.php'</script>"; // } $data= [ 'name' =>postInput("name"), 'email' =>postInput("email"), 'phone' =>postI...
true
1e74e037228c3300ca551356c07e21489d0d4863
PHP
Ariful-hasan/ccpro
/lib/AgentSessionHelper.php
UTF-8
4,349
2.78125
3
[]
no_license
<?php class AgentSessionHelper { function getSessionChart($bars, $stime, $etime, $busy_labels) { $chart = ''; $chart .= '<table class="chart">'; foreach ($bars as $bar_type=>$bar_points) { $last_draw_point = $stime; $bar_name = $bar_type == 'w' ? 'Work' : ''; if (empty($bar_name)) { $_pause_id = ...
true
2eff72ecf8713c703b74b13e50b1009ef0182a77
PHP
Semburg/some_php
/handle.php
UTF-8
865
2.625
3
[]
no_license
<?php include('db/db.php'); $name = $_POST['name']; $vorname = $_POST['vorname']; $firma = $_POST['firma']; $email = $_POST['email']; $phone = $_POST['phone']; $betreff = $_POST['betreff']; $anruf = $_POST['anruf']; $message = $_POST['message']; echo "Your name: " . $name . '</br>' . "Your vorname: " . $vorname . ...
true
bd807da7dd894697ec3285d7adf36a5b8b0b9ddc
PHP
rendler-denis/rssfeedster
/tests/classes/FeedsterTest.php
UTF-8
2,822
2.53125
3
[]
no_license
<?php /** * Author : Denis-Florin Rendler * Date : 21/09/15 * Copyright (c) 2015 Denis-Florin Rendler <connect@rendler.me> */ namespace KoderHut\RssFeedster\Tests\Classes; use App, PluginTestCase; use KoderHut\RssFeedster\Classes\Feedster, KoderHut\RssFeedster\Classes\Support\Facades\DataSource, Ko...
true
bb6aec5b9d78bf84b7cec9200e07b1b717a268ad
PHP
devenpateldp/ost-sdk-php
/src/Services/V1/Token.php
UTF-8
629
2.8125
3
[ "MIT" ]
permissive
<?php /** * Token class */ namespace OST\V1; /** * Class encapsulating methods to interact with V1 API's for Token module */ class Token extends \OST\Base { /** * Constructor * * @param object $requestObj request object which would fire API calls * */ public function __construct($requestObj) ...
true
c139df16dac7c8b8d332179d066926f5f49ac4b6
PHP
tomahawkphp/framework
/src/Tomahawk/Bridge/Eloquent/Authentication/User/EloquentUserProvider.php
UTF-8
1,112
2.9375
3
[ "MIT" ]
permissive
<?php namespace Tomahawk\Illuminate\Authentication\User; use Illuminate\Database\Eloquent\Model; use Tomahawk\Authentication\User\UserInterface; use Tomahawk\Authentication\User\UserProviderInterface; /** * Class EloquentUserProvider * @package Tomahawk\Illuminate\Authentication\User */ class EloquentUserProvider...
true
19b79e21354e8868dbe7fb801a373f5924bbdd0b
PHP
mocdk/moc_helpers
/Classes/ViewHelpers/IfViewHelper.php
UTF-8
1,332
2.71875
3
[]
no_license
<?php namespace MOC\MocHelpers\ViewHelpers; /** * Class IfViewHelper */ class IfViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper { /** * renders <f:then> child if $condition is true, otherwise renders <f:else> child. * * @param mixed $left View helper condition * @param mixed...
true
089c9e02f1b3b84f1019eeb5d0a78a6af3e28a02
PHP
foxtech6/flix
/app/Activities/Tasks/StoreReserveTask.php
UTF-8
559
2.8125
3
[]
no_license
<?php namespace App\Activities\Tasks; use App\Models\Reserve; class StoreReserveTask extends TaskAbstract { /** * @param Reserve $reserve */ public function __construct( private Reserve $reserve, ) {} /** * @param int $tripId * @param string $email * @param int $plac...
true
70b6a5beb1076280fba7e57cef6cdf3cfba7393b
PHP
rafaelflorindo/LivroBackEndII
/Unidade01/controleAluno.php
UTF-8
593
3.171875
3
[]
no_license
<?php require_once('classes/Aluno.php'); $aluno = new Aluno(1234, "Jose Fernandes"); echo ($aluno->setNotas(6.5))? "<br>Nota incluida com sucesso": "<br>Erro ao Incluir Nota"; echo ($aluno->setNotas(5.5))? "<br>Nota incluida com sucesso": "<br>Erro ao Incluir Nota"; echo ($aluno->setNotas(6.5))? "<br>Nota incluida co...
true
b2ee7e04a89ad96242d682c05350675d1f882dab
PHP
oulfr/laravel-wordpress
/app/Models/User.php
UTF-8
3,262
2.671875
3
[]
no_license
<?php namespace App\Models; use App\Concerns\HasMeta; use App\Concerns\HasRoles; use Illuminate\Auth\Authenticatable; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Database\Eloquent\Relations\Relation...
true
02fe25c5cafd81c9852b0710ddbf4369441a7d20
PHP
robinw/csv2pg
/src/user_upload.php
UTF-8
1,004
2.90625
3
[]
no_license
<?php use Commands\Command; use Commands\CommandFactory; require_once "../autoload.php"; require_once "config.php"; // List of options user can specify $short_options = CommandFactory::DB_USER_OPTION . "::" . CommandFactory::DB_PASSWORD_OPTION . "::" . CommandFactory::DB_HOST_OPTION . "::"; $long_optio...
true
40410362a25a89a7476c97c4fc4afbee40dfebf4
PHP
satully/dev_socialapp
/php/rhaco/core/spl/Exceptions.php
UTF-8
2,167
3.390625
3
[]
no_license
<?php /** * 例外 * @author Kazutaka Tokushima * @license New BSD License */ class Exceptions extends Exception{ static private $self; private $messages = array(); /** * Exceptionを追加する * @param Exception $exception 例外 * @param string $name グループ名 */ static public function add(Exception $exception,$name=nul...
true
507c124190c5ec0497bb4a2d790bd9f985b2bc5d
PHP
zerkalica/MillwrightRadBundle
/Twig/RadExtension.php
UTF-8
1,764
2.671875
3
[]
no_license
<?php namespace Millwright\RadBundle\Twig; use Millwright\Util\NumberToString; /** * Twig extension for Bootstrap helpers */ class RadExtension extends \Twig_Extension { protected $dateFormat; protected $dateTimeFormat; /** * Constructor * * @param OptionRegistryInterface $options *...
true
74e5f64b59b1c110941e703602b32a6c65bda8ea
PHP
kfjlol/rfi
/themes/rfi/admin/include/shortcodes/codes/col.php
UTF-8
1,308
2.65625
3
[]
no_license
<?php /*-----------------------------------------------------------------------------------*/ /* Column /*-----------------------------------------------------------------------------------*/ add_shortcode( 'col' , 'axiom_shortcode_grid' ); add_shortcode( 'grid', 'axiom_shortcode_grid' ); function axiom_shortcode_...
true
06bfe392e67eec3f765499234874289db5855ca3
PHP
prorecoba/fonte
/models/section.php
UTF-8
978
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Duda * Date: 08/10/14 * Time: 21:35 */ namespace models; include_once "dao/sectionDAO.php"; class section { public $id_section; public $title; public $content; public $id_chapter; public function __construct(){} public function save(){ ...
true
a634d55ee07c551ebf83b55f1cbbd3e2100b4be1
PHP
jmdfgouveia1/csi_prog_eval
/cside/ex4/db_start.php
UTF-8
479
2.609375
3
[]
no_license
<?php /** * API that activates the database where all the relevant information is either stored or retrieved. * Uses the secure PDO class. * Used by all the other custom-made APIs. * @author: João Miguel Dias Ferreira Gouveia */ error_reporting(E_ALL | E_WARNING); $conn = new PDO('mysql:host=localhost;dbn...
true
a2b31494d3b972af1e354c6ca8aca6267ee693bf
PHP
oldD0g/budget-analysis
/getGraphDataFromDB.php
UTF-8
2,363
3.1875
3
[]
no_license
<?php // This AJAX routine fetches data from the database and returns it as a JSON array suitable // for putting into a column graph using Google Charts // The data returned is monthly cost of a nominated transaction (passed in as a POST variable) include "db.php"; include 'functionsv2.php'; error_reporting(E_ERROR ...
true
8a17c773cdd10d590c04df3a04471e51f7935f00
PHP
limb-php-framework/limb-app-buildman
/lib/limb/web_app/tests/cases/db/validation/rule/lmbUniqueTableFieldRuleTest.class.php
UTF-8
2,865
2.53125
3
[]
no_license
<?php /** * Limb Web Application Framework * * @link http://limb-project.com * * @copyright Copyright &copy; 2004-2007 BIT * @license LGPL http://www.gnu.org/copyleft/lesser.html * @version $Id: lmbUniqueTableFieldRuleTest.class.php 5012 2007-02-08 15:38:06Z pachanga $ * @package web_app */ lmb_req...
true
ef33d4f1ad9e647fb54c3bfe140cd16578f5efa4
PHP
senz/phactory
/lib/Phactory/Sql/DbUtil/PgsqlUtil.php
UTF-8
2,081
2.8125
3
[ "MIT" ]
permissive
<?php namespace Phactory\Sql\DbUtil; use Phactory\Sql\Phactory; class PgsqlUtil extends AbstractDbUtil { protected $_quoteChar = '"'; public function getPrimaryKey($table) { $query = " SELECT pg_attribute.attname, format_type(pg_attribute.atttyp...
true
01ea3b2c98ea4556e59e2bc49a1b9ceb3150b5e8
PHP
jkornobis/Backup-Old-RH
/humainres/graphmois.php
UTF-8
1,477
2.625
3
[]
no_license
<?php require_once('../Artichow/BarPlot.class.php'); $ax1= $_GET['ax1']; $ax2= $_GET['ax2']; $ax3= $_GET['ax3']; $ax4= $_GET['ax4']; $ax5= $_GET['ax5']; $ax6= $_GET['ax6']; $ax7= $_GET['ax7']; $ax8= $_GET['ax8']; $ax9= $_GET['ax9']; $ax10= $_GET['ax10']; $ax11= $_GET['ax11']; $ax12= $_GET['ax12']; $graph = new Graph(...
true
482915ea54c41be1720f043d00fd3a955aa11519
PHP
voyager-php/voyager
/system/Database/DataType/Integer.php
UTF-8
1,873
3.171875
3
[ "MIT" ]
permissive
<?php namespace Voyager\Database\DataType; use Voyager\Database\ColumnBuilder; use Voyager\Database\DataType; use Voyager\Util\Str; class Integer extends DataType { /** * Set integer data properties. * * @return void */ protected function setArgument() { $this->set('primary...
true
23d21af70114532d39a9c2722772fa21c0e52a18
PHP
matudelatower/evenprom-backend
/src/UtilBundle/Form/DataTransformer/ObjectToIdTransformer.php
UTF-8
1,666
2.859375
3
[ "MIT" ]
permissive
<?php namespace UtilBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\Exception\TransformationFailedException; use Doctrine\Common\Persistence\ObjectManager; /** * * Transforma una entidad generica a un Integer (util para mostrar los m2one en un hidden) ...
true
717f7b7afb8f85aad1082a1c80dfe5b588593d01
PHP
Zhaoyu777/AH
/cz/migrations/20170606085432_task_group_member_seq.php
UTF-8
998
2.5625
3
[]
no_license
<?php use Phpmig\Migration\Migration; class TaskGroupMemberSeq extends Migration { /** * Do the migration */ public function up() { $biz = $this->getContainer(); if (!$this->isFieldExist('czie_task_group_member', 'seq')) { $biz['db']->exec(" ALTER TABL...
true
48165f2de95559d05eeaa4d88c92fcfe7c337ccd
PHP
karanjilka/crossovertest
/app/Http/Controllers/NewsController.php
UTF-8
3,290
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; class NewsController extends Controller { protected $model; public function __construct() { $this->model = new \App\News; $this->middleware('sentry.auth'); } /** * Display a listing of...
true
a52b08155ffd2ecdddc64b4dac0c15787af8dbcb
PHP
silent6910/practice-project
/app/enums.php
UTF-8
446
2.8125
3
[]
no_license
<?php class ArticleType { CONST BULLETIN = 1; CONST DISCUSS = 2; CONST PROBLEM = 3; CONST EXPERIENCE = 4; //get class all const static function getConstants() { $oClass = new ReflectionClass(__CLASS__); return $oClass->getConstants(); } //todo Here permission desig...
true
aa3b8e68447ba47841213b7a1525dd26224ee77f
PHP
Big-Shark/forked-php-orm-benchmark
/maghead/vendor/corneltek/class-template/src/ClassTemplate/TemplateView.php
UTF-8
1,219
2.59375
3
[ "MIT" ]
permissive
<?php namespace ClassTemplate; use Exception; use SerializerKit\PhpSerializer; use Twig_Loader_Filesystem; use Twig_Environment; use Twig_SimpleFilter; function twig_var_export($obj) { $ser = new PhpSerializer; $ser->return = false; return $ser->encode( $obj ); } class TemplateView { private $loader; ...
true
59df219f35dee6257f6bca4de1e3fe3680fa4ef6
PHP
luisclaudiorp/PHP_projeto
/app/Http/Controllers/InativarFuncionario.php
UTF-8
771
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Employee; use Carbon\Carbon; use Illuminate\Http\Request; class InativarFuncionario extends Controller { /** * Inativa um funcionário * * @param Employee $employee * @return void */ public function __invoke(Employee $employee) ...
true
7c445baace78e09c4e220ec3047a10b45b3b011f
PHP
bashilbers/hexagonal-event-sourced-user-app-example
/src/Domain/User/Aggregate/Group.php
UTF-8
1,507
2.90625
3
[]
no_license
<?php namespace UserApp\Domain\User\Aggregate; class Group { private $roles = []; public static function assemble(GroupId $id, $name, $roles) { $group = new Group($id); $group->recordThat( new GroupWasAssembled($id, $name) ); if (!is_array($roles)) { ...
true
b4e500a73b67df5181660e638e7a54b1974400a7
PHP
d488b/Coding-Dojo
/PHP/practice1.php
UTF-8
1,285
2.90625
3
[]
no_license
<?php session_start(); if($_POST) { $errors= array(); if(empty($_POST['email'])) { $errors[] = "Email address cannot be blank."; } else if(filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) == FALSE) { $errors[] = "Email should be in valid format."; } if(empty($_POST['first_name'])) ...
true
01c358370ffbd6674e6af758cdb634bcf77b86d7
PHP
afolorunsho/edusoft
/database/all/2017_03_15_164320_create_sch_events_table.php
UTF-8
1,089
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSchEventsTable extends Migration { /** * Run the migrations. * these are the dates for the various school event types * @return void */ public fu...
true
6c4d2d02c08a193bb5e270b73f45205ce41598ae
PHP
cleitontrentin/locadora
/controller/ctrlTabela.class.php
UTF-8
5,762
2.828125
3
[]
no_license
<?php //importanto a classe Model include_once("../model/tabela.class.php"); //importanto a classe DAO include_once("../model/dao/daoTabela.class.php"); /*Definição da Classe*/ class CtrlTabela { /*Construtor*/ function CtrlTabela(){ } private function Verifica($pVariavel){ if((isset($_REQU...
true
ac37282ece9ce5bbddc5d4e4810d4ad2315fd2c0
PHP
noureddinbadran/tms
/app/Models/Task.php
UTF-8
1,476
2.59375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Log; class Task extends Model { use HasFactory; protected $fillable = [ 'name', 'priority', 'project_id' ]; /** * @return \Illuminat...
true
ddbc6ab1bf36469e4ca87e4f05006b77a55c01e0
PHP
mybigman/juballery
/application/models/likes.php
UTF-8
390
2.8125
3
[]
no_license
<?php class Likes { public static function has($imageID, $userID) { $liked = DB::table('likes')->where_imageid_and_userid($imageID, $userID)->get(); return (count($liked) !== 0) ? true : false; } public static function add($imageID, $userID) { return DB::table('likes')...
true
ba35e78688c59da13bffb6cccc04985237673869
PHP
vladmeh/auto-sale-ads
/src/App/Entity/Advertisement.php
UTF-8
4,614
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Advertisement * * @ORM\Table(name="advertisement") * @ORM\Entity */ class Advertisement { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ ...
true
1af63796cedeed4e8a43a56fd1c7b11e7b8697cb
PHP
CSARotterdam/TC1819_ProjectB_Groep_3
/Serverside/update_running_order.php
UTF-8
1,710
2.96875
3
[ "Apache-2.0" ]
permissive
<?php /* * Following code will list all the products */ // array for JSON response $response= null; //check for required fields if (isset($_POST["OrderID"])){ $ID = $_POST["OrderID"]; // connecting to db $db = new PDO('sqlite:Test.db'); $products = array(); $sql =<<<EOF UPDATE Orders ...
true
c2b8feca734a0bf73ff42b5ff279deafb756b633
PHP
marcdelim/xde
/application/modules/maintenance/libraries/import/Maintenance_data.php
UTF-8
3,102
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Maintenance_data extends MX_Controller{ public function process($transaction_details = []){ $data = $this->input->post(); if(!isset($_FILES['file'])){ // Check if file exist return json_encode($this->common->apiData("error","error","File not found!")); ...
true
b41e3316f2be095149c9b7c31970205195585984
PHP
Ross-Davidson-HW/HW-Web-Programming
/Star Catcher/public/connect_db.php
UTF-8
390
2.515625
3
[]
no_license
<!-- Connect_db establishes a connection to the database, where information such as player and user data is stored --> <?php $link = mysqli_connect('localhost','HNDSOFT2SA1','33vFmXSEfG','HNDSOFT2SA1'); #Login information for the database if(!$link) { die('Could not connect to MySQL:'.mysqli_error()); #If co...
true
b4ec122eba520e7f292dd0e53c91b0f7490e3043
PHP
ndiayemtr/dolibarr1304
/core/lib/accounting.lib.php
UTF-8
9,036
2.625
3
[]
no_license
<?php /* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com> * Copyright (C) 2013-2021 Alexandre Spangaro <aspangaro@open-dsi.fr> * Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro> * Copyright (C) 2019 Eric Seigne <eric.seigne@cap-rel.fr> * * This program is free software; you can re...
true
27bc8e2002ee057394bf6fbeb57e4d94c0377500
PHP
all-ride/ride-lib-orm
/src/ride/library/orm/query/tokenizer/FieldTokenizer.php
UTF-8
2,017
3.046875
3
[]
no_license
<?php namespace ride\library\orm\query\tokenizer; use ride\library\orm\exception\OrmException; use ride\library\orm\query\tokenizer\symbol\NestedExpressionSymbol; use ride\library\tokenizer\symbol\SimpleSymbol; use ride\library\tokenizer\Tokenizer; /** * Tokenizer for fields of a model query */ class FieldTokenize...
true
5f50910ae9678b458edb10a934588933f9620f5f
PHP
sdlyhu/laravelio
/src/Forum/Replies/Commands/DeleteReplyCommand.php
UTF-8
299
2.53125
3
[ "MIT" ]
permissive
<?php namespace Lio\Forum\Replies\Commands; use Lio\Accounts\Member; use Lio\Forum\Replies\Reply; class DeleteReplyCommand { public $reply; public $user; public function __construct(Reply $reply, Member $user) { $this->reply = $reply; $this->user = $user; } }
true
afc93dc8424ee5eb3d06331a088e34b89a00553e
PHP
github-co/aichallenge
/website/country_rankings_widget.php
UTF-8
2,852
2.84375
3
[]
no_license
<?php require_once('mysql_login.php'); require_once('session.php'); /* * getCountryRankingsTableString * * Returns Rankings Table as a string, * if viewmore is true (default), it outputs viewresults rows and has an underlink to page given * if viewmore is false, it uses pagination with viewresults rows per page ...
true
90b331974017f8d71fa028bb682a75b035abccab
PHP
Quadramma/Site.Colpermin
/email/index.php
UTF-8
2,312
2.578125
3
[]
no_license
<?php require_once 'lib/swift_required.php'; // //POST FIELDS $POST_FIELD_NAME = "name"; $POST_FIELD_EMAIL = "email"; ////POST VARS $name = $_POST[$POST_FIELD_NAME]; $email = $_POST[$POST_FIELD_EMAIL]; //- Configuration -------------------------------- $SMTP_USER ...
true
6c77bce010011c549ee85d7a6613b8631f7f730a
PHP
domadordegatos/sistema-pos-php-y-mysql
/conexion/ventas.php
UTF-8
3,323
2.671875
3
[]
no_license
<?php class ventas{ public function obtenerproducto($idproducto){ require_once "conexion.php"; $conexion=conexion(); $sql="SELECT codigoproducto, nombre, categoria, stock, precio FROM productos WHERE codigoproducto = '$i...
true
a3d56d06c202b67671e71c98e493e32b87912f56
PHP
ptlis/grep-db
/tests/Unit/Metadata/MySQL/ServerMetadataTest.php
UTF-8
2,967
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @copyright (c) 2017-present brian ridley * @author brian ridley <ptlis@ptlis.net> * @license http://opensource.org/licenses/MIT MIT */ namespace ptlis\GrepDb\Test\Unit\Metadata\MySQL; use PHPUnit\Framework\TestCase; use ptlis\GrepDb\Metadata\MySQL\ColumnMetadata; u...
true
516e71269cf2507c87abd8dde2ca3919c11b4ca9
PHP
jegertin/Zavrsni
/app/controller/RacunController.php
UTF-8
3,727
2.640625
3
[]
no_license
<?php class RacunController extends AutorizacijaController { private $viewDir = 'privatno' . DIRECTORY_SEPARATOR . 'racun' . DIRECTORY_SEPARATOR; private $racun=null; private $vrsteUsluga=[]; private $vrstePapira=[]; private $d...
true
33c000ec4e8084366dc5b831e777d7e370371cf3
PHP
qVisible/library-web-app-php
/insert-book.php
UTF-8
1,057
2.734375
3
[]
no_license
<?php require 'session.php'?><html> <head> <link rel="stylesheet" href="style1.css" type="text/css"> <meta http-equiv="refresh" content="1;url=show-books.php" /> </head> <body> <?php require 'db-connect.php'?> <?php require 'navbar.php'?><main> <?php $title=$_POST['title']; ...
true
647cc7c50d9b638f3326b833ef25620254cc6037
PHP
afosto/shopctrl
/src/Models/OrderRowParameter.php
UTF-8
715
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace Afosto\ShopCtrl\Models; use Afosto\ShopCtrl\Components\Model; /** * @property string $key Gets or sets the key. * @property string $value Gets or sets the value. * @property integer $dataType Specify the data type. Default type is String. */ class OrderRowParameter extends Mode...
true
a76810178941ae5babd31ccd776d1a6e0417fd56
PHP
williamespindola/loop-job-test
/api/src/Http/JsonResponse.php
UTF-8
460
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Loop\Client\Http; use json_encode; use Psr\Http\Message\ResponseInterface; trait JsonResponse { public function responseAsJson(ResponseInterface $response, array $data, int $status): ResponseInterface { $response->getBody() ->write(json_encod...
true
656df39717f680102b7385e7bfaaecb1e902db0c
PHP
NzChaimaa/rsu
/app/core/http/Request.php
UTF-8
464
2.8125
3
[]
no_license
<?php declare(strict_types=1); namespace Core\Http; use Phalcon\Http\Request as Req; class Request extends Req { /** * @return string */ public function getBearerTokenFromHeader(): string { return str_replace('Bearer ', '', $this->getHeader('Authorization')); } /** * @ret...
true
088cb7951f35607c062ef7605add20829685f36b
PHP
theZetrax/accounted
/app/Accounted/Validation/Rules/Password.php
UTF-8
708
2.96875
3
[ "Apache-2.0" ]
permissive
<?php namespace Accounted\Validation\Rules; use Respect\Validation\Rules; use Respect\Validation\Rules\AbstractRule; final class Password extends AbstractRule { protected $passwordValidator; protected $passwordLengthValidator; public function __construct() { $this->passwordValidator = new Rules\AllOf( new ...
true
073b027165668d582f074528245dda89d13f1eb6
PHP
chaishubin/honor
/app/Http/Middleware/CheckSuperManagerRole.php
UTF-8
710
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Http\Controllers\Common; use App\Models\Manager\ManagerModel; use Closure; class CheckSuperManagerRole { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ pub...
true
e6c33595382ac6c937e5ffd24451a9ac03d50c18
PHP
ArroWsGM/microVi-MVC-Framework
/app/Router.php
UTF-8
1,369
2.8125
3
[]
no_license
<?php namespace App; Class Router { protected static $controller; protected static $action; protected static $props = []; protected static function load() { self::$controller = "App\\Controllers\\" . env('DEFAULT_CONTROLLER', 'HomeController'); self::$action = env('DEFAULT_ACT...
true
daffadcac8350c6bc1a7df2972bec8ac92b5751e
PHP
thenerdscribe/nicco-temperature
/post.php
UTF-8
352
2.5625
3
[]
no_license
<?php require_once ('temperature_class.php'); $tempEntry = new temperature_entry(); $data = array( 'temperature' => $_GET['temperature'], 'entry_date' => $_GET['date'], 'entry_time' => $_GET['time'], ); $tempEntry->addEntry($data); date_default_timezone_set('America/Phoenix'); $time = date('h:...
true
c480826cc2489207b54006c13595924caff183df
PHP
bielfelix/sistema_alunos
/app_comp_php/funcoes_imagens.php
UTF-8
5,025
2.78125
3
[]
no_license
<?php /*************************************************************************/ /* Funções para tratamento de imagens */ /*************************************************************************/ function calcula_nova_largura($nome_img, $nova_altura){ $dados_img = ...
true
6fdff66d958329e81fe0a4c15ba4e3ac02fa7285
PHP
phplesson/phpacademy
/13Lesson/04/01calc.php
UTF-8
993
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alex * Date: 31.05.18 * Time: 13:12 */ include_once('checker.php'); include_once('real.php'); include_once('complex.php'); $values = $argv; $p1 = @$argv[1]; $o = @$argv[2]; $p2 = @$argv[3]; $current = ''; if ($current == '') { error_clear_last(); $a = @\Real\ge...
true
5019502cae0dd43cad7ae3451e8b30f2c07bed36
PHP
de1mos242/HSAFinder
/Web/Helpers/Router.php
UTF-8
3,428
2.671875
3
[]
no_license
<?php /** * Description of Router * * @author de1mos <de1m0s242@gmail.com> */ class Router { private $registry; private $controllers_path; private $views_path; private $js_path; private $args = array(); function __construct($registry) { $this->regis...
true
a3ac8ce96a7db703b52f8dcc1d284ec962318cb0
PHP
zyadamin/book-house
/project_web/public_html/index.php
UTF-8
3,294
2.78125
3
[]
no_license
<?php DEFINE ('DB_USER', 'root'); DEFINE ('DB_PSWD', ''); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'book_house'); $dbcon = mysqli_connect(DB_HOST, DB_USER, DB_PSWD, DB_NAME); $erorr=null; if(isset($_POST['submit'])){ $username=$_POST['username']; $password=$_POST['pas...
true
bf48c2fbc7bd47f33b27e49193256d1800196b4b
PHP
SantiFagliano/TpWeb2-Final
/controller/ServiceHistorialController.php
UTF-8
1,129
2.703125
3
[]
no_license
<?php class ServiceHistorialController { private $render; private $serviceHistorialModel; private $loginSession; public function __construct($render, $loginSession, $serviceHistorialModel) { $this->render = $render; $this->loginSession = $loginSession; $this->serviceHistor...
true
cd4af73940133ac286b4874996280d316eb67986
PHP
MateuxLucax/programacao-ifc
/3-ano/1Trimestre/13-02-Classe-Basico/14/index.php
UTF-8
269
2.71875
3
[]
no_license
<?php include_once "bicicleta.class.php"; $bicicleta = new bicicleta; $bicicleta->setCodigo(1); $bicicleta->setFabricante("Langster"); $bicicleta->setNumeroMarchas(3); $bicicleta->setFormacaoQuadro("Carbono"); print_r($bicicleta); ?>
true
071bb3988333b8e906ca51eb9e5b125b601ea29c
PHP
amyLabs/yupe-metrika
/controllers/MetrikaBackendController.php
UTF-8
2,509
2.546875
3
[]
no_license
<?php /** * MetrikaBackendController контроллер для учета переходов * * @author apexwire <apexwire@amylabs.ru> * @link http://yupe.ru * @copyright 2009-2014 amyLabs && Yupe! team * @package yupe.modules.metrika.controllers * @version 0.6 * */ class MetrikaBackendController extends yupe\components\c...
true
c46abc5c8a63e4049d7ece01d06574f0d81401b1
PHP
assada/laravel-achievements
/src/RoutesAchievements.php
UTF-8
2,351
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Assada\Achievements; use Assada\Achievements\Model\AchievementProgress; /** * Trait RoutesAchievements * * @package Assada\Achievements */ trait RoutesAchievements { /** * Adds a specified amount of points to the achievement. * * @param CanAchieve $ins...
true
f7e88530d12dd06cdaac6844cbeab0042abfaae3
PHP
1sitevn/design-patterns
/src/Strategy/Basic/Context.php
UTF-8
864
3.28125
3
[ "MIT" ]
permissive
<?php namespace OneSite\DesignPattern\Strategy\Basic; /** * Class Context * @package OneSite\DesignPattern\Strategy\Basic */ class Context { /** * @var Strategy */ private $strategy; /** * Context constructor. * @param Strategy $strategy */ public function __construct(...
true
29fbee57913157014372ca8de6f133c4b17c8ee1
PHP
sadats90/oldhome
/doctors_app.php
UTF-8
2,341
2.59375
3
[]
no_license
<?php include_once "connection.php"; include_once "main.php"; $sql_doc = "SELECT users.role_id,users.first_name,users.last_name,employees.id,roles.role_name FROM ((users INNER JOIN employees ON users.id = employees.user_id) INNER JOIN roles ON users.role_id = roles.id) WHERE roles.id = 4"; $sql_patient = "SELECT ...
true
f7a60fcb43f8f78d97cfc7ccee5bfed7e7441d74
PHP
Simon-BEE/todolist
/www/src/Controller/CategoryController.php
UTF-8
1,565
2.5625
3
[]
no_license
<?php namespace App\Controller; use Cocur\Slugify\Slugify; use Core\Controller\Controller; use Core\Controller\FormController; class CategoryController extends Controller { public function __construct() { $this->loadModel('category'); $this->loadModel('post'); } public function show(i...
true
c3e791bd92af108c27e90c9492b5a57a530fb737
PHP
amarcano568/iebz
/app/Paises.php
UTF-8
513
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Paises extends Model { protected $table = 'paises'; protected function Guardar($request) { if ( is_null($request->idPais) ){ $pais = new Paises; //$pais->descpais= $request->descpais; }else...
true
cf8c0e7e41ef0661a8c006d931428e85095a900b
PHP
linkTeste/sistema-avaliacao-institucional
/sistema_avaliacao/Model/DAO/questionarioDAO.class.php
ISO-8859-1
4,793
3.140625
3
[]
no_license
<?php /** * @name questionarioDAO * @author Fabio Baa * @since 12/01/2012 * DAO do questionario */ class questionarioDAO{ private $table = "questionario"; private $pdo; private $UNSAVED_ID = 0; //database private $host = "mysql01-farm26.kinghost.net"; private $db_name = "faculdadeunica05"; ...
true
20f2ad021fce52ad2c34a11831047058c6d3bf97
PHP
s9e/TextFormatter
/src/Configurator/Items/AttributeFilters/ChoiceFilter.php
UTF-8
1,593
3.203125
3
[ "MIT" ]
permissive
<?php /** * @package s9e\TextFormatter * @copyright Copyright (c) 2010-2023 The s9e authors * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ namespace s9e\TextFormatter\Configurator\Items\AttributeFilters; use InvalidArgumentException; use s9e\TextFormatter\Configurator\Helpers\Reg...
true
94d33be1a08546e65f4e48a88435cae4773f1565
PHP
byJavimo/user-web
/server/send.php
UTF-8
851
2.578125
3
[]
no_license
<?php error_reporting(0); $name = $_POST['recruiterName']; $lastName=$_POST['recruiterLastName']; $email= $_POST['recruiterEmail']; $company = $_POST['recruiterCompany']; $subject = $_POST['recruiterSubject']; $description = $_POST['recruiterDescription'] $header = 'From: ' . $email . "\r\n"; $header...
true
75009fb3b21894422b43e4f980fb4d0d9d66aa9a
PHP
Arrafi25/demo-project
/laporan_pengeluaran_pilihan.php
UTF-8
2,275
2.671875
3
[]
no_license
<?php include 'config.php'; $tgl_awal = $_POST['tgl_awal']; $tgl_akhir = $_POST['tgl_akhir']; $nama_admin = $_SESSION['nama_admin']; $pengeluaran = query("SELECT * FROM 08_tbl_pengeluaran WHERE tanggal BETWEEN '$tgl_awal' AND '$tgl_akhir' ORDER BY tanggal DESC"); ?> <!DOCTYPE html> <html lang="en"...
true