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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dfcf3b62d6f076ace42c270dcf004657b1d4309f | PHP | ionbogatu/prepair | /app/Http/Controllers/Admin/AdminController.php | UTF-8 | 9,860 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: John Rich
* Date: 4/23/2016
* Time: 7:49 PM
*/
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Storage;
use App\Route;
use Illuminate\Support\Facades\DB;
class AdminController extends Controller{
public function index(){
return... | true |
7aa2f08e9161094c9496527eb69137fd4be5fae8 | PHP | hvphi/ShoeShop | /Web/DBController.php | UTF-8 | 814 | 2.890625 | 3 | [] | no_license | <?php
class DBController {
private $host = "ec2-54-211-176-156.compute-1.amazonaws.com";
private $user = "lkblfujpnveoph";
private $password = "a2dda41d2a64a9bc1de4ccc447742ff9c32185457810c259326670ce98c0fc42";
private $database = "d7k35e83nt54kf";
private $port = "5432";
private $conn;
functio... | true |
247e036bad2e868a819813a9cfb42447f026e1fc | PHP | doMynation/doMynation-framework | /src/Utils/ProtectedGetterTrait.php | UTF-8 | 703 | 3.125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Domynation\Utils;
/**
* This grants access to private/protected members of a class as if they were public.
* This is particularly useful for DTO classes such as plain Command objects where we want to
* enforce immutability but we don't want to have to generate setters indi... | true |
858b5f22d0e5482d0857c415828e0a40702f37f7 | PHP | jiehah/WebAppHomeDecoration | /final/customers_crud.php | UTF-8 | 2,937 | 2.640625 | 3 | [] | no_license | <?php
include_once 'database.php';
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//Create
if (isset($_POST['create'])) {
try {
$stmt = $conn->prepare("INSERT INTO tbl_customers_a164854_pt2(fld_c... | true |
41eea4b405e280d576413025c91af559c4c44576 | PHP | robertdccaetano/cursosRobertCaetano | /CursoEmVideo/CursoPHPIntrodutorio/AulasCursoPHP/Aula07/aula07OperadoresRelacionais.php | UTF-8 | 1,338 | 3.640625 | 4 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
//Idêntico -> === Três iguais
//Operador Unário (ex... | true |
34dd2e25c82396d4812b4816de4ae3b65525551b | PHP | NourOyseLP/EggWars | /EggWars/src/vixikhd/eggwars/arena/IngotGeneratorData.php | UTF-8 | 732 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace vixikhd\eggwars\arena;
/**
* Interface IngotGeneratorData
* @package vixikhd\eggwars\arena
*/
interface IngotGeneratorData {
public const INGOT_IRON = [
"maxLevel" => 5,
"delay" => [
1 => 4,
2 => 2,
3 => 1,
... | true |
bac0301f6fc9df696e7daca59072ab115d1f00e3 | PHP | psioniclimited/subscriber_management_system | /app/Modules/SubscriberManagement/Commands/FingerPrintCardCommand.php | UTF-8 | 1,120 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Modules\SubscriberManagement\Commands;
use App\Modules\SubscriberManagement\Helpers\ConfigureCommandBody;
use App\Modules\SubscriberManagement\Helpers\ConfigureCommandHeader;
use App\Modules\SubscriberManagement\Models\CardEntitlementHistory;
use Carbon\Carbon;
class FingerPrintCardCommand impleme... | true |
b7f6abcded282c02824fdeb3e642789b040c1c59 | PHP | Krishnanathwani/Art-up | /Profile/logic.php | UTF-8 | 2,103 | 2.828125 | 3 | [] | no_license | <?php
// Don't display server errors
ini_set("display_errors", "off");
// Initialize a database connection
$conn = mysqli_connect("localhost", "root", "", "project21");
// Destroy if not possible to create a connection
if(!$conn){
echo "<h3 class='container bg-dark p-3 text-center te... | true |
2857ef36196227ceb66816ee4da6a56d3fd4aa57 | PHP | AlexAzartsev/php-code-profiles | /tests/ProfileTest.php | UTF-8 | 4,111 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace gossi\code\profiles\tests;
use gossi\code\profiles\Profile;
use PHPUnit\Framework\TestCase;
class ProfileTest extends TestCase {
public function testConfig(): void {
$expected = [
'indentation' => [
'character' => 'tab',
'size' => 1,
'struct' => 1,
'funct... | true |
de2b8de883543640306274b6c4cfa782d6c262c3 | PHP | ExpressionEngine/Coilpack | /src/TemplateOutput.php | UTF-8 | 3,807 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace Expressionengine\Coilpack;
use Illuminate\Contracts\Support\Arrayable;
class TemplateOutput implements \IteratorAggregate, \ArrayAccess, \Countable
{
protected $array = [];
protected $string = '';
protected $object = null;
public static function make()
{
return new stat... | true |
1a68e977f22c9672db494e0fda69bf34b9c03c48 | PHP | filchakov/rnt | /app/Http/Controllers/HomeController.php | UTF-8 | 1,485 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Team;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* @var \Illuminate\Support\Collection
*/
protected $data_for_render = [];
protected $form_id = null;
public function __construct()
{
$this->data_for_r... | true |
6a47e6a897f408d7fc2a65beb3e81e6085a2423c | PHP | symphp/oneFrame | /Core/Oneframe.php | UTF-8 | 2,654 | 2.6875 | 3 | [] | no_license | <?php
namespace Core;
/**
* Created by PhpStorm.
* User: symphp
* Date: 2017/5/18
* Time: 22:37
* 核心加载类
*/
class Oneframe
{
private static $controller = 'Admin'; //控制器
private static $aciton = 'index'; //方法
private static $param = array(); //get参数
static public function run()
{
... | true |
f23c7e96b0a4ce3b2a3fc58405b79aa040490e28 | PHP | Yurij2015/tech-support | /public_html/register.php | UTF-8 | 4,183 | 2.5625 | 3 | [] | no_license | <?php session_start() ?>
<?php $title = "Регистрация на сайте" ?>
<?php
require_once('forms/RegistrationForm.php');
require_once('DB.php');
require_once('Password.php');
require_once('Session.php');
require_once('Dbsettings.php');
$msg = '';
$db = new DB($host, $user, $password, $db_name);
$form = new RegistrationFo... | true |
8fddd4cd120a6a4eb010681e295b9a716d6b08db | PHP | juliaR76/projet_4 | /model/BilletManager.php | UTF-8 | 2,246 | 3.03125 | 3 | [] | no_license | <?php
class BilletManager
{
private $db;
public function __construct()
{
try
{
$this->db = new PDO('mysql:host=localhost; dbname=projet_4;charset=utf8', 'root', '');
}
catch (exception $e)
{
die('Erreur : '.$e->getMessage());
}
}
... | true |
bc3e502111166cdef753115bab192b2cc47830e1 | PHP | youpar96/comp710 | /BossCuts/app/Http/Controllers/ImageController.php | UTF-8 | 2,322 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
use App\Image;
class ImageController extends Controller
{
public function index(){
$images=DB::table('images')->orderByRaw('created_at DESC')->get();
return view('front.gallery', compac... | true |
866276d05c01434de50e1216fdae843795319593 | PHP | thulioprado/api-next | /src/Contracts/GraphQL/Engine.php | UTF-8 | 689 | 2.53125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Directus\Contracts\GraphQL;
use Directus\Contracts\GraphQL\Query\MutationBuilder;
use Directus\Contracts\GraphQL\Query\QueryBuilder;
use GraphQL\Executor\ExecutionResult;
use GraphQL\Type\Schema;
interface Engine
{
/**
* Gets the schema.
*/
public function ... | true |
258b986089ca9ec42e046550a1b54fc7ededb732 | PHP | Yusfuu/Flight | /core/Response.php | UTF-8 | 358 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\core;
class Response
{
public static function json($body)
{
header('Content-Type: application/json');
exit(json_encode($body));
}
public static function make($error, $code, $type, $message)
{
return [
"error" => $error,
"code" => $code,
"type" => $type,
... | true |
7489dd0290689be99f520c5f3cd869563b28bbe1 | PHP | rilindpozhegu/swisspour | /database/migrations/2017_11_12_113731_cms_pages.php | UTF-8 | 905 | 2.609375 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use App\Entities\Page;
class CmsPages extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cm... | true |
56b4b5207ac60b437bd3e75129a807817ec16ca7 | PHP | c57fr/mvc | /poo/dp/tp/classes/DBFactory.php | UTF-8 | 405 | 2.78125 | 3 | [] | no_license | <?php
class DBFactory
{
public static function getMysqlConnexionWithPDO()
{
$dbc = new PDO('mysql:host=localhost;dbname=combats', 'root', '', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
$dbc->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
return $dbc;
}
public static function getMysq... | true |
8881bf4fa8c6b921986be666aaa64f2d4e4611b2 | PHP | KaziMesbah392/PHP_Basic | /loop.php | UTF-8 | 1,691 | 3.03125 | 3 | [] | no_license | <?php
$br ='<br>';
$loop ='Loop';
$loopintro ='Loop mane hocce 1ta kaj ke bar bar kora otthat loop holo kono kicu bar bar howya.php te loop hocce 3 prokar 1.for loop 2.while loop 3.foreach loop akhon amra sikhbo for loop bistarito nice dewya holo jodi bola hoy amake 1-100 porjonto lekho tahole amake echo korte hobe ... | true |
5f1550b6ede92a7eb962816fc1e2fd9f9b340237 | PHP | anasbayu/barangGeymas | /include/koneksi.php | UTF-8 | 382 | 2.5625 | 3 | [] | no_license | <?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "geymasdb";
$admin = "admin";
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if($conn)
{
// Do nothing.
}... | true |
b1c70913076453cec870b980345091ef439387f5 | PHP | zou-simon/SoNet | /modules/compte/controleur.php | UTF-8 | 1,949 | 2.90625 | 3 | [] | no_license | <?php
require 'modele.php';
require 'vue.php';
class ContCompte {
private $modele, $vue;
function __construct() {
$this -> modele = new ModeleCompte();
$this -> vue = new VueCompte();
}
// Affichage la page de connexion
function formConnexion() {
if (isset($_SESSION['id'])) {
header("Location: ?modul... | true |
3ae552fed6d390b4efe317e8a79b718e87649f26 | PHP | hayuzi/design-pattern-php | /Lib/DesignPattern/Bridge/RedCircle.php | UTF-8 | 478 | 3.09375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: yuzi
* Date: 2019/2/24
* Time: 15:38
*/
namespace Lib\DesignPattern\Bridge;
use Utils\StringFmt;
class RedCircle implements DrawInterface
{
/**
* @param $radius
* @param $x
* @param $y
* @return mixed|void
*/
public function drawCircle(... | true |
5f3d30e226706e50cfdd921517b681046bebb724 | PHP | nokr82/GVMP | /myOffice/memberInfo.php | UTF-8 | 2,225 | 2.625 | 3 | [] | no_license | <?php
include_once ('./dbConn.php');
// 욜로몰에서 계정 정보를 조회할 수 있게 REST API 제공
// id, pw만 POST로 넘겨 받은 후
// 회원 정보를 리턴
// 복호화 키, IV 욜로몰과 안 맞으면 동작 안 하게 설계 됨
$encrypted1 = $_POST["id"];
$encrypted2 = $_POST["pw"];
$secret_key = "yolo"; // 복호화 키
$secret_iv = "vmp0001"; // 복호화 IV
$decrypted1 = Decrypt($encrypted1,... | true |
44f6de456a840b567758f3193da96fc9a2279223 | PHP | aleesgithub/www.guiadigital.com.uy | /vendor/lib/dao/query/Query.php | UTF-8 | 4,503 | 2.5625 | 3 | [] | no_license | <?php
namespace lib\dao\query;
use lib\dao\Dao;
class Query{
public $statements = null;
public $order = array();
public $pagination = null;
public $register = null;
public $sum = array();
public $in = null;
public $query = null;
public $matchagainst = null;
public $Model = null;
... | true |
5d857f8deaf17427e71225bfaed2ca374d3e053f | PHP | AbdelliNasredine/elearn_platform | /app/Controllers/Management/UserController.php | UTF-8 | 3,541 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Controllers\Management;
use App\Controllers\BaseController;
use App\Models\Role;
use App\Models\User;
use Respect\Validation\Validator as V;
use Slim\Exception\NotFoundException;
use Slim\Http\Request;
use Slim\Http\Response;
class UserController extends BaseController
{
// index
public functio... | true |
b0ade3ab8603d0f4754c6d80c22e516d3317529e | PHP | kirkh34/tgp-order-portal | /updateStatus.php | UTF-8 | 572 | 2.5625 | 3 | [] | no_license | <?php
session_start();
//MYSQL Connect
$servername = "localhost";
$username = "xxx";
$password = "xxx";
$dbname = "xxx";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$id =... | true |
55fefdf54a8435b8d0b6c4c277d1ff06f10f1d5f | PHP | simanapo/sayings | /app/Services/Sayings/FilterService.php | UTF-8 | 854 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Services\Sayings;
use App\Services\Sayings\FilterService;
use App\Saying;
use DB;
use SoftDeletes;
class FilterService
{
public function insertSaying($request)
{
DB::beginTransaction();
try
{
// 店舗テーブルロック
$saying = new Saying;
$sa... | true |
0fd00ac823f79df5d3f0b7dae90c649a2354b297 | PHP | nemanjaaries/lotos-massage | /controllers/ServiceController.php | UTF-8 | 2,270 | 2.671875 | 3 | [] | no_license | <?php
class ServiceController extends Controller{
private $_massage,
$_massage_type,
$_reservation,
$_term;
function __construct() {
parent::__construct();
$this->_massage = new Massage();
$this->_massage_type = new Massage_type();
$this->... | true |
30678e4b634918af9d5894cec5cca2dd19efe951 | PHP | davidmgilo/bodes-website | /src/WeddingBundle/Controller/DishController.php | UTF-8 | 3,180 | 2.5625 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace WeddingBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundat... | true |
1859dc6ab86226681faded6b6378e423fcdcd103 | PHP | ihor-stasevych/example | /src/AddHash/AdminPanel/Infrastructure/Repository/Payment/PaymentMethodRepository.php | UTF-8 | 889 | 2.640625 | 3 | [] | no_license | <?php
namespace App\AddHash\AdminPanel\Infrastructure\Repository\Payment;
use Doctrine\ORM\NonUniqueResultException;
use App\AddHash\AdminPanel\Domain\Payment\PaymentMethod;
use App\AddHash\System\GlobalContext\Repository\AbstractRepository;
use App\AddHash\AdminPanel\Domain\Payment\Repository\PaymentMethodRepository... | true |
46f4d3cba3515f287a48df827d6e1e61e594b0b5 | PHP | devjayantmalik/movies-api-php | /get_random_movies.php | UTF-8 | 2,211 | 3.296875 | 3 | [] | no_license | <?php
require('./config/db.php');
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// Search for movies in database
$stmt = $connection->prepare('SELECT COUNT(*) as count FROM movies;');
$stmt->execute(array());
$count = $stmt->fetchAll(PDO::FETCH_ASSOC)[0]['count'];
// Check if no movies exists
... | true |
3b5d9154602c929d34b7f35f9eee2c13f10313ce | PHP | LSFLK/Copper | /copper-server/service_images/groupoffice-6.3.66/groupoffice-6.3.66-php-70/controller/BatchEditController.php | UTF-8 | 7,436 | 2.625 | 3 | [
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"AGPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-only",
"AGPL-3.0-or-later",
"Apache-2.0"
] | permissive | <?php
/*
* Copyright Intermesh
*
* This file is part of Group-Office. You should have received a copy of the
* Group-Office license along with Group-Office. See the file /LICENSE.TXT
*
* If you have questions write an e-mail to info@intermesh.nl
*
*/
/**
* Abstract class to export data in GO
*
*
* @packa... | true |
10911e15fdfc9e915e1abcd69ee7aaab67762962 | PHP | a118326/a118326 | /e-mall/php/header.php | UTF-8 | 455 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
session_start();
echo "<!DOCTYPE html>\n<html><head>";
require_once 'db_connect.php'; //DataBase Connection
$userstr = ' (Guest)';
if (isset($_SESSION['user']))
{
$user = $_SESSION['user'];
$loggedin = TRUE;
$userstr = " ($user)";
}
else $loggedin = FALSE;
echo "<title>E-M... | true |
41fe9c04dc95b449ea5e4ed61e1f11a5c85f6dbc | PHP | aleks-bianchi/WF3_PHPoo | /index.php | UTF-8 | 3,046 | 3.609375 | 4 | [] | no_license | <?php
/********************************************/
/************* Objet via classe *************/
/********************************************/
class Utilisateur
{
//commentaire de documentation qui n'est pas interprété en tant que code mais peut être lu par des outils comme des générateurs automatiques de doc... | true |
d74a3f593c89463bff6083dddbf128a2ed509094 | PHP | Russsstle/933 | /app/Http/Controllers/Api/BranchController.php | UTF-8 | 2,018 | 2.640625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Api;
use App\Branch;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class BranchController extends Controller {
/**
* @return mixed
*/
public function __construct() {
return $this->middleware('auth');
}
/**
* Display a listing of the resou... | true |
2dee95849356269f65585143729e4fa2f6f42cd3 | PHP | xenocrat/chyrp-lite | /includes/download.php | UTF-8 | 1,245 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* File: download
* Send an uploaded file to the visitor as a file attachment.
*/
define('USE_OB', false);
require_once "common.php";
if (empty($_GET['file']))
error(
__("Error"),
__("Missing argument."),
code:400
);
if ... | true |
89699feaad06bbf9a1cc4baa0d8bb5150d5017d4 | PHP | rhexyilhammadany/PW-2-173040125 | /modul4/arrayForeach.php | UTF-8 | 348 | 3.59375 | 4 | [] | no_license | <?php
$nama = ["Ahmad", "Budi", "Chika", "Dhini", "Erwin"];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Looping For Array</title>
</head>
<body>
<?php
foreach ($nama as $absen ) {
echo "<li>$absen</li>";
}
echo "</br>";
?>
<button>
<a href="../"> Back To Index </a>
... | true |
64c5a6c8d1b0abb3ea5f9ae555913bdd0c89fc5b | PHP | klickagent/hs1314-php-mysql | /uebung10/app/controller/KantoneController.php | UTF-8 | 4,684 | 2.671875 | 3 | [] | no_license | <?php
require( $this->settings->getRoot() . '/app/model/KantoneModel.php' );
class KantoneController{
private $request;
private $viewFile;
private $settings;
private $sort_mapping = array(
'name' => array (
'attr' => 'Kanton',
'flag' => SORT_STRING
),
'hauptort' => array ... | true |
def9b744b2768b989604ee7e71e6f275d0175e97 | PHP | ryanolee/elem | /elem.php | UTF-8 | 31,638 | 2.90625 | 3 | [] | no_license | <?php
/**
* @author Ryan Lee<lrizza@rizza.net>
* @version v0.1
* This is a simple module set-up by Ryan to make the construction of dynamic webpages more easy in php.
*/
//namespace rizza;
function startup(){
//error_reporting(0);
}
function print_gzipped_output()
{
$HTTP_ACCEPT_ENCODING = $_SERVER["HTTP_A... | true |
d46bb40bdfb4d6309e90dc47afb27e9506630107 | PHP | voycare/JiankangAPI | /app/Http/Resources/ClinicResource.php | UTF-8 | 1,269 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ClinicResource extends JsonResource
{
/**
* @param \Illuminate\Http\Request $request
* @param int $total
* @return array
*/
public function toArray($request)
{
return self::fields($thi... | true |
a0fcbc797f78e1cadb7c846fe6d221a5663d026f | PHP | Petryanin/project | /admin/inc/save-changes.inc.php | UTF-8 | 1,378 | 2.5625 | 3 | [] | no_license | <?php
session_start();
require_once '../../functions.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$title = clear_str($_POST['title']);
$author = clear_str($_POST['author']);
$pubyear = clear_str($_POST['pubyear']);
$price = clear_str($_POST['price']);
if (!$title or !$author or !$pubyea... | true |
e06fc0cb1fc71c5b43f3bef388a9e78d12caf5cf | PHP | Gabriel-Gith12/Trabalho | /Trabalho/visao/controle/controle_cliente.php | UTF-8 | 1,057 | 2.578125 | 3 | [] | no_license | <?php
/// Modulos - Start
include("../../controle/controle_cliente.php");
/// Modulos - End
/// Recebe Valores - Start
$idAluno = $_POST["id"];
$idadeAluno = $_POST["idade"];
$nomeAluno = $_POST["nome"];
$idSexo = $_POST["sexo"];
$idPais = $_POST["pais"];
$idEstado = $_POST["estado"]... | true |
886bd8f04320c58a8e42a47ad4aefb95f13ecaac | PHP | houssemMhimdi/Royale | /page-buttons.php | UTF-8 | 5,857 | 2.71875 | 3 | [] | no_license | <?php get_header(); ?>
<!--
*There is 4 buttons shapes
-normal
-bordered
-rounded
-rounded-bordered
*There is 4 buttons sizes
-normal
-medium
-large
-x-large
-full-width
*There is 10 buttons colours.
-normal
-paca-button-apple
-paca-button-black
-paca-button-bright-sun
-paca-button-cu... | true |
5d4b9d275d5d792808bcacb629c0155abd96cbda | PHP | besharps/Disqueria | /models/Usuarios.php | UTF-8 | 2,088 | 3.15625 | 3 | [] | no_license | <?php
// models/Usuarios.php
/**
* Clase Usuarios
*
* @package Disquería
* @author Ramiro J. Oviedo <rjo250882@gmail.com>
* @version 1.0
*/
class Usuarios extends Model {
/**
* Función getTodos.
*
* Extrae de la base de datos todos los registros de la tabla usuarios y los devuelve en un array.
* No recibe pará... | true |
4f7028146d46b9d86e40376fcb54d4ee7b482e7c | PHP | elvisomondi/SURVEY | /framework/caching/dependencies/CDbCacheDependency.php | UTF-8 | 1,643 | 2.6875 | 3 | [] | no_license | <?php
/**
* CDbCacheDependency represents a dependency based on the query result of a SQL statement.
*/
class CDbCacheDependency extends CCacheDependency
{
public $connectionID='db';
/**
* @var string the SQL statement whose result is used to determine if the dependency has been changed.
*/
public $sql;
... | true |
ec6d59de154f09d40cbac26c6a2a749852c1e582 | PHP | FilipeBicho/WebPage | /mail.php | UTF-8 | 867 | 2.6875 | 3 | [] | no_license | <?php
session_start();
$to = "filipebch@gmail.com"; // this is your Email address
$first_name = $_SESSION['FirstName'];
$last_name = $_SESSION['LastName'];
$from = $_SESSION['Email']; // this is the sender's Email address
$message = $_SESSION['Message'];
$subject = "Form submissi... | true |
0c3cf5b01832cbbb306979050f15bd1dda967e01 | PHP | Kronoax/Class-Query | /lib/Query/src/Config.php | UTF-8 | 2,789 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Configuration for: Database Connection
* This is the place where your database constants are saved
*
*/
class Config extends Run {
/**
* database host, usually it's "127.0.0.1" or "localhost", some servers also need port info
* @var mixed
*/
protected $DB_HOST = "127.0.0.1";
... | true |
7758741afb11ca1aa755c5d4285eb83d291a0897 | PHP | Ronald33/Patata-Framework | /core/response/Response.php | UTF-8 | 1,625 | 2.78125 | 3 | [] | no_license | <?php
namespace Core\Response;
class Response
{
private static $instance;
private function __construct() { }
public static function getInstance()
{
if(self::$instance == NULL) { self::$instance = new Response(); }
return self::$instance;
}
// Ok
public function s200($message = '') { self::respondWithJSO... | true |
0e9ce86257d55e7c8b8c775dcaa08e30919b0ad7 | PHP | Daggarr/objects | /gunStore/paypal.php | UTF-8 | 653 | 3.3125 | 3 | [] | no_license | <?php
class Paypal extends PaymentMethods
{
private array $guns;
public function __construct(array $guns)
{
$this->guns = $guns;
}
public function getInfo(): bool
{
$email = readline('Enter your email: ');
if (strpos($email,'@') === false)
{
echo "I... | true |
e5f92e182ed1fb5bdf39baa101ae71e58148725f | PHP | webemyos/PuzzleApp | /Core/Core/Log.php | UTF-8 | 2,079 | 3 | 3 | [] | no_license | <?php
/*
* PuzzleApp
* Webemyos
* Jérôme Oliva
* GNU Licence
*/
namespace Core\Core;
class Log
{
//Retourne la version
function __construct()
{
$this->Version = "2.0.0.0";
}
//Enregistre un message dans le dossier correspondant
public static function Log($type,$message,$level)
{
... | true |
4a66c86abec96f72c70e82cf55d5ff1db6a95d10 | PHP | Fidigi/agHome | /src/Common/HelperTrait/LoggerTrait.php | UTF-8 | 3,454 | 2.84375 | 3 | [] | no_license | <?php
namespace App\Common\HelperTrait;
use Psr\Log\LoggerInterface;
trait LoggerTrait
{
/**
* @var LoggerInterface|null
*/
private $logger;
/**
* @required
*/
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
}
... | true |
3022734fb2da1355713aa7969cfa4d342232a608 | PHP | uistd/std-git | /src/Git.php | UTF-8 | 814 | 2.796875 | 3 | [] | no_license | <?php
namespace UiStd\Git;
use UiStd\Common\Factory as UisFactory;
use UiStd\Common\InvalidConfigException;
/**
* Class Git
* @package UiStd\Git
*/
class Git extends UisFactory
{
/**
* @var string 配置组名
*/
protected static $config_group = 'uis-git';
/**
* 获取一个缓存实例
* @param string $... | true |
102b2ec26e6455763ff223c85b6abd34625a25ec | PHP | macielbombonato/docker-chamilo | /1.11.2/chamilo-lms-1.11.2/main/attendance/attendance_controller.php | UTF-8 | 25,788 | 2.765625 | 3 | [
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
/* For licensing terms, see /license.txt */
/**
* This file contains class used like controller,
* it should be included inside a dispatcher file (e.g: index.php)
*
* !!! WARNING !!! : ALL DATES IN THIS MODULE ARE STORED IN UTC !
* DO NOT CONVERT DURING THE TRANSITION FROM CHAMILO 1.8.x TO 2.0
*
* @author... | true |
1827c9fab828655ebf3f0c216b1f35f4fea89f3e | PHP | yadavjayesh/globitek_register | /public/register.php | UTF-8 | 3,331 | 3.125 | 3 | [] | no_license | <?php
require_once('../private/initialize.php');
// Set default values for all variables the page needs.
// if this is a POST request, process the form
// Hint: private/functions.php can help
// Confirm that POST values are present before accessing them.
// Perform Validations
// Hint: Write the... | true |
721bda09c94671e6606596dd132e191549732312 | PHP | ukbe/emarketturkey | /lib/model/Contact.php | UTF-8 | 3,438 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
class Contact extends BaseContact
{
public function getHomeAddress()
{
if (count($this->collContactAddresss))
{
foreach($this->collContactAddresss as $ca)
{
if ($ca->getType()===ContactPeer::HOME) return $ca;
}
}
return $... | true |
3083228a170b9ab985dd72aa2546dbd2ac24f9ce | PHP | shapansd/spn-project | /app/Acme/Commander/commandTranslator.php | UTF-8 | 158 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Acme\Commander;
class CommandTranslator
{
protected $command;
public function translate($command)
{
return get_class($command);
}
} | true |
bbb580609f04250591f25606434c1fa576df5614 | PHP | felipewget/desafio-programacao-1 | /api/UploadApi.php | UTF-8 | 2,490 | 2.984375 | 3 | [] | no_license | <?php
namespace api;
use lib\Model;
use object\Upload;
/**
* API class with collection of methods related to the Upload table and the file processing for the upload table
*
* @author Felipe Oliveira <felipe.wget@gmail.com>
* @version 0.1
* @copyright Copyright © 2018, Felipe Rodrigues Oliv... | true |
39a19efd704642205248a2776d9e29fd5424121e | PHP | waghtot/dating_site | /app/controllers/Home.php | UTF-8 | 349 | 2.953125 | 3 | [] | no_license | <?php
class Home
{
public function __constract($data = NULL)
{
if($data !== NULL){
return $this->index($data);
}
}
public function index($data)
{
$page = new stdClass();
$page->view = get_called_class();
$page->data = 'Happy to see you here :)';
... | true |
013f3e36dd000c64fb4c350fded2a6e39fbf2993 | PHP | SergioMadness/integration-hub-postaffiliate | /src/Interfaces/PartnerBoxIntegrationService.php | UTF-8 | 1,130 | 2.953125 | 3 | [] | no_license | <?php namespace professionalweb\IntegrationHub\Postaffiliate\Interfaces;
/**
* Interface for service for integration with partner box
* @package professionalweb\IntegrationHub\Postaffiliate\Interfaces
*/
interface PartnerBoxIntegrationService
{
public const STATUS_APPROVED = 'A';
public const STATUS_PENDIN... | true |
c1bcc10b9ce1dbbab7db3aa6efeb76660c3373ed | PHP | saeedftrashed/WebTechE | /Lab Task 5/showinfo.php | UTF-8 | 575 | 2.9375 | 3 | [] | no_license | <?php
require_once 'controller/showInfo.php';
$employer = fetchInfo($_GET['id']);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h2>Empolyer Info:</h2>
<h5>First Name: <?php echo $employer['fname'] ?></h5>
<h5>Last Name: <?php echo $employer['lname'] ?></h5>
<h5>Email: <?php echo $em... | true |
fdeadfdb0524ce64b2220a0151c658164ba371d1 | PHP | PeterVuyk/Livestream-broadcaster | /src/Service/StateMachineInterface.php | UTF-8 | 267 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Service;
use App\Entity\StateAwareInterface;
interface StateMachineInterface
{
public function can(StateAwareInterface $camera, string $transition): bool;
public function apply(StateAwareInterface $camera, string $transition): void;
}
| true |
282f780b7c550fc5c39f5f73aa9eae13a728d522 | PHP | dumitrium/zee1 | /app/controllers/product_caracteristics_controller.php | UTF-8 | 3,229 | 2.765625 | 3 | [] | no_license | <?php
class ProductCaracteristicsController extends AppController {
var $name = 'ProductCaracteristics';
var $helpers = array('Html', 'Form');
var $permissions = array(
'index' => '*',
'view' => '*',
'add' => array('admin','laborator'),
'edit' => array('admin','laborator'),
... | true |
31d406758d910fbb48127090b6128f1234a36281 | PHP | maly04/RIPSTEERV2 | /modules/marketplace/classes/MarketplaceSellerOrderDetails.php | UTF-8 | 2,402 | 2.5625 | 3 | [] | no_license | <?php
class MarketplaceSellerOrderDetails extends ObjectModel
{
public $id;
/** @var id of marketplace_seller_orders*/
public $id_seller_order;
public $product_id;
/** @var id_customer of marketplace seller */
public $customer_id;
public $customer_name;
public $product_name;
public $price;
public $quantit... | true |
d74dfb60796cec5096151930b4028e7efd0939fe | PHP | thunderai/openairport | /openairportv3_lcars/includes/_modules/part139339/_339_c_facilitycomboboxlimitedtomu.inc.php | UTF-8 | 3,146 | 2.609375 | 3 | [] | no_license | <?php
function part139339_c_facilitycombobox_limitedtomu($suppliedid, $archived, $nameofinput, $showcombobox, $default) {
// $suppliedid , is the number of the group to do the search for ;
// $archived , do you want to list all menu items, or just the archived ones;
// $nameofinout , what is the name of the s... | true |
0c8872edd1d67398b21dfc08b63daa28e651a966 | PHP | Jocobii/heroJS | /APIHERO/models/area.php | UTF-8 | 2,776 | 3.09375 | 3 | [] | no_license | <?php
require_once('mysqlconnection.php');
require_once('departamento.php');
class Area{
private $id;
private $area;
private $departamento;
public function getId() {
return $this->id;
}
public function setId($id) {
$this->id = $id;
}
public function getArea() {
... | true |
bb0c51ae7e4b59c2347615a7d3786756e18bde50 | PHP | TobiasKappe/framework | /src/mako/validator/rules/Between.php | UTF-8 | 881 | 3.0625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\validator\rules;
use mako\validator\rules\traits\WithParametersTrait;
use function sprintf;
/**
* Between rule.
*
* @author Frederic G. Østby
*/
class Between extends Rule implements RuleInterface, W... | true |
0259651617e9e8d7098fa960c9ae7d8b32333f99 | PHP | stephaniekouakou/projetspace | /app/loading.php | UTF-8 | 234 | 2.515625 | 3 | [] | no_license | <?php
function Loading($path)
{
$dossier = dir($path);
$vue =[];
while($file = $dossier->read())
{
$file = str_replace(".php", "", $file);
array_push($vue, $file);
}
array_shift($vue);array_shift($vue);
return $vue;
}
| true |
54ee20d642044e5133799f5558655e83c6bba982 | PHP | bswiatek/sym2rf | /r06/src/Khepin/GithubAuthBundle/Security/Github/UserProvider.php | UTF-8 | 1,747 | 2.53125 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace Khepin\GithubAuthBundle\Security\Github;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterfa... | true |
9ceb25a6f128e74c4eaae873337e168a92524057 | PHP | Reflex-Concepts-LTD/Re-Staq | /modules/snippets/day.php | UTF-8 | 131 | 2.796875 | 3 | [] | no_license | <?php
$maxDate = 31;
foreach (range(1, $maxDate) as $value) {
echo "<option value=" . $value . ">" . $value . "</option>";
}
?> | true |
55708c2fc85ef3a8b628094dc14cad9e34f2761d | PHP | VadimsSeimanovs/CampsiteWebsite-MVC | /Models/Login.php | UTF-8 | 3,544 | 3.078125 | 3 | [] | no_license | <?php
//require_once 'Database.php';
require_once 'UserData.php';
class Login{
protected $_dbConnection, $_dbInstance;
public function __construct()
{
$this->_dbInstance = Database::getInstance();
$this->_dbConnection = $this->_dbInstance->getDbConnection();
}
/*
* Function ... | true |
b1371f11d2d7326e7892252e601e375b88ba30f7 | PHP | Artimon/MyWorld-Online | /source/lib/building/taxcollector.php | UTF-8 | 903 | 2.640625 | 3 | [] | no_license | <?php
class Building_TaxCollector extends Building_Abstract {
const KEY = 'taxCollector';
/**
* @return string
*/
public function key() {
return self::KEY;
}
/**
* @return Resource_Interface[]
*/
public function goods() {
return array();
}
/**
* @return Resource_Interface[]... | true |
4dce84185edaf5e9315b1c5dbe1b7a349e38f577 | PHP | aagarciga/vfp_business_solutions | /Application/Controllers/TreeViewManager/TreeViewManager.php | UTF-8 | 2,501 | 2.515625 | 3 | [] | no_license | <?php
/**
* Project: VFP Business Series
* Copyright: 2014. VFP Business Solutions, LLC
*/
namespace Dandelion\MVC\Application\Controllers;
use Dandelion\MVC\Core\ActionsController ;
use Dandelion\MVC\Application\Application;
/**
* VFP Business Series File Manager Controller
* @name TreeViewManager
*/
class T... | true |
b83b27bbdae0af80a341b502a10e159ff47cde07 | PHP | OnroerendErfgoed/kvd | /classes/domain/KVDdom_IDataMapper.interface.php | UTF-8 | 1,329 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/**
* @package KVD.dom
* @copyright 2004-2007 {@link http://www.vioe.be Vlaams Instituut voor het Onroerend Erfgoed}
* @author Koen Van Daele <koen.vandaele@rwo.vlaanderen.be>
*/
/**
* KVDdom_IDataMapper
*
* Een KVDdom_IDataMapper is een class die een domainobject kan laden uit een datasource.
* Onder da... | true |
6a27ee6b95b330e1bb16c6d42883ab3b85b69a59 | PHP | Finnology/oro-platform | /src/Oro/Bundle/NavigationBundle/Entity/AbstractPinbarTab.php | UTF-8 | 3,253 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace Oro\Bundle\NavigationBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Oro\Bundle\UserBundle\Entity\AbstractUser;
/**
* Base class for pinbar tabs.
*
* @ORM\MappedSuperclass
*/
class AbstractPinbarTab implements NavigationItemInterface
{
/**
* @var integer $id
*
* @ORM\Id
... | true |
193e421e5eb738560633686d576cc772b7598adf | PHP | luupd58/Shop_project | /app/Repositories/Promotion/PromotionEloquentRepository.php | UTF-8 | 1,518 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories\Promotion;
use App\Repositories\EloquentRepository;
class PromotionEloquentRepository extends EloquentRepository implements PromotionRepositoryInterface
{
/**
* get model
* @return string
*/
public function getModel()
{
return \App\Promotion::class;... | true |
49783068dfc52dc3a837f334b3f0056ed7675f66 | PHP | aplutin/HR-php-test | /database/Entities/Order.php | UTF-8 | 2,661 | 2.96875 | 3 | [] | no_license | <?php
/**
* Created by Alex Plutin
* Date: 21.03.2020
*/
namespace App\Database\Entities;
/**
* Class Order
* @package App\Database\Entities
*/
class Order
{
/**
* @var int
*/
private $id = 0;
/**
* @var int
*/
private $status = 0;
/**
* @var string
*/
priva... | true |
875c9cf7ac6f2758f0f57fdfd594a3b1e507a020 | PHP | Rmyf/HelpInCode | /Posts.php | UTF-8 | 379 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | <?php
class Posts {
public $categorie;
public $titre;
public $contenu;
public $date;
public $auteur;
function __construct($categorie, $titre, $contenu, $auteur) {
$this->categorie = $categorie;
$this->titre = $titre;
$this->contenu = $contenu;
$this->date = new... | true |
e553e1b2079fbcddbc5ba62f98301c3294946a18 | PHP | Pfed-prog/php-intro-interview-A | /question3.php | UTF-8 | 544 | 2.96875 | 3 | [] | no_license | <?php //php 7.2.24
$garages = [
1 => ['id' => 1, 'name' => 'Гараж на улице 1', 'size' => 1],
7 => ['id' => 7, 'name' => 'Подземная парковка', 'size' => 100],
23 => ['id' => 23, 'name' => 'У домика в деревне', 'size' => 2],
];
// машины
$cars = [
['name' => 'Белый Ford', 'garageId' => 7],
['name' =>... | true |
118c7e7a1d60397de53208084e9d3bef0c2fdbbb | PHP | jmarkese/SpecialOrders | /app/Http/Controllers/Api/ApiController.php | UTF-8 | 486 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Tymon\JWTAuth\Facades\JWTAuth;
use App\Traits\ApiReponse;
abstract class ApiController extends Controller
{
use ApiReponse;
/**
* @var authenticated user
*/
protected $user;
/**
* Set the authenticatec... | true |
6eb44c815eb4015f8e4961513ecc584433d71e6a | PHP | wight3/699_client | /application/model/Service.php | UTF-8 | 4,342 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: NickBai
* Email: 876337011@qq.com
* Date: 2019/2/20
* Time: 9:02 PM
*/
namespace app\model;
use think\facade\Log;
use think\Model;
class Service extends Model
{
protected $table = 'v2_now_service';
/**
* 获取尚未服务完的客服信息
* @param $customerId
* @param ... | true |
ffb1787c51a9a25f691a17bf95a6c86a9866a5ac | PHP | ridilnr/Backend-Apps | /restfoodapp/app/view/Cities/crud/create.php | UTF-8 | 3,680 | 2.5625 | 3 | [] | no_license | <?php
use Phalcon\Http\Response;
// -------------------------- POST A CITY --------------------------
$app->post('/api/v1/cities', function () use ($app) {
// first
$city = $app->request->getJsonRawBody();
$response = new Response();
$response->setHeader('Content-Type', 'application/json');
//
... | true |
8fc798db7ce02e0723cfaf7819e4abfa2d38e567 | PHP | diolektor/torrentpier | /src/Log.php | UTF-8 | 4,382 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
/**
* TorrentPier – Bull-powered BitTorrent tracker engine
*
* @copyright Copyright (c) 2005-2018 TorrentPier (https://torrentpier.com)
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT ... | true |
86fc6d325b9b18c5adf34e57e6003e99607c43d4 | PHP | hunserwiz/mix | /app/models/User.php | UTF-8 | 2,236 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
use UserTrait, RemindableTrait;
/**
* The database table used by t... | true |
1125261adb974c8a3a9a540ed734270138a734f9 | PHP | s1nack/backup-projects | /OSIGNA - Vulnerability and OSINT Management Platform/Controllers/reports.php | UTF-8 | 1,944 | 2.546875 | 3 | [] | no_license | <?php
class Reports extends Auth_Controller {
function index()
{
// load view : liste des reports
}
function getSiteReport($siteID)
{
// returns $siteID Website report information
}
function getTargetReport($targetID)
{
// returns $siteID Website report information
}
function ... | true |
06153a1a82e3b106e8ea75814cd9edbb49d518e9 | PHP | NikolaJohnn/Coming-soon | /apply.php | UTF-8 | 3,388 | 2.609375 | 3 | [] | no_license | <?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'PHPMailer/Exception.php';
require 'PHPMailer/PHPMailer.php';
function ms_validate_file_error($file_error)
{
switch ($file_error) {
case UPLOAD_ERR_OK:
return true;
break;
case UPLOAD_ERR_NO_FILE:
return false;
case U... | true |
c5e49648af101c916fa075257bfc3a769f7ebbc2 | PHP | riyanhax/spingyma | /libs/libs/_Consultar.php | UTF-8 | 77,017 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
class Consultar
{
//Querys de Usuarios
function _LoginUsuario($usuario,$pass)
{
R::begin();
try{
$user = R::getRow("SELECT * FROM sgusuarios where nb_usuario=? and pw_password=?",[$usuario,$pass]);
R::commit();
}
catch(Exception $e) {
$user = R::ro... | true |
529a372e2ff3d797b22f5ce4fde6f3c09d32ca52 | PHP | torshid/turkraft | /web/includes/classes/canager.php | UTF-8 | 3,594 | 2.578125 | 3 | [] | no_license | <?php
class Canager
{
private $Page;
private $Parent;
private $Elements;
public function __construct($Page, $Parent)
{
$this->Page = $Page;
$this->Parent = $Parent;
$this->Elements = array();
$Query = mysql_query("SELECT id FROM f_categories WHERE parent = $Parent ORDER BY o... | true |
c89ce745aaf0fe536a842074092a69a14e88ecbc | PHP | MaggyConway/gallato | /www/bitrix/modules/vbcherepanov.bonus/lib/CVbchBonusCard.php | UTF-8 | 2,363 | 2.78125 | 3 | [] | no_license | <?php
namespace ITRound\Vbchbbonus;
use Bitrix\Main,
Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
/**
* Class CardTable
*
* Fields:
* <ul>
* <li> ID int mandatory
* <li> TIMESTAMP_X datetime mandatory default 'CURRENT_TIMESTAMP'
* <li> LID string(2) mandatory
* <li> ACTIVE bool optional default... | true |
78a450c9bad4145310ee9b0ebd9c69f7d4e82f8a | PHP | ArmandoPachecoMorales/RESIDENCIAS | /PaginaWeb/controllers/controladores.php | UTF-8 | 1,547 | 2.703125 | 3 | [] | no_license | <?php
# En este apartado estamos creando la clase MvcControladores para despues poder llamar ala platilla vistahtml
# con el (include) que este sirve para llamar a todo un achivo que en este caso es vistahtml.php
#-------------------------------------------------------------------------------------------------------... | true |
e0daf0cc491ef84fcfd15fbbff2a5380d3b96d26 | PHP | haubar/autoasset | /src/Kerkerker/Autoasset/AssetBuilder.php | UTF-8 | 1,263 | 2.859375 | 3 | [] | no_license | <?php namespace Kerkerker\Autoasset;
use Illuminate\Html\HtmlBuilder;
use Illuminate\Routing\UrlGenerator;
class AssetBuilder extends HtmlBuilder {
protected $filename;
protected $path;
/**
*
* Create new asset
*
*/
public function __construct(UrlGenerator $url = null, $filename = null, $path... | true |
1eea727758e2192a8937364368d3ec2f6c81b038 | PHP | maguofu/studyPHP | /learn_array/array_diff_assoc.php | UTF-8 | 719 | 3.390625 | 3 | [] | no_license | <?php
// array_diff_assoc()
// array_diff_assoc() 函数用于比较两个(或更多个)数组的键名和键值 ,并返回差集。
// 该函数比较两个(或更多个)数组的键名和键值,并返回一个差集数组,该数组包括了所有在被比较的数组(array1)中,但是不在任何其他参数数组(array2 或 array3 等等)中的键名和键值。
$arr1 = array('a'=>'red','b'=>'green','c'=>'black','d'=>'yellow');
$arr2 = array('a'=>'red','b'=>'pink','f'=>'black','d'=>'yel... | true |
be2f3f99edeb50d3204d01c6b1a44702bd08bb29 | PHP | tylerchilds/secret-santa | /includes/match-santas.php | UTF-8 | 838 | 3.046875 | 3 | [] | no_license | <?php
function matchSantas($names, $emails){
$original = original($names, $emails);
do {
$matches = match($names, $emails);
} while (notUnique($original, $matches));
return $matches;
}
function original($names, $emails){
$originals = array();
foreach ($emails as $key => $value) {... | true |
ac3cb7d20868cd5f0f8ce8ba7dc90114b57ba351 | PHP | MunschSam/TestTechnique | /src/Entity/Teams.php | UTF-8 | 2,578 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Entity;
use App\Repository\TeamsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TeamsRepository::class)
*/
class Teams
{
/**
* @ORM\Id
* @ORM\GeneratedValue
... | true |
ed73f0e1d31e5c93a512eed1b42eae5b7bdbbb10 | PHP | zaq5278/shushi97 | /web/webprj/app/plugin/upload/Validator.php | UTF-8 | 1,470 | 2.875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: MiaoGang
* Date: 2016/8/3
* Time: 11:12
*/
namespace Plugin\Upload;
use Plugin\Upload\Validation\Base;
/**
* Class Validator
*/
class Validator
{
// 检测器列表
private $validations = array();
// 错误信息
private $errors;
/**
* 执行检测... | true |
cfd4bddad0bf1699cbe3335f3528fdbab480cdba | PHP | prggmr/psgmr | /lib/prggmr/engine.php | UTF-8 | 8,534 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace prggmr;
/**
* Copyright 2010 Nickolas Whiting
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | true |
522fd1fe76c93b1357140582aac1261bc360b719 | PHP | makubex64/login-register-php | /database/login_user.php | UTF-8 | 1,509 | 2.578125 | 3 | [] | no_license | <?php
if (isset($_POST['submit_login']) || isset($_POST['submit'])) {
session_start();
include_once 'db.php';
$user_login = $_POST['user_login_or_email'];
$password_login = $_POST['password'];
if (empty($user_login) || empty($password_login)) {
$_SESSION['message_login'] = 'llena los campos vacios';
$_SESSI... | true |
b9d1854a211aaf26d1bbe47cf6961b88324af058 | PHP | mnoskov/lesscompiler | /assets/plugins/lesscompiler/lib/ILess/Node/DimensionNode.php | UTF-8 | 7,760 | 2.75 | 3 | [] | no_license | <?php
/*
* This file is part of the ILess
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ILess\Node;
use ILess\Context;
use ILess\Exception\CompilerException;
use ILess\Math;
use ILess\Node;
use ILess\Output\OutputInter... | true |
5b13ed5623a9e4138f0b54e1c481c2ca68fa5397 | PHP | RomsonApp/atwix_task | /Atwix/Example.php | UTF-8 | 617 | 3.1875 | 3 | [] | no_license | <?php
namespace Atwix;
class Example
{
protected $_names = array();
public function __construct($names)
{
$this->setNames($names);
}
public function setNames($names)
{
$this->_names = $names;
}
public function getNames()
{
return $this->_names;
}
... | true |
f7d52cfe77d9a6f229c25d4765c837aba810f23b | PHP | horacn/test_php | /logic/func_closures.php | UTF-8 | 2,712 | 3.609375 | 4 | [] | no_license | <?php
/** 匿名函数/闭包函数
* http://www.php.net/manual/zh/functions.anonymous.php
* https://www.cnblogs.com/iforever/p/6439852.html
* Created by PhpStorm.
* User: hezhao
* Date: 2018-04-28 19:35
*/
// 匿名函数示例
echo preg_replace_callback('~-([a-z])~', function ($match) {
return strtoupper($match[1]);
}, 'hello-wor... | true |