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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
78509fa83dfb9d6cdb82207fe32660a721da7f08 | PHP | nao550/uds | /tests/SeqnumTest.php | UTF-8 | 1,786 | 2.671875 | 3 | [] | no_license | <?php
use morris\Seqnum;
require_once __DIR__.'/Generic_Tests_DatabaseTestCase.php';
class QstTest extends Generic_Tests_DatabaseTestCase
{
private $seq;
private $nm;
/*
public function setUp(){
}
*/
/**
* @return PHPUnit_Extensions_Database_DataSet_IDataSet
**/
public function getDataSet()
{
... | true |
5ff4a624d41a06d71d1b3c5b81a0bcf7b7de0d82 | PHP | srop/apartment | /view/page/load.php | UTF-8 | 1,855 | 2.609375 | 3 | [] | no_license | <?php
header("content-type:text/javascript;charset=utf-8");
require ('../../config/db_connect.php');
//array_walk_deep($array, 'strtoupper');
$requestData= $_REQUEST;
$columns = array(
// datatable column index => database column name
0 =>'rental_fname',
1 => 'rental_lname',
2=> 'rental_idcard'
... | true |
b9352e9210d1948c427458dcb59c844a369e20d0 | PHP | joekenpat/jobman | /app/Http/Controllers/Admin/CountryController.php | UTF-8 | 3,912 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Country;
use Illuminate\Http\Response;
class CountryController extends Controller
{
/**
* Display a list of countries paginated.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
try... | true |
7356b4479f2e13c2b89735866126bca163d3d180 | PHP | duch1909/COC_TEST_Server_HoangDuc | /app/Http/Middleware/CustomizeAuthentication.php | UTF-8 | 937 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use App\Models\CourseRegistration;
use Closure;
use Illuminate\Auth\AuthenticationException;
use App\Http\Middleware\Authenticate;
class CustomizeAuthentication extends Authenticate
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $requ... | true |
fce7910112bc561890d62a50169c6414056377f8 | PHP | MAbdullin/php | /quest/index2.php | UTF-8 | 408 | 3.03125 | 3 | [] | no_license | <?php
$answers = [
['id' => 1, 'text'=> 'Привет'],
['id' => 2, 'text'=> '23'],
['id' => 3, 'text'=> 'При434вет'],
['id' => 4, 'text'=> 'При22вет'],
['id' => 5, 'text'=> '1111Привет'],
];
?>
<?php foreach ($answers as $answer) : ?>
<?php print_r($answer) ?>
Значение: <... | true |
2550d3d36df407231a4e59c97f34de00f2a4a408 | PHP | ssi-anik/amqp | /src/Queues/Queue.php | UTF-8 | 3,617 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace Anik\Amqp\Queues;
use Anik\Amqp\Connection\ChannelInterface;
use Anik\Amqp\Exceptions\AmqpException;
class Queue
{
protected $name;
protected $declare = false;
protected $passive = false;
protected $durable = true;
protected $exclusive = false;
protected $autoDelete = false;
... | true |
a092adbcd0632051451785cc92c3e522aacc1cf0 | PHP | ahyconsulting/veraciousfoundation | /contact-us.php | UTF-8 | 24,612 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
function ValidateEmail($email)
{
$pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
return preg_match($pattern, $email);
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['formid'] == 'form1')
{
$mailto = 'shashank@zetabyte.in';
$mailfrom = isset($_... | true |
bc1427fdca07b753530d3df5d602d9f617acacae | PHP | peterjurkovic/drilapp.com | /admin/inc/mod_ga/class.GoogleAnalyticsException.php | UTF-8 | 467 | 2.84375 | 3 | [] | no_license | <?php
/**
* Google Analytics Exception class
*
* @author Peter Jurkovic (into@peterjurkovic.sk)
* @version 20110411
*/
class GoogleAnalyticsException extends exception{
private $log_file = "/ga.ErrorLog.txt";
public function __construct($message = false){
if($fp = fopen(dirname(__FILE__).$this->log_file... | true |
3ab2196c7ccaf20ffffa78247f93c6b6090fb818 | PHP | TahkoKatt/Smite-Basic-Connection-API | /API.php | UTF-8 | 6,011 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | <?php
class SmiteAPI{
private $configData;
public $dbc;
private $projectName = "Smite Connection API";
public function __construct($config){
$this->configData = new stdClass();
$this->configData = $config;
$this->dbc = $this->createDatabaseConnection();
//$this->createSession();
}
private function getRe... | true |
5a07dde6b3a79f0f1c621eaa223fe4975f1e4384 | PHP | inri13666/AkumaCoreBundle | /Knp/RoutingExtension.php | UTF-8 | 2,417 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* User : Nikita.Makarov
* Date : 2/24/15
* Time : 8:20 AM
* E-Mail: nikita.makarov@effective-soft.com
*/
namespace Akuma\Bundle\CoreBundle\Knp;
use Knp\Menu\Factory\ExtensionInterface;
use Knp\Menu\ItemInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyI... | true |
8d4a1e988e8f6cfd2db8f1b7f9c24d03ca6e9f49 | PHP | maurometz/projeto_ci2 | /application/models/Player_model.php | UTF-8 | 2,158 | 2.546875 | 3 | [] | no_license | <?php
class player_model extends CI_Model {
public function pesquisa_usuarioP($nome){
$this->db->like('nome', $nome);
$this->db->order_by("nome");
return $this->db->get('players');
}
public function pesquisa_usuarios_pagP($limite, $pag, $nome){
$this->db->like('nome', $nom... | true |
d28ffb387457ea0a918b67c47c8b123f87639f44 | PHP | JulianNicholls/Menu-Builder | /menu.php | UTF-8 | 3,255 | 3 | 3 | [
"MIT"
] | permissive | <?php
class Menu {
protected $menu = array();
protected $reserved = array( 'pid', 'url' );
public function add( $title, $options )
{
$url = $this->getUrl( $options );
$pid = isset( $options['pid'] ) ? $options['pid'] : null;
$attr = is_array( $options ) ? $this... | true |
3859eb5682f2eaad805e3c8248ad9ff67749c7c9 | PHP | LucioSaldivar/Learning-PHP | /Object_Oriented/class_access.php | UTF-8 | 387 | 3.5 | 4 | [] | no_license | <?php
class Cars {
public $wheels = 4;
protected $hood = 1;
private $engine = 1;
var $doors = 4;
function showProperty() {
echo $this->engine;
}
}
class Semi extends Cars{
function showProperty() {
echo $this->hood;
}
}
$bmw = new Cars();
echo $bmw->wheels;
echo $bmw-... | true |
91f8b3c099a2e5bb07666e4763e420f02341d8e0 | PHP | hellojunlin/16you2 | /16you2018-11-5/16you/common/models/Continuorder.php | UTF-8 | 2,042 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "{{%continuorder}}".
*
* @property integer $id
* @property integer $pid
* @property integer $play_user
* @property integer $pay_user
* @property integer $second
* @property integer $third
* @property integer $fourth
* @property... | true |
02a2bf70945214e440bb078dca20c1db8700b12e | PHP | AlasAltum/Apps_web_T2 | /Tarea3/BackEnd/gethint.php | UTF-8 | 1,031 | 2.6875 | 3 | [] | no_license | <?php
require_once('db_config.php');
require_once('diccionarios.php');
$db = DbConfig::getConnection();
$a = getListDoctors($db);
// get the q parameter from URL
if (isset($_REQUEST["q"])){
$q = $_REQUEST["q"];
$id = array();
$hint = array();
// lookup all hints from array if $q is different from ""
... | true |
7ae186d217b4692c9201de7cbd3d5b7872c00506 | PHP | Jerome68870/Voiture-PHP | /class/Compteur/Compteur.php | UTF-8 | 411 | 3.34375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Compteur;
Class Compteur{
private int $kilometre;
public function __construct(int $kilometre)
{
$this->kilometre = $kilometre;
}
public function interrogeKilometrage():int
{
return $this->kilometre;
}
public function a... | true |
148d9b5685c59526b05095988bea1611cd92bf8f | PHP | isc277/Ian_Campbell_2014 | /PHP/Group Project/forgotPassword.php | UTF-8 | 2,757 | 2.515625 | 3 | [] | no_license | <?php
session_start();
$password = '';
?>
<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->
<html>
<?php
session_start();
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>University Textbook Exchange</title>
<link rel="stylesheet"... | true |
a4271d6eefb066f86e2fa204b5488e84915a0e27 | PHP | RoxBow/Go-al | /models/Board.php | UTF-8 | 2,557 | 3.390625 | 3 | [] | no_license | <?php
class Board {
const BLACK = 1;
const WHITE = 2;
const NOSTONE = 0;
private $boardPosition;
private $nbrCases;
/*
* Will get the color piece remove from board
* To update point players
*/
private $lastColorDelete = null;
public function __construct($nbrCa... | true |
7405b200e465c0a2aeda4bfce4bcc04c4cd23642 | PHP | IgzyyJere/php_XML | /T/vivo2/vivoUnos/pod_header_prikaz.php | UTF-8 | 2,560 | 2.609375 | 3 | [] | no_license | <?php
$tabela = "headerslike";
// definicija gumba na vrhu stranice /
// glavni gumbi vode na stranice, pa se elementi polja prevode /
// u link oblika /0/prikaz/0/0/ - > $glavniGumbi[0][0] /
// i ime/naziv gumba u prikaz - > $glavniGumbi[0][1] /
$glavniGumbi = Array (
... | true |
446f4a5d8200d24af1166a714f308fdc713183a4 | PHP | pierre-galbes/runtrack2 | /jour03/job03/index.php | UTF-8 | 249 | 2.9375 | 3 | [] | no_license | <?php
$ok=["a" ,"e", "i", "o", "u", "y","I" ];
$str = " I'm sorry Dave I'm afraid I can't do that." ;
for ($i=0; isset($str[$i]); $i++){
foreach ($ok as $value){
if($str[$i]==$value){
echo $str[$i];
}
}
} | true |
38b557dff2548b13d1c6c059ceaf7c48c460928c | PHP | polad/mldic | /src/Mldic/ApiBundle/Tests/Functional/Controller/EntriesControllerTest.php | UTF-8 | 4,521 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace Mldic\ApiBundle\Tests\Functional\Controller;
use Mldic\ApiBundle\Tests\Functional\WebTestCase;
class EntriesControllerTest extends WebTestCase
{
public function testShouldFindEntriesByPhrase()
{
// Given
$searchPhrase = 'abdomen';
// When
$this->client-... | true |
70a8c2a412910dcb1d7a9fdfcaf12b87ffab6e8f | PHP | kinsolee/alfred-translator | /src/TranslatorWorkflow.php | UTF-8 | 3,611 | 2.71875 | 3 | [] | no_license | <?php
use Alfred\Workflows\Workflow;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ConnectException;
use Joli\JoliNotif\Notification;
use Joli\JoliNotif\NotifierFactory;
use SleekDB\SleekDB;
use Sources\BaseSource;
class TranslatorWorkflow extends Workflow
{
private $source;
private $query;
/** @var Bas... | true |
a2aaf4ed047230e8dfdad4ea9e487f81dda3a5cf | PHP | scrnhq/laravel-bakery | /src/Queries/Query.php | UTF-8 | 487 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Bakery\Queries;
use Illuminate\Support\Str;
use Bakery\Support\RootField;
abstract class Query extends RootField
{
/**
* Get the name of the Query, if no name is specified fall back
* on a name based on the class name.
*
* @return string
*/
public function name(): str... | true |
6333c5a91a05a17b395adeb80e281adeca7ce048 | PHP | kbobte/testdocker | /app/index.php | UTF-8 | 1,719 | 2.84375 | 3 | [] | no_license | <?php
// Store session in redis
ini_set('session.save_handler', 'redis');
ini_set('session.save_path', 'tcp://redis:6379');
session_start();
require __DIR__ .'/vendor/autoload.php';
// Test Mysql connection
// Must be same as mysql container name
$mysqlHost = 'database-d';
try {
$dsn = 'mysql:host=database-d;port=... | true |
31eceb2c782635c4da4d617ce9137909ced51edf | PHP | esandre/CoeurDeTruffes | /library/HtmlTags/Tag/H.php | UTF-8 | 481 | 3.109375 | 3 | [] | no_license | <?php
/**
* Représente une balise <hx></hx> en PHP
*
* @author kryzaal
*/
class App_HtmlTags_Tag_H extends App_HtmlTags_Tag{
protected $_level;
public function __construct($level,$value) {
$this->_level = (int) $level;
parent::__construct("h" . $this->_level, $value);
}
... | true |
04615ac2d835e0b466cb63970cbab22783bdc87b | PHP | nicolanilomartinoph/skillTree_nonSPA | /app/helpers.php | UTF-8 | 2,132 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
function skill_unpacker($skill, $recursive = true, &$parent_skills = null)
{
/**
* DESCRIPTION: This function accepts an array of skill ID [1,2,3,4] and turns the child skill index into associative arrays containing the details, if
* recursively "unpacking" the child skills of a child skill if ... | true |
7ea4ba5cf52d67317a9c65bf84c9087e6dc01dcb | PHP | BrahiamCastillo/Transactions-FileHandlers | /folders/FileHandler/CSVFileTransaction.php | UTF-8 | 3,752 | 2.671875 | 3 | [] | no_license | <?php
require_once 'SerializeFileHandler.php';
require_once 'CSVFileHandler.php';
class CSVFileTransaction implements IServiceBasic
{
private $logic;
private $fileHandler;
private $name;
private $directory;
public function __construct($directory = 'data')
{
$this->logic = new Logic()... | true |
c37c9dc1e036ba6b6ab130788005a14e5df377ff | PHP | joyjas77/Teaching-Web-Building | /IST251/U3L1/students/IST297I-U3L1-SPR14/GUILHERME IECKER RICARDO 2-3-2014/guilhermeirU3L1b.php | UTF-8 | 193 | 3.53125 | 4 | [] | no_license | <html>
<head>
<title> Example 3-10. Automatic conversion from a number to a string</title>
</head>
<body>
<?php
$number = 12345 * 67890;
echo substr($number, 3, 1);
?>
</body>
</html> | true |
4ac239f2157a4b142212f5a67d96d48dbddbe784 | PHP | cedricziel/gitlabber | /src/AppBundle/Command/AppGitlabPruneCommand.php | UTF-8 | 2,005 | 2.578125 | 3 | [] | no_license | <?php
namespace AppBundle\Command;
use AppBundle\Entity\Gitlab\Project;
use AppBundle\Factory\GitlabApiFactory;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\I... | true |
633b9a164cdfca8b3f815d81a0b0a26cce63e6ca | PHP | nicholemaldonado4/ClientSideC4PHP | /lib/MoveStrategies/SmartStrategy.php | UTF-8 | 6,630 | 3.03125 | 3 | [] | no_license | <?php
// Nichole Maldonado
// Lab 1 - SmartStrategy
// September 7, 2020
// Dr. Cheon, CS3360
// Evaluates putting a piece at the top of each column. Tries to make a winning move first. If one does not exist,
// then makes a blocking move. If neither exists, then just makes a regular move.
require_once __DIR__."/MoveS... | true |
1be999b7c5dd5090c09167dcd2b5f5f9587e3156 | PHP | eduardovk/game-oferta-api | /App/Controllers/WishlistController.php | UTF-8 | 8,304 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Controllers;
use App\DAO\WishlistDAO;
use App\DAO\GameDAO;
use App\Controllers\GameController;
use App\DAO\UserDAO;
use Psr\Http\Message\ServerRequestInterface as Request;
use \Slim\Http\Response as Response;
// use Psr\Http\Message\ResponseInterface as Response;
final class WishlistController
{
... | true |
ee54557563effdc264c41988e26a4b3dd3aa88ed | PHP | ShaubertIlya/forumvr_admin_panel | /app/Profile.php | UTF-8 | 921 | 2.640625 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\File;
class Profile extends Model
{
const FILE_DESTINATION = 'upload/images';
protected $fillable = [
'bin', 'address', 'phone_number', 'website', 'description', 'company_logo'
];
public function... | true |
0f4c99fb8249cd7645afc4228bd04fc80fb03678 | PHP | pbsousa5/salon | /app/Salon/Repositories/V2/ProductCategoryRepository.php | UTF-8 | 1,409 | 2.75 | 3 | [] | no_license | <?php
namespace App\Salon\Repositories\V2;
use App\Salon\ProductCategory;
use App\Salon\Repositories\ProductCategoryRepository as ProductCategoryRep;
/**
*
*
*
* @desc 产品分类数据仓库
* @author fengdq <fengdq@bnersoft.com>
* @date 2015年11月12日
*/
class ProductCategoryRepository extends ProductCategoryRep
{
/**
... | true |
0ce75d3054ad14f78c9418fd0cfc07b75adacd8d | PHP | aurer/code2 | /application/libraries/Template.php | UTF-8 | 1,916 | 2.734375 | 3 | [] | no_license | <?php
/*
* Class: Template
* Description: Super simple template class for Codeigniter.
* Version: 1.0
* Author: Phil Maurer
* Author URI: http://aurer.co.uk/
*/
/*
SUGGESTED NEW FUNCTIONS
load($view);
use_template($template);
set($item, $value);
get($item, $before='', $after='');
open_section($... | true |
8c40853c67d3647e7727f35fc4f2dc1b1553c17e | PHP | ChenJiR/leetcode.php | /balancedStringSplit.php | UTF-8 | 733 | 3.703125 | 4 | [] | no_license | <?php
/**
* 1221. 分割平衡字符串
* Class BalancedStringSplitSolution
* https://leetcode-cn.com/problems/split-a-string-in-balanced-strings/
*/
class BalancedStringSplitSolution
{
/**
* @param String $s
* @return Integer
*/
function balancedStringSplit($s)
{
$res = 0;
$stack = [... | true |
a65f646d9f1f9b5f91595ce157820152d0cd35bd | PHP | DamienHarper/ably-php | /tests/AblyRestTest.php | UTF-8 | 16,121 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace tests;
use Ably\AblyRest;
use Ably\Http;
use Ably\Exceptions\AblyRequestException;
use Ably\Models\ClientOptions;
use Ably\Models\TokenDetails;
require_once __DIR__ . '/factories/TestApp.php';
class AblyRestTest extends \PHPUnit_Framework_TestCase {
protected static $testApp;
protected static... | true |
0f9f2645906512c2a9e2a7bd2db594be9a844c7b | PHP | ljcom/operahouse | /themes/themeSIX/sample/mail/subscribe-mailchimp.php | UTF-8 | 1,630 | 2.625 | 3 | [] | no_license | <?php
require_once("lib/mailchimp-api.php");
// ENTER YOUR MAILCHIMP API KEY IN FIRST BLOCK
define('MAILCHIMP_API_KEY', '66a59c4e08b4b2979a15c5f9afd358d4-us3');
// ENTER LIST ID THO WHICH VISITORS ARE SUBSCRIBING
define('MAILCHIMP_LIST_NAME', 'f1fb64d962');
ob_start();
function response($responseSta... | true |
ce877b0a5db9969bad5e4a36b7599bbdefd2cfca | PHP | dimkasta/BusinessCatalogModel | /src/Iconic/Projection/Search.php | UTF-8 | 604 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
namespace Iconic\Projection;
/**
* Class Search
* @package Iconic\Projection
*/
class Search
{
/**
* @var int
*/
private $page;
/**
* @var int
*/
private $totalResults;
/**
* @var array
*/
public $results;
/**
* Search constructor.
* @p... | true |
40c6d048ffd813aabfa63d883fed8485b29b3baf | PHP | pulangkalabaw/saf | /app/Plans.php | UTF-8 | 628 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Plans extends Model
{
//
protected $table = "plans";
protected $guarded = [];
protected $dates = ['created_at', 'updated_at'];
public function scopeSort ($query, $request) {
// If everything is good
return $query... | true |
6a7c80d5b6c520ff81cde0578302dd6c9f27a66a | PHP | Lolimpo/SibSUTIS | /Course 4/Data Bases/PHPLabs/БД-Михеев-РГР-Вариант№9/rgr-3.php | UTF-8 | 1,226 | 2.875 | 3 | [] | no_license | <?php
$record = $_POST['record'];
if(count($record) == 0)
{
print "Ни один столбец не был запрошен. <br><a href='rgr-2.php'>Назад</a>";
exit();
}
$link = mysqli_connect("localhost", "root", "", "rgr");
if (mysqli_connect_errno())
{
printf("Не удалось подключиться: %s\n", ... | true |
253bd93b2eebcc32bef8633cb736836f5f0536d7 | PHP | habibtalib/quickstart-minus-quickstart | /config/VipValetDriver.php | UTF-8 | 1,988 | 2.875 | 3 | [] | no_license | <?php
class VipValetDriver extends BasicValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return bool
*/
public function serves($sitePath, $siteName, $uri)
{
return i... | true |
cfe3fc03b9c22879edb1bfac655ffd17d977bd46 | PHP | yuanjianking/auction-system | /shoucangquan/database/migrations/2016_08_02_000015_create_sc_storage_table.php | UTF-8 | 1,216 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateScStorageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//入库表
Schema::create('sc_storage',function(Blueprint $table)... | true |
70399a8c2d4c3603c299533171da45d6b86fbd22 | PHP | miaoxing/services | /src/Service/Logger.php | UTF-8 | 1,988 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Miaoxing\Services\Service;
/**
* @property Logger $errorLogger
*/
class Logger extends \Wei\Logger
{
/**
* @var string
*/
protected $dir = 'storage/logs';
/**
* @var string
*/
protected $dateFormat = 'Y-m-d H:i:s';
/**
* 引到 errorLogger 服务的最低级别
*
... | true |
235c24089c54131efad3daac2a7a564ea3a42bff | PHP | quiquedemon117/uao | /modules/admin/funciones.php | UTF-8 | 202 | 2.765625 | 3 | [] | no_license | <?php
/*funciones*/
function Mayus($variable) {
$variable = strtr(strtoupper($variable),"àèìòùáéíóúçñäëïöü","ÀÈÌÒÙÁÉÍÓÚÇÑÄËÏÖÜ");
return $variable;
}
/*funciones*/
?> | true |
f92ae8d0757220343fed588971d87f6854c6911a | PHP | tiagotas/fabrica | /Sistema/Library/DataBases/MySQL.php | UTF-8 | 588 | 3.1875 | 3 | [] | no_license | <?php
/**
* Fazer conexão com o MySQL
*/
namespace Library\DataBases;
use PDO;
class MySQL extends PDO
{
private $host = "localhost";
private $user = "root";
private $pass = "@MySQL_dev_2020";
private $db = "fabrica";
private $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
... | true |
ca8d37e83cdeb64fbb776947a6fd3159cf3a5f4d | PHP | zhaobin0106/rrdc | /system/library/sys_model/rbac.php | UTF-8 | 4,780 | 2.765625 | 3 | [] | no_license | <?php
namespace Sys_Model;
class Rbac {
public function __construct($registry)
{
$this->db = $registry->get('db');
}
// ************************************* 角色 ************************************
// ----------------------- 写 -----------------------
/**
* 添加角色
*... | true |
7d0dd7e8ab0ac1132a7afb595c6501e058031fcc | PHP | anam5233/backend-projects | /work_shop/static_property_method.php | UTF-8 | 423 | 3.078125 | 3 | [] | no_license | <?php
class DepartmentInfo {
public static $departmentName;
public static $chairman;
public static function departmentHead($dName, $chair) {
self::$departmentName = $dName;
self::$chairman = $chair;
echo "Department - " . self::$departmentName . "<br/>" . "Chaiman - " . self::$chairman . "<br/>";
}
}
... | true |
7a2abe23572d0b233c7180c4277230a289c50760 | PHP | skysee6126/php_01 | /loginProcess.php | UTF-8 | 1,069 | 2.609375 | 3 | [] | no_license |
<?php
//compare id and password
$conn = mysqli_connect("127.0.0.1", "root", "", "member");
$email = $_POST['email'];
$password = $_POST['password'];
// Bring to DB
$sql = "SELECT * FROM member WHERE email ='{$email}'";
$result = mysqli_query($conn, $sql);
// Bring password from DB and compare with hashedPassword
$... | true |
9ddd10ba7a9ff4ab30fdd3d46688ceb31c20fd52 | PHP | Jamongkad/s36-beta | /system/validation/rules/format_of.php | UTF-8 | 801 | 3.09375 | 3 | [
"MIT"
] | permissive | <?php namespace System\Validation\Rules;
use System\Validation\Nullable_Rule;
class Format_Of extends Nullable_Rule {
/**
* The regular expression that will be used to validate the attribute.
*
* @var string
*/
public $expression;
/**
* Evaluate the validity of an attribute.
*
* @param string $at... | true |
9152318b9581ea7fdc33a2c8aecd49098f1d450e | PHP | dimplewraich/finalproject | /jaspinder/application/libraries/MY_Encrypt.php | UTF-8 | 1,054 | 2.59375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class My_Encrypt extends CI_Encrypt {
public function __construct() {
parent::__construct();
}
public function safe_b64encode($string)
{
$data = base64_encode($string);
$data = str_replace(array('+','/','='),array('... | true |
a30b116547a1223ac19261a23f03a94dc8c3b259 | PHP | CB9TOIIIA/JBZoo-Hack-DB-FS | /administrator/components/com_zoo/tables/item.php | UTF-8 | 24,284 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @package com_zoo
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
/*
Class: ItemTable
The table class for items.
*/
class ItemTable extends AppTable {
public function __construct($app) {
parent::__co... | true |
355cfdc101f5a0c8af00f4c2746d35ead258d1cd | PHP | halbeisent/FleetManage | /controllers/enrollController.php | UTF-8 | 5,503 | 2.5625 | 3 | [] | no_license | <?php
session_start();
// On instancie un nouvel $patients objet comme classe patients
$users = new users();
//Création des regex pour controler les données du formulaire
$regexName = '/^[a-zA-Zàáâãäåçèéêëìíîïðòóôõöùúûüýÿ-]+$/';
$regexBirthdate = '/^(0[1-9]|([1-2][0-9])|3[01])\/(0[1-9]|1[012])\/((19|20)[0-9]{2})$/';... | true |
b24f9bd590ec1dec697c9ce87ff2a1db70a91f51 | PHP | veslo1/apmgr | /application/modules/role/forms/UpdatePermission.php | UTF-8 | 2,684 | 2.609375 | 3 | [] | no_license | <?php
/**
* Created on August 24, 2010 by rnelson
* @name apmgr
* @package application.modules.role.forms
* <p>
* Update form for role permissions
* </p>
*/
class Role_Form_UpdatePermission extends Zend_Form {
protected $displayGroupArray;
public function init() {
$this->displayGroupArray = array();
$this... | true |
b5df79b123b20319ab7297593cff7da48fdda632 | PHP | alexshadie/telegram-bot | /stubs/Payment/LabeledPriceStub.php | UTF-8 | 1,498 | 2.578125 | 3 | [] | no_license | <?php
namespace alexshadie\TelegramBot\Payment;
/**
* Stub for LabeledPrice class. Use it for testing.
*/
class LabeledPriceStub extends LabeledPrice
{
/**
* @return LabeledPrice
*/
public static function getLabeledPriceWithCommonFields1(): LabeledPrice
{
return new LabeledPrice(
... | true |
d6b5a2faeab68787e637cc04feef4a6abe11c8e6 | PHP | asknicely/jobadder-api-client | /generated/Model/EducationModel.php | UTF-8 | 1,582 | 2.96875 | 3 | [] | no_license | <?php
namespace Varspool\JobAdder\V2\Model;
class EducationModel
{
/**
* @var int
*/
protected $educationId;
/**
* @var string
*/
protected $institution;
/**
* @var string
*/
protected $course;
/**
* @var string
*/
protected $endDate;
/**
... | true |
b8c02bff4e1dad19da63bd4f566d7b4a968a159d | PHP | pixlforge/lara-ecomm-api | /app/Models/Transaction.php | UTF-8 | 454 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'total'
];
/**
* Order relationship.
*
* @return \Illuminate\D... | true |
7929c82a6bf54b28265f8e830fddf03ce8d1dc12 | PHP | Focus43/TOJ | /web/packages/schedulizer/libraries/schedulizer_controller.php | UTF-8 | 4,593 | 2.765625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
class SchedulizerController extends Controller {
const PACKAGE_HANDLE = 'schedulizer',
FLASH_TYPE_OK = 'success',
FLASH_TYPE_ERROR = 'error';
/**
* Proxies to the flashNow() method through on_start() (see notes on that below).
* @param string ... | true |
dd27768a5e1e2ad9904e5e92178fe82734a55378 | PHP | UniqueLibs/fos-user-recaptcha-protection-bundle | /src/Configuration/ConfigurationManager.php | UTF-8 | 5,275 | 2.671875 | 3 | [] | no_license | <?php
namespace UniqueLibs\FOSUserRecaptchaProtectionBundle\Configuration;
/**
* @author Marvin Rind <kontakt@marvinrind.de>
*/
class ConfigurationManager
{
/**
* @var string
*/
protected $invalidLoginClass;
/**
* @var string
*/
protected $loginAccessClass;
/**
* @var ... | true |
ce6c3de6f087c10110d4cb5cab0f53f2c807eee4 | PHP | jsoftwares/qrcodePaymentSolution | /database/factories/QrcodeFactory.php | UTF-8 | 1,084 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Models\Qrcode;
use Faker\Generator as Faker;
$factory->define(Qrcode::class, function (Faker $faker) {
//To let factory know how many of such instance to create, we did that in DatabaseSeeder.php
return [
'user_id' => function... | true |
865458b64ccf35d5e54994e533bf63be764336c0 | PHP | vasspilka/complain | /complain/subjects.php | UTF-8 | 419 | 3.21875 | 3 | [] | no_license | <?php
include "../db.php";
// Add a select form option for each subject
$subject = mysqli_query($con,"select * from subjects;");
if (mysqli_num_rows($subject) > 0) {
while($row = mysqli_fetch_assoc($subject)) {
$title = $row["title"];
echo "<option value=\"$title\">$title</option>";
}
} e... | true |
cf1a0b1fb2ab28e2c06c005af53adf87b43f7b67 | PHP | hive-school/ruslan-smyk | /src/BionicUniversity/RuslanSmyk/Gardener/WaterableInterface.php | UTF-8 | 477 | 2.53125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: WINROL
* Date: 05.05.14
* Time: 14:23
*/
namespace BionicUniversity\RuslanSmyk\Gardener;
/**
* Interface WaterableInterface
* @package BionicUniversity\RuslanSmyk\Gardener
*/
interface WaterableInterface {
/**
* @return mixed
*/
public function waterT... | true |
830fbb2bae2e93afb7b3137094ec01f57a632acc | PHP | wojtekDrozd/php | /1/Scanners/scan1.php | UTF-8 | 572 | 2.796875 | 3 | [] | no_license | <?php
$url = 'https://www.alltricks.com/';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$subject = curl_exec($ch);
$pattern = '/(?<=href=")([^"]+)/';
preg_match_all($pattern, $subject, $matches);
echo "<pre>",var_dump($matches),"</pre>";
//categories
fo... | true |
16d9c2f6c88ccf2f70957e318a36f5d50052be7b | PHP | ribehbl/formation-solid | /07-ISP-corrige/Reporting/Format/CsvFormatter.php | UTF-8 | 425 | 3.15625 | 3 | [] | no_license | <?php
namespace Reporting\Format;
class CsvFormatter implements FormatterInterface
{
/**
* Retourne une chaine au format CSV
*
* @param \Reporting\Report $report
*
* @return string
*/
public function format(\Reporting\Report $report): string
{
// On colle les pièces ... | true |
b3d6a72400fead298e5268560a9443ac72f6ddc6 | PHP | wallride/polygraph | /src/classes/Utils/Notifier/Notification.class.php | UTF-8 | 6,754 | 2.875 | 3 | [] | no_license | <?php
/***************************************************************************
* Copyright (C) 2010 by E.Goleva *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the G... | true |
0242d2bab443b5a64be0c992847fd9237e1c60de | PHP | christianklisch/phpcache | /PHPCache.class.php | UTF-8 | 6,997 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* PHPCache - a PHP caching class
*
* @author Christian Klisch <info@christian-klisch.de>
* @copyright 2014 Christian Klisch
* @link https://github.com/christianklisch/phpcache
* @license https://github.com/christianklisch/phpcache/LICENSE
* @version 0.1.2
* @package ... | true |
0f777d640ad0ecd87963d3dd445fa7b9e08e470f | PHP | felixacdc/html_js_css_php | /proyecto/BackEnd/Guardar.php | UTF-8 | 829 | 2.6875 | 3 | [] | no_license | <?php
include_once "Conexion.php";
$nombres = $_POST["nombres"];
$apellidos = $_POST["apellidos"];
$edad = $_POST["edad"];
$telefono = $_POST["telefono"];
$grados = $_POST["grados"];
$query = "INSERT INTO alumnos (nombres, apellidos, edad, telefono, grado) VALUES (:nombres, :apellidos, :edad, :telefono, :gr... | true |
7c6e0dfdbdf56697475956ad86d40391af0e1091 | PHP | Nhagg/coreui-vue-laravel | /laravel/app/Http/Controllers/API/LessionAPIController.php | UTF-8 | 3,191 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateLessionAPIRequest;
use App\Http\Requests\API\UpdateLessionAPIRequest;
use App\Models\Lession;
use App\Repositories\LessionRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use Response;
/**
* Class LessionCo... | true |
2e895e01e0767f1bf571b29a9e685d61727d3e85 | PHP | ukamal/PHP-OOP-eCommerce- | /classes/User.php | UTF-8 | 4,119 | 2.90625 | 3 | [] | no_license | <?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath.'/../lib/Database.php');
include_once ($filepath.'/../helpers/format.php');
class User
{
private $db;
private $fm;
public function __construct()
{
$this->db = new Database();
$this->fm = new Format();
}
public function customerRegi... | true |
857abd90e801957c760a82946412dae31401c8b4 | PHP | ezrafinones/PHP_examples | /chapter11/example11_7.php | UTF-8 | 867 | 2.984375 | 3 | [] | no_license | <?php
function createParser($filename)
{
$fh = fopen($filename, 'r');
$parser = xml_parser_create();
xml_set_element_handler($parser, "startElement", "endElement");
xml_set_character_data_handler($parser, "characterData");
xml_set_processing_instruction_handler($parser, "processingInstruction");
xml_set_default... | true |
7b1e4dd6241a17759fe1c9fac098eada374135f4 | PHP | DavidLemayian/EntityPlugin | /app/controllers/DashboardController.php | UTF-8 | 1,396 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
class DashboardController extends BaseController {
public function showOverview()
{
$dc_projects = $this->dcGetProjectsJSON();
$dc_projects_count = count($dc_projects->{'projects'});
$data = array(
'nav_dash' => 'active',
'dc_projects' => $dc_projects->{'projects'},
'dc_projects_count' => $... | true |
95af59e259be5b09138c63c395282b796f90347c | PHP | schemaio/schema-php | /core/controller.php | UTF-8 | 9,625 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Schema PHP Template Framework
*
* @version 1.1.6
* @link https://schema.io
* @license http://opensource.org/licenses/mit MIT
*/
namespace Schema;
class Controller
{
/**
* Index of loaded classes
* @var array
*/
public static $classes;
/**
* Index of loaded inst... | true |
27c8b06ae8539e6b51643ccd17dc248c66aceba0 | PHP | stripthis/BlackRabbit | /app/views/elements/content/display_selector.ctp | UTF-8 | 1,041 | 2.6875 | 3 | [] | no_license | <?php
/**
* Display / View type selector
* Allow displaying a view as table, icons, list;
*
* @copyright 2010 (c) Greenpeace International
* @author remy.bertot@greenpeace.org
* @package app.views.elements.display_selector
*/
$title = isset($title) ? $title : __('display as',true);
$div = isset(... | true |
68a9612bcca798db7569200db1cb15c800e619f2 | PHP | mwkaufmann/rollikids-web | /Ressources/php/classes/FolderPictures.php | UTF-8 | 2,594 | 3.5625 | 4 | [] | no_license | <?php
/**
*
* Helper class to read folders and return the containing pictures.
* @author Team
*
*/
class FolderPictures {
private function __constructor() {
}
/**
*
* Initial picture array :) .
* @var array of Strings
*/
public static $fileExtensionArray = array(".jpg", ".jpeg", ".png", ".gif");
... | true |
b0dbb1faa566d6557156078c4dbe8f812bed4c0c | PHP | seadramon/skripsi-pengadaan | /application/models/Frontauth_model.php | UTF-8 | 3,323 | 2.53125 | 3 | [] | no_license | <?php
/**
*
*/
class Frontauth_model extends CI_Model
{
function __construct()
{
parent::__construct();
$this->err_login = 'Email atau Password salah';
$this->err_permission = 'You don\'t have permission to access this page';
}
public function login($email, $password)
{
if ($email!='' && $passwo... | true |
978ebbc91f174fe6c5c2dbb6eb736d914deb1df6 | PHP | CamTosh/Mediastorrent | /core/Format.php | UTF-8 | 610 | 2.765625 | 3 | [] | no_license | <?php
/**
* Created by JetBrains PhpStorm.
* User: Salorium
* Date: 26/09/13
* Time: 13:02
* To change this template use File | Settings | File Templates.
*/
namespace core;
class Format
{
public static function get_size($Size, $Levels = 2)
{
$Units = array(' o', ' Ko', ' Mo', ' Go', ' To', ' Po',... | true |
25612df5c03bf4a6ea6850bcc38478bb94ecde57 | PHP | mr-Girish/PHP_first_project | /first_project/html/function1.php | UTF-8 | 1,090 | 2.578125 | 3 | [] | no_license | <?php
require_once("../function/connect.php");
$conn=connect();
if (isset($_POST['register'])) {
$message="";
$success=false;
$username=$_POST['username'];
$password=$_POST['password'];
$sql1="SELECT * FROM register WHERE username='$username'";
$result1=mysqli_query($conn,$sql1);
if ($... | true |
1b11a29f1d3c23f638e8282781a6286cedb5be33 | PHP | Amrikz/CURSEwork | /Bin/Framework/Lib/Includes/Helpers.php | UTF-8 | 2,159 | 2.75 | 3 | [] | no_license | <?php
use Bin\Framework\Lib\Errors\ErrProcessor;
use Bin\Framework\Lib\Request\Request;
use Bin\Framework\Lib\Request\Response;
use Bin\Framework\Lib\Route\Url;
use Config\AppConfig;
function strError($errno)
{
return ErrProcessor::StrError($errno);
}
function makeError($text, $error = null)
{
ErrProcesso... | true |
211ba23b97394bb9411e8327fee3fae8c9866e06 | PHP | ralfmaxxx/gold-prices | /spec/AppBundle/Generator/LastTenYearsTimeRangeParameterGeneratorSpec.php | UTF-8 | 1,671 | 2.53125 | 3 | [] | no_license | <?php
namespace spec\AppBundle\Generator;
use AppBundle\Generator\GeneratorInterface;
use AppBundle\Generator\LastTenYearsTimeRangeParameterGenerator;
use AppBundle\Repository\Api\Parameter\TimeRangeParameter;
use DateTime;
use Generator;
use PhpSpec\ObjectBehavior;
/**
* @mixin LastTenYearsTimeRangeParameterGenera... | true |
1254d7daeed89d79423824216bcafda4343c0cb3 | PHP | zorille/php_depot | /tools/databases/creer_class_database.php | UTF-8 | 12,538 | 2.609375 | 3 | [] | no_license | #!/usr/bin/php
<?php
/**
* @ignore
*/
/**
*
* @author dvargas
* @package Tools
* @subpackage databases
*/
// Deplacement pour joindre le repertoire lib
$deplacement = "/../../..";
if (isset ( $_SERVER ) && isset ( $_SERVER ["SCRIPT_FILENAME"] )) {
$rep_document = dirname ( $_SERVER ["SCRIPT_FILENAME"] ) . $de... | true |
91290a0bd3de8eb056f519fa10915ce02b081267 | PHP | layanmal/AngelHunt | /AngelHunt/invest/Validation3.php | UTF-8 | 759 | 2.546875 | 3 | [] | no_license | <?php
session_start();
$servername = "localhost";
$username = "root";
$password = "";
$dp = "starter" ;
// Create connection
$conn = new mysqli($servername, $username, $password,$dp);
//Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$email=$_SESSION['email'];
$... | true |
e3f6c20f6e90cfbe714ab206bf2484ac793e4a8b | PHP | Gginne/IT202 | /project/home.php | UTF-8 | 3,776 | 2.640625 | 3 | [] | no_license | <?php require_once(__DIR__ . "/partials/header.php"); ?>
<?php
if (!is_logged_in()){
flash("You don't have permission to access this page");
die(header("Location: ../login.php"));
}
?>
<?php
$db = getDB();
$liked = [];
$recent = [];
$qLiked= "SELECT p.id, p.name, p.quantity, p.price, p.user_id, r.rating F... | true |
33cbfebda9d0ed49d22215cedc60c4fb70adf38e | PHP | ecosdosur/ecosdosur | /www/lib/XMLSimple.class.php | ISO-8859-1 | 6,167 | 3.265625 | 3 | [] | no_license | <?php
/*
* Clase XMLSimple.
*
* Representa un XML con un nico nodo, un nmero indeterminado de atributos, contenido
* y un array de nodos hijos.
* Hereda de Contenedor. Este tipo de objeto ser el que se tenga que devolver en el mtodo
* getXML() para aquellas clases que implementen la interfaz iXML.
*
* ... | true |
73f908aa005cb0e4f596fd69b4ab8a09492aaea0 | PHP | peter279k/json-schema-validator | /src/CMPayments/Cache/Cache.php | UTF-8 | 4,163 | 3 | 3 | [
"MIT"
] | permissive | <?php namespace CMPayments\Cache;
use CMPayments\Cache\Exceptions\CacheException;
use CMPayments\Json\Json;
/**
* Class Cache
*
* @package CMPayments\Cache
* @Author Boy Wijnmaalen <boy.wijnmaalen@cmtelecom.com>
*/
class Cache
{
/**
* @var array
*/
private $options = [];
/**
* @var a... | true |
ecb36d433fa87e0ffe0ac90bf7e63ccfcd599cfa | PHP | sugar3103/speedlink-zend-3 | /module/MasterData/ServiceShipment/src/Form/CarrierForm.php | UTF-8 | 4,117 | 2.625 | 3 | [] | permissive | <?php
namespace ServiceShipment\Form;
use ServiceShipment\Entity\Carrier;
use Doctrine\ORM\EntityManager;
use ServiceShipment\Validator\CarrierCodeExistsValidator;
use ServiceShipment\Validator\CarrierNameExistsValidator;
use Zend\Filter\StringTrim;
use Zend\Filter\ToInt;
use Zend\Form\Form;
use Zend\Validator\StringL... | true |
443d068c3b51f473e358ee1e8058a995849938e2 | PHP | DestinyJun/php-shop | /Application/Home/Controller/ApiController.class.php | UTF-8 | 1,154 | 2.546875 | 3 | [] | no_license | <?php
namespace Home\Controller;
class ApiController extends CommonController
{
// 设计一个登陆接口
// 注意:对于接口,不能有类似项目中的登陆验证
public function login() {
$username = I('get.username');
$password = I('get.password');
if (!$username || !$password) {
$this->ajaxReturn(array(
'status'=>1001,
'm... | true |
804b75eb024bd6ebfbf5674d1124b529fdebebb7 | PHP | Cleanse/cleanse-league | /components/LeaguePlayer.php | UTF-8 | 1,230 | 2.640625 | 3 | [] | no_license | <?php namespace Cleanse\League\Components;
use Cms\Classes\ComponentBase;
use Cleanse\League\Models\Player as PlayerModel;
class LeaguePlayer extends ComponentBase
{
public $player;
public function componentDetails()
{
return [
'name' => 'League Player Page',
'descr... | true |
62d758beb4055e177ff00a806fb0225f9e598cf9 | PHP | SaiDeepikaa/instantmerchant-php | /src/Card.php | UTF-8 | 2,344 | 2.765625 | 3 | [] | no_license | <?php
namespace Instantmerchant;
require_once "Api_resource.php";
require_once "Error_handler.php";
class Card extends Api_resource
{
/**
* [create_card - It describe that it create the new card for the customer]
* @param [array] $params [array of data]
* @return [void] [Return notification only if it... | true |
7cbdeb391a2dbf474731ebc36c2eee163d6a941c | PHP | jameswright85/Global4 | /database/migrations/2021_09_06_124004_customer_orders.php | UTF-8 | 1,547 | 2.546875 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CustomerOrders extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('customer_orders', f... | true |
ade2dee69d919a206eef1bf2daf5e1084c033286 | PHP | kirdeika/PraktineUzduotis | /src/Controller/DataFetchController.php | UTF-8 | 2,319 | 3.09375 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Entity\Student;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfon... | true |
07b2685b3948696cfe9178d770a73f6f78340236 | PHP | deb-sandeep/JoveNotesWebApp | /jove_notes/php/api/exercise/create_new_session_action.php | UTF-8 | 1,424 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
require_once( APP_ROOT . "/php/api/service/practice_card_service.php" ) ;
require_once( APP_ROOT . "/php/dao/exercise_session_dao.php" ) ;
/**
* @input [Request Body]
* chapterIds = <Array of chapters associated with this exercise session>
*
* @response
* {
* 'sessionId' : <int, lear... | true |
8ba0b15345e208b1b0178406c75c7a79a82c72eb | PHP | tangping624/ql-yii2 | /manager/protected/models/Building.php | UTF-8 | 9,066 | 2.53125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: FUYL
* Date: 2015/3/20
* Time: 14:07
*/
namespace app\models;
use Yii;
use yii\base\Model;
use app\entities\TBuilding;
class Building extends Model
{
public function getBuildingIdsByProjectId($projectId)
{
if (!isset($projectId)) {
return null;... | true |
8ff328d186a731e60224c716f80afcd657f50805 | PHP | pickles2/lib-indigo | /php/productionServerType/directory.php | UTF-8 | 2,684 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace pickles2\indigo\productionServerType;
/**
* ユーティリティ
*/
class directory
{
private $main;
private $server;
private $from_realpath;
private $realpath_tracelog;
private $realpath_copylog;
/**
* Constructor
*
* @param object $main mainオブジェクト
*/
public function __construct( $main, $server... | true |
64ee421db9410ccb79a23efa74b13e8c0e507a0e | PHP | DartVadius/anykey | /clearEngine/application/lib/SupportLib.php | UTF-8 | 1,801 | 3 | 3 | [] | no_license | <?php
/**
* supportLib
*
* @author DartVadius
*/
class SupportLib {
/**
* pagination
*
* @param array $obj array of all ID`s in the specified table in database
* @param int $page
* @param int $limit
* @return boolean | array of ID`s on specified page
*/
public stat... | true |
10f7a093affbcbd1c5ed04a42f98bdb1d7f78ecd | PHP | dvdkwak/Mini-Framework | /bin/server/router.php | UTF-8 | 727 | 2.671875 | 3 | [] | no_license | <?php
/**
* @File Router script used for the development server.
*/
// including local settings.
if(is_file(__DIR__ . "/../../config.php")) {
include __DIR__ . "/../../config.php";
} else {
define("PUBLIC_DIR", "public");
}
// Setting the entire url to the GET parameter of url.
$_GET['url'] = ltrim($_SERVER['R... | true |
c5b8586a76a9e225c82a6a86502414b61a103b77 | PHP | P79N6A/project_code | /project/open/models/YpBindbankConfrim.php | UTF-8 | 2,084 | 2.6875 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "yp_bindbank_confrim".
*
* @property integer $id
* @property integer $aid
* @property string $requestid
* @property string $create_time
* @property string $modify_time
* @property integer $error_code
* @property string $error_msg
... | true |
17ad2967ce62dbcc3092adb00a1224495da50dc3 | PHP | benoit-tb/yeuvoyage-admin | /src/AppBundle/Service/GareService.php | UTF-8 | 1,062 | 2.890625 | 3 | [] | no_license | <?php
namespace AppBundle\Service;
use AppBundle\Service\AService;
use Doctrine\Common\Persistence\ObjectManager;
/**
* Service permettant de gérer les informations sur les gare.
*
* @author bturbe
*
*/
class GareService extends AService{
// Repository
private $gareRepository;
/**
* Construct... | true |
4682fba8310e87fe3704fe19e522c52be1a55558 | PHP | baibaratsky/php-webmoney | /Api/X/X6/Request.php | UTF-8 | 4,295 | 2.59375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace baibaratsky\WebMoney\Api\X\X6;
use baibaratsky\WebMoney\Api\X;
use baibaratsky\WebMoney\Exception\ApiException;
use baibaratsky\WebMoney\Request\RequestValidator;
use baibaratsky\WebMoney\Signer;
/**
* Class Request
*
* @link http://wiki.wmtransfer.com/projects/webmoney/wiki/Interface_X6
*/
class... | true |
deed7148205ddccad522f67cc1ab8f9519eb2691 | PHP | sb15/php-class-generator | /src/PhpClassGenerator/AbstractMethodParam.php | UTF-8 | 826 | 2.984375 | 3 | [] | no_license | <?php
namespace Sb\PhpClassGenerator;
class AbstractMethodParam
{
private $name;
private $default;
private $type;
public function setDefaultValue($default)
{
$this->default = $default;
}
public function __construct($name)
{
$this->name = $name;
}
public func... | true |
36401e7a138d911c0e182a2bf6bcc2dc56b53689 | PHP | utherp/ezfw | /classes/.all_classes/site.php | UTF-8 | 6,531 | 3.03125 | 3 | [] | no_license | <?php
require_once('uther.ezfw.php');
class site {
static $table = 'sites';
static $fields = array(
'id' => 'id',
'name' => 'name',
'scan' => 'scan_duration',
'refresh'=> 'refresh_duration',
);
static $my_access = array(
'add_room' => 'sites',
'remove_room' => 'sites',
);
... | true |
df0ecb97bc97a86b1bfd80cad657f1c1d5f52b77 | PHP | MohssineElAttari/serveurHebergement | /services/HebergementService.php | UTF-8 | 3,690 | 2.828125 | 3 | [] | no_license | <?php
include_once '../../connection/connection.php';
class hebergementService
{
private $conn;
function __construct()
{
$this->conn = new Connection();
}
function creatAccount($obj)
{
$sql = "INSERT INTO hebergements(code,nom,paye,ville,adresse,adresseMap,responsable,descri... | true |