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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
06fb82f864c31df79f337be68b40a3fc5ab80bfc | PHP | hsw0108/myProject | /tp5_blog/application/admin/controller/Crypt.php | UTF-8 | 1,444 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/12/13
* Time: 15:54
*/
namespace app\admin\controller;
class Crypt
{
protected $config;
protected $secureKey = '405305c793179059f8fd52436876750c587d19ccfbbe2a643743d021dbdcd79c';
/**
* 设置加密密钥
*
* @param string $key
... | true |
6677c2f30160b9f1420d89d35c02f637a760a88d | PHP | joy-software/AETEMPLATE | /app/period.php | UTF-8 | 1,043 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* App\period
*
* @property-read \Illuminate\Database\Eloquent\Collection|\App\contribution[] $contribution
* @mixin \Eloquent
* @property int $id
* @property int $year
* @property string $month
* @property \Carbon\Carbon $created_at
* @propert... | true |
e05aaf8277e4c5ce644c9d84e895bdd7d41df740 | PHP | msenjakagami/VaporWav-Project | /local-friendly/searchPage.php | UTF-8 | 5,711 | 2.53125 | 3 | [] | no_license | <?php
/*session_start();
if($_SESSION['login'] != TRUE) {
header('Location: index.php');
}
$expire = "1 hour";
date_default_timezone_set("UTC");
require './vendor/autoload.php';
include 'config.php';
include 'dbconfig.php';
$dbHost = DB_HOST;
$dbUsername = DB_USERNAME;
$dbPassword = DB_PASSWORD;
$dbName =... | true |
4439e2cdb645b1b54b32bce565ef783a0c4b54c2 | PHP | cxty/expand.dbowner.com | /include/lib/DBAppPerm.class.php | UTF-8 | 4,119 | 2.65625 | 3 | [] | no_license | <?php
/**
* 权限处理类
*
* @author wbqing405@sina.com
*/
include_once('Addslashes.class.php'); //数据过滤类
class DBAppPerm{
var $tbAppPermInfo = 'tbAppPermInfo'; //应用权限表
public function __construct($model){
$this->model = $model;
$this->init();
}
/**
* 初始化
*/
private function init(){
$this->Addslashe... | true |
1a74834571aaea24595ebc18c8cf8b5885557c95 | PHP | thorwalez/sepaXmlCreatorExample | /src/Creator/PaymentInformationTransferInterface.php | UTF-8 | 595 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright (c) 2021.
* Created By
* @author Mike Hartl
* @copyright 2021 Mike Hartl All rights reserved
* @license The source code of this document is proprietary work, and is licensed for distribution or use.
* @created 20.05.2021
* @version 0.0.0
*/
namespace App\Creator;
use App\Model... | true |
dc74c34e1ae7961e299ca95849cb6582212fa0f1 | PHP | hsg12/test | /Application/Components/View.php | UTF-8 | 1,532 | 2.875 | 3 | [] | no_license | <?php
namespace Application\Components;
class View extends AbstractBase
{
const VIEW_PATH = ROOT . 'Application/View/';
const LAYOUT_PATH = ROOT . 'Application/View/layout/';
private $data = [];
private $template = '';
private $layout = 'indexLayout';
private $headTitle = '';
... | true |
bc7414b7eec497cf9853c906e1c697419310c627 | PHP | crakter/bringapi | /src/Clients/AuthorizationInterface.php | UTF-8 | 2,222 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the BringApi package.
*
* (c) Martin Madsen <crakter@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Crakter\BringApi\Clients;
/**
* BringApi AuthorizationInterface
*
* A I... | true |
171c9e6b80f7cfe0e5dea7b4e7aa34bab2ecb11d | PHP | joeldseidel/Vibe | /ui/src/Chat.php | UTF-8 | 2,635 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
class Chat implements MessageComponentInterface{
protected $clients;
private $connectedUsers;
private $logs;
private $connectedUsernames;
private $connectedRooms;
public function __construct(){
... | true |
3e023396d092de5fb2d5c7da29cabc89e61c279e | PHP | eugenia961/store_Items | /app/Items/Services/ItemFind.php | UTF-8 | 467 | 2.84375 | 3 | [] | no_license | <?php
namespace App\Items\Services;
use App\Items\Interfaces\ItemRepositoryInterface;
final class ItemFind {
private $di;
private $itemRepositoryInterface;
public function __construct($di) {
$this->di = $di;
$this->itemRepositoryInterface = $this->di->get(ItemRepositoryInterface::clas... | true |
c4448570061a22bbf28322e721e6a2e6f0cee981 | PHP | Lee-1109/CourseManageSystem_PHPversion | /liyang/php/conditionTeacher.php | UTF-8 | 436 | 2.59375 | 3 | [] | no_license | <?php
$teacherDao=new TeacherDAO();
if(false!==$teacherDao->getAllTeacherIdAndName()){
echo<<<OUT
<select id="teach" name="t" onchange="">
<option>请选择</option>
OUT;
$teacherArray=$teacherDao->getAllTeacherIdAndName();
foreach($teacherArray as $one)
echo<<<OUT
<option value="$one->t... | true |
b0f3b1578c54b2be70cdf1dfd418669e6c899fa1 | PHP | BlackOrder/jasmin-web | /tests/Command/Group/GroupCommandTest.php | UTF-8 | 3,217 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace JasminWeb\Test\Command\Group;
use JasminWeb\Jasmin\Command\Group\Group;
use JasminWeb\Test\Command\BaseCommandTest;
class GroupCommandTest extends BaseCommandTest {
/**
* @var Group
*/
protected $group;
/**
* @var string
*/
protected $gid = 'jTestG1';
protected function initCo... | true |
eaf6c32e22924b83c8cbcffdef0fe1edf93d2445 | PHP | mhmdaz/blood-donation | /database/seeders/BloodGroupSeeder.php | UTF-8 | 590 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use App\Models\BloodGroup;
use Illuminate\Database\Seeder;
class BloodGroupSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$blood_groups = [
'A+',
'B+',
'AB+... | true |
3aca23600a3facd15a4ab12c167c1c54f8535c26 | PHP | cloudcogsio/paypal-rest | /src/Support/UpdatePricingSchemeRequest.php | UTF-8 | 1,507 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Cloudcogs\PayPal\Support;
/**
* @see https://developer.paypal.com/docs/api/subscriptions/v1/#definition-update_pricing_scheme_request
*/
class UpdatePricingSchemeRequest extends JsonSerializableArrayObject
{
protected const BILLING_CYCLE_SEQUENCE = 'billing_cycle_sequence';
protected const P... | true |
53ca39c859804dd918c399e9b2339980673d82f7 | PHP | Matfork/GECORISK | /app/controllers/ProjectController.php | UTF-8 | 5,331 | 2.8125 | 3 | [] | no_license | <?php
class ProjectController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
// get all the projects
$projects = Project::all();
// load the view and pass the projects
return View::make('logicViews.projects.in... | true |
b6510a8c1d96bc172cfe31ef08aee1c3df0e14f5 | PHP | bestit/commercetools-odm | /src/Exception/ResponseException.php | UTF-8 | 743 | 2.765625 | 3 | [] | no_license | <?php
namespace BestIt\CommercetoolsODM\Exception;
use Commercetools\Core\Response\ErrorResponse;
use Exception;
/**
* Exception class for response errors.
*
* @author lange <lange@bestit-online.de>
* @package BestIt\CommercetoolsODM\Exception
* @subpackage Exception
*/
class ResponseException extends Exceptio... | true |
ca35e4c00afc91caa883d55e218ce7d6cb30a502 | PHP | jonanderochoa/EjerciciosPHPcursoPI | /6.MYSQL/5.INYECCIONSQL/deleteUser.php | UTF-8 | 1,771 | 3.125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form method="post" action="deleteUser.php">
<label>Usuario: <input type="text" name="user" id="user" placeholder="usuario"></label>
<label>Password: <input type="text" name="pass" id="pass" placeholder="contraseña"></label>
<input type="Submit" name=... | true |
9378e81ec4b6571e044a76776d407827e31a0db0 | PHP | nettowebart/teste | /htdocs/filmes/src/Controller/InserirController.php | UTF-8 | 1,780 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App\Controller;
use App\Model\Repository\FilmeRepository as RepositoryFilmeRepository;
// echo 'asj';die;
class InserirController{
private $lista;
public function __construct($dados) {
// var_dump($dados);die;
$this->lista = new RepositoryFilmeRepository;
$this... | true |
510c98ea61a6402e476b6648ebd340c0d95cd6d6 | PHP | laisvidoto1994/TalentsWeb | /api/src/model/dados/daocargo.php | UTF-8 | 981 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
require_once('../src/model/dados/idaocargo.php');
class DaoCargo implements iDAOCargo
{
function __construct(){
}
public function pesquisar(Cargo $cargo, $alt='false'){
$comando = 'select * from cargo ';
$where = '';
$orderby = ' order by ds_cargo asc';
if (!empty($cargo->getCdCargo())){
if ... | true |
53dcc284fc4bd84e6e584535edd01560534d66cb | PHP | aws/aws-sdk-php | /tests/SdkTest.php | UTF-8 | 2,332 | 2.640625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | <?php
namespace Aws\Test;
use Aws\AwsClientInterface;
use Aws\MultiRegionClient;
use Aws\S3\S3MultiRegionClient;
use Aws\Sdk;
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
/**
* @covers Aws\Sdk
*/
class SdkTest extends TestCase
{
public function testEnsuresMissingMethodThrowsException()
{
$this->e... | true |
862cb887e2ea204eb5f5a553ef0e300dd8b834de | PHP | oanhnn/laravel-influxdb | /src/Jobs/Write.php | UTF-8 | 957 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Laravel\InfluxDB\Jobs;
use Laravel\InfluxDB\Facades\InfluxDB;
/**
* Class Write
*
* @package Laravel\InfluxDB\Jobs
* @author Oanh Nguyen <oanhnn.bk@gmail.com>
* @license The MIT license
*/
class Write extends Job
{
/**
* @var string|array
*/
public $payload;
... | true |
960594101aa2d1d2ce1b64330addbc0f38639fab | PHP | lantins/statamic-plugin-percentage | /pi.percentage.php | UTF-8 | 776 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
class Plugin_percentage extends Plugin {
var $meta = array(
'name' => 'Percentage Calculator',
'version' => '1.0',
'author' => 'Luke Antins',
'author_url' => 'http://lividpenguin.com'
);
public function index() {
// get tag params.
$params = array(
'given' =... | true |
ba877f3c40aada7a11f20d0b12144dcab25d8a23 | PHP | garjilius/cittadinAPP | /login.php | UTF-8 | 699 | 2.71875 | 3 | [] | no_license | <?php
require_once './databaseconnection.php';
if (isset($_POST['cf']) && isset($_POST['password'])) {
$cf = $_POST['cf'];
$password = $_POST['password'];
$query = "SELECT * FROM Utente WHERE CF = '" . $cf . "'";
$result = mysql_query($query);
$segnalazione = mysql_fetch_assoc($result);
... | true |
0f70ab3fb8522ee3a20e21f544fdafee72e7fce8 | PHP | bouwehand/ChocolateFactory | /lib/Darwin/Models/Worm.php | UTF-8 | 7,896 | 2.984375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: thrynillan
* Date: 8/15/14
* Time: 4:01 PM
*/
/**
* Class Worm
*
* At the begining of a generation. A hundred worms are created with random values
* At the end of a generation, the worm with the highst fittest lives on and duplictes
* other worms are destroyed and rec... | true |
3c28b9334b43e26652719cfa70de054ad2a19943 | PHP | grzybu/blog-app | /src/App/Controller/Admin/ListController.php | UTF-8 | 1,055 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Controller\Admin;
use App\Repository\Posts\PostRepository;
use App\Service\AuthService;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
class ListController
{
protected Po... | true |
569e99e5e4ad2dbcbb9bf9dd6e2dc42c04342aa6 | PHP | ikoniqoz/nitrocart | /models/features/affiliates_clicks_m.php | UTF-8 | 1,476 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/***{COMMON_CLASS_HEADER}***/
class Affiliates_clicks_m extends MY_Model
{
public $_table = 'nct_affiliates_clicks';
protected $_description_tags = '<b><div><strong><em><i><u><ul><ol><li><p><span><a><br><br />';
public function __construct(... | true |
9b47a38e44d7104695ee2cbc1b8e4286b033b5e9 | PHP | alicealice129/final01 | /cart.php | UTF-8 | 2,573 | 2.640625 | 3 | [] | no_license | <?php
require_once './conf/setting.php';
require_once './model/model.php';
session_start();
// 未ログインなら、ログイン画面へ
if(login_check() === false){
header('Location: ./login.php');
exit;
}
$user_id = '';
if (isset($_SESSION['user_id']) === TRUE) {
// ログイン済みの場合
$user_id = $_SESSION['user_id'];
//データベースに接続して、ログインユーザの情報... | true |
2d5447dc64858a101b37b114a3ae9b350dc0e061 | PHP | hbhatia22/DatabaseSpring2020 | /insert_transaction.php | UTF-8 | 2,974 | 2.59375 | 3 | [] | no_license | <?php
include 'dbconfig.php';
// echo "<a href = 'logout.html'>User Logout</a><br><br>";
echo "<a href = 'logout.php'>User Logout</a><br><br>";
if(!isset($_COOKIE["ID"])){
echo "Please click <a href='index.html'>here (project home page)</a> to login again<br><br>";
}
else {
// $userName = $_COOKIE['u... | true |
996b82a30c8ad642519990d5acdcf1a4dd05f86b | PHP | gmr/framewerk | /Base/Applications/Soap/WSDLGenerator.inc | UTF-8 | 9,447 | 3.15625 | 3 | [
"MIT"
] | permissive | <?php
/**
* WSDLGenerator Class
*
* The WSDLGenerator Class is an application for outputting a WSDL file based on the PHPDOC information gathered on an application that extends an fSoapApplication
*
* @name WSDLGenerator
* @author Dallas Gutauckis <dgutauckis@myyearbook.com>
* @since 2007-07-20
* @link h... | true |
af85bef5481791758b2fd9ca3888ac8ea6a32aca | PHP | RosebudInteractive/Libereye | /include/classes/utils/template.class.php | UTF-8 | 2,266 | 2.734375 | 3 | [] | no_license | <?php
/** ============================================================
* Smarty template object extension
* @package core
* @todo check and comment
* ============================================================ */
require_once 'classes/utils/smarty/Smarty.class.php';
class Template extends Smarty
{
/** Templ... | true |
273b5cbb0195cf10c3373a628e3775662a1c1a4f | PHP | nejood/roundSystem | /Admin_Files/Admin_pages/buildings management/addBuilding.php | UTF-8 | 3,996 | 2.546875 | 3 | [] | no_license |
<!DOCTYPE html>
<!-- author @Nadia Bahatheg 2/7/2018
nadia.bahatheg@gmail.com
this page allow the user with type:"Admin" to add a building to the database by letting him entering the building's name and click on "add" button-->
<!--start of html tag-->
<html>
<!--start of head tag-->
<head>
... | true |
31de7e44bbf53130c2a7a8c67e8467d71382293b | PHP | anderson-0812/proyectExtjs | /php/Clases/update.php | UTF-8 | 859 | 2.515625 | 3 | [] | no_license | <?php
$data = json_decode(file_get_contents('php://input'));
if (!$mysqli = getConectionDb()) {
echo "{success: false, message: '$errorConexion'}";
} else {
$sql_update = "UPDATE clases SET ";
$sql_update .= (isset($data->nombreClase)) ? "nombre_clase = '$data->nombreClase', " : "";
$sql_update .= (iss... | true |
e854c76753caf05629002265beb116f6b37d9b99 | PHP | QuincePHP/Pelastic | /src/Contracts/Factories/FactoryInterface.php | UTF-8 | 835 | 2.9375 | 3 | [
"MIT"
] | permissive | <?php namespace Quince\Pelastic\Contracts\Factories;
use Quince\Pelastic\Contracts\Filters\FilterInterface;
use Quince\Pelastic\Contracts\Queries\QueryInterface;
interface FactoryInterface {
/**
* Creates the factory object of the given class with given arguments
*
* @param string $class
* @p... | true |
9c571da85726d8b8f20b9ac645140225f9b109a3 | PHP | georgian-real-life/gta5grl | /website/Server/Core/Template.php | UTF-8 | 2,850 | 2.828125 | 3 | [] | no_license | <?php
namespace Server\Core;
ini_set ('display_errors', 1);
error_reporting(E_ALL);
if (!defined('AppiEngine')) {
header( "refresh:0; url=/");
}
/**
* Template
*/
class Template
{
protected $path;
protected $template;
protected $vars = [];
protected $config;
/**
... | true |
ee8a6241b48abe5f62024648ba22997d1a503a94 | PHP | fnxnet/phpunit-helper | /src/Logger/Message.php | UTF-8 | 592 | 2.96875 | 3 | [] | no_license | <?php
namespace Fnx\Unit\Logger;
class Message
{
/**
* @var string
*/
private $content;
/**
* @var array
*/
private $context = [];
/**
* Message constructor.
*
* @param string $content
* @param array $context
*/
public function __construct (string... | true |
09ed44ac46c782fba9db0543bc43f77fc306a69b | PHP | WimWidgets/icomoon-awesome | /widgets/icomoon/Converter.php | UTF-8 | 1,519 | 2.859375 | 3 | [] | no_license | <?php
namespace Widgets\Icomoon;
class Converter
{
private $rootPath;
private $name;
private $file;
private $style;
public function setRootPath($path)
{
$this->rootPath = $path;
}
public function convert($fileInputName)
{
$this->name = $fileInputName;
$thi... | true |
d91877809eded76244680e8b053d291ffc62164a | PHP | sorce100/lsd | /pages/Script/contribution.php | UTF-8 | 4,834 | 2.671875 | 3 | [] | no_license | <?php
require_once("../Classes/Contribution.php");
require_once("../Classes/UserBalance.php");
require_once("../Classes/WalletHistory.php");
session_start();
class ContributionControl{
function __construct(){
// print_r($_POST);
switch (trim($_POST["mode"])) {
// for insert
case 'insert':
... | true |
543fa3f1c9a7b41e3007067e81567137696c2cc2 | PHP | RootSoft/algorand-php | /src/Mnemonic/SeedPhrase.php | UTF-8 | 1,611 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is a part of "furqansiddiqui/bip39-mnemonics-php" package.
* https://github.com/furqansiddiqui/bip39-mnemonics-php.
*
* Copyright (c) 2019 Furqan A. Siddiqui <hello@furqansiddiqui.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed w... | true |
60ea0b23c5bf9d0beda87dd2ab0884295c3835a2 | PHP | EtudeStage/e_vente | /app/Http/Controllers/Cart/CartController.php | UTF-8 | 3,075 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Cart;
use App\AddToCartForm;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Model\produit;
use Kris\LaravelFormBuilder\Facades\FormBuilder;
class CartController extends Controller
{
/**
* @param FormBuilder $formBuilder
* @return \Illum... | true |
de9edf2188b91f2b27a761771e53502ddfe0f8ff | PHP | Bernix01/leccion-php | /admin/utils/collector.php | UTF-8 | 690 | 2.96875 | 3 | [] | no_license | <?php
require_once 'database.php';
class Collector{
protected $con;
public function __construct(){
$this->con = Database::connect();
}
public function read($table='demo',$class='stdClass'){
try
{
$queryRead= 'SELECT * FROM '. $table;
$stmt = $this->con->prepare($queryRead);
$stmt->execute();
... | true |
6b4d3787a2ef612564a04c98cca3868619a3b05d | PHP | papoon/aw007 | /webservices/pubmedSearch.php | UTF-8 | 2,053 | 2.671875 | 3 | [] | no_license | <?php
include_once "../utils/request.php";
class PubMedSearch{
private $uri = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed";
private $retmode = "xml";
private $retmax;
private $term;
private $startDate;
function __construct($term,$retmax... | true |
06394db40c990e94f9719fcd9c239c77ef128f35 | PHP | fyzzy1943/design-pattern-learn-php- | /DesignPatterns/Structural/Composite/FormElement.php | UTF-8 | 225 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Date: 2016/3/20
*/
namespace DesignPatterns\Structural\Composite;
abstract class FormElement
{
/**
* @param int $indent
* @return mixed
*/
abstract public function render($indent = 0);
} | true |
e98e8b15a48a93ad90834427fc9828f278dd1c93 | PHP | ziauddin/slim4-practice | /src/Factory/UploadFileFactory.php | UTF-8 | 917 | 3.03125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
namespace App\Factory;
use Slim\Psr7\UploadedFile;
/**
* Factory.
*/
final class UploadFileFactory
{
private string $path;
/**
* The constructor.
*
* @param string $path The file upload Path
*/
public function __construct(string $path)
{
$this->path = (string)$pat... | true |
81cb51ca509e503830eace6e290965eff8c6d813 | PHP | ShimizuWasedaU/git | /LabBookSystem/adminusers.php | UTF-8 | 19,220 | 2.734375 | 3 | [] | no_license | <?php require('includes/config.php');
//if not logged in redirect to login page
if(!$user->is_logged_in()){ header('Location: login.php'); }
//define page title
$title = 'Admin Page';
//change profile of user
//if form has been submitted process it
if(isset($_POST['submit'])&&isset($_POST['action'])&&$_POST['actio... | true |
78bd4dc4603c746244241081e0f9e7ea11875921 | PHP | Spomky-Labs/pki-framework | /src/X509/Certificate/Extension/NameConstraints/GeneralSubtree.php | UTF-8 | 2,743 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace SpomkyLabs\Pki\X509\Certificate\Extension\NameConstraints;
use function count;
use SpomkyLabs\Pki\ASN1\Element;
use SpomkyLabs\Pki\ASN1\Type\Constructed\Sequence;
use SpomkyLabs\Pki\ASN1\Type\Primitive\Integer;
use SpomkyLabs\Pki\ASN1\Type\Tagged\ImplicitlyTaggedType;
use Spo... | true |
d8485b3e463fbe06d73b99e5fe763c4b896cbc87 | PHP | AfrikuS/adventure | /app/Modules/Work/Persistence/Repositories/Worker/WorkerInstrumentsRepo.php | UTF-8 | 1,250 | 2.984375 | 3 | [] | no_license | <?php
namespace App\Modules\Work\Persistence\Repositories\Worker;
use App\Modules\Work\Domain\Entities\Worker\WorkerInstrument;
use App\Modules\Work\Persistence\Dao\Worker\WorkerInstrumentsDao;
class WorkerInstrumentsRepo
{
/** @var WorkerInstrumentsDao */
private $instrumentsDao;
public function __cons... | true |
57c633cddd8885a5e8df04b19c7dc7cb86181bc7 | PHP | rizalfauzi/Pendaftaran_UKM | /ms-view-user.php | UTF-8 | 5,020 | 2.546875 | 3 | [] | no_license | <?php
require "ms-user.php";
$db = new DB_Class;
$user = new User($db);
if(isset($_GET['aksi']) == '') {
$tampil = $user->tampil_user();
echo "<h1>Pengelolaan User</h1>";
echo "<h3><a href='ms-view-user.php?aksi=tambah'>Tambah User</a> | <a href='ms-view-ukm.php'>Pengelolaa... | true |
70e47439cec555b13f1a744f96e26ef0425ab4a6 | PHP | unclexo/server | /module/Note/src/Note/Controller/IndexController.php | UTF-8 | 3,993 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Note\Controller;
use Note\Service\NoteServiceInterface;
use User\Service\UserServiceInterface;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
use Zend\InputFilter\InputFilterInterface;
class IndexController extends AbstractRestfulController
{
/**
* @var NoteServi... | true |
8b4ae3453e9d75a232c311d0a6bdde8b64044036 | PHP | Suraia91/CMP | /models/Usermodel.php | UTF-8 | 3,096 | 2.78125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "User".
*
* @property integer $Id
* @property string $Email
* @property string $Password
* @property string $Phone
*
* @property OrderSumary[] $orderSumaries
*/
class Usermodel extends \yii\db\ActiveRecord implements \yii\web\Ident... | true |
124c856d6f33b0b4d1ed238b621eca9ffbf2af8c | PHP | zendersmx/zendcore | /core/libs/Persona.php | UTF-8 | 1,514 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | <?php
abstract class Persona extends classConexion{
/**
* Propiedades de una persona
*/
private $id_persona;
private $nombre;
private $apPaterno;
private $apMaterno;
private $fechaNacimiento;
private $telefono;
/**
* Constructor de la clase
*/
public function __construct(){p... | true |
1f799597818db14648143b8eaeb12f56ff0f1560 | PHP | WeimingZhao/laravel-base | /.svn/pristine/1f/1f799597818db14648143b8eaeb12f56ff0f1560.svn-base | UTF-8 | 3,440 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: yangyang
* Date: 16/2/20
* Time: 18:21
*/
namespace App\Services\Foundation\Auth;
use App\Models\Foundation\LoginLog;
use App\Models\Foundation\User;
use App\Services\Foundation\Auth\Contracts\AuthInterface;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Fac... | true |
9c0ccca484dd49c1ac1f442b8861fba9234aef09 | PHP | digihood/digihood-admin-bar | /src/AdminBar.php | UTF-8 | 1,350 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Digihood\AdminBar;
class AdminBar{
protected $request;
protected $exclude_path;
protected $is_admin;
public function __construct($request, $exclude_path, $is_admin){
$this->request = $request;
$this->exclude_path = $exclude_path;
$this->is_admin = $is_admin;
... | true |
53c574025d45693edc657fc00e0469c0e629de04 | PHP | cristian0728/Proyecto-base-de-datos | /clases/estudiante.php | UTF-8 | 1,781 | 2.9375 | 3 | [] | no_license | <?php
class estudiante
{
private $nombre1;
private $nombre2;
private $apellido1;
private $apellido2;
private $documentoes;
private $fecha_nacimiento;
private $sexo;
private $barrio;
private $celular;
private $acudiente;
private $celular_acudiente;
function setnomb... | true |
2cc90254c1ea9e9162df487e66e2b6b89b37c244 | PHP | teddy-dubal/rabbitmq | /src/App/Rabbitmq/Workers/emailWorker.php | UTF-8 | 452 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Rabbitmq\Workers;
use Swarrot\Broker\Message;
use Swarrot\Processor\ProcessorInterface;
class emailWorker implements ProcessorInterface
{
private $_dic;
public function process(Message $message, array $options):bool
{
$body = $message->getBody();
$object = \App\Modu... | true |
959ad3d07ee4a6cd08190d54700389b31af77801 | PHP | sport-buddy/sport-buddy-api | /app/Repositories/EloquentRepository.php | UTF-8 | 637 | 2.75 | 3 | [] | no_license | <?php
namespace App\Repositories;
use Illuminate\Database\Eloquent\Builder as Query;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
abstract class EloquentRepository
{
/**
* @var Model
*/
private $model;
public function __construct(Model $model)
{
$this-... | true |
19790c8fbd7be6c07c13a51dcff2a6cec0e3eb8c | PHP | carolusDev/ynov_2020_stephi_place_RE_J | /website/1_connexion_utilisateur.php | UTF-8 | 4,493 | 2.84375 | 3 | [] | no_license | <?php
session_start();
try {
$bdd = new PDO('mysql:host=127.0.0.1;dbname=stephi_place_bd', 'root', ''); #Jonathan et moi n'avons pas utilisé le même procédé de connexion à la database, c'est pour celà que selon les pages le procédé de connexion n'est pas le même
} catch (\Exception $e) {
die("erreur :" .$e->getMes... | true |
9df3db45fbf4c8159028e48596528ce8ddbf1faf | PHP | srowen26/GItKantinProject | /app/Http/Controllers/API/ApiUserController.php | UTF-8 | 2,900 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\MasterUser;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class ApiUserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Respon... | true |
81b180c84de61c9e16f11bbf3afac90052eea3b7 | PHP | adriadoz/performance-php | /share/www/html/src/Domain/Model/Image.php | UTF-8 | 968 | 3.078125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Performance\ImageLoader\Domain\Model;
final class Image
{
private $id;
private $name;
private $file_name;
private $description;
private $tags;
public function __construct(string $id, string $name, string $file_name, string $description, array $tags)
... | true |
991f7e2db3fb912714206e3ffc5220f01dfab3ac | PHP | Darkbelg/PizzaWebshop | /Entities/Straat.php | UTF-8 | 1,121 | 3.265625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: cyber09
* Date: 11/04/2017
* Time: 11:44
*/
class Straat
{
private static $idMap = array();
private $id;
private $straat;
private $huisnummer;
/**
* Straat constructor.
* @param $id
* @param $straat
* @param $huisnummer
*/
public function __construct($id,... | true |
75eb9c6c67f53cdee193e5f4744bae1d306a5b26 | PHP | rkouamkamdem/prado-demos | /protected/pages/users/ReadUser.php | UTF-8 | 2,211 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: romeo
* Date: 22/02/19
* Time: 11:47
*/
use Prado\Web\UI\TPage;
class ReadUser extends TPage
{
private $_user;
/**
* lis les données du message.
* cette méthode est appelée lors de l'initialisation de la page
* @param mixed param : paramètres de l'... | true |
d3ab38b38694a2ac90863464768d01f17db2fc82 | PHP | BavarianKnight/chevere | /tests/Message/MessageTest.php | UTF-8 | 2,165 | 3 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
/*
* This file is part of Chevere.
*
* (c) Rodolfo Berrios <rodolfo@chevere.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chevere\Tests\Message;
use Chevere\Components\Message\Mes... | true |
504b3de0e44c01955f53413db26cb3a3328981f3 | PHP | uscms/OpenWeixin | /src/inc/CurlRequest.php | UTF-8 | 4,378 | 2.859375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Jone
* Date: 2019/7/12
* Time: 20:07
*
*/
namespace Jonexyz\inc;
// Curl请求封装
class CurlRequest
{
/**
* 发送post请求
*
* @param $array 请求的参数
* @param $timeoutLimit 执行超时时间
* @param $connectTimeoutLimit 连接超时时间
* @return mixed
*/
public... | true |
67a3a5b24bd02d3a445c91c02a7ad90f874361f7 | PHP | lgmarcosxavier/AlertaWeb | /app/Models/UsuarioModel.php | UTF-8 | 2,341 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php namespace App\Models;
use CodeIgniter\Model;
class UsuarioModel extends Model
{
protected $DBGroup = 'default';
protected $table = 'usuario';
protected $primaryKey = 'id';
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $allowedFields = [
... | true |
7fcb1fd82cee79bd8ccdcc6be2ec2d7042eeb7a5 | PHP | lbogcn/www | /app/Console/Commands/AdminInstall.php | UTF-8 | 1,938 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use App\Components\RbacNode;
use App\Models\Admin;
use App\Models\AdminNode;
use App\Models\AdminRole;
use Illuminate\Console\Command;
class AdminInstall extends Command
{
protected $signature = 'admin:install';
protected $description = '管理后台-初始化安装';
/** @var Rbac... | true |
0c71cb1bc2fe44c29c90052126bb575782498d9f | PHP | NTRsolutions/brandbucket | /brandbucket/forgotpassword.php | UTF-8 | 647 | 2.546875 | 3 | [] | no_license | <?php
//require 'PHPMailerAutoload.php';
// $mail = new PHPMailer();
// $mail->setFrom('jahidrahmanragib@g,ail.com', 'BrandBucket');
// $mail->addAddress($_REQUEST['send_email'], $_REQUEST['username']);
// $mail->Subject = 'First PHPMailer Message';
// $mail->Body = 'Hi! This is my first e-mail sent through PHPMai... | true |
a66732cb4ca3680fa4dce97c1a2f6dac45a71b25 | PHP | shubhamkaundal25/sample | /app/Helpers/helpers.php | UTF-8 | 1,428 | 3.21875 | 3 | [
"MIT"
] | permissive | <?php
function SendTextMessage($number,$message)
{
$apiKey = urlencode('NTTMP5irf+Q-fx6J2bELOuFa0pM0rwT6yQ7k0MZo6r ');
// Message details
$numbers = '7696763111';
$sender = urlencode('ARIESH');
$message = rawurlencode($message);
// $numbers = implode(',', $numbers);
// Prepare data for POST request
$dat... | true |
b733092c43200716233f4df5a2464527830e71c8 | PHP | jelojavier05/WEBDEV_PetClinic | /database/migrations/2016_03_27_132553_create_pet_table.php | UTF-8 | 1,106 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePetTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tblpet', function (Blueprint $table) {
$table-... | true |
7656f75034aba97e06e073e23cb8cc4a1080b3d4 | PHP | maximebeaudoin/laravel-api-example | /app/Domain/User/Entity/User.php | UTF-8 | 1,645 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Domain\User\Entity;
use App\Core\Entity\Entity;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as Auth... | true |
802a6d6a0c11fda5c91f7280a137eae52aa15673 | PHP | 68publishers/event-dispatcher-extra | /src/EventDispatcherAwareTrait.php | UTF-8 | 1,500 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace SixtyEightPublishers\EventDispatcherExtra;
use RuntimeException;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
trait EventDispatcherAwareTrait
{
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|NULL */
protected $eventDispatcher;
/**... | true |
ebd0d2585f3c827c58c287af3f3cd8fba6dc0aff | PHP | lukeocodes/zpg-rtf-php | /src/Objects/PafAddressObject.php | UTF-8 | 2,065 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
namespace ZpgRtf\Objects;
/**
* Royal Mail's addressing scheme is known as Postcode Address File (PAF). Many third-party systems use this to
* facilitate the selection of an address from an initial postcode. Per Royal Mail's specification: "Each address on
* PAF® has an eight-digit number associated with it ... | true |
12f8dbe31e4da6e1de2685353f75e9c9fc6d1c70 | PHP | xiaolisang/mymvc.github.io | /core/lib/config.php | UTF-8 | 1,356 | 2.953125 | 3 | [] | no_license | <?php
namespace core\lib;
class config
{
/**
* 1.判断文件是否存在
* 2.判断配置时候存在
* 3.缓存配置信息
*/
//定义数组缓存配置
static public $conf=array();
//获取配置某一项信息
static public function get($name,$file)
{
//首先判断文件是否缓存
if (isset(self::$conf[$file])) {
//如果文件已缓存
return self::$conf[$file][$name];
}else{
//p(1);
... | true |
d55f0cfb48d6fae1238fcc62429f5a448afa8965 | PHP | nicolas7763/game | /index.php | UTF-8 | 1,508 | 3.453125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Основы php</title>
</head>
<body>
<h1>Угадай число от 1 до 100</h1>
<?php
if (isset($_POST["send"])) {//если данные переданы
$number= $_POST["number"];//пишем данные в переменную из текстового поля формы
$compDice= $_POST["compDice"];// пишем в переменную данные из скры... | true |
6369aa20b697faed4a01c6b69950d3938bba2cee | PHP | waeffs/krypto | /app/modules/kr-trade/src/Balance.php | UTF-8 | 70,284 | 2.546875 | 3 | [] | no_license | <?php
class Balance extends MySQL {
private $User = null;
private $App = null;
private $Type = null;
private $BalanceTypeList = ['practice', 'real'];
private $BalanceList = null;
private $BalanceLimit = [
'practice' => 10000,
'real' => 500000000000
];
private $BalanceData = null;
private ... | true |
96011e8289f6d1ac0b9725d3e1905cfe35155286 | PHP | Jessichan/Proyecto-Integrado | /PHP/editarcompra.php | UTF-8 | 3,661 | 2.703125 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Modificar</title>
<link rel="stylesheet" type="text/css" href="css/editarcliente.css ">
<style>
span {
width: 100px;
display: inline-block;
}
</style>
</head>
<body>
<?php
inclu... | true |
b354348fc16ed5ab8fde5197357d198142b5ee2e | PHP | oliverrier/PHP | /Pokemon/pokemon/carapuce.php | UTF-8 | 491 | 3.515625 | 4 | [] | no_license | <?php
class Carapuce extends Pokemon
{
public function __construct ($level, $life = null)
{
$name = 'Carapuce';
$max_life = 100 + 9 * $level;
$current_life = $life ?? $max_life;
$type = 'eau';
$strength = 10 + 2 * $level;
... | true |
b2dc0fff62e20e5eca430f95902ce153c8ac91c6 | PHP | jonathanbasuki/crud-php-mysqli | /edit-siswa.php | UTF-8 | 2,929 | 2.578125 | 3 | [] | no_license | <?php
include('koneksi.php');
$id = $_GET['id'];
$query = "SELECT * FROM tbl_siswa WHERE id_siswa = $id LIMIT 1";
$result = mysqli_query($connection, $query);
$row = mysqli_fetch_array($result);
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta na... | true |
2ca15997597b2e812f9335328e7ef1440ef41ed6 | PHP | arimacdev/php-sigfox-client | /src/Request/DeviceTypesCreate.php | UTF-8 | 1,549 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace Arimac\Sigfox\Request;
use Arimac\Sigfox\Request;
use Arimac\Sigfox\Model\DeviceTypeCreate;
use Arimac\Sigfox\Serializer\ClassSerializer;
use Arimac\Sigfox\Validator\Rules\Required;
use Arimac\Sigfox\Validator\Rules\Child;
/**
* Create a new device type
*/
class DeviceTypesCreate extends Request
{
... | true |
31a2de1e25a7b7437e01d22791c406137b88f392 | PHP | charoenlap/mhd | /application/models/Specimen_model.php | UTF-8 | 3,207 | 2.640625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*
* Model Specimen_model
*
* This Model for ...
*
* @package CodeIgniter
* @category Model
* @author Setiawan Jodi <jodisetiawan@fisip-untirta.ac.id>
* @link https://github.com/setdjod/myci-extension/
* @param ...
* @ret... | true |
c0f28887c3fb8aa380264c9c8bb41ef76d5fc4a7 | PHP | arabhossain/xpeedOOPTest | /core/database/Database.php | UTF-8 | 3,778 | 2.90625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: arab
* Date: 11/12/19
* Time: 1:54 AM
*/
namespace DB;
use Xpeed\App;
use Xpeed\Exceptions;
class Database
{
private static $me;
public $db;
public $host;
public $name;
public $username;
public $password;
public $queries;
public $result;
... | true |
81c3b0060e5731f17c37fbaeab8275629264f934 | PHP | hoainamvungtau/webcrowloer | /index.php | UTF-8 | 2,522 | 2.515625 | 3 | [] | no_license | <?php
include("function/simple_html_dom.php");
$url = '';$text = '';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap 3 Typography</title>
<link rel="stylesheet" href="public/css/bootstrap.min.css">
<link rel="stylesheet" href="public/css/bootstrap-theme.min.css">
<... | true |
059888606b1344f27e860dd80b61b9443b8a8727 | PHP | windrunner414/easyswoole | /src/Core/Utility/Validate/ErrorList.php | UTF-8 | 828 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: yf
* Date: 2018/1/3
* Time: 下午1:04
*/
namespace EasySwoole\Core\Utility\Validate;
class ErrorList
{
private $error = [];
function hasError():bool
{
return !empty($this->error);
}
function getError($filed):?ErrorBean
{
if(isset($t... | true |
13635d08b50981b7f8f9dd0f3681ed9514bd6fa4 | PHP | AnsariAbdul4/ecommerce | /app/Http/Controllers/UserController.php | UTF-8 | 1,070 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use App\Models\User;
use App;
class UserController extends Controller
{
// This is my Controller with stub
function login(Request $r){
// App::setlocale('ur');
// $pass = Hash::... | true |
ff1d90e32508e8f3f79d8c2c25d186eb41b8ea50 | PHP | DominykasJurkus/CoreTask | /API/routes/create_order.php | UTF-8 | 1,021 | 2.6875 | 3 | [] | no_license | <?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
# Create new order
$app->post('/orders', function (Request $request, Response $response) {
$user_id = $_POST['user_id'];
$title = $_POST['title'];
$email = $_POST['email'];... | true |
cfe025baea8e9231842d0443bfcaab9f06b81176 | PHP | aidanxyz/use-fw.local | /controllers/itemController.php | UTF-8 | 1,215 | 2.578125 | 3 | [] | no_license | <?php
class itemController
{
public function actionCreate()
{
if(isset($_POST['item']))
{
$item = new ItemModel;
$filter = new filter($item->validationRules, "item");
if($filter->isWrong()) {
out::writeViewTo("create", "content", $filter->errors);
}
else
{
$stmt = db::... | true |
e0cfbc36863e02c2d6aab5580e9d6241c41db42e | PHP | gatesbin/blog | /vendor/tech-soft/laravel/src/Api/ApiAppUtil.php | UTF-8 | 2,559 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace TechSoft\Laravel\Api;
use Carbon\Carbon;
use TechOnline\Laravel\Dao\ModelUtil;
use TechOnline\Utils\RandomUtil;
class ApiAppUtil
{
public static function loadByAppId($appId)
{
return ModelUtil::get('api_app', ['appId' => $appId]);
}
public static function load($id)
{
... | true |
59e891bfc240a0a050f0197a64b5208cbf818be4 | PHP | cupin06/parking | /app/Http/Middleware/OAuth.php | UTF-8 | 959 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Pocket\Http\Middleware;
use Closure;
use OAuth2\HttpFoundationBridge\Request as OAuthRequest;
use OAuth2\HttpFoundationBridge\Response as OAuthResponse;
class OAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
... | true |
2ddf881154b9a6b6124fea9bcc04281fdc9cf708 | PHP | mahsafrhni/MyPhpPractices | /login.php | UTF-8 | 1,360 | 2.953125 | 3 | [] | no_license | <?php
if (isset($_POST['email']) && isset($_POST['password'])) {
// validation
function validateEmail($x)
{
if (strlen($x) == 0)
return false;
$pattern = "/[a-zA-Z0-9\_\.]+\@[a-zA-Z0-9]+\.[a-zA-Z]{3}/";
if (strlen(preg_replace($pattern, "", $x)) == 0)
return ... | true |
df50c917fddcc231922ca5734530634f932c045e | PHP | 21harley/Parcial-2-prgramacion-II | /registro.php | UTF-8 | 1,160 | 3.046875 | 3 | [] | no_license | <?php
if($_SESSION["game"]==11){
/*cargo los datos del jugador */
$name=$_SESSION["nameJ"];
$time=$_SESSION["time"];
$n=$_SESSION["valorN"];
$ganadores=$_SESSION["ganadores"];
/*exite algun ganador en N matris? */
if(array_key_exists($n,$ganadores)){
/*si existe compruebo si hay un m... | true |
2a2a71a1cb96d58dcf9a891f04c4498771ce4c75 | PHP | CPforSDUT/cloudPrinter | /fileControl/getFiles.php | UTF-8 | 1,354 | 2.703125 | 3 | [] | no_license | <?php
session_start();
if(isset($_SESSION['user']) == false){
header("location:/index.php");
}
function unescape($str) {
$ret = '';
$len = strlen ( $str );
for($i = 0; $i < $len; $i ++) {
if ($str [$i] == '%' && $str [$i + 1] == 'u') {
$val = hexdec ( substr ( $str, $i + 2, 4 ) );
... | true |
85f2973f758ea3991f08c5d37e7508c79916ec91 | PHP | HZ-HBO-ICT/2nd-year-studentproject-motify | /app/Models/Preferences.php | UTF-8 | 1,676 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Models;
use DateTime;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
/**
* Class Preferences
*
* @method static find(int $int)
* @method static create(array $array)
* @method static delete(int $id)
* @method static findOrFail(int $int)
* @me... | true |
5e62413cb8ebb5854f322f7e2faadb9130df3ad5 | PHP | nwisdom10/finalproject | /simpleforum/userprofile.php | UTF-8 | 3,570 | 2.578125 | 3 | [] | no_license | <?php
include('./header.php');
include('./includes/db_conn.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login System</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/boot... | true |
bd7c1710b53d972461dcdc2a1ac300161adcf81a | PHP | JuniorLima22/Curso-PHP7-Hcode-v2 | /assets/dao/class/Usuario.php | UTF-8 | 4,614 | 3.234375 | 3 | [] | no_license | <?php
class Usuario {
private $idusuario;
private $deslogin;
private $dessenha;
private $dtcadastro;
public function getIdusuario(){
return $this->idusuario;
}
public function setIdusuario($value){
$this->idusuario = $value;
}
public function getDeslogin(){
return $this->deslogin;
}
... | true |
451ea15288fcc25f4a54c546285fccb7174d13a2 | PHP | PtrTn/battlerite-sdk | /src/PtrTn/Battlerite/Exception/FailedRequestException.php | UTF-8 | 511 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace PtrTn\Battlerite\Exception;
use Exception;
use GuzzleHttp\Exception\ClientException;
use InvalidArgumentException;
class FailedRequestException extends Exception
{
public static function createForException(ClientException $e): self
{
return new self($e->getMessage());
}
publi... | true |
feb3037267852ae3ce9481ac9d16a3dcc869d6aa | PHP | laihott/AutoMeta | /gallery/search.php | UTF-8 | 929 | 2.84375 | 3 | [] | no_license | <?php
$host = 'localhost';
$username = 'admin';
$passwd = 'Q2werty1234';
$dbname = 'autometa';
$conn = new mysqli($host, $username, $passwd, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if (isset($_POST['searchbtn'])) { //Check if search button has been pressed
... | true |
a15eec805e8d0d5c58e284ae9efd90071e33bad8 | PHP | SmoothJeor/Randown | /src/Parser/Nodes/ArgumentNode.php | UTF-8 | 1,039 | 3.109375 | 3 | [] | no_license | <?php declare(strict_types = 1);
namespace Sbludufunk\Randown\Parser\Nodes;
use Sbludufunk\Randown\Tokenizer\Tokens\WhitespaceToken;
class ArgumentNode implements Node
{
private $_whitespaceBefore;
private $_contents;
private $_whitespaceAfter;
public function __construct(
?WhitespaceToken... | true |
31aee2fb05f31c77ac018845830a347229161926 | PHP | LegendZhu/geekedu | /src/Site/LessonBundle/Model/Type.php | UTF-8 | 2,153 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of LessonType
*
* @author lichnow
*/
namespace Site\LessonBundle\Model;
use Site\CoreBundle\Interclass\Model as BaseModel;
class Type extends BaseModel
{
public function getList()
{
... | true |
b27a254d55865039641b545ab91095aa0bd10aba | PHP | PatrickRose/invoice-generation | /src/Conversion/LatexConverter.php | UTF-8 | 3,802 | 3.03125 | 3 | [] | no_license | <?php
namespace PatrickRose\Invoices\Conversion;
use PatrickRose\Invoices\Exceptions\RuntimeException;
use PatrickRose\Invoices\Invoice;
use PatrickRose\Invoices\MasterInvoice;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;
use Twig\TemplateWrapper;
class LatexConverter extends AbstractTwigConverter
{
... | true |
af4db58478aa89820604c1d6e9f5bc6285a8ed2f | PHP | IngJuanCarlos/hotel | /app/Library/Repository/UsuarioEloquent.php | UTF-8 | 898 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Juan Carlos
* Date: 11/12/2015
* Time: 03:11 PM
*/
namespace Library\Repository;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Auth;
use Library\Interfaces\UsuarioInterface;
class UsuarioEloquent implements UsuarioInterface
{
protected $usua... | true |
32a35ea8100a4bdfe272ffa40a29a49442432380 | PHP | Mganga85/CPS-276-Assignments | /03/ConsumeArray.php | UTF-8 | 897 | 3.03125 | 3 | [] | no_license | <?php
$webContent = file_get_contents("http://52.32.53.208/VendArray.php");
// decodes url
$data = urldecode($webContent);
$jString = json_encode($data); // covert decoded data to json String
//converts decoded URL to json String
$dataArray = json_decode($data,true);
echo"<html>";
echo"<style>";
echo"table,th,td,tr... | true |
fb9574b2d854254825a2dad1fabdbc38ff65f91d | PHP | ilyasidorchik/mospolytech-homework-dogruns-api | /api/v1/playgrounds/nearest/index.php | UTF-8 | 5,187 | 2.6875 | 3 | [] | no_license | <?php
header('Content-type: application/json');
$ini = parse_ini_file('../../../../app.ini', true);
$link = mysqli_connect($ini[database][host], $ini[database][user], $ini[database][password], $ini[database][name]) or die('Ошибка');
$content = [];
$successMessage = false;
$resultField = 'error';
$resultMessage = [];... | true |
c6a2e65f39dc87969315947fba191beb8f9422c4 | PHP | alvaroolt/alvaroolt.github.io | /dwes/curso1920/basesDeDatos/biblioteca/pages/annadirLibro.php | UTF-8 | 2,004 | 3.0625 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<header>
<?php include "../includes/header.php"; ?>
</header>
<?php
include("../configuracion/config_dev.php");
... | true |