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
576a8da29c0f9260396da4614d5b967265511782
PHP
esyede/hexazor
/system/Database/Schema/Grammars/SQLite.php
UTF-8
8,535
3.109375
3
[ "MIT" ]
permissive
<?php namespace System\Database\Schema\Grammars; defined('DS') or exit('No direct script access allowed.'); use System\Database\Schema\Table; use System\Support\Magic; class SQLite extends Grammar { /** * Buat sql statement untuk perintah pembuatan tabel. * * @param \System\Database\Schema\Table ...
true
eaf921a4622678215a3221cf87912d7b2024f4ef
PHP
felladrin/php-websocket-server
/WebSocketServer.php
UTF-8
24,094
2.96875
3
[ "MIT" ]
permissive
<?php abstract class WebSocketServer { /** * Host to bind to. * @var string */ protected $host; /** * Port number where to bind to. * @var integer */ protected $port; /** * Array of connected clients. * @var WebSocketClient[] */ protected $clients ...
true
a23014088d5a11f89b1b1c760cf4aa812830adda
PHP
mattsblake/golfmix
/mu-plugins/wpengine-common/class.plugins.php
UTF-8
1,600
2.640625
3
[]
no_license
<?php /** * Class PluginsConfig Handles customization/configurations needed for third party plugins like woocommerce */ if( !class_exists("PluginsConfig") ) { class PluginsConfig { static $plugins = array( 'woocommerce/woocommerce.php' ); var $skip = array(); public function __construct() {} public sta...
true
64c71dcf65e3c7284d090879b7de52bca81ab03c
PHP
NJRezini/WebCrawler
/index.php
UTF-8
2,091
2.65625
3
[]
no_license
<?php $proxy = '10.1.21.254:3128'; $arrayConfig = array( 'http' => array( 'proxy' => $proxy, 'request_fulluri' => true ), 'https' => array( 'proxy' => $proxy, 'request_fulluri' => true ) ); $context = stream_context_create($arrayConfig); $url = 'http:...
true
0a76c834f3686a1cbda9be3afc756128fb3647ca
PHP
abdullahpazarbasi/design-patterns-in-php
/GangOfFour/Creational/FactoryMethod/BasicExample/Client.php
UTF-8
640
3.015625
3
[ "MIT" ]
permissive
<?php namespace DesignPatterns\GangOfFour\Creational\FactoryMethod\BasicExample; use DesignPatterns\Lib\MessageQueue\MessageQueue; class Client { protected static function doMyOperation(AbstractXyzCreator $creator): string { return $creator->doMyOperation(); } public static function run(): ...
true
9afe365c8aaff5f78db5b6a9a4afe448f789a1d1
PHP
bokac1984/arhiva
/app/View/Helper/LinkHelper.php
UTF-8
2,374
2.8125
3
[]
no_license
<?php App::uses('AppHelper', 'View/Helper'); App::uses('Sanitize', 'Utility'); /** * Description of LinkHelper * * @author bokac */ class LinkHelper extends AppHelper { public $helpers = array('Html', 'Form', 'Time'); /** * Custom link * * @param string $title * @param string $url ...
true
d09492e0fe03d9d60f14dd27dbad51fd0dfe0b01
PHP
charlsontsang/zidisha2
/app/Zidisha/Sms/dummySms.php
UTF-8
624
2.71875
3
[]
no_license
<?php namespace Zidisha\Sms; use Zidisha\Mail\Mailer; use Zidisha\Utility\Utility; class dummySms { /** * @var \Zidisha\Mail\Mailer */ private $mailer; public function __construct(Mailer $mailer) { $this->mailer = $mailer; } public function send($phoneNumber, $data) { ...
true
3a3cba72b4a15723038210d989131d334a8a3376
PHP
wharpley80/my-hobby
/modal_description.php
UTF-8
508
2.5625
3
[]
no_license
<?php require_once('inc/config.php'); require_once('inc/database.php'); if(isset($_POST['id'])) { $id = $_POST['id']; try { $description = $db->prepare('SELECT description FROM image_collection WHERE id = ?'); $description->bindValue(1,$id); $description->execute(); foreach ($description as $desc) {...
true
59b44f9da5037b91450b1ed6abb5222e734a273a
PHP
leonardsfetcu/visual-onetwopunch
/scanner-processing.php
UTF-8
7,566
2.734375
3
[]
no_license
<?php require_once("db.php"); include 'xmlparser.php'; set_time_limit(0); $conn = OpenConnection(); CheckConnection($conn); function array_get_range($array, $min, $max) { return array_filter($array, function($element) use ($min, $max) { return $element['score'] >= $min && $element['score'...
true
add75f398421446ff3b67290deb0b5ae524432fa
PHP
top-gg/php-sdk
/src/TopPHP/API/Exceptions/ResourceRatelimitException.php
UTF-8
1,070
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file is respectively apart of the TopPHP project. * * Copyright (c) 2021-present James Walston * Some rights are reserved. * * This copyright is subject to the MIT license which * fully entails the details in the LICENSE file. */ namespace DBL\API\Exceptions; /** * The Resource-specific Rat...
true
03ddde330b2d311256355afba3131e46fc86b7fb
PHP
shevron/aspamia
/tests/Aspamia/Http/RequestTest.php
UTF-8
4,562
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php require_once realpath(dirname(__FILE__) . '/../../TestHelper.php'); require_once 'Aspamia/Http/Request.php'; class Aspamia_Http_RequestTest extends PHPUnit_Framework_TestCase { /** * Test that we can set and get valid HTTP methods * * @param string $method * @dataProvider validMethodP...
true
f3bf313bdaaacf53c95e6f4bbc1adadf7d1b2852
PHP
alvaroolt/alvaroolt.github.io
/dwes/curso2021/ud5/perro/index.php
UTF-8
7,290
2.65625
3
[ "MIT" ]
permissive
<?php /** * Los perros pertenecen a una persona y disponen de un chip cuya lectura nos permite conocer raza y edad del perro, * así como el nombre y teléfono del dueño. El estado de ánimo de la mascota influye en su comportamiento y la raza en el carácter e inteligencia. * Las personas mediante cursos de formación...
true
88c4ab6a6444c45aba1aceb9448b0f78f90a7b71
PHP
bryanjs/PHP-Framework
/archive/queryBuilder.php
UTF-8
2,966
3.40625
3
[]
no_license
<?php class QueryBuilder { var $baseQuery; var $wheres = array(); var $orderBy; /* Used to make it easier to build complex queries. QueryBuilder is instantiated with a table name and a list of fields to return. Use the addConstraints methods to add constraints as needed, optionally use addOrderBy, and ...
true
622e0f2c55708b7697acb0e5d09bb3f4e9c207f6
PHP
basvijfwinkel/PHPresto
/demo/demo_async.php
UTF-8
4,194
2.59375
3
[ "Apache-2.0" ]
permissive
<?php /* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
true
3894ef7614d64b7c063a7bb87d3e42e16e98f81b
PHP
zsiciarz/pictor
/src/Pictor/Image/IO.php
UTF-8
1,328
3.234375
3
[ "MIT" ]
permissive
<?php namespace Pictor\Image; /** * Base class for I/O operations. * * This file is part of the Pictor image processing library. * * @package Pictor * @version 1.0.0-dev * @author Zbigniew Siciarz * @date 2009-2010 * @license http://www.opensource.org/licenses/mit-license.php MIT */ abstract class IO { ...
true
0ac8d3f23a966fcc26ee2439cdea4ab1647ebf21
PHP
Nicklas766/Comment
/src/Comment/HTMLForm/Comment/EditPostForm.php
UTF-8
2,393
2.75
3
[ "MIT" ]
permissive
<?php namespace Nicklas\Comment\HTMLForm\Comment; use \Anax\HTMLForm\FormModel; use \Anax\DI\DIInterface; use \Nicklas\Comment\Modules\User; use \Nicklas\Comment\Modules\Post; /** * Example of FormModel implementation. */ class EditPostForm extends FormModel { /** * Constructor injects with DI container. ...
true
7b61689ed2a067bf8c2b41fd9a2d18b6a0ba4524
PHP
integratedfordevelopers/integrated
/src/Common/Channel/Exporter/QueueExporter.php
UTF-8
2,618
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Integrated package. * * (c) e-Active B.V. <integrated@e-active.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Integrated\Common\Channel\Exporter; use Exception; use Integrated\C...
true
1657a4efa69e7aefd516775026db822d97839693
PHP
Azure/azure-sdk-for-php
/src/Common/Internal/Atom/AtomLink.php
UTF-8
7,062
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * LICENSE: Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0. * * Unless required by applicable law or agreed to in writing, software ...
true
340c90e1d8aa7ecb2a1499801ab2cf67d7b1c90b
PHP
lrjxgl/deituiCms_qiye
/source/model/user_invitecode.model.php
UTF-8
966
2.6875
3
[]
no_license
<?php class user_invitecodeModel extends model { public $table="user_invitecode"; public function set($userid) { require_once "extends/hashids/Hashids.php"; $hashids = new Hashids\Hashids('', 6); $icode=$hashids->encode($userid); if (!$this->selectRow("userid=".$userid)) { ...
true
bf8ffad3a8eb5859f23c2242d1947c59102f4eb5
PHP
JC-IT/secrets
/src/storages/Chained.php
UTF-8
1,211
2.984375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace JCIT\secrets\storages; use JCIT\secrets\exceptions\StorageException; use JCIT\secrets\interfaces\StorageInterface; class Chained implements StorageInterface { /** * @var array<string, string|int|bool|null> */ private array $_cache = []; /** * @var...
true
5ad5119052f6015f843c732e7f568052a48b94a3
PHP
ddtraceweb/php-ups-api
/src/Ups/Entity/RateRequest/RateInformation.php
UTF-8
2,191
2.96875
3
[ "MIT" ]
permissive
<?php namespace Ups\Entity\RateRequest; use DOMDocument; use DOMNode; use Ups\NodeInterface; class RateInformation implements NodeInterface { /** * @var string */ private $negotiatedRatesIndicator; /** * @var string */ private $rateChartIndicator; function __construct($attri...
true
6681dd2fe8ec350bfa46d0c6188cac9b1aa40d5a
PHP
Jakerevans/WPBooklist-Storefront
/includes/class-storefront-ajax-functions.php
UTF-8
6,615
2.53125
3
[]
no_license
<?php /** * Class StoreFront_Ajax_Functions - class-wpbooklist-ajax-functions.php * * @author Jake Evans * @category Admin * @package Includes * @version 6.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'StoreFront_Ajax_Functions', false ) ) : /** * StoreFront_Ajax_Functions class....
true
ad056431d077d10e3094a5b2bd611c241a9cb9fd
PHP
mangobb/core
/src/Models/Theme.php
UTF-8
830
2.828125
3
[ "MIT" ]
permissive
<?php namespace FluxBB\Models; class Theme extends Base { protected $table = 'themes'; protected $fillable = array('theme_name', 'theme_author', 'theme_website', 'theme_version', 'theme_active'); protected $themes_folder = 'themes'; //Todo: look and see if themes folder and theme files exist /** ...
true
c157ddacdd43d0dc6d86d03cf704d6932a12f0e1
PHP
isiahmtorno/kumu
/app/Utils/HttpUtil.php
UTF-8
532
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Utils; use App\Utils\ResponseObject; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\Http; class HttpUtil { public static function getRequest(string $url, array $params = []): object { $response = Http::get($url, $params); ret...
true
c577d0ce9c8c7f225673e56e5c0a2ec0800d2611
PHP
Uru-ruru/bitrix-mvc
/src/Collectors/BitrixCollector.php
UTF-8
950
2.859375
3
[]
no_license
<?php namespace Uru\BitrixCollectors; /** * Class BitrixCollector * @package Uru\BitrixCollectors */ abstract class BitrixCollector extends Collector { /** * Fields that should be selected. * * @var mixed */ protected $select = []; /** * Setter for select. * * @param...
true
3514d674395bb607e9e05c5a783b3565b93a5721
PHP
dungmanh88/tutorial
/mycms/public/staff/subjects/show.php
UTF-8
1,993
2.59375
3
[]
no_license
<!-- explain: include, require just only include in a page scope --> <?php require_once('../../../private/initialize.php'); ?> <?php $page_title = "MyCMS Staff Show Subjects" ?> <?php require_once(SHARED_PATH . '/staff_header.php'); ?> << <a class="action" href="<?php echo url_for('/staff/subjects/index.php'); ?>">Back...
true
da96142e196454bb70eb694d55331790a3dc17b7
PHP
filip99m/amplitudo_backend
/Primjeri/akademija_crm-master/backend/modul2/obrada_zahtjeva/popuni_tabelu.php
UTF-8
2,472
2.5625
3
[]
no_license
<?php include '../../../connect.php'; include '../../../funkcije.php'; ini_set("display_errors", "on"); $korisnik_id = $_SESSION['prijava']['korisnik_id']; $uloga_korisnika = uloga_korisnika($korisnik_id); $uloga_id = $uloga_korisnika['id']; $uloga_naziv = $uloga_korisnika['naziv']; $dodijeljeni = false; ...
true
579102ee43a0f7038b811f5cc220f4d0819e25ab
PHP
nidhimahajan06/ajax
/citystate.php
UTF-8
327
2.625
3
[]
no_license
<?php require_once "conn.php"; $state_id = $_POST["states_id"]; $result = mysqli_query($conn,"SELECT * FROM cities where states_id = $state_id"); ?> <option value="">Select City</option> <?php while($row = mysqli_fetch_array($result)) { ?> <option value="<?php echo $row["id"];?>"><?php echo $row["name"];?></option> <?p...
true
e46a22c9e625470605c54818fcc8322342730e04
PHP
ataccama/eye-client-php
/src/Env/Activities/MetadataDefinition.php
UTF-8
582
2.53125
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace Ataccama\Eye\Client\Env\Activities; use Ataccama\Common\Env\Pair; use Nette\SmartObject; /** * Class MetadataDefinition * @package Ataccama\Eye\Env\Activities */ class MetadataDefinition extends Pair { use SmartObject; ...
true
10c4e7a890548a495a6bfff2ffb03b0f15c020b6
PHP
SAEBelgradeWeb/php0415
/mysqlvezba/novi_proizvod.php
UTF-8
1,318
2.65625
3
[]
no_license
<?php require_once('db.php'); require_once('header.php'); if (isset($_POST['naziv']) && isset($_POST['opis']) && isset($_POST['kategorija']) && $_POST['naziv']!="" && $_POST['opis']!="" && $_POST['kategorija']!=""){ $naziv = mysql_real_escape_string($_POST['naziv']); $opis = mysql_real_escape_string($_POST['opis...
true
4776ee7873ef2d03ea5933c86e52373f65a30f18
PHP
Sthing/PHPoelse
/src/Standard/User/User.php
UTF-8
537
3.25
3
[ "MIT" ]
permissive
<?php namespace Standard\User; /** * User object * * @author jdg */ class User { /** * * @var int */ protected $id; /** * * @var string */ protected $alias; /** * * @param int $id * @param string $alias */ public function __construct(int $id, string $alias) { $this->id = $id; ...
true
2ff95d95fd877caffb1ae4024f9bc51181fd5bcd
PHP
eichgi/Anexseller
/app/models/Producto.php
UTF-8
509
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Hiram * Date: 15/12/2016 * Time: 02:08 PM */ namespace App\Models; use Illuminate\Database\Eloquent\Model; class Producto extends Model { protected $table = 'producto'; public function getMargenAttribute() : float { $ingreso = $this->precio - $this-...
true
efb7f975f8fd8943876127d8784a997ea0d5df48
PHP
vascopac/projeto_ainet
/app/User.php
UTF-8
986
2.765625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email',...
true
54734a6c24487b5a63b2c3aedcc1899acf427d91
PHP
giulianojordao/a2billing-api
/app/User.php
UTF-8
1,859
2.515625
3
[ "MIT" ]
permissive
<?php namespace A2billingApi; use Illuminate\Foundation\Auth\User as Authenticatable; use JsonSerializable; /** * A2billingApi\User * * @property int $id * @property string $name * @property string $email * @property string $password * @property string $remember_token * @property \Carbon\Carbon $created_at ...
true
09169a6c89b1d73bbec2c7885da33e252d7597da
PHP
ayulestari25/newrepository
/beli.php
UTF-8
605
2.609375
3
[ "MIT" ]
permissive
<?php session_start(); // mendapatkan id dari url $id_produk = $_GET['id']; // jika sudah ada produk itu dikerajang, maka produk itu jumlahnya di +1 if(isset($_SESSION['keranjang'][$id_produk])) { $_SESSION['keranjang'][$id_produk]+=1; } //selainitu (belum ada dikeranjang), maka produkmitu dianggap beli ...
true
6494e05d326f1ec924fc9d6241b77d29efcd486d
PHP
carsonlius/laravel_learn
/app/TransForm/TransFormer.php
UTF-8
322
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\TransForm; abstract class TransForm { /** * @param array $items * @return array */ public static function transForms(array $items): array { return array_map([new static(), 'transForm'], $items); } public static abstract function transForm(array $item); ...
true
0721b81642911ede80485093e904ad16379f809b
PHP
cguidog/calorie_tracker_php
/includes/edit.inc.php
UTF-8
1,375
2.671875
3
[]
no_license
<?php session_start(); error_reporting(E_ALL); ini_set("display_errors", 1); date_default_timezone_set('America/New_York'); if (isset($_POST['edit-item-submit'])) { require 'dbh.inc.php'; $itemId = $_POST['itemId']; $item = $_POST['item']; $calories = $_POST['calories']; if (empty($item) || e...
true
74a60328d143b4bf76ed59d0d6836361c534f63e
PHP
DavidCao626/HeadFirst-DesignPatterns-Book-For-PHP
/Duck.php
UTF-8
3,872
3.09375
3
[]
no_license
<?php //no.1 设计模式入门 (策略模式StrategyPattern) Davidcao626@foxmail.com /* * 名词概念 * 基础:抽象、封装、多态、继承。 * 原则:封装变化、多用组合少用继承。针对接口编程,不针对实现编程。 * 模式:策略模式-定义算法族,分别封装起来,让他们之间可以互相替换,此模式让算法的变化独立与使用算法的客户。 * */ //飞行为抽象接口 interface IFlyBehavior{ function fly(); } class FlyWithWings implements IFlyBehavior { function fly() ...
true
ba8ac8285b4960dc98b691a15e46e94a6f89699f
PHP
whs5280/shop_template
/application/common/model/Industry.php
UTF-8
2,650
2.5625
3
[]
no_license
<?php namespace app\common\model; use think\facade\Cache; /** * 行业分类模型 * Class Category * @package app\common\model */ class Industry extends BaseModel { protected $name = 'industry'; protected $pk = 'id'; /** * 隐藏字段 * @var array */ protected $hidden = ['app_id', 'update_time']; ...
true
f57817d76e8767dddeb57625fbe6c268934d7a37
PHP
Crindigo/Maroon
/src/Maroon/RPGBundle/Entity/Item.php
UTF-8
3,206
2.546875
3
[]
no_license
<?php namespace Maroon\RPGBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Maroon\RPGBundle\Validator\Constraints as MaroonAssert; /** * Item * * @ORM\Table(name="rpg_items") * @ORM\Entity(repositoryClass="Maroon\RPGBundle\Repository\ItemRepository") */ class Item { /** * @var integer * * ...
true
ec637ccf95234aa935dcd7d30c065f8f5f05549c
PHP
huongbee/php1204
/index02.php
UTF-8
814
3.40625
3
[]
no_license
<?php // $a = 4; // $b = 1; // $c = $a+$b; // echo "Tổng của $a + $b = $c"; // echo "<br>"; // echo 'Tổng của $a + $b = '.($a+$b); // $a = 4; // $a+=1; //$a = $a + 1; // echo $a; //5 // $b = 3; // $a+=$b; // echo $a; //8 // define('PI',3.14); // echo PI; $a = 2; $b = 2; $c = 2; if($a+$b > $c && $a+$c>$b && $b+$...
true
319320ec40df1d3cdbf363306536069c8c14197e
PHP
yudedako2444/BlackJackPhp
/src/Entity/Card.php
UTF-8
575
3.421875
3
[ "MIT" ]
permissive
<?php namespace BlackJackPhp\Entity; use BlackJackPhp\CardNumberType\CardNumberType; use BlackJackPhp\Enum\Suit; class Card { /** * @var Suit */ private $suit; /** * @var CardNumberType */ private $number; public function __construct(Suit $suit, CardNumberType $number) { ...
true
120b2d6b07290b3869ada59e6f108ebcb9c51146
PHP
hungtrinh/cms
/library/Tmi/Spider/Urbanspoon/Restaurant.php
UTF-8
1,850
2.71875
3
[]
no_license
<?php require_once ('Tmi/Spider/ICollection.php'); /** * * @author hungtd * */ class Tmi_Spider_Urbanspoon_Restaurant implements Tmi_Spider_ICollection { protected $_rootUrl = "http://www.urbanspoon.com/n/290/34610/Southern-California/California-City-restaurants"; public function __construct() {...
true
e35c9933601cdcc08a6d1d9e4217df210e396e71
PHP
rainerlederer42/thm_firstone
/xxxxx__sendcontact.php
UTF-8
2,290
2.546875
3
[ "MIT" ]
permissive
<?php $cb1val = "off"; $cb2val = "off"; if(isset($_POST['firstName'])){ $firstName = $_POST['firstName']; } if(isset($_POST['lastName'])){ $lastName = $_POST['lastName']; } // $theseanswers = $_POST[answercode]; if(isset($_POST['checkbox-store'])){ $cb1 = 'Store: ' . $_POST['checkbox-...
true
5d9258c21819fcc92ce116b86dbd97a65b7612bc
PHP
rejauldu/spa
/app/Promo.php
UTF-8
732
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Promo extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'promo', 'reusable', 'created_for_user', 'percent', 'is_active', 'valid_from', 'valid_until', 'updated_...
true
0012f0a157214d40360389736144e11a3d71c243
PHP
mfrost503/OhMyEmma
/Source/Kite/OhMyEmma/Emma.php
UTF-8
2,749
2.75
3
[]
no_license
<?php /** * This file is part of the Kite\OhMyEmma Library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Author Jacques Woodcock * @jwoodcock on GitHub * https://github.com/jwoodcock/CurlBack * * @license http://opensource.o...
true
1ef7af4b9d765a3dab83ae480cd3280507ba5662
PHP
pvessel/ServerGroveLiveChat
/src/ServerGrove/SGLiveChatBundle/Document/VisitHit.php
UTF-8
1,583
2.53125
3
[ "MIT" ]
permissive
<?php namespace ServerGrove\SGLiveChatBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; /** * Description of VisitHit * * @author Ismael Ambrosi<ismael@servergrove.com> * @MongoDB\EmbeddedDocument */ class VisitHit { /** * @MongoDB\Id */ private $id; /** * @M...
true
dd5544ad7c687cb3b58c366636168cda3c820277
PHP
iqiangzi/thinkphpBJUI
/App/Admin/Lib/Model/UserModel.class.php
UTF-8
2,531
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yang * Date: 2016/4/22 * Time: 14:55 */ class UserModel extends Model{ /** * 定义 */ public $model='User'; /** * @var array 这个是字段名 */ public $tableFields=array( 'uid'=>array('name'=>'UID','order'=>'1'), 'username'=>array('n...
true
7ed73488c3a7e87607764d40c80b2fda1a93c7d4
PHP
Spomky-Labs/pki-framework
/tests/ASN1/Type/Primitive/Boolean/BooleanTest.php
UTF-8
1,866
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SpomkyLabs\Pki\Test\ASN1\Type\Primitive\Boolean; use PHPUnit\Framework\Attributes\Depends; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; use SpomkyLabs\Pki\ASN1\Element; use SpomkyLabs\Pki\ASN1\Type\Primitive\Boolean; use SpomkyLabs\Pki\ASN1\Type\Prim...
true
11b9490ba86f185455ff897dac9b1f5f77df7da6
PHP
davidhiller/php-shoop
/src/FilterContracts/Interfaces/Countable.php
UTF-8
374
2.640625
3
[ "MIT" ]
permissive
<?php namespace Eightfold\Shoop\FilterContracts\Interfaces; use \Countable as PhpCountable; use Eightfold\Shoop\FilterContracts\Interfaces\Countable; interface Countable extends PhpCountable { public function asInteger(): Countable; public function efToInteger(): int; public function length(): Countab...
true
5b595baf625ebb3482fd9159cb56abd683eb1603
PHP
dnl-jst/easy-alert-library
/EA/Db/Query.php
UTF-8
2,686
2.765625
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
<?php /* * Copyright (c) 2012, Daniel Jost * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted/provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list * of co...
true
794f5e3c3fbdec282cb32ba4ca0788551e40ba2b
PHP
hxch/yaf-
/php-5.6.2/b.php
UTF-8
886
2.828125
3
[ "BSD-3-Clause", "BSD-4-Clause-UC", "Zlib", "ISC", "LicenseRef-scancode-other-permissive", "TCL", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "JSON", "LicenseRef-scancode-pcre", "blessing" ]
permissive
<?php function daemon() { $pid = pcntl_fork(); if($pid < 0){ die("fork(1) failed!\n"); }elseif($pid > 0){ exit; //让终端启动的进程退出 } chdir("/"); //改变当前目录为根目录 umask(0); //重设文件权限掩码 //建立一个有别于终端的新session以脱离终端 $sid = posix_setsid(); if (!$sid) { die("setsid failed!\n"...
true
3355b885ee5679489e99f4229c667da3a9a0f296
PHP
AntonShevchuk/Bluz
/library/Bluz/Ldap/Connector.php
UTF-8
5,803
2.796875
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) 2012 by Bluz PHP Team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, me...
true
f5d331c2283fde1bf9632dda7bb66968f30d1f86
PHP
pessolatohenrique/GuiaLivros
/application/models/autor_model.php
UTF-8
1,710
2.78125
3
[ "MIT" ]
permissive
<?php class Autor_model extends CI_Model{ function adicionar($autor){ $inseriu = $this->db->insert("autores",$autor); return $inseriu; } function listar($parametros = array("autor_nome" => "")){ $this->db->select("a.*, COUNT(l.autor_id) AS total_livros"); $this->db->from("autores a"); $this->db->join("livr...
true
54b8f6654751b7ed82c2a76d8e2b59572cf8cf3d
PHP
alygee/repeat.it
/app/Http/Controllers/PassportAuthController.php
UTF-8
2,397
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; class PassportAuthController extends Controller { public function register(Request $request) { $this->validate($request, [ 'name' => 'required|min:4', 'email' => 'required|email', 'pa...
true
7fbc7be4051526a0023d2e83df1bc492604bb3d7
PHP
gulasz101/test
/src/Support/ListParameterBag.php
UTF-8
1,514
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Pingen\Support; use Symfony\Component\HttpFoundation\ParameterBag; /** * Class ListParameterBag * @package Pingen\Support */ class ListParameterBag extends ParameterBag { /** * @param int $pageNumber * @return static */ public function setPageNumber...
true
fb5ea3f81f350a0fcd7c09ea2fe8ecf938bfb22d
PHP
Go2Flow/saas-register-login
/src/Rules/ValidCountry.php
UTF-8
761
2.53125
3
[]
no_license
<?php namespace Go2Flow\SaasRegisterLogin\Rules; use Illuminate\Contracts\Validation\Rule; use Nnjeim\World\World; class ValidCountry implements Rule { /** * @inheritDoc */ public function passes($attribute, $value) { $lang = session()->get('locale', 'en'); $action = World::setL...
true
691b14a37e16d392e3893f09c00465392ea53501
PHP
clickspaceio/laravel-clickexception
/src/ClickException.php
UTF-8
1,074
2.65625
3
[]
no_license
<?php namespace Clickspace\LaravelClickException\Exceptions; use Exception; use Throwable; class ClickException extends Exception { public $responseBodyType; public $responseBodyCode; public $responseBodyMessage; public $responseBodyAppends; public $responseBodyHttpCode; public $responseHead...
true
4fae8f2aba80f421147e4f967d18b951d4513fd6
PHP
PatrickJose00/GamingWebAPP
/MythicGaming/BL/user.php
UTF-8
2,377
2.71875
3
[]
no_license
<?php require_once(dirname(__FILE__).'/../DAL/userDAL.php'); /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ class user { public $id; public $email; public $password; ...
true
05e6bdb001ea7df78012932b89cd6a450eb46f77
PHP
neighborhoods/kojo
/src/CacheItemPool/Repository/AwareTrait.php
UTF-8
954
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Neighborhoods\Kojo\CacheItemPool\Repository; use Neighborhoods\Kojo\CacheItemPool\RepositoryInterface; trait AwareTrait { public function setCacheItemPoolRepository(RepositoryInterface $cacheItemPoolRepository): self { $this->_create(RepositoryInterface::class...
true
4943562eb9c872f9d2582627675c2466e7a8f9ce
PHP
ManonBarbi/test
/HelloWorld.php
UTF-8
113
2.828125
3
[]
no_license
<?php declare(strict_types=1); class HelloWorld { public function Hello() { return 'Hello World!'; } }
true
a1bec282e534ce82fc8511a5644edac8f551a6af
PHP
adrianpisabarrogarcia/php-introduction-exercises
/examen-eval3/app/Http/Controllers/ControladorContacto.php
UTF-8
1,713
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Mail; class ControladorContacto extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { } /** * Store a newly created resource ...
true
0fb8698c3d6127cb902f0e332eff47464e16bd76
PHP
OrigamiStructures/StudioManagerScratch
/src/Model/Lib/Layer.php
UTF-8
10,040
2.796875
3
[]
no_license
<?php namespace App\Model\Lib; use App\Interfaces\LayerAccessInterface; use App\Interfaces\LayerStructureInterface; use App\Model\Lib\LayerAccessArgs; use App\Model\Traits\LayerElementAccessTrait; use Cake\Core\ConventionsTrait; use Cake\ORM\Enitity; use Cake\Collection\Collection; use App\Exception\BadClassConfigurat...
true
c630c5805388a3d9efd35b646a5565fe09388580
PHP
P-Shakibafar/Restful-Api
/app/Http/Controllers/ReviewController.php
UTF-8
2,461
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Resources\ReviewResource; use App\Http\Requests\ReviewRequest; use App\Model\Product; use App\Model\Review; use Illuminate\Http\Request; use function response; use Symfony\Component\HttpFoundation\Response; class ReviewController extends Controller { ...
true
bc6ab9828e69f0cc68547cac40548c7c40546c3c
PHP
wp-plugins/headmeta
/headmeta.php
UTF-8
3,607
2.90625
3
[]
no_license
<?php /* Plugin Name: HeadMeta Plugin URI: http://dougal.gunters.org/plugins/headmeta Demo URI: http://dougal.gunters.org/blog/2004/06/17/my-first-wordpress-plugin-headmeta Description: This plugin allows you to add &lt;meta&gt; and &lt;link&gt; tags to the &lt;head&gt; of your posts or pages based on post custom field...
true
c4d8a088979e1f8c8103e62a10ece1692c09be41
PHP
errolkelleype/Php-CRUD-system-with-login
/crud.php
UTF-8
1,140
2.578125
3
[]
no_license
<?php include_once("config.php"); $result = mysqli_query($mysqli, "SELECT * FROM birthdays"); ?> <!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="styles.css"> <title>Homepage</ti...
true
add3cd29dc49dac8e0b7f4825a9b9c2a047b2b8d
PHP
845alex845/consultorafisi
/app/repository/component/DocenteDAO.php
UTF-8
952
2.640625
3
[]
no_license
<?php include_once("../app/repository/AccesoBD.php"); include_once("../app/model/Docente.php"); class DocenteDAO{ private $collection; private $db; public function __construct(){ // $this->db= AccesoBD::getConnection(); //$this->collection=$db->Docente;//llama Docente } public funct...
true
b9e9d19afee6392e940b6418772513e7b440ad67
PHP
mopao/Ticket-System
/ticket_messages_format.php
UTF-8
1,320
2.625
3
[]
no_license
<?php use XMLManagers\{UserManager,TicketManager}; require __DIR__ . '/vendor/autoload.php'; if (isset($_POST['format']) && $_POST['format']==='html' && isset($_POST['ticket_id'])) { $ticketManager = new TicketManager(); $userManager = new UserManager(); $ticket = $ticketManager->findTicket($_POS...
true
14de54fb1b3d96afd8acb81f7573958bdf624ed5
PHP
esportschain/esportschain.org
/application/models/member/Third.php
UTF-8
2,049
2.703125
3
[]
no_license
<?php /** */ class Third extends CI_Model { const STATUS_NORMAL = 1; const STATUS_REMOVE = 5; const THIRDTYPE_STEAM = 1; // steam const THIRDTYPE_FACEBOOK = 2; // facebook private static $_table = 'member_third'; public function __construct() { parent::__construct(); ...
true
9e3d4c35279d01788879e78ce492363eeb421929
PHP
akshat12/peerwise-flashcard
/modify.php
UTF-8
2,254
2.765625
3
[]
no_license
<?php /* $root = getcwd(); $db = setupDatabase(); //Open new database shell_exec("chmod 775 pw_mod.db"); //Alter the database $cmd = "ATTACH DATABASE '".$root."/pw_orig.db' AS pw_orig"; //Attach first database $db->exec($cmd); $db->query('ALTER TABLE peerwise_questions ADD COLUMN quiz_topic BLOB DEFAULT d...
true
037fc05b07cda4d8570b8b6a0c5b3ddde4302f1a
PHP
cordoval/chamilo_phpperu
/application/reservations/php/lib/overview_item.class.php
UTF-8
1,559
2.703125
3
[]
no_license
<?php namespace application\reservations; use common\libraries\DataClass; use common\libraries\Utilities; /** * $Id: overview_item.class.php 219 2009-11-13 14:28:13Z chellee $ * @package application.reservations */ /** * @author Sven Vanpoucke */ class OverviewItem extends DataClass { const ...
true
b65e0155c1d5411f9bb5fc6ff0255bfd247b2d68
PHP
egreschner/egreschner.shanti.io
/yoga.php
UTF-8
2,594
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <?php include "style_sheet.php"; ?> <title>My Yoga Journey</title> </head> <body> <div> <?php include "header.php"; ?> <section class = "clearfix"> <article> <p class = "secondary"> <?php class Yoga { public $drishti; public fu...
true
fcee416de35dd12ebac415e602badd8a959e8642
PHP
chloe29/php-partie4
/exercice4/index.php
UTF-8
1,090
4.3125
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Exercice 4</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <?php // initialisation de 2 variables $nbr_1 = 5; $nbr_2 = 8; // on crée une fonction returnNbr() avec 2 p...
true
569841d3567a18301b91103a4cfe6b2cbfdadb40
PHP
jonasiliaens/web-backend-oplossingen
/test.php
UTF-8
393
2.84375
3
[]
no_license
<?php $array = array('string1', 'string2', 'string3', 'string4'); for ($key = 0; $key < count($array); ++$key) { echo $array [ $key ]; } ?> <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Tes...
true
b7417f5096b2abee5c5b93fd55cb186031cdcdcc
PHP
yinkiet/DimChoiPhp
/lib/db.php
UTF-8
955
2.953125
3
[]
no_license
<?php // Class database class database { function database($dbhost, $dbuser, $dbpass, $db) { $this->connection = mysql_connect($dbhost, $dbuser, $dbpass, 1); if (!$this->connection || !mysql_select_db($db, $this->connection)) { return false; } else { return true; ...
true
52a905331e8198007a55fd3fd2c2f4e5834325ff
PHP
Shahin-Howlader/PHP-TSP-COMPUTER
/29Feb-2020/chapter_3-function.php
UTF-8
1,836
3.25
3
[]
no_license
<h2>shuffle</h2> <?php $face = array("J", "Q", "K", "A"); $numbered = array("2", "3", "4", "5", "6", "7", "8", "9"); $cards = array_merge($face, $numbered); shuffle($cards); echo "<pre>"; print_r($cards); ?> <h2>Array Combine</h2> <?php $abbreviations = array("AL", "AK", "AZ", "AR"); $states = array("Alabama", "Al...
true
dbc61e275c1f49a8d5b007f88cf3a69cf7bceb94
PHP
mehedihassanhimel/student-portal
/Model/regDataDB.php
UTF-8
1,117
2.609375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->con...
true
de1d414967cac6f360197e326047616c78e1ade7
PHP
ndioufqndiaye/projet-POO
/pooclasse/loyer.php
UTF-8
630
2.640625
3
[]
no_license
<?php class Loger extends Boursier{ protected $id_chambre; protected $id_boursier; public function __construct($matricule,$nom,$prenom,$email,$date_naissance,$id_chambre="",$id_boursier="") { parent::__construct($matricule,$nom,$prenom,$email,$date_naissance,$type=""); $this->id_chambre = $id_chambre; } pub...
true
fbfa45a2f448d00a992fccb5d90c5219d153efb7
PHP
OGBitBlt/Output
/src/AbstractOutput.php
UTF-8
4,906
3.265625
3
[ "MIT" ]
permissive
<?php namespace OGBitBlt\Output; /** * Abstract Class for all output objects */ abstract class AbstractOutput { private $compression = OutputCompressionType::None; private $encoding = OutputEncodingType::ASCII; private $stream = null; private $newline = "\n"; private $prepend = ""; private $a...
true
83c323507b9a504130bf6d9dfa0061c5218add25
PHP
javiertelioz/docker-magento-php7
/code/lib/Zend/replace_recursive.php
UTF-8
1,069
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "OSL-3.0", "AFL-3.0", "AFL-2.1" ]
permissive
<?php replace_recursive('.'); function replace_recursive($dir) { $files = glob($dir.'/*'); foreach ($files as $file) { if ($file=='.' || $file=='..') { continue; } if (is_dir($file)) { replace_recursive($file); continue; } if (substr(...
true
8ba1d160e0b73a2ca3652f7add62fda04d608957
PHP
Rastusik/ci-assignment
/src/AppBundle/Model/DBAL/Type/StringArrayType.php
UTF-8
2,730
2.890625
3
[ "MIT" ]
permissive
<?php /** * @author mfris */ namespace AppBundle\Model\DBAL\Type; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\PostgreSqlPlatform; use UnexpectedValueException; /** * Description of DbArrayType * * @author rasta */ class StringArrayType extends Type {...
true
3d18ea1dfd5bf0352ba53ac36cb1142870e3c37b
PHP
lavalava/gamepub
/actions/groupleave.php
UTF-8
1,969
2.625
3
[]
no_license
<?php if (!defined('SHAISHAI')) { exit(1); } /** * Leave a group * * This is the action for leaving a group. It works more or less like the subscribe action * If user is the owner of group, this operation results in group delete * for users. * * @category Group * @package ShaiShai */ class GroupleaveAc...
true
b66b178610225ebfdf9035a84a53c9c841417f6f
PHP
Behat/SahiClient
/src/Behat/SahiClient/Accessor/Table/CellAccessor.php
UTF-8
2,496
2.703125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Behat\SahiClient. * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Behat\SahiClient\Accessor\Table; use Behat\SahiClient\Connectio...
true
ecfa7970c2db858d949868f424b7b5ed20860a21
PHP
Jonyap997/DP2
/adminStockServer.php
UTF-8
4,870
2.71875
3
[]
no_license
<?php session_start(); //Initialise variable $id = 0; $name = ""; $brand = ""; $amountRemaining = ""; $volume = ""; $price = ""; $source = ""; $description = ""; $image_id = ""; $edit_state = false; //Connect to database $dbHost="localhost"; $dbUser="id911519...
true
8c3dac134c51700774069de33868a0c78b882a39
PHP
Kazunari-Ishikawa/animalgo
/class.php
UTF-8
6,141
3.625
4
[]
no_license
<?php //================================ // 主人公クラス:主人公の情報を管理する //================================ class Human { // プロパティ protected $name; protected $hp; protected $luck; //逃げる確率:MAX100 protected $numNormal; //ノーマルボールの保有数 protected $numRare; //レアボールの保有数 protected $numUltra; //ウルトラボールの保有数 // コンストラクタ pub...
true
0c30d05a2c1712c63088c3eb8c9091b69d5ca3e4
PHP
Veuge/piggyBank
/serverSide/moduloGastos/database/gastoService.php
UTF-8
1,984
2.953125
3
[]
no_license
<?php class GastoService{ public static function obtenerDatos(){ $db = new Database (DATABASE, HOST, USERNAME, PASSWORD); $result = $db->executeQuery("select * from gasto"); $arrayGasto = array(); foreach ($result as $row) { $gas = new Gasto...
true
666384f6e762ea433b20f334c5269d2e809462ef
PHP
yijie8/shopForSwoft
/app/Model/Entity/StoreService.php
UTF-8
4,119
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace App\Model\Entity; use Swoft\Db\Annotation\Mapping\Column; use Swoft\Db\Annotation\Mapping\Entity; use Swoft\Db\Annotation\Mapping\Id; use Swoft\Db\Eloquent\Model; /** * 客服表 * Class StoreService * * @since 2.0 * * @Entity(table="store_service") */ class StoreService e...
true
d346ae9230c68ee77b438d397954bdec515bf320
PHP
DeveloperFullstack/developerfullstack
/app/Section/InformacionPersonal.php
UTF-8
2,554
2.609375
3
[]
no_license
<?php namespace App\Section; use EBM\{ Field\Field }; use App\LuGender; use App\Utils\RegexUtil; class InformacionPersonal extends AbstractApplicationSection { protected $slug = 'informacion-personal'; public function setFields() { $user = $this->getUIApplication()->getInstance('user'); ...
true
5a08e4d9f729c7328f2af91775512f8a453fdde8
PHP
AbderrahimMakina/kindergarten-webbapp-Symfony3.4
/eventBundle/Entity/evennements.php
UTF-8
4,274
2.609375
3
[]
no_license
<?php namespace eventBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * evennements * * @ORM\Table(name="evennements") * @ORM\Entity(repositoryClass="eventBundle\Repository\evennementsRepository") */ class evennements { /** * @var int * @OR...
true
58aecd1bbb1c5e39bb57fa2e351c1a535071089d
PHP
KonstantinP85/import-service-client
/src/ImportServiceApi/News/Response/GetResponse.php
UTF-8
2,712
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace kp\MicroserviceApi\ImportServiceApi\News\Response; use kp\MicroserviceApi\Response\SuccessfulResponse; class GetResponse extends SuccessfulResponse { /** * @var int */ private int $id; /** * @var string */ private string $category; /...
true
a31ff168572f2ee2d366e9d37987a28be10fdbf7
PHP
harmim/bangor-icp-3046-labs
/e-shop/src/classes/Main/Security/IAuthenticator.php
UTF-8
681
3.0625
3
[]
no_license
<?php /** * @author Dominik Harmim <harmim6@gmail.com> */ declare(strict_types=1); namespace Main\Security; /** * Performs authentication. * * @package Main\Security */ interface IAuthenticator { /** * exception error codes */ public const IDENTITY_NOT_FOUND = 1, INVALID_CREDENTIAL = 2; /** * P...
true
a7800d1e1d222fe71706fb0f724ebf55cbfd33d3
PHP
wal34/School-Management-System
/Application/admin/AddStudent.php
UTF-8
25,713
2.515625
3
[]
no_license
<?php session_start(); if ($_SESSION["login_admin"] == null) { header("location: index.php"); } else { include_once('include/admin_navbar.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Add Student</title> <meta charset="utf-8"> <meta name="viewport" c...
true
6d8bce4346a0484f47e51c2cc9d82884ac6eb7db
PHP
RazaChohan/blog-app
/app/Router/Router.php
UTF-8
4,840
2.9375
3
[]
no_license
<?php namespace App\Router; use AltoRouter; use App\Middlewares\MiddlewareServiceProvider; use App\Middlewares\MiddlewareType; use App\Utilities\Request\Request; use App\Utilities\Request\ResponseCodes; use Exception; class Router { /*** * Main router method registering routes * * @throws Exceptio...
true
6151bb7353a16fefea2d5c587e95ae866350204e
PHP
makasim/fpBackupPlugin
/lib/task/fpBackupDbTask.class.php
UTF-8
1,968
2.703125
3
[]
no_license
<?php /** * * @package fpBackupPlugin * @subpackage Task * * @author Maksim Kotlyar <mkotlar@ukr.net> * */ class fpBackupTask extends sfBaseTask { protected function configure() { $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The applicati...
true
f2aadbbc4ed535ac1c43aa74554d21df0b8d390d
PHP
vguillem/piscine-php
/rush00/admin_cmd.php
UTF-8
943
2.5625
3
[]
no_license
<?php session_start(); include("header.php"); include("bdd.php"); if (!$_SESSION['admin']) header("Location: index.php"); if($_GET['id']) { $total = 0; $req = "SELECT item_id, qte FROM Panier WHERE id='" . $_GET['id'] . "'"; $res = mysqli_query($bdd, $req); while ($t = mysqli_fetch_assoc($res)) { $sql = "SELECT ...
true
d31e2137c9075907a0451a79c29e78db20acb0ee
PHP
encry2024/chigo-inventory
/app/Http/Controllers/Backend/Inventory/Referral/ReferralTableController.php
UTF-8
1,038
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Backend\Inventory\Referral; use App\Http\Controllers\Controller; use Yajra\Datatables\Facades\Datatables; use App\Repositories\Backend\Inventory\Referral\ReferralRepository; use App\Http\Requests\Backend\Inventory\Referral\ManageReferralRequest; /** * Class ReferralTableControlle...
true
89a954aaa06837e082ff7b2a35cfa51e05962d69
PHP
JoffreyC22/blog
/app/models/Post.php
UTF-8
1,370
2.703125
3
[]
no_license
<?php namespace App\Models; use App\Managers\PostManager as PostManager; class Post extends Modele{ private $id; private $title; private $content; private $createdAt; private $updatedAt; private $userId; public function __construct($valeurs = array()) { parent::__construct($valeurs); } pub...
true
4e4e9299702cf124b545671464e70237b433409c
PHP
Ikimea/IkimeaPageBundle
/Model/Page.php
UTF-8
5,115
2.546875
3
[]
no_license
<?php /* * This file is part of the Ikimea Pages package. * * (c) Ikimea <http://www.ikimea.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ikimea\PageBundle\Model; use DateTime; /** * @author Mbechezi Mlanawo <mlanaw...
true
c4cc6426a1e20c01af53ecf2235e026400ec0e64
PHP
robbieveivers/food-order
/admin/edit-admin.php
UTF-8
3,106
2.96875
3
[]
no_license
<?php include('partials/menu.php'); // Get the id of the admin being edited $id = $_GET['id']; ?> <div class='main-content'> <div class='wrapper'> <h1>Edit Admin</h1> <br><br> <?php if(isset($_SESSION['edit'])){ echo $_SESSION['edit']; u...
true
d9ea955f7ec8e7e226cb41d08b936014d4b515b6
PHP
Twispay/WooCommerce
/Twispay WooCommerce Plugin/twispay/helpers/Twispay_TW_Logger.php
UTF-8
3,492
2.9375
3
[ "MIT" ]
permissive
<?php /** * Twispay Helpers * * Logs messages and transactions. * * @package Twispay/Front * @category Front * @author Twispay */ /* Exit if the file is accessed directly. */ if ( !defined('ABSPATH') ) { exit; } /* Security class check */ if ( ! class_exists( 'Twispay_TW_Logger' ) ) : /** * Twispa...
true