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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
380978b9065bb113444115ed2ec406b4fb28dced | PHP | lbandlish/FIR_management_system | /registerFir.php | UTF-8 | 13,763 | 3.0625 | 3 | [] | no_license | <?php
session_start();
$err = "";
class compareImages
{
public function mimeType($i)
{
/*returns array with mime type and if its jpg or png. Returns false if it isn't jpg or png*/
$mime = getimagesize($i);
$return = array($mime[0],$mime[1]);
switch ($mime['mime'])
{
case 'image/jpeg':
$return[... | true |
b68ee9cc084743d46833badad0968e62daa043a7 | PHP | drago2life/dragons-kingdom | /FormProtect.php | UTF-8 | 3,833 | 2.515625 | 3 | [] | no_license | <?php
session_start();
session_register('keyCode');
$gen = $_REQUEST['gen'];
if(isset($gen))
{
include("codeconfig.php");
if ($secEnabled == "true")
{
$referalURL = $_SERVER['HTTP_REFERER'];
$allowedSites = explode("|", $secSiteList);
$i = 0;
list($trashValue, $returnValue) = sp... | true |
54f0d46962e35e87fd7a7505360879019c1513df | PHP | phanquanghiep123/gjshop | /app/Http/Controllers/ContributorsController.php | UTF-8 | 910 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use App\Contributor;
/**
* Description of ContributorController
*
* @author dinhtrong
*/
class ContributorsController extend... | true |
364768ea4efb64c808a11a4fdfc425ebfa9ae9fb | PHP | GlobalSiteDev/IABS-IT-Academy | /Simple site in OOP/classes/OneProject.php | UTF-8 | 902 | 3.046875 | 3 | [] | no_license | <?php
class OneProject
{
const PROJECT_PATH = "./projects";
const DELIMITER = "\n";
public $title;
public $content;
public $projectFile;
public function __construct($projectFile) {
$content = file_get_contents(self::PROJECT_PATH . DIRECTORY_SEPARATOR . $projectFile);
... | true |
17a1a7dd4287124359abe9f6b68a67302ed66756 | PHP | rudolfbruder/custom-php-mvc | /web/views/profile/Includes/listProfileDogs.php | UTF-8 | 2,460 | 2.546875 | 3 | [] | no_license | <?php
if (isset($this->myDogs)) {
$dogCount = count($this->myDogs);
if ($dogCount < 5) {
?> <div class="row"> <?php
foreach ($this->myDogs as $myDog) {
?>
<div class="col-md-3">
<div class="card mb-4" style="min-width: 209px!important;">
<div class="card-header text-center"> <?=$myDog->name?>... | true |
d1cf904514dc149c0cd0645c0016c5607061bc4b | PHP | Saskke/motoservice | /motoservice/components/db.php | UTF-8 | 618 | 2.8125 | 3 | [] | no_license | <?php
$dbhost = "localhost"; //КОД ДЛЯ ПОДКЛЮЧЕНИЯ БАЗЫ SQL
$dbuser = "root"; //root для open server
$dbpass = "root"; //root для open server
$dbname = "moto_905";
$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
$mysqli->set_charset("utf-8"); //-> это как обращение.
if ($mysqli->connect_error) { //тут идет... | true |
a0686aefd2c8ac2d6f149617fcf452c8ddba579b | PHP | Golikova/Laravel-project-crimeaproperty | /Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Property/TypeConverter/ArrayConverter.php | UTF-8 | 1,613 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace TYPO3\Flow\Property\TypeConverter;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistri... | true |
97fe4109acc9b9176b055b68ae2c96181d275e34 | PHP | hirak/packagist-crawler | /src/ExpiredFileManager.php | UTF-8 | 3,101 | 2.96875 | 3 | [
"CC0-1.0"
] | permissive | <?php
/**
* @license CC0-1.0
*/
namespace hirak\PackagistCrawler;
use PDO;
use DateTime;
class ExpiredFileManager
{
/** @type PDO $pdo */
private $pdo;
/** @type int $expire */
private $expire;
function __construct($dbpath, $expire)
{
if (!is_string($dbpath)) {
throw ne... | true |
0c8e3e5ca1aa160409f5b7d0c181515540307dbb | PHP | Shameless-coders/Betting-R-Us | /login.php | UTF-8 | 3,283 | 2.625 | 3 | [] | no_license | <?php
use BettingRUs\Models\{Database, User};
include 'Views/header.php' ;
require_once "vendor/autoload.php";
$password=$username=$userType=$userID="";
if(isset($_POST['loginBtn'])){
$localUsername = $_POST['username'];
$LocalPassword = $_POST['password'];
$db =... | true |
48a13c03c21b7d600f0571a2f74994efdc561eb1 | PHP | adrien-coquillat/boutique | /model/UtilisateurModel.php | UTF-8 | 3,130 | 2.796875 | 3 | [] | no_license | <?php
namespace model;
use PDO;
class UtilisateurModel extends Model
{
public function add($user, $table = NULL)
{
foreach ($user as $key => &$value) {
$value = trim(htmlspecialchars($value));
}
$SQL = "INSERT INTO utilisateur (login_u, nom_u, prenom_u, datedenaissance_u... | true |
1268cc7a548c957d28172dfa8694e89cb990f783 | PHP | wqian308/Clover-1 | /include/DatabaseObject/TodoUser.php | UTF-8 | 2,586 | 2.734375 | 3 | [] | no_license | <?php
class DatabaseObject_TodoUser extends DatabaseObject
{
const DELETE_YES = 'Y';
const DELETE_NO = 'N';
public function __construct($db)
{
parent::__construct($db, 'todo_user', 'id');
$this->add('tid');
$this->add('uid');
$this->add('projectid');
$this->add... | true |
1090a5f71f0e38b4b182b6f56944ec9bdd30952e | PHP | LesJudge/ekarrier | /library/uniweb/Utilities/ActiveRecord/Model/Behaviorable.php | UTF-8 | 8,523 | 2.609375 | 3 | [] | no_license | <?php
namespace Uniweb\Library\Utilities\ActiveRecord\Model;
use Uniweb\Library\Utilities\ActiveRecord\Model\ArBase;
use Uniweb\Library\Utilities\Behavior\Interfaces\BehaviorableInterface;
use Uniweb\Library\Utilities\Behavior\Interfaces\BehaviorInterface;
use Uniweb\Library\Utilities\Behavior\Executive\FilterableMagic... | true |
3f71c0061a77c445e4219b184eac9a0f9b99d125 | PHP | 19avl/manager-mysql | /Wr_sql.php | UTF-8 | 3,438 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
defined('_EXEC') or die();
trait Wr_sql
{
public function connect($SERVER)
{
if(!extension_loaded("mysqli")){
$this->connect = true;
$this->_LOG["MESSAGE"]["connect"] = "Module PHP mysqli is not installed";
return;
}
$this->dbc = mysqli_init();
if((isset($SERVER["ssl-key"]) && ($SERVER["s... | true |
7a62ecefc8403f34899f40bb816be821dc1a4ae6 | PHP | linkorb/haigha | /src/Persister/PdoPersister.php | UTF-8 | 5,140 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace Haigha\Persister;
use LinkORB\Component\Database\Database;
use Nelmio\Alice\PersisterInterface;
use RuntimeException;
use PDO;
class PdoPersister implements PersisterInterface
{
private $pdo;
private $output;
private $dryRun;
/**
* @param PDO $pdo
*/
public function __c... | true |
f748316d372f9429f696ab009ea047ac6db478aa | PHP | benivaldo/Chamados | /module/Sac/src/Repository/ChamadosRepository.php | UTF-8 | 665 | 2.703125 | 3 | [] | no_license | <?php
namespace Sac\Repository;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;
use Sac\Entity\Chamados;
// This is the custom repository class for Post entity.
class ChamadosRepository extends EntityRepository
{
// Finds all published posts having the given tag.
public function findChamados... | true |
8fb1ab81d79fd6797ace11338dd5bd9744bffa76 | PHP | Beaves83/proyectoRevista | /app/Http/Controllers/UsuarioController.php | UTF-8 | 4,197 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Usuario;
use App\Tarea;
class UsuarioController extends Controller
{
//añade un usuario a la base de datos.
public function anadir(Request $request){
//Recoger los datos del usuario por post
$json = $reque... | true |
47380806a4862e74c10f3926206018e91643c8fc | PHP | helloyuanyuan/referral-bonus | /libs/model.sys.php | UTF-8 | 4,842 | 2.71875 | 3 | [] | no_license | <?php
class Model
{
var $db_engine = "db";
var $db_type = "mysql";
var $langid = "zh";//指定语言包
function Model($db=false)
{
$db ? $this->run_db("database","db") : $this->load_db();
//指定langid
if($_SESSION["sys_lang_id"])
{
$this->langid = $_SESSION["sys_lang_id"];
}
}
function load_db... | true |
1e96b62faf6becc6a1644db79162152d98b55cac | PHP | dralletje/OODB | /mongo/mongodatabase.php | UTF-8 | 686 | 2.859375 | 3 | [] | no_license | <?php
## Represents a mongo database
class MongoDatabase extends OodbDatabase {
private $connection;
private $tables = array();
public function __construct($host, $base, $user, $pass, $port=null) {
parent::setTableClass("MongoTable");
$auth = "";
if( isset($user) && isset... | true |
193ce9bbc789798842608ef301323f3b0b660d74 | PHP | mgalea/office-manager | /builder/libs/Mailer.php | UTF-8 | 2,211 | 2.65625 | 3 | [] | no_license | <?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
//require DIR_BUILDER.'libs/vendor/autoload.php';
require DIR_BUILDER . 'libs/vendor/phpmailer/phpmailer/src/PHPMailer.php';
require DIR_BUILDER . 'libs/vendor/phpmailer/phpmailer/src/Exception.php';
require DIR_... | true |
352d4874ddab7a8c461457900b10254ac76edaf4 | PHP | FrancoisLetellier/WCSSymfonyProject | /src/AppBundle/Entity/UserProfile.php | UTF-8 | 2,616 | 2.75 | 3 | [] | no_license | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* UserProfile
*
* @ORM\Table(name="user_profile")
* @ORM\Entity
*/
class UserProfile
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
... | true |
c9d83000f232f80cbf8309b0743510ef046b54db | PHP | ValenokPC/bencode | /tests/DecodeListTest.php | UTF-8 | 2,366 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
use PHPUnit\Framework\TestCase;
use SandFoxMe\Bencode\Bencode;
use SandFoxMe\Bencode\Exceptions\InvalidArgumentException;
class DecodeListTest extends TestCase
{
public function testListSimple()
{
// of integers
$this->assertEquals([2, 3, 5, 7, 11, 13], Bencode::decode('li2ei3ei5ei7ei11e... | true |
f1c9c3303677778760243d7b368aceee0767c35c | PHP | adamrunner/novagrade-wp | /wp-content/plugins/layers-updater/includes/class-updater.php | UTF-8 | 7,661 | 2.734375 | 3 | [] | no_license | <?php /**
* Layers Updater Class
*
* This file is used to modify any Updater related filtes, hooks & modifiers
*
* @package Layers
* @since Layers 1.0
*/
class Layers_Updater {
const LAYERS_API_REMOTE_URL = 'https://www.layerswp.com/updates/';
private static $instance;
private $theme_checks_done... | true |
dfcfed5dbe65a845f087510e3635597c048a342e | PHP | lilpumpp/12345 | /vendor/atk4/ui/src/App.php | UTF-8 | 18,618 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace atk4\ui;
class App
{
use \atk4\core\InitializerTrait {
init as _init;
}
use \atk4\core\HookTrait;
use \atk4\core\DynamicMethodTrait;
// @var string|false Location where to load JS/CSS files
public $cdn = [
'atk' => 'https://cdn.rawgit.com/atk4/ui/1.2.0... | true |
ae5638f94c3f47947baf08a970ddbc2726ca6c1e | PHP | SicunStudio/AUNET | /ThinkPHP/Library/Vendor/spyc/examples/yaml-load.php | UTF-8 | 390 | 2.71875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <?php
#
# S P Y C
# a simple php yaml class
#
# license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
#
include('../Spyc.php');
$array = Spyc::YAMLLoad('../spyc.yaml');
echo '<pre><a href="spyc.yaml">spyc.yaml</a> loaded into PHP:<br/>';
print_r($array);
echo '</pre>';
echo '<pre>YAML... | true |
0366a6a4469d564c9331cfcec074f12e6a59cc9c | PHP | pyrog/geokrety-website | /tests/SocialGroupsTest.php | UTF-8 | 1,117 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
use PHPUnit\Framework\TestCase;
class SocialGroupsTest extends TestCase {
public function isValidHtmlContent($htmlExtract) {
try {
$doc = new DOMDocument();
return $doc->loadHTML('<html><body>'.$htmlExtract.'</body></html>');
} catch (Exception $e) {
echo... | true |
a46aaccb38667eb704a87e94ff46ad0611970b7a | PHP | paranoiq/dogma | /src/Time/TimeCalc.php | UTF-8 | 8,939 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php declare(strict_types = 1);
/**
* This file is part of the Dogma library (https://github.com/paranoiq/dogma)
*
* Copyright (c) 2012 Vlasta Neubauer (@paranoiq)
*
* For the full copyright and license information read the file 'license.md', distributed with this source code
*/
namespace Dogma\Time;
use Dogma... | true |
d8284c6816d60e3658fde3acf08236472e96d72a | PHP | Mizimax/masterstudio | /database/migrations/2019_09_11_141115_create_benefits_table.php | UTF-8 | 825 | 2.734375 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBenefitsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('benefits', function (Bluepr... | true |
9613f0e201e3956c07382038abc9f1ce6929704b | PHP | HiddenCMS/Core | /hidden/libraries/forms/phone.php | UTF-8 | 518 | 2.78125 | 3 | [] | no_license | <?php
/**
* https://neofr.ag
* @author: Michaël BILCOT <michael.bilcot@neofr.ag>
*/
namespace HD\Hidden\Libraries\Forms;
class Phone extends Text
{
public function __invoke($name)
{
parent::__invoke($name);
$this->_check[] = function($post, &$data){
if (isset($post[$this->_name]) && $post[$this->_name] !... | true |
e9fd3f9ecefa93f5c14008af873ecb0c0ce75ac5 | PHP | PuspaAyuAinurRahma/CypressSoftaculus | /modules/addons/beon_order/app/Models/Products.php | UTF-8 | 739 | 2.59375 | 3 | [] | no_license | <?php
namespace BeonOrder\Models;
use Illuminate\Database\Capsule\Manager as Capsule;
class Products
{
private $product = 'tblproducts';
public function getProductName($pid)
{
try {
$data = Capsule::table($this->product)
->select("{$this->product}.*")
... | true |
2884fe8cb1d7471508cb4062b0feab48ba2b9009 | PHP | DestinGit/poo | /test-voiture.php | UTF-8 | 835 | 2.8125 | 3 | [] | no_license | <?php
//require 'classes/Voiture.php';
require 'vendor/autoload.php';
use POO\Voiture;
use POO\Moteur;
use POO\Personne;
try {
$maVoiture = new Voiture('Peugeot', '307', 4, 1200, 5, new Moteur(4e4));
echo $maVoiture->getPoids();
echo '<br>';
echo $maVoiture->getVitesseMax();
$maVoiture->setM... | true |
42ea92ee2e2fea2e17888c5e18d66639d5d3a626 | PHP | rafaelsantanna/php | /Curso b7web/modulo6/index13.php | UTF-8 | 348 | 3.015625 | 3 | [] | no_license | <?php
//Documentando seu código
/*
* Função Somar
*
* Esta Função vai pegar um valor x e somar com um valor y
*
* @package ControleDeEstoque
* @author Rafael <rafaeel.16@gmail.com>
*
*@param $x float É o primeiro valor a ser somado
*@param $y float É o segundo valor a ser somado
*@return float
*/
function somar($x, $y... | true |
fd682766fc89155765b9ae83f25df74fd6080cc7 | PHP | GabrielMaxMaia/Sebook | /Sebookbranches/sebook_hostGator/src/model/Editora.php | UTF-8 | 1,467 | 3.25 | 3 | [] | no_license | <?php
namespace Model;
//Classe TO - Transfer Object - receber e enviar dados dentro do sistema ---> interface | BD
class Editora
{
//Atributos mapeando os campos da tabela
private $idEditora;
private $nomeEditora;
private $codStatusEditora;
//Método construtor auxiliar de criação de objetos
public function _... | true |
bcdc29141584e1fc4da6e602b9e64a919de15088 | PHP | brianmacdonald/StarchMVC | /system/Starch.php | UTF-8 | 1,528 | 2.609375 | 3 | [] | no_license | <?php
/**
* @package StarchMVC
* @author Brian Macdonald <brian@zycot.com>
* @copyright Copyright (c) 2009, Brian Macdonald
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
require_once BASE_DIR.'/system/Starch/Request.php';
require_once BASE_DIR.'/system/Starch/Dispatche... | true |
1f398155eda918f35a502c41aca332eef15f6201 | PHP | sonlam1102/exam-system | /app/Model/Questions.php | UTF-8 | 2,378 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Questions extends Model
{
protected $table = "question";
public function contest() {
return $this->belongsTo('App\Model\Contests', 'contest_id');
}
public function subquestions() {
return $this->hasMany('App\Mo... | true |
9be1a360af9d373d015fb33e182fbac542db7dc5 | PHP | jbartz93/CS-431 | /project3/assigngradesofsection.php | UTF-8 | 2,072 | 2.625 | 3 | [] | no_license | <?php
$pageTitle="Assign Grades";
$permissions = true;
include('helpers/base.php');
include('helpers/header.php');
$sectionid = $_POST['sectionID'];
if (!($granted['GiveGrade'])) {
die('you do not have permission to be here.');
}
?>
<form method="post" action="assigngr... | true |
798bef2b0388fa52012c5eff5ddbcbd162962182 | PHP | district13/frontcontroller_example | /Xscript/Registry.php | UTF-8 | 1,012 | 2.53125 | 3 | [] | no_license | <?
class Xscript_Registry extends ArrayObject {
private static $_registry = null;
public static function getInstance()
{
if (self::$_registry === null) {
self::$_registry = new Xscript_Registry();
}
return self::$_registry;
}
public sta... | true |
460b7c772a30d857d5cda65607637a4f50621d39 | PHP | erickmcarvalho/chatfood-challenge-airplane-booking-system | /src/app/Repositories/PassengerRepository.php | UTF-8 | 524 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
use App\Models\Passenger;
class PassengerRepository
{
/**
* Passenger Repository constructor.
*
* @param Passenger $passengerModel
*/
public function __construct(
private Passenger $passengerModel
)
{
//
}
/**
* Creat... | true |
34b08ecd5d9cfdcd84aa06c317d33cdf09480cf7 | PHP | ReneFGJr/Brapci2.0 | /application/models/Ias_abstract.php | UTF-8 | 2,878 | 2.71875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined("BASEPATH") or exit("No direct script access allowed");
/**
* CodeIgniter Form Helpers
*
* @package CodeIgniter
* @subpackage IA
* @category IA-Abstract
* @author Rene F. Gabriel Junior <renefgj@gmail.com>
* @link http://www.sisdoc.com.br/CodIgniter
* @version v0.21.02.16
... | true |
93471f1e1b3bd6d10bed5deca2d2400055595323 | PHP | Bankokiller2332/-alloerjkghqerjogb | /PFIYeet/CLASSES/ALBUM/album.php | UTF-8 | 5,178 | 3.0625 | 3 | [] | no_license | <?php
include_once __DIR__ . "/albumTDG.php";
include_once __DIR__ . "/../IMAGE/image.php";
class Album{
private $id;
private $title;
private $proprietaire;
private $description;
private $tempsCreation;
public function __construct(){
}
//getters
public function get_id(){
... | true |
ecc4aeab45d3d792e126ca9c8c586962e86aacbc | PHP | ghartono/harfenpayroll | /employeedelete2.php | UTF-8 | 1,315 | 2.984375 | 3 | [] | no_license | <html>
<?php
/*******************************
This page is to show the result of the deletion and
the process of the deletion
******************************/
//include css
echo"<link rel='stylesheet' type='text/css' href='css.css'>";
//command to start session
session_start();
//check if there is a session
if(isset($_S... | true |
366e94da825897f6b7fdf84a3ff5d22c0230a52c | PHP | adptDevs/Trip | /ext/getArchivedRecords.php | UTF-8 | 2,107 | 2.6875 | 3 | [] | no_license | <?php
define('IN_ADPT', true);
require('/dhtmlx/connector/grid_connector.php');
require('/dhtmlx/connector/db_config.php');
require('/dhtmlx/connector/db_sqlsrv.php');
$sql_db = 'Trip_2.0';
$sql_conn_info = array('Database'=>$sql_db, 'UID'=>$sql_user, 'PWD'=>$sql_pass);
$conn = sqlsrv_connect($sql_serv... | true |
7c0192908abb3c9ade81cda8deb711d14d15e122 | PHP | ownagepe/ModSpectate | /src/Bavfalcon9/ModSpectate/Command/spectate.php | UTF-8 | 2,188 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Bavfalcon9\ModSpectate\Command;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\utils\TextFormat as TF;
use pocketmine\Player;
use pocketmine\Server;
class spectate extends Command {
private $pl;
public function __construct($pl) {
parent::__constr... | true |
bb97303980904b0885a8532e7b07b49bc81295c8 | PHP | trialforce/blend | /src/view/option.php | UTF-8 | 1,899 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace View;
/**
* Html option element.
* Used inside Select
*/
class Option extends \View\View
{
public function __construct($value = null, $label = NULL, $selected = FALSE, $father = NULL)
{
parent::__construct('option', NULL, NULL, NULL, $father);
$this->setValue(... | true |
e075afb53d4a7d744eb41967a83ec1bf980c56d2 | PHP | prothomsoft/surveys | /model/UpdateCategoryDao.inc.php | UTF-8 | 3,791 | 2.90625 | 3 | [] | no_license | <?php
require_once(dirname(__FILE__)."/components/db.inc.php");
require_once(dirname(__FILE__)."/UpdateCategoryBean.inc.php");
/**
* UpdateCategoryDAO
*
* database access class - CRUD methods for table UpdateCategory
*/
class UpdateCategoryDao{
function __construct(){
}
public function create($objUpda... | true |
ed2a1b171320e5db11bb51b52280a019194f7544 | PHP | alwinks/Inventory-Application | /user/order_quantity_decrease.php | UTF-8 | 629 | 2.703125 | 3 | [] | no_license | <?php
session_start();
if (!$_SESSION['user_id']) {
header("Location: ../login.php");
}
include('../config.php');
$order_id = $_GET['order_id'];
$obj = new dboperation(); // New object
$conn = $obj->dbconn(); // Check connection
$obj->quantity($order_id); // Select quantity of order
$result = $obj->dbexecute(); // Ex... | true |
d1034366c03d2e6172302977f8a7834edb09967b | PHP | bitller/nova-manager | /app/Console/Commands/Refresh.php | UTF-8 | 951 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
/**
* Delete all old data and run everything again.
*
* @author Alexandru Bugarin <alexandru.bugarin@gmail.com>
*/
class Refresh extends Command {
/**
* The name and signature of the console command.
*
* @var string
*/... | true |
837704db29170a5eded7e1b98e1813888afec38e | PHP | inzmamhassan/code-refactor | /code/refactor/app/Mail/ChangeLangEmailToUser.php | UTF-8 | 825 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Mail;
use Illuminate\Mail\Mailable;
class ChangeLangEmailToUser extends Mailable
{
private $user;
private $job;
private $old_lang;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($user, $job, $old_lang)
{
$th... | true |
6baf4985fdbe1154f4d0c04117c65dcd00c5fe92 | PHP | topse-grace/topse-website | /lib/INTER-Mediator/DB_Support/DB_PDO_SQLite_Handler.php | UTF-8 | 5,888 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/**
* INTER-Mediator
* Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
*
* INTER-Mediator is supplied under MIT License.
* Please see the full license for details:
* https://github.com/INTER-Mediator/INTE... | true |
3fe1aad848b76f202a2b479b97f67ee08b4a04cc | PHP | amitjoy/nitd-network | /header_ie6check.php | UTF-8 | 917 | 2.578125 | 3 | [] | no_license | <?php
//Declaring the session object.
$session_object =& SESession::getInstance();
//Getting the value of 'show_ie6_popup' from the session
$show_ie6_popup = $session_object->get('show_ie6_popup');
//Checking the 'show_ie6_popup' field in the session which is 1 or 2.
if($show_ie6_popup != 1) {
$session_o... | true |
95cf78ebd695e83059b2379074065cd6b287ccc8 | PHP | daniilpanov/workable_ftp045 | /app/builders/SelectQueryBuilder.php | UTF-8 | 2,555 | 2.78125 | 3 | [] | no_license | <?php
namespace app\builders;
class SelectQueryBuilder extends QueryBuilder
{
public $select = [],
$from,
$where = [],
$order = null,
$order_type = "ASC",
$limit = null,
$group = null,
$templates = [];
private function addTemplate($name, $value)
{... | true |
00346ae2145e45bc0216ab50eb107a2a53d0cc74 | PHP | jackpopper/postBlogAtompub | /atompub_ameba.php | UTF-8 | 1,838 | 2.546875 | 3 | [] | no_license | <?php
require_once 'atompub.php';
define('SERVICE_DOCUMENT_URI', 'http://atomblog.ameba.jp/servlet/_atom/blog');
class AmebaAtomPubClient extends AtomPubClient {
public function getResorceUri() {
$resorce = $this->doMethod(SERVICE_DOCUMENT_URI, HTTP_REQUEST_METHOD_GET);
$obj = simplexml_load_str... | true |
842276512d87c103acd1e7b6fd023c287834046b | PHP | tyroneruss/PhPCJO | /scripts/InsertTechPositionSalary.php | UTF-8 | 1,591 | 2.921875 | 3 | [] | no_license | <!DOCTYPE html>
<!--
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.
-->
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-... | true |
685e04e9d0fc07f81081223d47a203f581da8e76 | PHP | renanjodas/Projeto-desenvolvimentoWEB-PHP | /GRSolucoesTi/classes/Contato.php | UTF-8 | 941 | 2.640625 | 3 | [] | no_license | <?php
class Contato{
public $pkContato;
public $nome;
public $telefone;
public $email;
public $mensagem;
public function enviarMensagem($nome, $telefone, $email, $mensagem){
$conexao = new PDO("mysql:host=127.0.0.1; dbname=gr_solucoes","root","");
... | true |
e270268a80a29c699031db4a3a16e30e6339c99d | PHP | kromajmun/www | /concertParis/users.php | UTF-8 | 834 | 2.765625 | 3 | [] | no_license | <?php include("include/header.php");
$link = connectDB();
//On recupere les infos de la personne
$sql='SELECT * from t_personne';
$req = mysql_query($sql,$link) or die('Erreur SQL !<br />' . $sql . '<br />' . mysql_error());
?>
<h1>Users</h1>
<br />
<?php
echo('<table><tr>
<th>ID</th>
<th>USER</th>... | true |
123a02de8eded28801a0bfa7761b8be4d2ccac37 | PHP | artkost/yii2-starter-kit | /app/modules/user/Module.php | UTF-8 | 3,042 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace app\modules\user;
use app\base\ModuleParamTrait;
use app\base\TranslatableTrait;
use Yii;
use yii\base\BootstrapInterface;
use yii\base\Model;
class Module extends \yii\base\Module implements BootstrapInterface
{
const PARAM_ROOT = 'user';
const TRANSLATE_CATEGORY = 'user';
use ModulePar... | true |
209f11a41fddaa2d4d6aca7482f3ea0e8fcb1f63 | PHP | danepowell/composer-patches-cli | /src/Composer/PatchBaseCommand.php | UTF-8 | 914 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace szeidler\ComposerPatchesCLI\Composer;
use Composer\Factory;
use Composer\Command\BaseCommand;
class PatchBaseCommand extends BaseCommand {
protected function configure() {
$this->changeWorkingDirToComposerRoot();
}
protected function changeWorkingDirToComposerRoot() {
$io = $this->get... | true |
6aaf0eda0fb78ea8d0217666c7796ebb0a56e373 | PHP | banua-coder/PICO_SULTENG_WEB | /app/Transformers/VaccineLocationTransformer.php | UTF-8 | 1,323 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Transformers;
use App\Models\VaccineLocation;
use League\Fractal\TransformerAbstract;
class VaccineLocationTransformer extends TransformerAbstract
{
/**
* List of resources to automatically include.
*
* @var array
*/
protected $defaultIncludes = [
//
];
... | true |
d02cdfda1beb9e63c6f37a895ab81cb3201b7add | PHP | voku/portable-utf8 | /tests/ShimXmlTest.php | UTF-8 | 841 | 2.515625 | 3 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Lic... | permissive | <?php
declare(strict_types=0);
namespace voku\tests;
use Symfony\Polyfill\Php72\Php72 as p;
use voku\helper\UTF8;
/**
* Class ShimXmlTest
*
* @internal
*/
final class ShimXmlTest extends \PHPUnit\Framework\TestCase
{
public function testUtf8Encode()
{
$s = \array_map('chr', \range(0, 255));
... | true |
cd020a3e03177f1621e3f2401cbebaafa843b66e | PHP | Fisbang/fisbang-admin | /app/Article.php | UTF-8 | 1,129 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Kyslik\ColumnSortable\Sortable;
class Article extends Model
{
use Sortable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'title', 'description', 'url', 'image',
];
... | true |
042120602b68b4ba510a65cab1e896b6dbf24ab1 | PHP | GGois80/minha-prova | /into_prato.php | UTF-8 | 789 | 2.59375 | 3 | [] | no_license | <?php
require_once 'conexao.php';
$nome_p = $_POST["nome"];
$preco = $_POST["valor"];
$descricao = $_POST["descricao"];
$idCate = $_POST["categoria"];
$query="INSERT INTO prato (nome_p, preco, descricao, idCate) VALUES ('$nome_p', '$preco', '$descricao', '$idCate')";
//echo $query;exit;
$insere= mysqli_... | true |
980520ac6c9307e8bda2853f7e46e35d32b5c2aa | PHP | aymericLaze/GSB-PPE2 | /controleurs/c_selectionnerFicheFrais.php | UTF-8 | 5,311 | 2.515625 | 3 | [] | no_license | <?php
/**
* Contrôleur pour choisir quelle fiche de frais afficher
*
* choisirMois : Sélection du mois avec frais non validé (CL)
* choisirVisiteur : Sélection du visiteur avec frais non validé (CL)
* voirFicheFrais : Affichage de la fiche de frais non validé (CL)
* choisirFicheSuiviPayement : Sélection des mois... | true |
52bad2ee2e95abd505167910742b2b55afa18d5d | PHP | dznet/onlinesim-php-api | /src/Responses/GetRent/Get.php | UTF-8 | 1,543 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace s00d\OnlineSimApi\Responses\GetRent;
use s00d\OnlineSimApi\Responses\Base;
class Get extends Base
{
public $tzid;
public $status;
public $messages = [];
public $country;
public $rent;
public $extension;
public $sum;
public $number;
public $time;
public $hours;
... | true |
0c93c7ffef9bc8351ec308d7cdd564c552cd4a5c | PHP | kskpremier/selfin.tk | /reception/repositories/MyRent/OwnersContractsRepository.php | UTF-8 | 812 | 2.859375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace reception\repositories\MyRent;
use reception\entities\MyRent\OwnersContracts;
use reception\repositories\NotFoundException;
class OwnersContractsRepository
{
public function get($id): OwnersContracts {
if (! $ownersContracts = OwnersContracts::findOne($id)) {
throw new No... | true |
59deab90f376de099bdc019c5170ce0717236697 | PHP | DGTVE-VE/Reportes-M-xico-X | /model/dao/SplashSplashconfigDAO.class.php | UTF-8 | 1,727 | 2.625 | 3 | [] | no_license | <?php
/**
* Intreface DAO
*
* @author: http://phpdao.com
* @date: 2015-09-03 19:45
*/
interface SplashSplashconfigDAO{
/**
* Get Domain object by primry key
*
* @param String $id primary key
* @Return SplashSplashconfig
*/
public function load($id);
/**
* Get all records from table
*/
public f... | true |
e8245f07a8fbbb829166865c323e93164ddeb1a4 | PHP | agung96tm/Challange-Odeo-Tech | /src/Console/MigrateCommand.php | UTF-8 | 1,823 | 2.734375 | 3 | [] | no_license | <?php
namespace App\Console;
require "bootstrap.php";
use App\Databases\Migrations\User;
use App\Databases\Migrations\Token;
use App\Databases\Migrations\Mail;
use Illuminate\Database\Capsule\Manager as Capsule;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use S... | true |
bc997d221abba3c2d0e70e97aaaa9ea8232ffef2 | PHP | tuanngoc1999/PHP | /Website/entities/product.class.php | UTF-8 | 3,755 | 3.109375 | 3 | [] | no_license | <?php
class Product{
public $ProductName;
public $Price;
public function __construct($ProductName, $Price){
$this->ProductName = $ProductName;
$this->Price = $Price;
}
public static function SortRandomProduct($min, $max){
$sql = "CREATE TEMPORARY TABLE IF NOT EXISTS temp AS ... | true |
0ba8d36e35e63c5960710e4b093afb08b2d9f50d | PHP | jooorooo/rapido | /src/Response/Tracking.php | UTF-8 | 1,717 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace Rapido\Response;
/**
* File for class Tracking
* @package Rapido
* @subpackage Response
* @author Georgi Nachev <jooorooo@gmail.com>
* @version 20150429-01
* @date 2018-03-09
*/
use Carbon\Carbon;
/**
* This class stands for Tracking originally named Tracking
... | true |
0276968105301b37352fc3db3a33b3f4a007a247 | PHP | snosirov/mithpressbeta | /themes/mithpressnew/category_ordering.php | UTF-8 | 1,252 | 2.5625 | 3 | [] | no_license | <?php get_term( $term, $taxonomy, $output, $filter ) ?>
<?php $peopleQuery = new WP_Query(array('post_type' => 'people', 'orderby' => 'category', 'order' => 'ASC', 'posts_per_page' => '-1')); ?>
<?php $prevcat = ""; ?>
<?php if(have_posts()) { while ( $peopleQuery->have_posts() ) { $peopleQuery->the_post(... | true |
f7dfa398a66f4dc6cbea888c7726b66b7c70b9b3 | PHP | katofares/l55_ecommerce_blog | /app/Http/Controllers/PostsController.php | UTF-8 | 3,427 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Http\Requests\StorePostRequest;
use App\Post;
use Session;
class PostsController extends Controller
{
// Pagination limit
const LIMIT = 10;
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public functi... | true |
c84ce0eed0f349bd7cafb9613dba466adbfbe123 | PHP | AlifeNg/nsgSite | /service/register.php | UTF-8 | 893 | 2.75 | 3 | [] | no_license | <?php
include_once "./connectDB.php";
// 注册
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
$sql = "SELECT * FROM user WHERE username='$username'";
// print_r($sql);
# 执行SQL语句
$result = mysqli_query($db,$sql);
if(mysqli_num_rows($result) == 0)
{
# 该... | true |
8578974ff07d64f6d13c138eff851cfd7e97c870 | PHP | tu97011/write-read | /models/Zuowen.php | UTF-8 | 1,471 | 2.59375 | 3 | [
"BSD-3-Clause",
"CC0-1.0"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "zuowen".
*
* @property integer $id
* @property integer $zhuti_id
* @property integer $class
* @property string $title
* @property string $content
* @property integer $create_user_id
* @property string $create_time
* @property int... | true |
9b45f620398a666ee8cf1c7865cf62ffb05b4ee7 | PHP | DangKien/webthoitrang | /code/database/seeds/UsersTableSeeder.php | UTF-8 | 3,891 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use NF\Roles\Models\Role;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = new Faker\Generator();
$f... | true |
b13a9c5131c62bb41f237c56cdc290f4fc326c1d | PHP | artisdom/php-vend-api-wrapper | /src/Vend.php | UTF-8 | 8,327 | 2.78125 | 3 | [] | no_license | <?php
namespace g4ther;
/*
Other affiliated files (do not delete these):
vend_data.txt
vend_redirect.php
@author Nick Clark <nick@itsoftware.net.au>
@version 1.0.0
*/
class Vend {
// constants
define("VEND_REDIRECT", dirname("http" . (isset($_SERVER['HTTPS']) ? 's' : '') . "://" . $_SERVER['SERV... | true |
31a7c097df1bd217decff941d06924f3a1fb65f6 | PHP | c00/log | /src/log/LogQuery.php | UTF-8 | 427 | 2.734375 | 3 | [] | no_license | <?php
namespace c00\log;
use c00\common\CovleDate;
/**
* Class LogQuery
* Search criteria to find log messages
*
* @package c00\log
*/
class LogQuery
{
const DEFAULT_LIMIT = 100;
/** @var CovleDate */
public $since;
/** @var CovleDate */
public $until;
public $includeLevels = [];
... | true |
14ec79f6948539faba25eb08ab13bd687744d80f | PHP | tavisto/php-ci-test | /src/Foo/Baz.php | UTF-8 | 330 | 3.1875 | 3 | [
"MIT"
] | permissive | <?php
namespace Foo;
class Baz extends Bar
{
/**
* Just another variable
*
* @var string
*/
protected $var2;
/**
* Build it
*
* @return void
*/
public function __construct($var1, $var2)
{
parent::__construct($var1);
$this->var2 = $var2... | true |
f99c04b6efb306983a088d8536708404bf55ff17 | PHP | cawaweb/seeds | /src/AppBundle/Entity/Establishment.php | UTF-8 | 3,458 | 2.578125 | 3 | [] | no_license | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use \Doctrine\Common\Collections\ArrayCollection;
/**
* Establishment
*
* @ORM\Table(name="establishment")
* @ORM\Entity
*/
class Establishment
{
/**
* @var integer
*
* @ORM\Column(name="EstablishmentId", type="integer", nulla... | true |
cf3d0ade1b10c06db99e3f5b8c12f89a7efc7b0c | PHP | phantomhand/p4.aveni.biz | /controllers/c_posts.php | UTF-8 | 4,609 | 2.84375 | 3 | [] | no_license | <?php
class posts_controller extends base_controller {
public function __construct() {
parent::__construct();
# Make sure user is logged in if they want to use anything in this controller
if(!$this->user) {
# Setup view
$this->template->content = View::instance(... | true |
eada0dfcfd18989790cb55cccc1fa560f722f3b3 | PHP | DenMantm/WebCalendarProject | /views/Settings/ajax/libsettings.php | UTF-8 | 1,140 | 2.546875 | 3 | [] | no_license | <?php
//require __DIR__ . '/db_connection.php';
include_once('../views/search/ajax/db_connection.php');
class CRUD
{
protected $db;
function __construct()
{
$this->db = DB();
}
function __destruct()
{
$this->db = null;
}
public function Update($Email,$Firs... | true |
8b098fbf48c6e2c513b0731a435bcafd962a9ef8 | PHP | GosmanVlad/class-manager | /app/Controllers/GradeController.php | UTF-8 | 3,228 | 2.90625 | 3 | [] | no_license | <?php
require_once "Database.php";
class Grade {
public function getStudentGrade($studentID, $courseID) {
$result = Database::dbQuery("SELECT * FROM grades WHERE student_id = $studentID AND course_id = $courseID", (new Database()));
$result->execute();
if($result->rowCount())
r... | true |
0c8202171d797d90cf143540f5643c1b0f3a2c47 | PHP | tomiplaz/blog-api | /app/User.php | UTF-8 | 2,504 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Auth\Authenticatable;
use Laravel\Lumen\Auth\Authorizable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Tymon\JWTAuth\Contracts\JWTSub... | true |
c03f7544bd197bee66ab4c4cd3fd11f1b4b20cce | PHP | gallyoko/GrabMangaBack | /src/GrabMangaBundle/Command/SynchroMangaEbookCommand.php | UTF-8 | 3,034 | 2.53125 | 3 | [] | no_license | <?php
namespace GrabMangaBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class SynchroMangaEbookCommand extends ContainerAwareCommand
{
private $containerApp;
protected... | true |
5d23db758d0fc6997ec120cdf26083465326bbb1 | PHP | anilibria/anilibria | /private/vendor/MaxMind-GeoIP2/src/Model/AbstractModel.php | UTF-8 | 1,115 | 2.796875 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | <?php
namespace GeoIp2\Model;
/**
* @ignore
*/
abstract class AbstractModel implements \JsonSerializable
{
protected $raw;
/**
* @ignore
*
* @param mixed $raw
*/
public function __construct($raw)
{
$this->raw = $raw;
}
/**
* @ignore
*
* @param mix... | true |
b8d6f1dd517eb422cf9cc89b3f89eae43e8f372b | PHP | jasonclark/digital-collections-custom-search-api | /views/search.php | UTF-8 | 7,723 | 2.59375 | 3 | [
"MIT"
] | permissive | <h2>Search MSU Library Digital Collections</h2>
<?php
// Number of records to display per page (1 - 10)
$recordsPerPage = 10;
// Set default value for query
$q = isset($_GET['q']) ? urlencode(strip_tags(trim($_GET['q']))) : null;
// Set default value for API format
$form = isset($_GET['form']) ? html... | true |
869df82ebfa55ae2108d957e24ecec591d958e7a | PHP | stygiansabyss/Reddit | /src/Provider.php | UTF-8 | 2,012 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace SocialiteProviders\Reddit;
use Laravel\Socialite\Two\AbstractProvider;
use Laravel\Socialite\Two\ProviderInterface;
use Laravel\Socialite\Two\User;
class Provider extends AbstractProvider implements ProviderInterface
{
/**
* {@inheritdoc}
*/
protected $scopes = ['identity'];
/*... | true |
5e92bad9d7986a40d005864d9213f30db9337e75 | PHP | geopal-solutions/numbers.php | /test/tests/statistic-randomsample.php | UTF-8 | 437 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | <?php
test('randomSample should return an array of random numbers in a certain bound', 'testStatisticRandomSample');
function testStatisticRandomSample() {
$lower = 5;
$upper = 100;
$samples = 5;
$result = NumbersPHP\Statistic::randomSample($lower, $upper, $samples);
if(count($result) != $samples)
return... | true |
5b26f8a5a6a103160416f799110fefae9fde8d9f | PHP | cwan209/socialmediapractice | /include/post.php | UTF-8 | 949 | 2.78125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: asus
* Date: 13/02/2017
* Time: 10:35 PM
*/
class Post extends DatabaseObject
{
protected static $table_name = "post";
protected static $db_fields = array('postid', 'userid', 'post_content', 'ts', 'post_galleryid');
public $postid;
public $us... | true |
f77559ce1f40006c5106c6e898f34502a1f70d81 | PHP | bsu-web/conference | /System/Auth/Group.php | UTF-8 | 3,137 | 3.265625 | 3 | [] | no_license | <?php
namespace System\Auth;
/**
* Group - группа прав
*
* @package
* @version 0.5
* @copyright bsu-web
* @author Derjugin
* @license IDK (I Dont Know)
*/
abstract class Group {
/**
* Список разрешенных команд
*
* @var array
* @access private
*/
protected $allow = arr... | true |
8325859ac438d3039e0e18aa982ded89214ae7e9 | PHP | IndianaLora/RegistroEstudiantesPOO | /estuServicesCookies.php | UTF-8 | 4,049 | 2.59375 | 3 | [] | no_license | <?php
require_once 'Iservices.php';
class estuServicesCookies implements Iservices
{
private $codigo;
private $cookieName;
public function __construct()
{
$this->codigo = new Codigo();
$this->cookieName = 'estudiantes';
}
public function GetList()
{
$... | true |
663a4816e0ae28fff1e71a8cd7fc53c724f7fb33 | PHP | nsautier/plugins | /api/index.php | UTF-8 | 989 | 2.640625 | 3 | [] | no_license | <?php
require 'vendor/autoload.php';
\API\Core\DB::initCapsule();
use \API\Core\Tool;
$app = new \Slim\Slim();
// Loading all REST modules
// with their endpoints like that:
// inside 'src/endoints'
$dir_endpoints = opendir('src/endpoints');
while ($ent = readdir($dir_endpoints)) {
// For each .php file
if (pr... | true |
c503eac5c42a1db2453083114465277610de7794 | PHP | wudimeicom/WudimeiPHP | /Lang.php | UTF-8 | 4,973 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author yangqingrong@wudimei.com
* @copyright yangqingrong@wudimei.com
* @link http://www.wudimei.com
* @license The MIT license(MIT)
*/
namespace Wudimei;
class Lang{
public $locale;
public $autoDetectLanguage;
public $language_mapping;
public $path;
public $langs = array();
public $loaded... | true |
7443b7add996f188e7de8b8788ad443138a23b33 | PHP | ardani/phalcon-boilerplate | /app/Foundation/ServiceProvider.php | UTF-8 | 542 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App\Foundation;
use Phalcon\DiInterface;
abstract class ServiceProvider
{
/**
* @var DiInterface
*/
protected $di;
protected $config;
public function __construct(DiInterface $di, $config = null)
{
$this->di = $di;
$this->config = $config;
}
... | true |
7253241eb6a7fc486d663a0ad789bd51bcc3922b | PHP | fpg100/miniyun | /protected/cache2/model/MiniUserDevice2.php | UTF-8 | 1,210 | 2.765625 | 3 | [] | no_license | <?php
/**
* 在会话期内,只需一次读userDevice对象
* @author app <app@miniyun.cn>
* @link http://www.miniyun.cn
* @copyright 2014 Chengdu MiniYun Technology Co. Ltd.
* @license http://www.miniyun.cn/license.html
* @since 1.6
*/
class MiniUserDevice2 extends MiniCache2{
private $device;
/**
* 静态成品变量 保存全局实例
* @acces... | true |
70d6b6f152a99ef57a0a3bd6c3cfe49ffb6cd2c6 | PHP | octobroid/oc-debugpay-plugin | /Plugin.php | UTF-8 | 943 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php namespace Octobro\DebugPay;
use Backend;
use System\Classes\PluginBase;
/**
* DebugPay Plugin Information File
*/
class Plugin extends PluginBase
{
public $require = ['Responsiv.Pay'];
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDeta... | true |
71aa3ebec46c0fce47219d3bbd6352716b809a7d | PHP | thakur-deepak/free-medium | /app/Repositories/UserRepositoryInterface.php | UTF-8 | 140 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
interface UserRepositoryInterface
{
public function store(array $data);
public function get();
} | true |
8f8244778472dc01b99ad26cd706553ec9e2910e | PHP | hungneox/ramen-messenger | /src/Traits/HasText.php | UTF-8 | 409 | 2.859375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Neox\Ramen\Messenger\Traits;
trait HasText
{
/**
* @var string
*/
protected $text;
/**
* @return string
*/
public function getText(): string
{
return $this->text;
}
/**
* @param string $text
* @return $this
*/
public function... | true |
4733c1ca5f7902229a0f7710bdd401285810fb5d | PHP | rizky-bagus/math-php | /tests/Sequence/NonIntegerTest.php | UTF-8 | 1,704 | 3.078125 | 3 | [
"MIT"
] | permissive | <?php
namespace MathPHP\Tests\Sequence;
use MathPHP\Sequence\NonInteger;
class NonIntegerTest extends \PHPUnit\Framework\TestCase
{
/**
* @test HarmonicNumber produces the expected sequence
* @dataProvider dataProviderForHarmonicNumbers
* @param int $n
* @param array $expectedSequenc... | true |
79c2e39679ba969fb30a5b8be3d0d2d5167181c3 | PHP | TeamBixby/BixbyMarket | /src/alvin0319/BixbyMarket/event/ItemBuyEvent.php | UTF-8 | 645 | 3.015625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace alvin0319\BixbyMarket\event;
use alvin0319\BixbyMarket\market\Market;
use pocketmine\event\Cancellable;
use pocketmine\event\player\PlayerEvent;
use pocketmine\Player;
final class ItemBuyEvent extends PlayerEvent implements Cancellable{
protected Market $market;
protecte... | true |
3024c423f803173523f5507411dd36278bcf09be | PHP | SorinMA/challenge_emagia | /gameEmagia/src/app/models/StatusInterval.php | UTF-8 | 3,096 | 3.296875 | 3 | [] | no_license | <?php
namespace appemag\app\models;
use appemag\app\models\Status;
use appemag\app\models\helpers\HelperValuesFormater;
/**
* class: StatusInterval
* scope:
* este o structura de date ce are rolul de a manageui intervalele utilizate pentru
* selectia statusurilor
* clasa-contine:
* - setteri
* - constructor... | true |
14c5b46437eb534d6f7b9e5b0eab121cb8eeca83 | PHP | NBZ4live/steam-web-api-generator | /src/helpers.php | UTF-8 | 1,263 | 2.828125 | 3 | [] | no_license | <?php
use Illuminate\Support\Debug\Dumper;
use Illuminate\Support\Str;
if (! function_exists('env')) {
/**
* Gets the value of an environment variable.
*
* @param string $key
* @param mixed $default
* @return mixed
*/
function env($key, $default = null)
{
$value ... | true |
e28b4dd830cb75d17dddf71f89849612255477ce | PHP | hive-school/vladimir-gontar | /phpsymfony/src/BionicUniversity/Bundle/ProjectBundle/Entity/User.php | UTF-8 | 2,415 | 2.578125 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace BionicUniversity\Bundle\ProjectBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="userProject")
* @ORM\Entity
* @ORM\HasLifecycleCallbacks()
*/
class User
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\G... | true |