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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e51a345d12d16c5ee5665067ebf40cfc7253b11e | PHP | azmirChowdhury/MainEcommerce | /database/migrations/2021_01_29_083115_create_coupon_models_table.php | UTF-8 | 1,163 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCouponModelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('coupon_mod... | true |
07f35b41c1fd52ee6f0581c8cfa2949e6541e69e | PHP | commercetools/commercetools-sdk-php-v2 | /lib/commercetools-api/src/Models/Error/PriceChangedErrorBuilder.php | UTF-8 | 2,342 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\Error;
use Commercetools\Base\Builder;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
use Commercetools\Base\JsonObjectModel;
use Commercetools\B... | true |
ac395a174744f84ce15cce269aac1903b3b74406 | PHP | ts00617355/tutorial-phpspec-learning | /src/Playlist.php | UTF-8 | 478 | 3.109375 | 3 | [] | no_license | <?php
namespace KK;
use Countable;
class Playlist implements Countable
{
protected $songs;
public function add($song)
{
if (is_array($song)) {
return array_map([$this, 'add'], $song);
}
$this->songs[] = $song;
}
public function count()
{
return c... | true |
8dd00e40bd99aacf5e2001e09587ef1618c5492d | PHP | vladimirbasaric/it-obuka | /PHP/57/57_vezbanje_resenja/2.php | UTF-8 | 614 | 3.734375 | 4 | [] | no_license | <?php
/*
stdClass je genericka PHP klasa. Istance ove klase ne sadrze
predefinisana svojstva ili metode. Ekvivalent ove funkcije
u JavaScriptu bi bilo kreiranje praznog objekta sa {}
npr. var obj = {}.
*/
$user = new stdClass();
$user->name = "Ana";
$user->surna... | true |
d3811c436eea4d4d0fbc0b6490b25165cfa8c701 | PHP | xavikhattak/google-trends | /web/index.php | UTF-8 | 1,407 | 2.859375 | 3 | [] | no_license | <?php require __DIR__ . '/../vendor/autoload.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Google Trends - Analysis</title>
</head>
<body>
<?php
try {
$results = (new Gsoares\GoogleTrends\Search())
->setCategory(Gsoares\GoogleTrends\Category::BEAUTY_AND_FITNESS)
->setLocation('US')
->setLanguage('en-US'... | true |
2999a614dc885399998517e7c7c4a0e6a74f9b21 | PHP | X-Coder264/tracker | /database/factories/ConfigurationFactory.php | UTF-8 | 1,056 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Database\Factories;
use App\Enumerations\ConfigurationOptions;
use App\Models\Configuration;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
final class ConfigurationFactory extends Factory
{
/**
* The name of the factory's correspond... | true |
0d2948003eaa1bd5aefb5d0754e1271f3fe40bb0 | PHP | elektropay/elektrofold | /application/libraries/Common.php | UTF-8 | 292 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Common
{
public function replace_keywords($array, $message)
{
foreach($array as $k=>$v) {
$message = str_replace($k, $v, $message);
}
return $message;
}
}
?>
| true |
c00d43b2f33bdc79ec721431ae0797474ad53cc6 | PHP | TimidHaunter/handcode_laravel | /package/Shop/ShopShoes.php | UTF-8 | 390 | 3.015625 | 3 | [] | no_license | <?php
namespace Shop;
class ShopShoes
{
protected $product = [];
// 依赖注入,不在类里实例化对象,直接将实例化的对象当做参数传递进来
// 原本 ShopShoes 类依赖于 Shoes 类,现在直接将依赖关系注入到 ShopShoes 类中
public function setProduct (\Contracts\Product $product)
{
$this->product[] = $product;
}
} | true |
0063736a658e324e921ba190e1e6d6c3d57ea102 | PHP | nbish11/meek-routing | /tests/RouteTest.php | UTF-8 | 2,645 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Meek\Routing;
use PHPUnit\Framework\TestCase;
use Meek\Routing\Rule\MatchMethod;
class RouteTest extends TestCase
{
private $route;
public function setUp()
{
$this->route = new Route('test.route', '/', function () {});
}
public function testCanRetrieveName()
{
... | true |
b202bb3e44dc22253f8be5b8d23fdd1f68ed07a1 | PHP | Bielin37/app.vertragsengel | /forms/vergessen2.php | UTF-8 | 3,142 | 2.734375 | 3 | [] | no_license | <?php
include('../db/database.php');
if(!isset($_GET['userid']) || !isset($_GET['code'])) {
die("Leider wurde beim Aufruf dieser Website kein Code zum Zurücksetzen deines Passworts übermittelt");
}
$userid = $_GET['userid'];
$code = $_GET['code'];
//Abfrage des Nutzers
$statement = $pdo->prepare("SELEC... | true |
9fd4394eda78f3404c545ef4449d4cadc0c07ddf | PHP | aldryn-gutierrez/robot-tourney | /app/Libraries/Spreadsheets/AbstractSpreadsheetHelper.php | UTF-8 | 1,726 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Libraries\Spreadsheets;
use App\Contracts\SpreadsheetHelperContract;
use Symfony\Component\HttpFoundation\File\UploadedFile;
abstract class AbstractSpreadsheetHelper implements SpreadsheetHelperContract
{
/**
* Get CSV Mime Types
*
* @return array
*/
public function ge... | true |
6b6c79b1ab75357ba0d895f1b53e020bd4970890 | PHP | techieyann/tndrbox | /scripts/edit_post_location.php | UTF-8 | 561 | 2.578125 | 3 | [] | no_license | <?php
/***********************************************
file: edit_post_location.php
creator: Ian McEachern
This script edits the location of an exisiting posting.
***********************************************/
if(isset($_GET['id']) && isset($_GET['lat']) && isset($_GET['lon']))
{
require('../includes/includes.ph... | true |
8cf1ab31607a4b233d3dbdb2f6d5f4e4f9d03cfd | PHP | dohajmal/e_commmerce | /NiceAdmin/Manager/addmanufacturersManager.php | UTF-8 | 1,074 | 2.53125 | 3 | [] | no_license | <?php
class addmanufacturersManager
{
public function getlistManufacturers()
{
$db =new Connexion();
$req=$db->cnx->query("SELECT * FROM manufacturers");
return $req;
}
public function getManufacturers($id){
$db =new Connexion();
$req=$db->cnx->query("SELECT * FROM manufactu... | true |
47959ca60672fc900bb93a8c20d402cdbc1f0640 | PHP | factorial-io/phabalicious | /src/Utilities/LogWithPrefix.php | UTF-8 | 1,831 | 3 | 3 | [
"MIT"
] | permissive | <?php
namespace Phabalicious\Utilities;
use Psr\Log\LoggerInterface;
class LogWithPrefix implements LoggerInterface
{
protected $logger;
protected $prefix;
public function __construct(LoggerInterface $logger, $prefix)
{
$this->logger = $logger;
$this->prefix = $prefix;
}
pu... | true |
942fe25e27f041d6d34900fbef4cd000fd6a0137 | PHP | SGordon13/DB2_phase3 | /PHPandSQL/StudentSignIn.php | UTF-8 | 1,996 | 2.5625 | 3 | [] | no_license | <?php
$user = "student";
$bool = false;
$mysqli = new mysqli('localhost', 'root', '', 'DB2');
$email = $_POST['email'];
$password = $_POST['password'];
// get the target ID entered
$qGetId = "SELECT id FROM users WHERE email = '$email'";
$id = $mysqli->query($qGetId);
$targetID = mysqli_fetch_array($id);
// get an ar... | true |
febfba92d6fd6e4e4df32d374d186fbbe2cd7d51 | PHP | drheich/demo | /database/seeders/PostSeeder.php | UTF-8 | 1,608 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
class PostSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
/* ['id',
'caption'... | true |
e8a0a26cc407a04c78dac1e0d3e122420b146b90 | PHP | zaskha193040134/prakweb2021_phpmvc_193040134 | /app/models/Mahasiswa_model.php | UTF-8 | 1,215 | 2.8125 | 3 | [] | no_license | <?php
class Mahasiswa_model {
// private $mhs = [
// [
// "nama" => "Zaskha Sasmita",
// "nrp" => "193040134",
// "email" => "zaskha@email.com",
// "jurusan" => "Teknik Informatika"
// ],
// [
// "nama" => "Rika Apriliyani",
... | true |
79756d98efd141fd0f36f7a557a6ad1cfe1e45dc | PHP | kevindieu100/itp405-assignment-3 | /app/Http/Controllers/SearchController.php | UTF-8 | 1,205 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class SearchController extends Controller
{
public function index()
{
return view('dvds');
}
public function results()
{
$dvdTitle = request('dvdTitle');
//Commented in order to print out all dvd's when use... | true |
03c759041745c8de4c03720ed8537a5a4adb8a12 | PHP | glezzz/MySql-challenge | /View/overview.php | UTF-8 | 1,120 | 2.59375 | 3 | [] | no_license | <?php
declare(strict_types=1);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
include 'View/includes/header.php'
?>
<p><a href="index.php">Back to homepage</a></p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Ind... | true |
65169cd88b467f465ad19aa4652bb66238ccce9a | PHP | ramonzitos95/CodeigniterBase | /Projeto/application/libraries/LogArquivo.php | UTF-8 | 1,076 | 3 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Created by Ramon.
* User: Usuario
* Date: 14/10/2016
* Time: 12:40
* /**
* Implementa o CURL e configura o endereço do webservice
* de consulta o CEP.
*
* @author Ramon S. S.
*/
class LogArquivo
{
function gravaLog($conteudo){
... | true |
7ec3e29097939e9f1602ae43a2dca81af9e8672b | PHP | jamesjoel/tss_12_30 | /ravi/php/while.php | UTF-8 | 142 | 2.859375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
$i=1;
while ($i<=10) {
echo"hello<br>";
$i++;
}
?>
</body>
</html> | true |
29ff8b13cb38569dfa6a73a2211be86ec554e2b8 | PHP | Yennego/practice | /admin/hub/functions.php | UTF-8 | 5,021 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php include '../hub/db.php'; ?>
<?php
session_start();
ob_start();
function logOut(){
if (isset($_POST['logOut'])) {
session_destroy();
echo "<script> window.location = '/practice/login.php'</script>";
}
}
function checkUser(){
if (isset($_SESSION['fullname'])) {
if (isset($_SESSION['email'])... | true |
bf122a3a3b4ebe8a36b4189c38c2a21c81527812 | PHP | andrewSAY/SimpleMVCFramework | /Core/Forms/Validation/Rules/Length.php | UTF-8 | 1,554 | 3.0625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Сапрыкин А_Ю
* Date: 28.08.15
* Time: 17:02
*/
namespace LW\Core\Forms\Validation\Rules;
use LW\Core\Forms\Fields\Field;
use LW\Core\Forms\Validation\Rule;
class Length extends Rule
{
/**
* @param integer $minLength
* @param integer $maxLength
*/
... | true |
555810ff8168a1b60e5ae1d8d6c7c3f939a586d8 | PHP | no2key/watchman | /arcanist/lib/WatchmanInstance.php | UTF-8 | 10,884 | 2.734375 | 3 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | <?php
/* Copyright 2012-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
// Keeps track of an instance of the watchman server
// for integration tests.
// Ensures that it is terminated when it is destroyed.
class WatchmanInstance {
private $proc;
private $logfile;
private $sockname;
... | true |
f76abe0b4189630b32efaeda5608aa0dc0c2f5c9 | PHP | Protogenoi/projectX | /addon/Trackers/models/trackers/CLOSER/CloserPAD.php | UTF-8 | 811 | 2.71875 | 3 | [] | no_license | <?php
class CLOSERPadModal
{
protected $pdo;
public function __construct(PDO $pdo)
{
$this->pdo = $pdo;
}
public function getCLOSERPad($datefrom, $dateTo, $CLOSER)
{
$stmt = $this->pdo->prepare("SELECT date_updated AS updated_date, lead_up, mtg, closer, tracker_id, agent, cl... | true |
ace876b3f212ca675dcc3c0d0ecf904eb08520cc | PHP | amanai/next24 | /app/views/admin/FlashMessageView.php | UTF-8 | 430 | 2.578125 | 3 | [] | no_license | <?php
class FlashMessageView extends BaseView{
function show($list, $category=FM::INFO){
$this -> setTemplate(null, 'flash_message.tpl.php');
$this -> assign('messages', $list);
$this -> assign('category', $category);
return $this -> parse();
}
function addFlashMessage(){
throw... | true |
47f4324020d85d78c0059706decfb5970a332c85 | PHP | registros/integration | /vendor/Registros/src/Registros/Bigmailer/Newsletter/Form.php | UTF-8 | 6,731 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Registros en la Red
* Copyright (c) Registros en la Red
*
* @copyright Registros en la Red
* @link http://registros.net
*/
namespace Registros\Bigmailer\Newsletter;
use Registros\Bigmailer\Exception\Exception;
use const REGISTROS_PATH;
/**
* Description of Form
*
* @author adrian
*/
c... | true |
623bdcbde149b30d306c0666bfb5df60569cb988 | PHP | bpbp-boop/network-weathermap | /lib/Weathermap/Core/LinkGeometryFactory.php | UTF-8 | 663 | 3.171875 | 3 | [
"MIT",
"CC-BY-2.5",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Weathermap\Core;
/**
* Given the link style, return an appropriate LinkGeometry object to draw it
*
* @package Weathermap\Core
*/
class LinkGeometryFactory
{
/**
* @param $style
* @return AngledLinkGeometry|CurvedLinkGeometry
* @throws WeathermapInternalFail
*
* Create ... | true |
ad20ae44350d33001439965ad0f7ade740f1a875 | PHP | eligundry/PETApia | /application/classes/controller/bootstrap.php | UTF-8 | 841 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php defined('SYSPATH') or die('No direct script access.');
/**
* Template Controller for Twitter Bootstrap
*/
class Controller_Bootstrap extends Controller_Template
{
public $template = 'bootstrap';
public function before()
{
parent::before();
if ($this->auto_render) {
$this->template->title = '';
$... | true |
ad5420b86841d8180edee18be50f8a7c6fcfe465 | PHP | atomaka/song-caller | /xml-generator.php | UTF-8 | 419 | 2.5625 | 3 | [] | no_license | <?php
$id = isset($_GET['id']) ? $_GET['id'] : 'bad';
if(!filter_var($id, FILTER_VALIDATE_INT)) {
die("\n");
}
$db = new PDO('sqlite:db/songcaller.db');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$result = $db->query("SELECT mp3 FROM calls WHERE id=$id LIMIT 1");
$row = $result->fetch();
head... | true |
61cd3792aac6e6e3b99e3693dce848580795d008 | PHP | minyurovevgeniy/uspu365 | /php/loadData.php | UTF-8 | 5,088 | 2.6875 | 3 | [] | no_license | <?php
function deleteUnnecessarySpacesFromString($stringToClean)
{
$cleanString=$stringToClean;
// clean the end
$cleanString=preg_replace("/\s{1,}$/i",'',$cleanString);
// clean middle spaces
$cleanString=preg_replace("/\s{2,}/i",' ',$cleanString);
// clean the beginning
$cleanString=preg_replace("/^\s... | true |
2db31a8ab28fe542b2ba695640be547ad6f97739 | PHP | Arch222/EIEIO | /createaccount.php | UTF-8 | 5,670 | 3.03125 | 3 | [] | no_license | <?php
//Connect to MySQL
require_once "configuration.php";
// Define needed variables.
$email = $password = $confirm_password = "";
$email_error = $password_error = $confirm_password_error = "";
//Ensure required data is posted from the html part of the code
if($_SERVER["REQUEST_METHOD"] == "POST"){
$temp_email =... | true |
23e3dfdfd8a5abbda89752de62bd189ea6c51d26 | PHP | devlabs91/travelgate-notify | /src/Models/Ota/EmployeeInfoType.php | UTF-8 | 4,120 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace Devlabs91\TravelgateNotify\Models\Ota;
/**
* Class representing EmployeeInfoType
*
* Employment identification; using an employee ID number, title, level within the company, and an indication of their status (e.g., active, retired, on leave, or terminated from employment). Additional information ab... | true |
45130d5070ba98dc592e5100c621ba7012191a87 | PHP | cockpit-labs/Core | /src/Controller/CreateMediaAction.php | UTF-8 | 2,637 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/*
* Core
* CreateMediaAction.php
*
* Copyright (c) 2020 Sentinelo
*
* @author Christophe AGNOLA
* @license MIT License (https://mit-license.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the “Software”), to d... | true |
6a9da99c87b97de771cdb5bddfac165ba94e4ec7 | PHP | gauravjain73/cricassignment | /frontend/models/SignupForm.php | UTF-8 | 3,348 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace frontend\models;
use common\models\User;
use yii\base\Model;
use Yii;
use yii\web\UploadedFile;
/**
* Signup form
*/
class SignupForm extends Model
{
public $username;
public $email;
public $password;
/* public $repassword;
public $fname;
public $lname;
public $address;
... | true |
99296e5968361b848c46c0ac641f9ee9039f793a | PHP | georgezen/master_php | /repaso_mvc2/modelos/BaseModel.php | UTF-8 | 359 | 3.015625 | 3 | [] | no_license | <?php
class BaseModel
{
public $nombre;
public $grado;
public function __construct($nombre,$grado)
{
$this->nombre = $nombre;
$this->grado = $grado;
}
public function get_datos()
{
$texto = "El grado es ".$this->nombre." y el grado es: ".$this->grado;
r... | true |
9faf5e95608d4515bd272122bbab004c10cddf98 | PHP | dioscouri/f3-lib | /src/Dsc/Singleton.php | UTF-8 | 1,633 | 3.15625 | 3 | [] | no_license | <?php
namespace Dsc;
class Singleton extends \Prefab
{
protected $__errors = array();
public function __construct($config=array()){}
/**
* Add an error message.
*
* @param string $error
* @return \Dsc\Singleton
*/
public function setError($error)
{
... | true |
70895d1c1818f29854aaa289b7adb05cb15aa61d | PHP | whizkidz/PopcornAnywhere | /app/session.php | UTF-8 | 7,700 | 2.71875 | 3 | [] | no_license | <?php
if(!defined("API")) { return false; }
/**
* This program was created to make a set of classes to be used for easy
* website creation. Usage: simply extend the DB_Object class to make models
* and the OUT_Request class to make controllers. HTML is stored in templates
* with special tags. See the OUT_Template... | true |
95ed8aff6f8f6c4c62228b79ec29d7ca53c84426 | PHP | emdiez/curso-styde-3 | /app/Http/Controllers/WelcomeUserController.php | UTF-8 | 563 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WelcomeUserController extends Controller
{
public function withNickname($name, $nickname)
{
$name = ucfirst($name);
return "Hola {$name}, tu apodo es {$nickname}";
}
public function withoutNickname($name)
{... | true |
8dc320a9703510dc0ce23d3f3993cd6b3b14ea1f | PHP | PiotrNieslony/budgetWebApplicationBootstrap | /class/Expenses.php | UTF-8 | 36,377 | 2.84375 | 3 | [] | no_license | <?php
class Expenses {
private $db = null;
public function __construct($db){
$this->db = $db;
}
public function add(){
if(!isset($_POST['expenseAmount'])) return false;
$validationCorrect = true;
//Amount validation
if(!is_numeric($_POST['expenseAmount'])){
$validationCorrect = fals... | true |
aa96b78cbe9ef940f4e3964df3ec49fc0c7da0df | PHP | jiangsyz/smartShopping | /backend/models/order/orderLogisticsManagement.php | UTF-8 | 1,192 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
//订单物流管理器
namespace backend\models\order;
use Yii;
use yii\base\SmartException;
use yii\base\Component;
//========================================
class orderLogisticsManagement extends Component{
//订单记录
public $orderRecord=NULL;
//========================================
//获取物流列表
public function getLogistic... | true |
f1c1d51cd3c2fd99eb72b56f50e60739e243604c | PHP | mikeNickaloff/GenericWebPlatform | /test.php | UTF-8 | 3,996 | 2.515625 | 3 | [] | no_license |
<?php
// include_once $_SERVER['DOCUMENT_ROOT']."/core/autoload.php";
//$testEntity = new Entity("Tester3");
//$testEntity->initialize(array(""=>1, "test2"=>"string"));
// $db->select("e_Tester3", array("test", "test2"), array("test"=>1));
//$db->insert_multi("e_Tester3", array(array("column"=>"... | true |
79e33f4419258f0916c142d9350485b74ccaaf61 | PHP | BoxInABoxICT/BoxPlugin | /boxdashboard/modules/viewcount/module.php | UTF-8 | 2,671 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
// This program has been developed by students from the bachelor Computer Science at Utrecht University within the
// Software and Game project course.
// ©Copyright Utrecht University Department of Information and Computing Sciences.
/**
* This file is responsible for retrieving data for the main block and de... | true |
288a1fd1ec0e5647091dd0a505f726beedc4128f | PHP | guenillon/zeybux | /classes/vo/ModeleLotVO.php | UTF-8 | 3,139 | 3.015625 | 3 | [] | no_license | <?php
//****************************************************************
//
// Createur : Julien PIERRE
// Date de creation : 02/11/2011
// Fichier : ModeleLotVO.php
//
// Description : Classe ModeleLotVO
//
//****************************************************************
include_once(CHEMIN_CLASSES . "DataTemplate.p... | true |
0f18add36f8aa6bc484e8b809ba43568bfe78349 | PHP | antoinelucas/projet_web_burger_quiz | /model/treatments/register.php | UTF-8 | 1,834 | 2.578125 | 3 | [] | no_license | <?php
if(session_status() == PHP_SESSION_NONE){
session_start();
}
require_once('../class/Manager.php');
require_once('../class/User.php');
require_once('../class/UserManager.php');
$manager = new UserManager();
$user = new User();
if(!empty($_POST)){
if(empty($_POST['pseudo'])){
$manager->setError('pseud... | true |
bf50ee0f43dfe5d9ddbe5115b61bff434cd0236f | PHP | shinichi81/Online-PPOB | /app/Http/Controllers/MerchantController.php | UTF-8 | 7,580 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use App\Merchant;
use App\Transaksi;
use App\Keuntungan;
use Auth;
class MerchantController extends Contro... | true |
9ca42e802904727b8eafec559d466e114686055d | PHP | kiyamkj/mypersonalblog | /overview.php | UTF-8 | 2,777 | 2.828125 | 3 | [] | no_license | <?php
$page = 1;
$category = null;
$year = null;
if(filter_has_var(INPUT_GET, 'page')){
$page = (int) filter_input(INPUT_GET, 'page', FILTER_SANITIZE_NUMBER_INT);
}
if(filter_has_var(INPUT_GET, 'category')){
$category = (int) filter_input(INPUT_GET, 'category', FILTER_SANITIZE_NUMBER_INT);
}
if(filter_has_va... | true |
7ff1889f11d9db8c52e4f99657e1e594848c7b11 | PHP | underser/module-shops | /Model/ResourceModel/Shops/Grid/Collection.php | UTF-8 | 2,376 | 2.53125 | 3 | [] | no_license | <?php
/**
* Underser shops grid collection.
*
* @category Underser
* @package Underser\Shops
* @author Roman Sliusar <roman.slusar95@gmail.com>
* @copyright 2019 Underser
*/
namespace Underser\Shops\Model\ResourceModel\Shops\Grid;
use Magento\Framework\Api\Search\AggregationInterface;
use Magento\Framewo... | true |
6669bd062b21856d6922791d84a629b3559b1a66 | PHP | kolomicenko/workshop-testing | /tests/DateFormatterTest.php | UTF-8 | 824 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace IW\Test\Workshop;
use PHPUnit\Framework\TestCase;
use IW\Workshop\DateFormatter;
use DateTime;
final class DateFormatterTest extends TestCase
{
public function partsOfDayProvider() {
return [
['00:00:01', 'Night'],
['05:59:59', 'Night'],
... | true |
d74239310217443c17a73e197bff6c091409a004 | PHP | RahulShaw/CodeCafe | /install/config.php | UTF-8 | 938 | 2.796875 | 3 | [] | no_license | <?php
require 'create_db.php';
if(isset($_POST['hostname']) && isset($_POST['username']) && isset($_POST['password']) && isset($_POST['database']) && !empty($_POST['hostname']) && !empty($_POST['username']) && !empty($_POST['password']) && !empty($_POST['database'])) {
$server = trim($_POST['hostname']);
$user =... | true |
19f5d40a68732d49bad9a5764605c1a481f3e012 | PHP | QDenka/EasyValidation | /src/Application/Validators/ValidatorInterface.php | UTF-8 | 351 | 2.71875 | 3 | [] | no_license | <?php
namespace QDenka\EasyValidation\Application\Validators;
/**
* Interface ValidatorInterface
*
* @package QDenka\EasyValidation\Application\Validators
*/
interface ValidatorInterface
{
/**
* Validate the given value
*
* @param string $value
* @return bool
*/
public function va... | true |
481b0b6af7ed00b03456c0fa2427224f1023ce24 | PHP | JonathanTonckensHU/workplacelearning | /app/WorkplaceLearningPeriod.php | UTF-8 | 5,714 | 2.53125 | 3 | [] | no_license | <?php
/**
* This file (WorkplaceLearningPeriod.php) was created on 20/01/2017 at 12:32.
* (C) Max Cassee
* This project was commissioned by HU University of Applied Sciences.
*/
namespace App;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Nette\Utils\DateTime;
/**
* @p... | true |
022faa85dac0b12879ba27e28553f30732fce69b | PHP | SemicolonAcademy/069kb-bernhardt-cms | /cms/admin/actions/post_add.php | UTF-8 | 1,679 | 2.671875 | 3 | [] | no_license | <?php
/* echo "<pre>";
echo "post array";
print_r($_POST);
echo "files array";
print_r($_FILES);
echo "</pre>";
*/
$error = "";
if (isset($_POST['submit'])) {
$title = trim($_POST['title']);
$content = trim($_POST['content']);
$category = trim($_POST['category']);
$status = trim($_POST['s... | true |
0e8f4652c7325cce85a92668d134c990d3dc2349 | PHP | kasyu-create/laravel | /app/Policies/ArticlePolicy.php | UTF-8 | 3,717 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Policies;
use App\Article;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class ArticlePolicy
{
//ここに書かれた記述の詳細は5-4章に記載。ここでは、あるユーザーが投稿した記事を、別のユーザーが更新・削除できてしまうという点を修正している。
//ポリシーを作成しましたが、作成しただけではコントローラーでポリシーは使用されません。ポリシーを使用する方法は様々あるのですが、ここではそのうちの1つの方法を紹介します。それはArticleControl... | true |
97841112c4535aa3653873f1d57cf192ad283416 | PHP | Jiangyouhua/JiangCMS | /library/Db2Map.php | UTF-8 | 551 | 2.609375 | 3 | [] | no_license | <?php
class Db2Map{
private static $map;
private function __construct(){
}
public static function getMap($table,$refresh=false,$key="id",$value="name",$where=null){
if($refresh || empty(self::$map[$table])){
$array=null;
$db=new Select($table);
if($where){
$where="status=1 AND $where";
}else{
... | true |
b4241223069ea652351512baddf42f05cd7df69e | PHP | yiliyili/leetcode-php | /SurroundedRegions-dfs.php | UTF-8 | 1,438 | 3.609375 | 4 | [] | no_license | <?php
// 130. 被围绕的区域 深度优先
class Solution {
/**
* @param String[][] $board
* @return NULL
*/
private $row, $col;
function solve(&$board) {
if (empty($board)) return;
$this->row = count($board);
$this->col = count($board[0]);
for ($i = 0; $i < $this->row; $i++)... | true |
f8d27680d28ed19874f9d80812c19ef178d28b33 | PHP | 562794175/at_demo | /chartdir_php_linux_64/ChartDirector/phpdemo/markzone2.php | UTF-8 | 2,555 | 2.578125 | 3 | [
"IJG"
] | permissive | <?php
require_once("../lib/phpchartdir.php");
# The data for the chart
$data = array(50, 55, 47, 34, 42, 49, 63, 62, 73, 59, 56, 50, 64, 60, 67, 67, 58, 59, 73, 77, 84,
82, 80, 84, 89);
# The labels for the chart. Note the "-" means a minor tick.
$labels = array("0\nJun 4", "1", "2", "3", "4", "5", "6", "7", "8",... | true |
d172963fc25960a2a79708a9c70b99d5dee5c0d3 | PHP | PyBeaner/learn_yaf | /application/library/Db/DatabaseManager.php | UTF-8 | 633 | 2.796875 | 3 | [] | no_license | <?php
namespace Db;
use PDO;
use Yaf_Config_Ini;
class DatabaseManager
{
/** @var PDO */
private static $_db;
/**
* DatabaseManager constructor.
*/
public function __construct()
{
if (static::$_db) {
return;
}
$config = new Yaf_Config_Ini(APP_PATH . '/... | true |
0ff7181afa3652dbc98663b9e2b313f1b38777de | PHP | junkdude/MyFaction | /src/MyFaction/Commands/FactionCommand.php | UTF-8 | 6,697 | 2.59375 | 3 | [] | no_license | <?php
namespace MyFaction\Commands;
use MyFaction\MyFaction;
use pocketmine\Player;
use pocketmine\math\Vector3;
use pocketmine\command\CommandExecutor;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
class FactionCommand implements CommandExecutor {
public function __construct(MyFaction ... | true |
89e69729228f49c7d9bec92eff464c16ab9a1049 | PHP | congwen996/congwen | /Shops/Admin/Controller/PropController.class.php | UTF-8 | 6,843 | 2.515625 | 3 | [] | no_license | <?php
//属性管理
namespace Admin\Controller;
use Think\Controller;
class PropController extends Controller
{
/**
* 属性列表页展示
*/
public function prop_list()
{
$propList=M("GoodsProp");//实例化属性表
$propValue=M("GoodsPropValue");//实例化属性值表
//$where['shanchu']=1;//判断非删除状态条件
//分页
$count= $propList->count();
$Page=... | true |
f6f3e7c68af0bc83948d5f68d14282dc7fb15572 | PHP | Alexamith23/Mytree-CodeIgniter | /application/views/Dasboard/misArboles_vista.php | UTF-8 | 2,008 | 2.515625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
$cantidad_de_arboles = $this->session->misArboles->cantidad;
$persona = $this->session->user->id;
$nombre = $this->session->user->nombre;
$mensaje = $this->session->error;
$admin = $this->session->user->administrador;
?... | true |
0bcfee98c4eb642574f229614b2a068b5025555b | PHP | big-javascript-fan/HyonMoo-WooCom | /hyunmoo/framework/theme/shortcodes/heading.php | UTF-8 | 646 | 2.84375 | 3 | [] | no_license | <?php
// Highlight shortcode
function hyunmoo_shortcode_heading($atts, $content = null) {
$default_atts = array(
'textalign' => 'left',
'color' => '#333',
'bgcolor' => '',
'otherstyle' => '',
'fontsize' => '30'
);
# Overwrite Default Attributes
$atts = shortcode_atts( $default_att... | true |
23f01218db7f28fd7924a9e66ace775526d75323 | PHP | jinligen/samsui | /test/Samsui/Provider/DateTest.php | UTF-8 | 2,069 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php namespace Samsui\Provider;
use \PHPUnit_Framework_TestCase;
use Samsui\Generator\Generator;
use Carbon\Carbon;
class DateTest extends PHPUnit_Framework_TestCase
{
protected $generator;
protected function setUp()
{
$this->generator = new Generator();
$this->generator->registerProvide... | true |
bd3840a5fa185c5d24629166d564af59f5bacf93 | PHP | ricardorodrigooliveira/DigitalExperiencePlataform | /Primeiro Semestre/mysql/desafio_8.php | UTF-8 | 1,616 | 2.578125 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="pt" dir="ltr">
<head>
<meta charset="utf-8">
<title>PHP</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous... | true |
735cc1857e3b1f90cac4279a4b6639b7624f8a79 | PHP | jonasvr/web-backend | /toDo/todo.php | UTF-8 | 2,765 | 2.984375 | 3 | [] | no_license | <?php
session_start();
// nakijken of de toDo lijst gemaakt is
if(!isset($_SESSION['toDo']))
{
$_SESSION['toDo']=array();
}
//kijken of op de toevoegen knop gedrukt is
if (isset($_POST['addTodo']) && isset($_POST['description']))
{
$taak=$_POST['description'];
//zien aan welke ID we zitten
$idTaak=coun... | true |
83d0e28a49dd043dd907f934272bf81a9d667e7f | PHP | axel92/A3_Gr2_Rendu | /src/IntegerValidator.php | UTF-8 | 2,176 | 3.25 | 3 | [] | no_license | <?php
namespace RENDU\ValuesValidator;
/**
* Class IntegerValidator
* @package RENDU\ValuesValidator
*/
class IntegerValidator
{
/**
* @param $a
* @param $b
*
* @return bool
*
* @throws \Exception
*/
public static function equal($a, $b)
{
if(!is_int($a) || !is... | true |
ecdceeb394049bf6cf10463eb68391fa7cccbd32 | PHP | highchair/hcd-trunk | /content/blog/archive.php | UTF-8 | 9,797 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
function initialize_page() { }
function display_page_content()
{
// Define a function to draw a post... easiest way to manage the output in one place
function get_entry( $thisentry, $link=true, $excerpt=false, $current_user='' )
{
$categories = ( $thisentry->get_categories() != '' ) ? ' in '.$thisentry... | true |
2cee35681b0301a703349d421278625485221ffe | PHP | Jclavo/SGA | /modeloNegocio/sga/NotaNegocio.php | UTF-8 | 2,184 | 2.75 | 3 | [] | no_license | <?php
require_once __DIR__ . '/../core/negocioBase.php';
require_once __DIR__ . '/CarreraNegocio.php';
require_once __DIR__ . '/CursoNegocio.php';
require_once __DIR__ . '/MatriculaNegocio.php';
require_once __DIR__ . '/../../util/util.php';
class NotaNegocio extends negocioBase {
//put your code here
... | true |
ba3a702759e943d0fd8a55ef958526c305b4c45f | PHP | votch18/MedPRO | /models/notification.php | UTF-8 | 1,786 | 2.6875 | 3 | [] | no_license | <?php
class Notification extends Model
{
/**
* @param string $id
* @return array
*/
public function getNotificationsByCustomerId($id){
$id = $this->db->escape($id);
$sql = "SELECT *
from t_notifications WHERE custid = '{$id}' ORDER BY date DESC LIMIT 5";
re... | true |
b5083ec343485e3ae685b9004331d1ab97b98cd1 | PHP | barthclem/ULogin | /app/library/Auth/Auth.php | UTF-8 | 6,401 | 3.015625 | 3 | [] | no_license | <?php
namespace login\Auth;
/**
* Created by PhpStorm.
* User: aanu.oyeyemi
* Date: 18/01/2017
* Time: 11:09 AM
*/
use Phalcon\Mvc\User\Component;
use login\Models\User;
use login\Models\RememberTokens;
use login\Models\SuccessLogins;
use login\Models\FailedLogins;
/**
* This is the Authentication class ... It v... | true |
5b01c3afc45466d0c9b3572653e41e6b073ac381 | PHP | Basel-Alhindi/LDAP-Daten-tabellarische-Darstellung | /datenbank_einfuegen.php | UTF-8 | 9,854 | 2.53125 | 3 | [] | no_license | <?php
require_once "funktionen/alle_funktionen.php";
require_once "including/ldap_daten.php";
require_once "classes/DatenbankVerbindung.php";
$db_instanz = DatenbankVerbindung::erzeugeDatenbankVerbindung();
if(!$db_instanz){
die('Es konnte keine Verbindung zur Datenbank hergestellt werden');
}
/**
* Die komplette ... | true |
d8dfb9bdd5189c917d631005f86d8f3093bc63c8 | PHP | motty/laravel-repository | /src/Eloquent/Traits/Crudable.php | UTF-8 | 1,464 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php namespace Motty\Laravel\Repository\Eloquent\Traits;
/**
* Crudable trait provides the standard functions for any repository
* that implements CRUD
*
* @package Motty\Laravel\Repository\Traits
*/
trait Crudable
{
/**
* Create an entity
*
* @param array $attributes
* @return \Illumin... | true |
aa480c7e9fda59d0d65359f331a7d43e89ac0753 | PHP | conferencetools/attendance-module | /src/Domain/Payment/PaymentType.php | UTF-8 | 1,066 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace ConferenceTools\Attendance\Domain\Payment;
use JMS\Serializer\Annotation as Jms;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Embeddable()
*/
class PaymentType
{
/**
* @Jms\Type("string")
* @ORM\Column(type="string", nullable=true)
*/
private $name;
/**
* @Jms\Type("i... | true |
c99047dbfa8be546a84f2454b2951e284cb726e1 | PHP | tharkun/tharkun.github.io | /presentations/poo/day-5/events/vendor/events/Dispatcher.php | UTF-8 | 869 | 2.671875 | 3 | [] | no_license | <?php
namespace Clever\Institut\Poe\Php\Events;
class Dispatcher
{
/**
* @var array
*/
private $listeners = array();
public function __construct()
{
// This should be done via configuration file
$this->addListener(\Clever\Institut\Poe\Php\Events\Event\Request::NAME, array('C... | true |
e1bb59a354c13cadfbfb466b085053cd95c9dc86 | PHP | stefsiekman/survivalruns | /app/Organiser.php | UTF-8 | 718 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Organiser extends Model
{
protected $guarded = [];
public function runs()
{
return $this->hasMany(Run::class);
}
static function clean_url(string $url)
{
$url_components = parse_url($url);
$url = $ur... | true |
8abe2e9b87c4dcbd0825f864f1f66c0a25a6deed | PHP | y-oga-819/atcoder | /abc152/b.php | UTF-8 | 235 | 2.984375 | 3 | [] | no_license | <?php
list($a, $b) = explode(' ', trim(fgets(STDIN)));
$as = '';
for($i=0; $i<$b; $i++) {
$as.=$a;
}
$bs = '';
for($i=0; $i<$a; $i++) {
$bs.=$b;
}
if (strcmp($as, $bs) < 0) {
echo "$as\n";
} else {
echo "$bs\n";
}
| true |
c573bb9e4bdb4bb765224f640aef1c501676b9dc | PHP | DavidCao626/server | /app/EofficeApp/Flow/Services/FlowControlService.php | UTF-8 | 3,181 | 2.671875 | 3 | [] | no_license | <?php
namespace App\EofficeApp\Flow\Services;
use App\EofficeApp\Flow\Services\FlowBaseService;
/**
* 流程控件service类,用来管理相关控件资源
*
* @since 2018-11-9 创建
*/
class FlowControlService extends FlowBaseService
{
public function __construct(){
parent::__construct();
}
/**
* 控件收藏
*
* @a... | true |
5bf995984f29e2fa5a16facedf285cab63d4f9da | PHP | ufjf-dcc/ligadopoliticos | /upgrade.database.php | UTF-8 | 139,159 | 2.765625 | 3 | [] | no_license | <?php
//Login:Senha do SPARQL neste formato
$login = "raphael:123" ;
/* Funções referentes as tabelas do bando de dados.
* Encontra um certo dado e o atualiza ou
* Insere um novo dado no banco.
*/
// returna o id do politico se o mesmo existir
function existePoli($nome, $data){
$aux = '"';
... | true |
b3a4e91a2c007358961c019d45084bfdbadc3445 | PHP | guitarpoet/clips-tool | /src/Clips/Libraries/NotOperator.php | UTF-8 | 336 | 2.5625 | 3 | [] | no_license | <?php namespace Clips\Libraries; in_array(__FILE__, get_included_files()) or exit("No direct script access allowed");
class NotOperator extends WhereOperator {
public function __construct($operators = array()) {
parent::__construct($operators);
}
public function toString() {
return 'not '.implode('', $this->to... | true |
ab446e0e4eb46ff1b6da6e8ffa1bc60bbfc69d7a | PHP | samcrosoft/constantaccess | /tests/ConstantAccess/ConstantAccessTest.php | UTF-8 | 3,657 | 2.59375 | 3 | [] | no_license | <?php
namespace Samcrosoft\ConstantAccessTest;
use ArrayAccess;
use Countable;
use PHPUnit_Framework_TestCase;
use Samcrosoft\ConstantAccess\ConstantAccess;
use Samcrosoft\ConstantAccess\Data\ConstantsData;
/**
* Class ConstantAccessTest
* @package Samcrosoft\ConstantAccessTest
*/
class ConstantAccessTest extends P... | true |
85170458afb7657a4ecfcb23f54a5ab4fa44d12f | PHP | avshatalov48/bitrix24-core-corp | /modules/tasks/lib/integration/crm/fields/emulationdata.php | UTF-8 | 1,397 | 2.796875 | 3 | [] | no_license | <?php
namespace Bitrix\Tasks\Integration\CRM\Fields;
class EmulationData
{
private const CRM_VALUE_KEY = 0;
private string $name;
private string $value;
private string $class;
private string $type;
public function __construct(array $crmUf)
{
$this->name =
isset($crmUf['FIELD_NAME']) && is_string($crmUf[... | true |
63727b6bacdf4f0969ff584c24c975b7237b265a | PHP | alauddin3604/project-db | /admin/home.php | UTF-8 | 1,313 | 2.578125 | 3 | [] | no_license | <?php
session_start();
require '../connection.php';
if (isset($_SESSION['admin_id']))
$session_id = $_SESSION['admin_id'];
else
header('location: ../index.php');
$sql = 'SELECT admin_name FROM admins WHERE admin_id = ?';
$stmt = $conn->prepare($sql);
$stmt->bind_param('i', $session_id);
if ($stmt->execute())
{
$r... | true |
e53851110df1beab8bc958ea9e7ed676be26f7c3 | PHP | arthur-apanovics/mod-practical-observation | /classes/observer_base.php | UTF-8 | 5,673 | 2.71875 | 3 | [] | no_license | <?php
/*
* Copyright (C) 2020 onwards Like-Minded Learning
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*... | true |
fe2ee5bd7f01550a82349b0e963793b49ee6c05c | PHP | LeoMamz/Web-Project | /股票交易系统/交易客户端/test1.11.php | UTF-8 | 655 | 2.71875 | 3 | [] | no_license | <?php
$postData = file_get_contents('php://input');
$re = json_decode($postData);
//var_dump($re);
$size = $re->size;
$p = array();
for($i = 0; $i < $size; $i++){
$p[$i] = $re->remID[$i]; // 数组$p中存储着需要查询价格变化的股票的ID
}
//你们在这里进行查询,将数据存储在二位数组$rem[][]中,
//其中$rem[i][0]中为股票ID;
//$rem[i][1]到$rem[i][6]中逐个为涨跌价、日涨跌幅
//具体的样式参考... | true |
4213bac5e2737a48cc924d173393338ab6cdd20f | PHP | bezhermoso/ImgMiner | /module/BezBacklogModule/src/Bez/Backlog/Repository/RepositoryInterface.php | UTF-8 | 595 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright 2014 Bezalel Hermoso <bezalelhermoso@gmail.com>
*
* This project is free software released under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/
namespace Bez\Backlog\Repository;
use Bez\Backlog\Entity\JobInterface;
interface RepositoryInterface
{
/**
*... | true |
bc08939a555abd2b25cc17112cb30dbef428846c | PHP | vdegenne/vcms-quick-starter | /vendor/vdegenne/vcms/database/EntityManager.class.php | UTF-8 | 9,964 | 2.75 | 3 | [] | no_license | <?php
namespace vcms\database;
use Exception;
use PDO;
use PDOException;
use PDOStatement;
use vcms\AutoLoader;
use vcms\VObject;
use vcms\VString;
class EntityManager extends VObject {
static protected $singletons;
/**
* @var Database
*/
protected $Database;
/**
* The name of the t... | true |
4ba4a28f6a9318107dcf8a1e3937e686863d7779 | PHP | atoropin/user-account-notify | /src/UserAccountMessage.php | UTF-8 | 2,709 | 2.921875 | 3 | [] | no_license | <?php
namespace Rir\UserAccountNotify;
class UserAccountMessage
{
public $content;
public $htmlContent;
public $icon;
public $link;
public $notificationTypeCode;
public $organizationId;
public $senderId;
public $shortContent;
public $title;
public $userId;
/**
... | true |
a872a74d5c7202a5c341c6c55108072cfd5ef93c | PHP | PascalSteger/htdocs | /qualistud/setup_teacher.php | UTF-8 | 1,468 | 2.6875 | 3 | [] | no_license | <?php
echo '
<html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>Lehrer Setup</title>
<meta name="AUTHOR" content="Pascal Stephan Philipp Steger">
<meta http-equiv="Content-Type" content="text/html; charset="UTF-8">
<meta name="KEYWORDS" content="Setup ... | true |
f9ce29bfadd403dc7e2f5f292d67ad19236996ac | PHP | ilios/ilios | /src/Traits/ProgramYearsEntity.php | UTF-8 | 1,020 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Traits;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use App\Entity\ProgramYearInterface;
/**
* Class ProgramYearsEntity
*/
trait ProgramYearsEntity
{
protected Collection $pr... | true |
cd7c9ce442aac892ffdf279454d7d74aa5440c10 | PHP | kuny87/ohjic | /CodeIgniter-3.0.6/application/models/board_model.php | UTF-8 | 2,245 | 2.765625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
class Board_model extends CI_Model {
function __construct(){
parent::__construct();
}
//total select sql
public function gets($page, $search_word){
if($search_word == null){
$sql = "select * from board order by num desc LIMIT " . $page . ", 5";
}else {
... | true |
69ba3fc775f378f6aacf2d2277061ce26567a85e | PHP | SourabhPati/Teacher-Tracking-System | /Create.php | UTF-8 | 9,981 | 2.90625 | 3 | [] | no_license | <?php
// Include config file
require_once 'config.php';
session_start();
if(!isset($_SESSION['username'])){
header('location: hod_login.php');
}
// Define variables and initialize with empty values
$Teacher_ID = $Name = $Subject = $Free_Periods = "";
$name_err = $FreeP_err = $subject_err = $ID_err = "";... | true |
eba7ab82054cb9e55663e8f3f9ab8d32c8ade000 | PHP | albert4git/bTest | /DODO10/php4SQliDODO.php | UTF-8 | 358 | 2.546875 | 3 | [] | no_license | <?php
/**
* Short description for dodo10sel.php
*
* @package dodo10sel
* @author red <red@red-Swift-SF113-31>
* @version 0.1
* @copyright (C) 2019 red <red@red-Swift-SF113-31>
* @license MIT
*/
$db = new SQLite3('dodo10.db');
$results = $db->query('SELECT Name FROM Cars');
while ($row = $results->fetchArray... | true |
b9a8e7684c1f81f031a45ff61718d3f2f421a40e | PHP | crawlerclub/phpsdk | /sdk/ApiClient.php | UTF-8 | 3,009 | 2.75 | 3 | [] | no_license | <?php
require_once 'ApiHttpClient.php';
require_once 'ApiUtil.php';
/**
* Api Client
*/
class ApiClient {
/**
* accessKey
* @var string
*/
protected $accessKey = '';
/**
* secretKey
* @var string
*/
protected $secretKey = '';
/**
* @param string $accessK... | true |
6aec8040f698be487eec75e0d7cb4fd9c0b4f96f | PHP | JUNMAR77/tpc-info-sys | /database/seeders/EventsTableSeeder.php | UTF-8 | 1,386 | 2.578125 | 3 | [] | no_license | <?php
namespace Database\Seeders;
use App\Models\Event;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class EventsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('events')->delete();
... | true |
f996248ba65a62443eac6fbf96232bec706af4d9 | PHP | czeeb/config-merger | /src/ConfigMerger/Exception.php | UTF-8 | 590 | 2.9375 | 3 | [] | no_license | <?php
namespace Czeeb\ConfigMerger;
abstract class Exception extends \RuntimeException
{
/**
* The default exception message that will be used if none is provided
*
* @var
*/
const MESSAGE = '';
/**
* Constructor
*
* @param string $message
* @param int $code
*... | true |
e9518e053c4d64e1c7d2ffb330534ebbc2149b6a | PHP | Rzied/DWWM-RZied | /Exo-Proj/PHPWebAfpa/eval/PHP/VIEW/ActionUtilisateur.php | UTF-8 | 489 | 2.609375 | 3 | [] | no_license | <?php
$mode = $_GET['mode'];
$obj = new Utilisateurs($_POST);
var_dump($mode);
var_dump($obj);
switch ($mode) {
case "ajouter":
{
UtilisateursManager::add($obj);
break;
}
case "modifier":
{
UtilisateursManager::update($obj);
break;
... | true |
40f71cc1a24b02adc0d66444c8812163f1dc14eb | PHP | fubendong/bangzhufu | /src/protected/Core/Cron/ICronTask.php | UTF-8 | 434 | 2.890625 | 3 | [] | no_license | <?php
/**
* @author QiangYu
*
* Cron 任务的基本实现,你可以实现你自己的接口用于执行你自己的 Cron 任务
*
*/
namespace Core\Cron;
interface ICronTask
{
/**
* 执行 Cron 任务
*
* @param array $paramArray
*
* @return array('code' => '0表示成功其它为失败', 'message' => '返回的消息限128个字符')
*/
public function run(array $param... | true |
1c6801df5f9086addfb2e276d868773e7fdc306f | PHP | frannkx/Monitoring | /DevEyeInInfra/shells/Carga.php | UTF-8 | 4,086 | 2.703125 | 3 | [] | no_license | <?php
require_once('../modelo/class.conexion.php');
require_once('../modelo/class.consultas.php');
require_once('../modelo/class.archivos.php');
/*Script ejecutado automaticamente por el cron que abre cada archivo lo lee
linea por linea y si consigue alguna caida la registra en base de datos*/
//1-... | true |
0ebeef4c734df3e110e14cb37aba21e43a0f449e | PHP | theranger/DigitalOcean-Spaces-Sync | /dos_class.php | UTF-8 | 9,869 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
class DOS {
private static $instance;
private $key;
private $secret;
private $endpoint;
private $container;
private $storage_path;
private $storage_file_only;
private $storage_file_delete;
private $filter;
private $upload_url_path;
private $upload_path;
public function __construct($key, $secret, $c... | true |
2c0e03fb65094e69b43092d6c2eb9281afc9cdd2 | PHP | friendsofhyperf/components | /src/validated-dto/src/Casting/IntegerCast.php | UTF-8 | 648 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
* This file is part of friendsofhyperf/components.
*
* @link https://github.com/friendsofhyperf/components
* @document https://github.com/friendsofhyperf/components/blob/main/README.md
* @contact huangdijia@gmail.com
*/
namespace FriendsOfHyperf\ValidatedDTO\Casting;
use... | true |