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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b6ff662a03036f4ead192cf464203623faf7c2f9 | PHP | Ibrahimkrrt/Web_Sites | /CRUD/CONTROLLER/Add.php | UTF-8 | 1,132 | 2.53125 | 3 | [] | no_license | <?php
session_start();
#var
$_SESSION["ERROR"] = "";
if (!isset($_SESSION["CONTACTS"])) {$_SESSION["CONTACTS"] = array();}
#
if (empty($_GET["F_Name"])) { $_SESSION["ERROR"] .= "First Name, " ;}
if (empty($_GET["L_Name"])) { $_SESSION["ERROR"] .= "Last Name, " ;}
try {
if (empty($_GET["Gender"])) { }
}
catch(Exc... | true |
f6449479b2f3ab1f3af7b9ac8b21ab4fc924613c | PHP | woohoolabs/yang | /src/JsonApi/Hydrator/ClassHydrator.php | UTF-8 | 3,921 | 2.734375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
declare(strict_types=1);
namespace WoohooLabs\Yang\JsonApi\Hydrator;
use stdClass;
use WoohooLabs\Yang\JsonApi\Schema\Document;
use WoohooLabs\Yang\JsonApi\Schema\Resource\ResourceObject;
/**
* @deprecated Use the ClassDocumentHydrator instead.
*/
final class ClassHydrator implements HydratorInterface
{
... | true |
5272d041573bda5cba371bf8ddaf756d24e89b13 | PHP | devimteam/data-importer | /src/Exception/EntityManagerIsClosed.php | UTF-8 | 468 | 2.65625 | 3 | [] | no_license | <?php
namespace Devim\Component\DataImporter\Exception;
class EntityManagerIsClosed extends \RuntimeException
{
/**
* @var array
*/
private $data;
/**
* TODO:
* @return array
*/
public function getData()
{
return $this->data;
}
/**
* TODO:
* @... | true |
b6452c9b425fe5812a7c01e92e4faec8ac02af04 | PHP | maisner/ud-test-ticket | /app/Model/Village/VillageModel.php | UTF-8 | 1,296 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types = 1);
namespace Maisner\App\Model\Village;
use Maisner\App\Model\Utils\IdentityMap\Factory\IdentityMapFactoryInterface;
use Maisner\App\Model\Utils\IdentityMap\IdentityMapInterface;
use Nette\Database\Context;
use Nette\Database\Table\ActiveRow;
use Nette\SmartObject;
use Nette\Utils\Array... | true |
4bfaa7f66e284ff4bc994179e796908e09ecdc3c | PHP | liuxuchao/crap | /Application/BaseService.class.php | UTF-8 | 8,128 | 3.34375 | 3 | [] | no_license | <?php
namespace Application;
/**
* Description of BaseService
*
* @author liuxuchao
*/
abstract class BaseService
{
protected $model;
public function __construct()
{
$this->setModel();
}
/**
* 设置当前model
* @author 刘旭超 <liuxuchao126@126.com>
* @date 2016-07-14 11:... | true |
bc8efa1756c064f84f01ac91d7951f0143022882 | PHP | Eve-PHP/Shade | /Model/Session/Index.php | UTF-8 | 2,997 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php //-->
/**
* A Custom Project
*
* Copyright and license information can be found at LICENSE
* distributed with this package.
*/
namespace Eve\Model\Session;
use Eve\Framework\Model\Base;
use Eve\Framework\Model\Argument;
use Eve\Framework\Model\Exception;
/**
* Session Model Index
*
* GUIDE:
* -- eve()... | true |
904d53048a86da810ecbefd1f47ee5101f1bc89c | PHP | hilaryosborne/vcff-challenge | /context/bundled/vcff_curly/CH_Curly_Progress.php | UTF-8 | 1,472 | 2.578125 | 3 | [] | no_license | <?php
class CH_Curly_Progress extends VCFF_Item {
public $form_instance;
public $tag = 'ch_progress';
public $name = 'CH Form Progress';
public $category = 'Challenge';
public $hint = 'ch_progress';
/**
* Returns a single tag array
*/
public function ... | true |
60ed2632a76acdbeef234fcd93024216febe1d59 | PHP | rupalib-dot/cierojewels | /app/Rules/IgnoreSkuCode.php | UTF-8 | 1,046 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use App\Model\Admin\Product;
use Auth;
class IgnoreSkuCode implements Rule
{
/**
* Create a new rule instance.
*
* @return void
*/
public $id;
public function __construct($id)
{
$this->id = $id;
}
... | true |
6d82ea6124008e29f81f26b7d57d9d04436a30bf | PHP | robinscholz/better-rest | /vendor/composer/composer/src/Composer/Package/Archiver/HgExcludeFilter.php | UTF-8 | 2,743 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Package\Archiver;
use Symfony\C... | true |
6e537eb80a438418ea855cb0423b0c037a0f4f34 | PHP | arshadalisoomro/conference_room_scheduler | /src/classes/ViewRoom.php | UTF-8 | 5,072 | 2.703125 | 3 | [] | no_license | <?php
error_reporting(E_ALL);
//parse_str($_SERVER['QUERY_STRING']);
class ViewRoom {
function buildRoom($db, $post, $userId) {
$tableType = $post['type']; // will either be me, users, or all
$room_list_json=array();
// you will have to join reservation with location, room, user, and time slot
... | true |
01d4896052d619b828153849718d07cdd2abea4f | PHP | jlr2k8/gaseous | /app/libraries/Assets/Css.php | UTF-8 | 641 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by Josh L. Rogers.
* Copyright (c) 2020 All Rights Reserved.
* 2/9/20
*
* Css.php
*
*
**/
namespace Assets;
use Seo\Minify;
class Css
{
public $concat;
public function __construct()
{
$this->concat = new Concat();
}
/**
* @return bool
*/
public... | true |
bb353352f661b6dc2a7ade726c9ae653f1151225 | PHP | Siyeon-dev/PHP | /OOP/34.php | UTF-8 | 537 | 3.296875 | 3 | [] | no_license | <?php
class Variables {
public function __construct() {
if (session_id() === "") {
session_start();
}
}
// 세션 값 저장
public function __set($name, $value) {
$_SESSION['variables'][$name] = $value;
}
// 세션 값 불러오기
public function &__get($name) {
return $_SESSION['variables'][$name];
}
... | true |
9310050d5e2b5323b3d798d2b912b0bd78ab13e6 | PHP | datonique/analytics-firer-php | /src/Analytic/ButtonClick.php | UTF-8 | 625 | 2.84375 | 3 | [] | no_license | <?php
namespace datonique\Analytic;
use datonique\Analytic\Analytic;
class ButtonClick extends PageAnalytic {
private $button_name;
private $page_name;
/**
* Constructor
*
* @param string $button_name
*/
public function __construct(
string $button_name,... | true |
a332b73a218358f71ccb90cf5f4789a75489e03a | PHP | arturas-malinovskis/illia-belikov-tryout | /src/Kernel.php | UTF-8 | 525 | 2.578125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App;
use App\Service\TransactionManagerInterface;
class Kernel
{
private $transactionManager;
/**
* Kernel constructor.
* @param TransactionManagerInterface $transactionManager
*/
public function __construct(TransactionManagerInterface $transactio... | true |
310fa5bf8485b7839de0644c3c9465e0ca6dab7d | PHP | FuckBrains/old-dumps | /hmdswebBlog/admin/post.php | UTF-8 | 1,260 | 2.84375 | 3 | [] | no_license | <html>
<form action="<?php $_PHP_SELF ?>" method="post">
Name:-<input type=text name=name><br>
Link:-<input type=text name=link><br>
MM:-<input type=text name=mm><br>
<input type=submit>
<?php
include '../files/db.php';
if (isset($_POST['name'])) {
$name = $_POST['name'];
$link = $_POST['link'];
$mm = $_POST['mm'];
$... | true |
da216ad6a692357631b2eef5106e5dcd15d2022d | PHP | michaelzangerle/tmd | /src/FHV/Bundle/TmdBundle/Manager/GISDataImportManager.php | UTF-8 | 3,058 | 2.9375 | 3 | [] | no_license | <?php
namespace FHV\Bundle\TmdBundle\Manager;
use Doctrine\ORM\EntityManagerInterface;
use FHV\Bundle\TmdBundle\Entity\GISCoordinate;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Imports gis data to the database
* Class GISDataImportManager
* @package FHV\Bundle\TmdBundle\Manager
*/
class GISDataI... | true |
f7f725a7b29ec0cb98246ebfd1d52cbb6cf7e579 | PHP | shiguangchicken/MyWeb | /MyWeb/ConnDb.php | UTF-8 | 997 | 3.28125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: fang
* Date: 2017/12/12
* Time: 14:38
*/
class ConnDb
{
private $host;
private $user;
private $psword;
private $database;
public function __construct($host,$user,$psword,$database)
{
$this->host=$host;
$this->user=$user;
$this->psword=$psword;
$this->databa... | true |
c1ef204e701d6a0d602b984210105e4aa6b307db | PHP | nnhongthai97/code1902e | /codephp/day1/var.php | UTF-8 | 1,134 | 3.1875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Biến trong php</h1>
<h1>Biến là đối tượng , thứ dùng để lưu trữ thông tin và thay đổi giá trị trong
quá trình chạy</h1>
<h1>Biến trong php bắt đầu bằng $</h1>
<h1> dấu = là phép gán vế bên phải sang bên tr... | true |
fcdacacefb8bbd06d9004235d5ef5d47d4f31f0e | PHP | Wadaarik/Tests-unitaires | /src/esport.localhost/api/v1/equipes/create/index.php | UTF-8 | 1,444 | 2.578125 | 3 | [] | no_license | <?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
include_onc... | true |
5e6b3ae1859bdf3c71ab976d023f8141a25cd7bf | PHP | Tellus/sw305e11-code | /sw3.girafweb/index.php | UTF-8 | 1,369 | 2.65625 | 3 | [] | no_license | <?php
// Set some header data.
header('Content-Type: text/html; charset=utf-8');
// Prepare some path constants for the script.
define("INCDIR", __DIR__ . "/include/");
define("BASEDIR", __DIR__ . "/");
// Demand mandatory files.
require_once(INCDIR . "util.func.inc");
require_once(INCDIR . "session.class.inc");
// ... | true |
d39845e92da1425fb0f3c5260c21795b9ee6ceba | PHP | zich188/QUETESessionChallengePhp | /index.php | UTF-8 | 1,795 | 2.640625 | 3 | [] | no_license | <?php require 'inc/data/products.php'; ?>
<?php require 'inc/head.php'; ?>
<?php
//session_start();
//Methode GET
//je verifie si $_GET['add_to_cart'] est instancié
//if (isset($_GET['add_to_cart']))
//{
//si oui je stock dans $_SESSION la valeur de add_to_cart
// $_SESSION['pannier']['name'] = $_GET['add_t... | true |
2f9a2d2e16888fdbc7c0a3c99831edc40195c927 | PHP | Tibo30/Nesti-Ecommerce-Part | /app/Entities/Product.php | UTF-8 | 1,024 | 2.921875 | 3 | [] | no_license | <?php
namespace App\Entities;
use CodeIgniter\Entity;
use App\Models\ProductModel;
use App\Models\ArticleModel;
class Product extends Entity
{
/**
* Check if the product is an ingredient
*/
public function isIngredient()
{
$productModel = new ProductModel();
$ing = false;
... | true |
6da6397ba9e6a6e43742c6ed15a7fb9ce13d1dbd | PHP | HelgeSverre/Brreg | /src/Services/BrregDataService.php | UTF-8 | 3,094 | 2.71875 | 3 | [] | no_license | <?php
namespace HelgeSverre\Brreg\Services;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use HelgeSverre\Brreg\Transformers\BrregCompanyDataTransformer;
use League\Fractal\Manager;
use League\Fractal\Resource\Collection;
use League\Fractal\Resource\Item;
class BrregDataService
{
protected $... | true |
d0967009aa6ce69936ba33e016fe839fa60244ce | PHP | glibmarchenko/lootly | /app/Repositories/Eloquent/Criteria/HasIntegrationWhere.php | UTF-8 | 464 | 2.625 | 3 | [] | no_license | <?php
namespace App\Repositories\Eloquent\Criteria;
use App\Repositories\Criteria\CriterionInterface;
class HasIntegrationWhere implements CriterionInterface
{
protected $conditions;
public function __construct(array $conditions)
{
$this->conditions = $conditions;
}
public function appl... | true |
323957e4e9d3c0c42e819ea35ee8577710925236 | PHP | Brolivar/SIBW | /PRACTICA 3/PHP/controladores/controlador_Comentarios.php | UTF-8 | 1,144 | 2.703125 | 3 | [] | no_license | <?php
// Llama al modelo para realizar las operaciones con la base de datos
require_once("modelos/modelo_Comentarios.php");
// Creamos un objeto del modelo para los comentarios
$modeloComentarios = new ModeloComentarios();
// Si se ha realizado algún POST entonces es que se ha introducido un nuev... | true |
b477974d899b98b69ec85187a91ca84c2feb5737 | PHP | goetas-webservices/adyen-payment-client | /src/Payment/FraudCheckResultType.php | UTF-8 | 1,492 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace GoetasWebservices\Client\AdyenPayment\Payment;
/**
* Class representing FraudCheckResultType
*
*
* XSD Type: FraudCheckResult
*/
class FraudCheckResultType
{
/**
* @property int $accountScore
*/
private $accountScore = null;
/**
* @property int $checkId
*/
pr... | true |
15fa8c7938375e337f35107091c89ef529abdac5 | PHP | KianKane/LearnHearthstone | /LearnHearthstone/database/all_comments.php | UTF-8 | 1,565 | 3.203125 | 3 | [] | no_license | <?php
include_once "database_connection.php";
session_start();
// Only allow unapproved comments to be selected if the user is logged in as an administrator.
$sql;
if ($_SESSION["admin"])
$sql = "SELECT id, CAST(approved AS UNSIGNED INTEGER) AS \"approved\", alias, content FROM LH_Comments ORDER BY posted DESC... | true |
044aeaa46531b73b15564324104d32f2e870db80 | PHP | AmirBista/a-surgical | /main_app/bizlayer/protected/components/CsvReport.php | UTF-8 | 18,503 | 2.5625 | 3 | [] | no_license | <?php
class CsvReport{
protected $_csv_mapped_master_ids = array(
'driver_info' => 6,
'detail_info' => 7,
'order_master' => 8,
'order_product' => 9,
'order_detail' => 10,
'product_stock' => 12
);
protected $_sort_order;
/*-------... | true |
d3ccad730ffb5038fb40cfd80c518117ac533294 | PHP | sjurajpuchky/contact-crawler | /implementation/Search.php | UTF-8 | 1,395 | 2.8125 | 3 | [] | no_license | <?php
namespace App\ContactCrawler;
/**
* Description of Search
*
* @author jpuchky
*/
class Search {
public function getData($url) {
//sleep(1);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CU... | true |
8797090ad40182b1ffd7b03ce3c1097eac0de85c | PHP | Formula9/Framework | /F9/Container/Potion.php | UTF-8 | 6,887 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php namespace F9\Container;
/**
* @package Research Container
* @version 0.4.2
* @author Greg Truesdell <odd.greg@gmail.com>
*/
use Auryn\InjectionException;
use Auryn\Injector;
use F9\Container\Contracts\ContainerContract;
use F9\Exceptions\CannotAddNonexistentClass;
class Potion implements ContainerContract... | true |
3c19b15e49746116edfced6e501a8140b51bc915 | PHP | lfvelascot/DesarrolloWeb | /appausaweb/mcript.php | UTF-8 | 1,667 | 2.984375 | 3 | [] | no_license | <?php
//Configuración del algoritmo de encriptación
//Debes cambiar esta cadena, debe ser larga y unica
//nadie mas debe conocerla
$clave = 'appausa usbbog';
//Metodo de encriptación
$method = 'aes-256-cbc';
// Puedes generar una diferente usando la funcion $getIV()
$iv = base64_decode("C9fBxl1AgWcxY1/M8jfstw==");
... | true |
385ca9fdb226ffc42c61d27254e5688911d31f2b | PHP | JonathanAllegre/MyFirstBlogOC | /src/Entity/PostEntity.php | UTF-8 | 4,845 | 3.015625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: jonathan
* Date: 04/04/2018
* Time: 18:49
*/
namespace App\Entity;
class PostEntity
{
private $idPost;
private $created;
private $modified;
private $title;
private $shortText;
private $content;
private $idUser;
private $idStatutPost;
pr... | true |
d40cce4c954c1f798a13dd7a3b6c522fc63ff60a | PHP | harismairaj/factors | /protected/modules/custom/models/forms/GuestRegister.php | UTF-8 | 3,541 | 2.65625 | 3 | [] | no_license | <?php
namespace humhub\modules\custom\models\forms;
use Yii;
use yii\base\Model;
use yii\helpers\Url;
/**
* Guest Registration Form is the model behind the Guest Registration form.
*/
class GuestRegister extends Model
{
/**
* @var string user's firstname
*/
public $firstname;
/**
* @var s... | true |
b198db62a66323d9415863986fe7e33f6baf949f | PHP | wlw330296385/phalcon | /demo/applications/backend/validations/AdminGroupValidation.php | UTF-8 | 2,740 | 2.671875 | 3 | [] | no_license | <?php
namespace Oupula\Backend\Validation;
use Oupula\Library\Validation;
use Phalcon\Validation\Validator;
class AdminGroupValidation extends Validation
{
private $type;
public function __construct($type='add'){
$this->type = $type;
parent::__construct();
}
public function initialize(){
if($this->type == ... | true |
dfe1eeb34fcc77850048451a5e60ac5cb89bd503 | PHP | gerb030/scripts | /configar_links.php | UTF-8 | 3,015 | 2.515625 | 3 | [] | no_license | #!/usr/local/bin/php
<?php
/**
* Finding contentar IDs that are linked to Configar IDs
*/
echo PHP_EOL;
$conn = mysql_connect ('localhost', 'gerb', 'geheim');
mysql_select_db('configar_analysis', $conn);
$sql = "select g_a.game_id, a_r.id as apiversion_request_id, a_r.url from apiversion_request a_r inner join game_ap... | true |
91acc4b4172e4fc517848bf78ae77ec824d413fe | PHP | arasool000/MRDB---Music-Research-Database-Project2 | /htdocs/artist.php | UTF-8 | 4,956 | 2.578125 | 3 | [] | no_license | <html>
<body>
<link rel="stylesheet" type="text/css" href="style1.css">
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/album/">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/i... | true |
f15bfb1ba03ec993962d4a544f0c28e01f007acb | PHP | beezhprines/bex | /app/Services/WeekService.php | UTF-8 | 2,317 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Services;
use Carbon\Carbon;
use ResponseCache;
class WeekService
{
public function start()
{
return session('week')['start'] ?? null;
}
public function end()
{
return session('week')['end'] ?? null;
}
public function get()
{
return sessio... | true |
749a79747d3c68f8ad9756600930745eba08a8fc | PHP | kaushikpatel11/laravel-demo | /app/Services/CityService.php | UTF-8 | 989 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Repositories\CityRepository;
/**
* Class CityService
*
* @package App\Services
* @author David Cigala
* @version 0.0.1
* @since 2020-08-17
*/
class CityService
{
protected CityRepository $city;
/**
* Create a new controller instance.
*
* @return... | true |
cae017e7014274de62b954019a7696034ce0d198 | PHP | mmthatch12/php_practice | /functions.php | UTF-8 | 299 | 3.375 | 3 | [] | no_license | <!DOCTYPE>
<html>
<head>
<title>browser?</title>
</head>
<body>
<h1>Yo Bio!<h1>
<?php
// hello
echo "Do you see this?";
?><br>
add <?php echo 2+3?><br>
<?php function adder($a, $b){
return $a + $b;
}?><br>
adder <?php echo adder(10, 22)?><br>
</body>
</html> | true |
34cfb19ce083e7d50d670b09671ba7e5e7844905 | PHP | emelkonyan/satnav-testcase | /src/server.php | UTF-8 | 1,010 | 2.796875 | 3 | [] | no_license | <?php
$listen_port = '1617';
$sleep_time = 15; //seconds
$clients = array();
$socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
socket_bind($socket,'0.0.0.0',$listen_port);
socket_listen($socket);
socket_set_nonblock($socket);
$foo = 0;
$hostname = gethostname();
echo "[Server started on $hostnam... | true |
b61072f85cc32fb472058183e1655daedd12e7a0 | PHP | sesemiguel/learnPhpBasics | /arrays/index.php | UTF-8 | 472 | 4.1875 | 4 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arrays</title>
</head>
<body>
<?php
$friends = array("Miguel", "Karlo", "Sese");
echo $friends; // Prints out Array
echo "<br>";
e... | true |
c3467c0ff1acb39022f9dc134ed8467cfc06cbcc | PHP | lindseyemaddox/rainbow-bay | /_assets/modules/phpframework/modules/update.php | UTF-8 | 3,040 | 2.921875 | 3 | [] | no_license | <?
class update extends frameworkCommon {
/*
METHODS
--------------------------------------------------------------------------------------------------
update(A, [B])
A is the full SQL or the table name that you are updateing.
B an optional value that will redirect the page to the specified value after... | true |
1afd2a6cec4df656b08a29e1ccbe154d3ba19a78 | PHP | wlady/brain-cms | /engine/Bump/Core/YAML.php | UTF-8 | 983 | 2.875 | 3 | [] | no_license | <?php
/**
*
* This file is part of BCMS 6 by wlady@od.bumpnetworks.com
*
* Package Bump
*/
namespace Bump\Core;
class YAML
{
private static $file = null;
private static $dir = null;
private static $expire = null;
public static function load($yaml_file, $dir, $expire = 86400)
{
self::$... | true |
1acb758cff5e2e03c3afe00c9f8533333a2b1200 | PHP | bitixel/paycorp | /src/exceptions/PaycorpException.php | UTF-8 | 300 | 2.671875 | 3 | [
"Unlicense"
] | permissive | <?php
namespace bitixel\paycorp\exceptions;
class PaycorpException extends \Exception
{
protected $shortCode;
public function setShortCode($shortCode)
{
$this->shortCode = $shortCode;
}
public function getShortCode()
{
return $this->shortCode;
}
} | true |
cd91ea3cc80af55dbeef8e7078085fff78f20a72 | PHP | artur-trotskyi/mysite.local | /public_html/405.homework.CLASS.php | UTF-8 | 1,201 | 3.640625 | 4 | [] | no_license | <?php
// Видео 4_05. Тема: "Модификаторы доступа".
// Домашнее задание.
/*
Сделайте в классе из предыдущего упражнения оба свойства – private.
Попытайтесь получить доступ к свойству напрямую. Изучите получившуюся ошибку.
Воспользуйтесь методами GET и SET, чтобы получить доступ к свойствам:
сначала установив ... | true |
8985f6d929ab58b00478865e43f88db4975c013c | PHP | Krissochris/tyenorg | /packages/GriffonTech/Admin/src/Http/Controllers/AdminsController.php | UTF-8 | 2,311 | 2.546875 | 3 | [] | no_license | <?php
namespace GriffonTech\Admin\Http\Controllers;
use GriffonTech\Admin\Repositories\AdminRepository;
use Illuminate\Http\Request;
class AdminsController extends Controller
{
protected $_config;
protected $adminRepository;
public function __construct(
AdminRepository $adminRepository
... | true |
867df37227256fabbf5100aa1886c718b5543700 | PHP | mednisrihards/PHP-items-storage | /product_add.php | UTF-8 | 2,553 | 2.546875 | 3 | [] | no_license | <?php
require_once ( "includes/autoloader.inc.php");
// CHECK FOR FORM SUBMISSION
if (isset($_POST['submit'])){
$product = new ProductsView();
$product->setProducts($_POST);
header("Location: index.php");
};
?>
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" co... | true |
8599677dc4b2c8aff28afc6a049223f8cfa8b813 | PHP | cwarren/sus | /do_signup.php | UTF-8 | 3,869 | 2.5625 | 3 | [] | no_license | <?php
if (! verify_in_signup_sheets()) { die("not in signup_sheets"); }
$DEBUG = 4;
// look at the sheet access table and get all the sheets on which the current user can sign up
$accessibleSheets = getSignupAccessibleSheets(true);
echo '<div id="sus_accessible_sheets">'."\n";
if (count($accessibleSheets) < 1)
{
... | true |
cf1c6db33a1b8e37b856f879b9a061d93b70b319 | PHP | nurbxfit/PHP_login_sessions_database_example | /insert.php | UTF-8 | 1,586 | 2.5625 | 3 | [] | no_license | <?php
include_once('config.php');
$db = new mysqli(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
if(isset($_POST['submit']))
{
$_SESSION['success'] = '';
$_SESSION['error'] = '';
$name = $military_number = $date = $time_in = $time_out = "";
if ($_SERVER["REQUEST_M... | true |
e8c5f57f9ed5d8ebaec289bf4ddbf7461fcb1381 | PHP | zabachok/yii2-hydra | /HydraComponent.php | UTF-8 | 20,353 | 2.6875 | 3 | [] | no_license | <?php
/**
* @link http://zabachok.net/
* @copyright Copyright (c) 2015 Daniil Romanov
*
*/
namespace zabachok\hydra;
use Yii;
use yii\helpers\FileHelper;
use yii\imagine\Image;
use Imagine\Image\Box;
use Imagine\Image\Point;
use Imagine\Image\ImageInterface;
//
//1. saveFile(source, filePath, toCompress)
//1. ... | true |
76591e7bb59049e00656bf0995939f8b74d7d543 | PHP | Harshil-Kaneria/JsonBash-PHP | /src/JsonBash.php | UTF-8 | 949 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace Json\Bash;
class JsonBash
{
public function jsonmanager($status,$message,$data,$params=null)
{
$result=array();
// Check Object Remove Request Or Not
if(!is_null($status))
{
$result['status'] = $status;
}
// Check Object Remove Request Or Not
if(!is_null(... | true |
b248c5a95d0254481838e9e82bd25994f565eaf1 | PHP | AymericFrey/ProjetBooking | /models/Schedule.class.php | UTF-8 | 2,316 | 2.90625 | 3 | [] | no_license | <?php
defined("_nova_district_token_") or die('');
/**
* @class Schedule
* @brief Représente un rendez-vous ou une plage horaire bloquée
*/
class Schedule extends Model
{
private $idSchedule;
private $idDoctor;
/**
* @brief ID du membre ayant demandé le rendez-vous. Optionnel dans le cas ou le Schedule est un b... | true |
b43284633e48eec6d553e74e8a655744ad514097 | PHP | SmartSanthosh/student_data | /app/Console/Commands/SendDocLinkToUSers.php | UTF-8 | 947 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\user;
class SendDocLinkToUSers extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'users:send_doc_link';
/**
* The console command d... | true |
e5d7b5015b757c4561b5c3ec46b60e3f4deb9b9d | PHP | bradleytenuta/checkmate | /src/database/seeds/PermissionsTableSeeder.php | UTF-8 | 1,503 | 2.546875 | 3 | [] | no_license | <?php
use Illuminate\Database\Seeder;
class PermissionsTableSeeder extends Seeder {
/**
* Run the database seeds.
*
* Permissions are read in from a file.
*
* @return void
*/
public function run() {
// User related permissions.
// These permissions are global.
... | true |
6c7f832ca349dd2adde6b7f89be0791d64ce4f80 | PHP | fernandoenokk/app | /class/peticion.php | UTF-8 | 1,960 | 3.015625 | 3 | [] | no_license | <?php
class Peticion
{
// Connection
private $conn;
// Table
private $db_table = "orden_compras";
// Columns
public $id;
public $asunto;
public $detalle;
public $fecha;
public $cliente_id;
public $estado_id;
public $created_at;
public $updated_a... | true |
f316244955b5001bc3c71fe595911934e03fb455 | PHP | landasystems/anainaskincare | /api/models/Pegawai.php | UTF-8 | 1,554 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "m_pegawai".
*
* @property integer $id
* @property string $kode
* @property string $nama
* @property string $jenis_kelamin
* @property string $no_tlp
* @property string $email
* @property string $alamat
* @property string $jabatan... | true |
b6eb1a44aac0d910123daec6f95bb58ffe3953e5 | PHP | bornia/tcc | /RUP/Processo/4. Implementação/Código/reqs/editar_grupo.php | UTF-8 | 5,307 | 2.6875 | 3 | [] | no_license | <?php
require_once ('classes/db.class.php');
// Instancia a classe db para executar o seu método e fazer a conexão com o banco de dados
$con = (new db())->conecta_mysql();
$grupo_id = $_POST['grupo_id'];
$usuario_id = $_POST['usuario_id'];
$titulo = $_POST['titulo_grupo'];
$descricao = $_POST['descricao_grupo... | true |
50fac28726a95abf4e89c6d9a945b8f813698055 | PHP | DevComSHINE/shine-os-deved | /app/Models/Contracts/UserRepositoryInterface.php | UTF-8 | 665 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace Shine\Repositories\Contracts;
/**
* The UserRepositoryInterface contains ONLY method signatures for methods
* related to the User object.
*
* Note that we extend from RepositoryInterface, so any class that implements
* this interface must also provide all the standard eloquent methods (find, al... | true |
9033f961da70a7da7e1f8e00dbf18cb8748247a7 | PHP | cyberhawk12121/beginnerStuff | /works/Login-1/userpage_handler.php | UTF-8 | 2,263 | 3.171875 | 3 | [] | no_license | <?php
/*
$user= $_GET['user'];
$con= mysqli_connect('localhost', 'root', 'Sameer87500', 'myproject');
$query= "SELECT * FROM userinfo WHERE username='$user' ";
$query_run= mysqli_query($con, $query);
echo "<br><br><br><br>" . "<h3 style='margin:0 auto;'>Username From URL = </h3>" . $user;
$row= mysqli_fetch_assoc($qu... | true |
500ed41bedc1cbdfbf8ef1bfa0d1f1dac75e2a9c | PHP | fussraider/minter-balance | /widgets/MinterBalanceSingleWidget.php | UTF-8 | 3,896 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
class MinterBalanceSingleWidget extends WP_Widget
{
function __construct() {
parent::__construct(
'minter_balance_single_widget',
'Minter Balance Single Widget',
['description' => 'Выводит баланс кошелька сети Minter (Одна монета)']
);
}
public fun... | true |
541c14d6fd08c73e815fd76f4f5e4d5404c3ca79 | PHP | vtsykun/cron-bundle | /src/Model/ScheduleEnvelope.php | UTF-8 | 3,378 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Okvpn\Bundle\CronBundle\Model;
/**
* A wrapped to run the commands.
*/
final class ScheduleEnvelope
{
private $command;
private $stamps;
public function __construct(string $command, CommandStamp ...$stamps)
{
$this->command = $command;
fore... | true |
1f8da09d4eba125ed18c62c8829b032d1c0aea65 | PHP | Mohagames205/Uurloon | /src/mohagames/Uurloon/task/ResetLimitTask.php | UTF-8 | 374 | 2.59375 | 3 | [] | no_license | <?php
namespace mohagames\Uurloon\task;
use mohagames\Uurloon\util\MoneyManager;
use pocketmine\scheduler\Task;
class ResetLimitTask extends Task
{
public function onRun(int $currentTick)
{
if(date('d') != MoneyManager::$lastPurged)
{
MoneyManager::$lastPurged = date('d');
... | true |
c424f4c4604efcc9f3ffc524c517f68bd045121b | PHP | dreamsxin/cphalcon7 | /devtools/ide/1.1.0/Phalcon/Mvc/Model/Resultset/Simple.php | UTF-8 | 1,843 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace Phalcon\Mvc\Model\Resultset {
/**
* Phalcon\Mvc\Model\Resultset\Simple
*
* Simple resultsets only contains complete objects.
* This class builds every complete object as it is required
*/
class Simple extends \Phalcon\Mvc\Model\Resultset implements \Serializable, \ArrayAccess, \Countabl... | true |
fd942b23805177a56dcf8eb6647ab02ee4358421 | PHP | alfmel/cougar | /unit_tests/Security/CookieClientHttpAuthenticationProviderTest.php | UTF-8 | 1,609 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace Cougar\UnitTests\Security;
use Cougar\Security\CookieHttpCredentialProvider;
class CookieClientHttpAuthenticationProviderTest
extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
require_once(__DIR__ . "/../../cougar.php");
}
/**
* @cover... | true |
4f33ffdbeb3ca4a0f3823c25201cecf6abce40d0 | PHP | brick/std | /src/Json/JsonDecoder.php | UTF-8 | 1,456 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Brick\Std\Json;
/**
* Decodes data in JSON format.
*/
final class JsonDecoder extends Common
{
/**
* Whether to decode objects as associative arrays.
*
* @var bool
*/
private $decodeObjectAsArray = false;
/**
* Decodes data in JSON form... | true |
56d699ccc89546704d0dd6027d864783b33bbd14 | PHP | codin-full-stack/Good-luck | /2018.09.17/functions.php | UTF-8 | 4,380 | 2.59375 | 3 | [] | no_license | <?php
/**
* VISU vartotoju atvaizdavimo funkcija
*/
/**Nuskanuos jsons folderi */
function scanFiles($dir){
$path = __DIR__ . DIRECTORY_SEPARATOR . $dir; /** Nurodomas kelias iki jsons folderio */
$files = scandir($path); /** Nuskenuoja folderi pagal kelia($path) ir grazina esanciu failu masyva */
ret... | true |
04d473b00e77878464fb7fa599d6aec87a5cdd9a | PHP | nathanchantrell/emonextras | /battcheck.php | UTF-8 | 1,355 | 2.90625 | 3 | [] | no_license | <?php
// Emonextras - Low Battery Voltage Checker
// Check emoncms database for battery voltages (inputs named v in my setup) & sends an email with a list of any that are below $lowbattery
// Run via cron with (for example): 0 0 * * * php /path/to/battcheck.php >/dev/null 2>&1
// By Nathan Chantrell http://nathan.chant... | true |
a7187f72d96171aac8dae5e3d71ef31c9b9601f1 | PHP | quantum-php-framework/quantum-master | /quantum/kernel/system/modules/qubit/QubitAppQueue.php | UTF-8 | 709 | 2.609375 | 3 | [] | no_license | <?php
namespace Quantum\Qubit;
class QubitAppQueue
{
public function __construct($app_uri, $app_key = 'k783eb387exb3e3e87e639873x37ex239b3x723y')
{
$this->app_uri = $app_uri;
$this->app_key = $app_key;
}
public function addTask($worker_name, $options)
{
$redis = \Quantum\C... | true |
3e99b3a993396ac7cd4642534ecd720dbc8db65a | PHP | phpsu/phpsu | /src/Config/AddDatabaseTrait.php | UTF-8 | 1,087 | 3.03125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
declare(strict_types=1);
namespace PHPSu\Config;
/**
* @internal
*/
trait AddDatabaseTrait
{
private Databases $databases;
/**
* @api
*/
public function addDatabaseObject(Database $database): self
{
$this->databases->add($database);
return $this;
}
/**
... | true |
cd21af6f7ac681c40aa6e896b4a9a5c0c97c8e43 | PHP | Pretendgineer21/SoftEng | /Assignment #2/php/Objects/FloorNode.php | UTF-8 | 452 | 3.328125 | 3 | [] | no_license | <?php
require_once __DIR__ . '/Node.php';
class FloorNode extends Node {
// class variables
public $CalledUp = 0;
public $CalledDown = 0;
// class methods
public function GetCalledUp() {
return $this->CalledUp;
}
public function SetCalledUp($called) {
$this->CalledUp = $called;
}
public function ... | true |
4639a39821870aa70ca84706bd5a0a940bbf8212 | PHP | apie-lib/apie-lib-monorepo | /packages/serializer/src/Normalizers/ValueObjectNormalizer.php | UTF-8 | 1,396 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Apie\Serializer\Normalizers;
use Apie\Core\Lists\ItemHashmap;
use Apie\Core\Lists\ItemList;
use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface;
use Apie\Serializer\Context\ApieSerializerContext;
use Apie\Serializer\Interfaces\DenormalizerInterface;
use Apie\Serializer\Interfaces\NormalizerInter... | true |
48b03e442891414dac0ca3c3a011b58045dbfd41 | PHP | leeisman/golden | /app/Services/Lottery.php | UTF-8 | 322 | 2.96875 | 3 | [] | no_license | <?php
namespace App\Services;
class Lottery
{
public $gameId;
public $issue;
public $lotteryInfo;
public function __construct($gameId, $issue)
{
$this->gameId = $gameId;
$this->issue = $issue;
}
public function update($data)
{
$this->lotteryInfo = $data;
}... | true |
7126c7f5ca37b621f56b9f5eace622795d237e1a | PHP | iteearmah/Eneza | /app/Http/Controllers/API/SubjectController.php | UTF-8 | 1,723 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Http\Resources\SubjectCollection;
use App\Http\Resources\SubjectResource;
use App\Subject;
use Illuminate\Http\Request;
class SubjectController extends Controller
{
/**
* Display a listing of the resource.
*
* @... | true |
6243024889a0fed88e000005e82f5b4077616a7a | PHP | zetacomponents/Template | /src/interfaces/location.php | UTF-8 | 3,415 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* File containing the ezcTemplateLocationInterface class
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* t... | true |
3e161adaf91d37c9764c26451e237409b5fdd651 | PHP | utsav550/LLS | /includes/register.inc.php | UTF-8 | 1,337 | 2.640625 | 3 | [] | no_license | <?PHP
if (isset($_POST["submit"])) {
$fname = $_POST["fname"];
$lname = $_POST["lname"];
$email = $_POST["email"];
$mobile = $_POST["mobile"];
$pwd = $_POST["pwd"];
$repwd = $_POST["repwd"];
require_once 'dbh.inc.php';
require_once 'functions.inc.php';
// input validation and ... | true |
e7a1f983b2a1d41bf77faeccdbfe215e16f69fdb | PHP | ArthurPatriot/onvif-ptz-php | /Service/GeoMove.php | UTF-8 | 2,420 | 3.140625 | 3 | [] | no_license | <?php
class GeoMove
{
/**
* @var ReferenceToken $ProfileToken
*/
protected $ProfileToken = null;
/**
* @var GeoLocation $Target
*/
protected $Target = null;
/**
* @var PTZSpeed $Speed
*/
protected $Speed = null;
/**
* @var float $AreaHeight
*/
... | true |
1d8b62b19db0da78d76c9ea7f6a5450ae5390d7d | PHP | pkam10/repo-pri-1.github.io | /getuser2.php | UTF-8 | 1,182 | 2.6875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<style>
table {
width: 100%;
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
padding: 5px;
}
th {text-align: left;}
</style>
</head>
<body>
<?php
$q = intval($_GET['q']);
$con = mysqli_connect('localhost','root','');
if (!$co... | true |
9ced03f11f779269bb303e826d5f63152e5ea5b3 | PHP | timolaine/crowd-login | /Crowd-REST.php | UTF-8 | 15,121 | 2.546875 | 3 | [] | no_license | <?php
// Copyright 2012 Palantir Technologies
//
// 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
//
// Unl... | true |
68d1c80535589dc73d3f678ebdaf05642d05e21c | PHP | xlPhper/dm | /GatewayWorker/Applications/WxGroup/Model/Weixin.php | UTF-8 | 2,444 | 2.515625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/4/24
* Time: 17:21
*/
use \GatewayWorker\Lib\Db;
class Weixin
{
public static $table = 'weixins';
public static function updateStatus($ClientID, $Message)
{
$db = Db::instance(Events::getDb());
$sql = "select * from ... | true |
f8371bdfbcdc49f374bacb9171479f7c4acaf3a9 | PHP | arossokha/prodshop | /src/ProductBundle/Entity/Product.php | UTF-8 | 2,587 | 2.90625 | 3 | [] | no_license | <?php
namespace ProductBundle\Entity;
/**
* Product
*/
class Product
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $price;
/**
* @var integer
*/
private $quantity;
/**
* @var ... | true |
1b5f4949ccd9827157822ea6867dd5c50e75ea58 | PHP | marjaananen/vrlv3 | /fuel/application/views/hevoset/geenit.php | UTF-8 | 1,263 | 2.953125 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <h3>Värigeenit (pohjaväri: <?=$colour['pvari']?> )</h3>
<?php
$table_n = array();
$table_k = array();
$ok = '<button type="button" class="btn btn-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></button>';
$nope = '<button type="button" class="btn btn-default"><span class="glyphicon glyphicon... | true |
9f4ea9858785cb0c64a16b43a69d40d22728f8d6 | PHP | boutera/virtual-library | /insert.php | UTF-8 | 13,778 | 2.59375 | 3 | [] | no_license | <?php
session_start();
require 'database.php';
$titleError = $dateError = $genreError = $imageError = $nameError = $desLivreError = $desAuteurError = $statutError = $birthError = $ratingError = "";
$title = $date = $genre = $image = $name = $descriptionLivre = $descriptionAuteur = $statut = $b... | true |
00abef9e2f8c979d4b0c0fa05002d5dda6a03467 | PHP | mark-gerarts/database | /src/Driver/Postgres/Query/PostgresInsertQuery.php | UTF-8 | 2,367 | 2.78125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Database\Driver\Postgres\Query;
use Spiral\Database\Driver\CompilerInterface;
use Spiral\Database\Driver\Postgres\PostgresCompiler;
use Spiral\Database\Driver\Postgres\PostgresDriver;
... | true |
0025f07a26674328f302e2c3aed9afbe03ca2781 | PHP | charmipccubesofttech/test | /list.php | UTF-8 | 1,632 | 2.78125 | 3 | [] | no_license | <?php
// The user credentials I will use to login to the WebDav host
$credentials = array(
'charmy1',
'Indiecharmy0107'
);
// Prepare the file we are going to upload
$filename = 'Documents';
// The URL where we will upload to, this should be the exact path where the file
// is going to be placed
$remoteUrl = 'https... | true |
83655a868829199d977016306a1a5c09ebe26ed3 | PHP | AntoineMarcel/Matcha | /functions/matchfunc.php | UTF-8 | 4,526 | 2.578125 | 3 | [] | no_license | <?php
session_start();
if (!$_SESSION['flag'])
{
echo "Vous n'etes pas connecter";
return;
}
function distance($dist1, $dist2) {
$dist1 = explode(",", $dist1);
$dist2 = explode(",", $dist2);
$lat1 = $dist1[0];
$lon1 = $dist1[1];
$lat2 = $dist2[0];
$lon2 = $dist2[1];
if (($lat1 == $... | true |
9483f262518e8b1429122c0ffdad60d40c4aed87 | PHP | cariboucreative/Jiro | /jiro/Product/src/Eloquent/Product.php | UTF-8 | 1,542 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Jiro\Product\Eloquent;
use Jiro\Core\Sluggable;
use Jiro\Product\ProductInterface;
class Product implements ProductInterface
{
use Sluggable;
/**
* {@inheritDoc}
*/
protected $table = 'products';
/**
* {@inheritDoc}
*/
protected $guarded = [
'id',
];
/**
* {@inheritDoc}
*/
... | true |
c3a6da9963c9e697b0d62d559f201f1686cabf0b | PHP | rocas87/ServTripTour | /script/asigna_categoria.php | UTF-8 | 950 | 2.609375 | 3 | [] | no_license | <?php
include("conexion.php");
$con = mysql_connect($host,$user,$pass) or die("Sin conexion");
mysql_select_db($db);
$consulta_id = mysql_query("SELECT itm_id FROM itm_item") or die (mysql_error());
if (mysql_num_rows ($consulta_id) == 0)
{
echo "No ahi resultados <br>";
}
else
{
while($r_consulta_id = mysql_f... | true |
1941103a12f38d4bbeebd6f4f99a5ccbf23f1e0a | PHP | chinhhiep/htdocs | /WEBSITE/_CORE/file.class.php | UTF-8 | 845 | 3.28125 | 3 | [] | no_license | <?php
class lg_file
{
var $fi;
var $mode;
public function __construct($file_path, $mode = "r") // r : read , w : write
{
if (!file_exists($file_path)) {
echo "file not found";
return;
}
$this->fi = fopen($file_path);
$this->mode = $mode;... | true |
f1cbf095f7e91da61b7258b374df58e16004242e | PHP | jukbot/emmaline | /html/app/transport/returnController.php | UTF-8 | 2,356 | 2.5625 | 3 | [] | no_license | <?php
require_once ('/var/www/html/app/model/connect.php');
function carReturn(){
$up = "Y";
if (isset($_POST)) {
$empID = $_POST['empID'];
$carID = $_POST['carID'];
// an array that want to insert this can be multiple array at the time.
// print var_dump to display an array of variable data with type that prep... | true |
6cabfb8716326a93a57861892db7265b8d15de4c | PHP | CybberMuffin/bakeryin | /application/core/Controller.php | UTF-8 | 1,263 | 2.640625 | 3 | [] | no_license | <?php
namespace application\core;
use application\core\View;
abstract class Controller
{
protected $route;
protected $view;
protected $model;
protected $acc;
public function __construct($route)
{
$this->route = $route;
$this->model = $this->loadModel($route['controller']);
... | true |
856addc8cf1d768153a24d223315e70f65d8d397 | PHP | firstpoint-ch/eloquent-translatable | /tests/DictionaryTest.php | UTF-8 | 1,342 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace FirstpointCh\Translatable\Tests;
use FirstpointCh\Translatable\Tests\Models\Product;
use Illuminate\Foundation\Testing\RefreshDatabase;
class DictionaryTest extends TestCase
{
use RefreshDatabase;
public function setUp(): void
{
parent::setUp();
app()->setLocale('en');
... | true |
fa43d2cd9e46ab5f13af8b25cc9b557482d8c9da | PHP | maximinetto/ejemploWebservicePHP | /index.php | UTF-8 | 2,858 | 2.828125 | 3 | [] | no_license | <?php
require_once 'controller/c_audiovisual.php';
require_once 'functions.php';
$response = listado();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Películas</title>
<link rel="stylesheet" href="https:/... | true |
bd08ee2fe77c3458e1ecd91f00858e9df10e232a | PHP | pavelcity/catalog | /app/Http/Controllers/Admin/CategorycollectionController.php | UTF-8 | 1,514 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Catcollection;
class CategorycollectionController extends Controller
{
#index
public function index () {
$cats = Catcollection::latest()->get();
return view ('admin.collections.cate... | true |
c7b53177f8f5edf9eb5f2796c019e9278454f39e | PHP | kencruga14/semillasback | /app/Http/Controllers/ChildrenController.php | UTF-8 | 4,385 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Models\Children;
use Illuminate\Http\Request;
class ChildrenController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return response()->json( childr... | true |
d98158515c1e21f0b40e4697430ddeaa0d62a0d9 | PHP | donsledzion/uliniopoly | /app/Http/Requests/BoardRequest.php | UTF-8 | 2,350 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class BoardRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... | true |
502c9bbff8da46b085ae804c76e8c4d7d9186df9 | PHP | shuvro-zz/chr247.com | /app/Stock.php | UTF-8 | 778 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Stock extends Model
{
protected $table="stocks";
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'received_date','expiry_date','manufactured_date','quantity','remarks'... | true |
48ea04226511ab6ffed719a7bb34c45d37d39252 | PHP | AdoptOpenJDK/gamified-java9-hackathon | /src/main/resources/static/bower_components/SyntaxHighlighter/build/ext/phing/classes/phing/tasks/ext/phpunit/phpunit3/PlainPHPUnit3ResultFormatter.php | UTF-8 | 3,472 | 2.578125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-3.0-only",
"Unlicense"
] | permissive | <?php
/**
* $Id: PlainPHPUnit2ResultFormatter.php 142 2007-02-04 14:06:00Z mrook $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURP... | true |
c23e66ad3ad79a03ec5ca849b8c6e1384d820367 | PHP | yabuking84/stella-exam | /app/Http/Controllers/seeders/Reservation.php | UTF-8 | 1,205 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\seeders;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Property as PropertyModel;
use App\Models\Reservation as ReservationsModel;
class Reservation extends Controller
{
//
public function seedReservation(){
$prop1 = Pr... | true |
cfa6d1f5a0d00c97456e1a0bf22d573f4b989594 | PHP | simplexuan/gsystem | /logics/logic_title_category.php | UTF-8 | 2,660 | 2.53125 | 3 | [] | no_license | <?php
class Logic_title_category extends Gsystem_logic {
/**
* __construct
*
* @access protected
* @return mixed
*/
function __construct() {
parent::__construct();
}
/**
* __call
*
* @param mixed $func
* @param mixed $args
* @access protected
* @return mixed
*/
function __call($func, $arg... | true |
7d9a7951b02af18d62f5de861f4f7b42fd5a4d18 | PHP | patriciomase/stock | /application/core/MY_Controller.php | UTF-8 | 2,612 | 2.609375 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
protected $_data = array();
protected $_default_model = NULL;
protected $_header = 'template/header';
protected $_sidebar = 'template/sidebar';
protected $_footer = 'template/footer';
public... | true |