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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
645e3b0208d48c554c682efc8c775bcd5f5f3dc3 | PHP | checkout/checkout-sdk-php-beta | /lib/Checkout/Four/FourStaticKeysSdkCredentials.php | UTF-8 | 1,453 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace Checkout\Four;
use Checkout\AuthorizationType;
use Checkout\CheckoutAuthorizationException;
use Checkout\PlatformType;
use Checkout\SdkAuthorization;
class FourStaticKeysSdkCredentials extends AbstractStaticKeysSdkCredentials
{
/**
* @param string|null $secretKey
* @param string|null $... | true |
2c8727c1808532a3486269a3ec5fbcc768ed3f38 | PHP | greenBird321/test | /app/Services/HT_clash/UserService.php | UTF-8 | 2,302 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* 末世 用户相关.
* User: lihe
* Date: 2017/5/23
* Time: 上午11:03
*/
namespace Xt\Rpc\Services\HT_clash;
use Xt\Rpc\Core\Service;
use Xt\Rpc\models\Utils;
class UserService extends Service
{
private $utilsModel;
public function __construct($di)
{
parent::__construct($di);
$this-... | true |
188b9efb465e1c0b2c5f745ce9892fb5af0744c1 | PHP | AnderGonzalezA/laravel_examen_eval1 | /app/Http/Requests/ValidarFormulario.php | UTF-8 | 1,390 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidarFormulario extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Ge... | true |
045be6c91cd5bb4695e4936826df6b4289f3526b | PHP | hungneox/digia-graphql-example | /app/GraphQL/MutationResolver.php | UTF-8 | 965 | 2.6875 | 3 | [] | no_license | <?php
namespace App\GraphQL;
use App\Models\Channel;
/**
* Class MutationResolver
* @package App\GraphQL
*/
class MutationResolver extends AbstractResolver
{
/**
* @param $_
* @param array $args
* @return array
*/
public function resolveAddChannel($_, array $args)
{
/** @no... | true |
46dc9fffc8f09a5806bc321e1935f0ac642f8ddf | PHP | EvonDu/php-easy-mvc | /core/Models.php | UTF-8 | 5,709 | 2.90625 | 3 | [] | no_license | <?php
namespace core;
class Models{
//region 模型属性
//设置表名
static public function getTable(){
return "";
}
//设置主键名
static public function getPk(){
return "id";
}
//属性名设置
static public function attributeLabels()
{
return array();
}
//获取属性名
st... | true |
c8b54a10a03e3c8bca6cdedc9085ee1e68b2457c | PHP | DPlugins-Archive/artifact | /src/Utils/DB.php | UTF-8 | 1,480 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace AncientWorks\Artifact\Utils;
use Exception;
use Medoo\Medoo;
use wpdb;
/**
* @package AncientWorks\Artifact
* @since 0.0.1
* @author ancientworks <mail@ancient.works>
* @copyright 2021 ancientworks
*/
class DB
{
private static $instances = [];
private static $medoo;
private static $wpdb;
... | true |
0743dcd68c60ff2e37a6a329386cc19afbba9a19 | PHP | isoundy000/mengchen_sz_game_api | /app/Models/Statistics.php | UTF-8 | 512 | 2.75 | 3 | [] | no_license | <?php
/**
* type 1 当前在线人数
* type 2 当前最高人数
* type 3 游戏中的人数
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Statistics extends Model
{
public $timestamps = false;
protected $table = 'statistics';
protected $primaryKey = 'type';
//type 1 当前在线人数
//type 2 当前最高人数
... | true |
4e994d34ab4bc9493c41f7f47b951dfc7f91784f | PHP | ninty9notout/silverstripe-core | /code/adminpanels/HangarAdmin.php | UTF-8 | 951 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
class HangarAdmin extends ModelAdmin {
static $url_segment = 'hangar';
static $menu_title = 'Hangar';
/**
* An array of models to manage that gets populated via config files
* @var array
*/
static $managed_models = array(
'Video' => array(
'title' => 'Videos'
)
);
public static function add_... | true |
9a7d4564974ef57eb3660c923854f7ed32dd5a90 | PHP | dariadryha/Piscine_PHP | /Day01/ex08/ft_is_sort.php | UTF-8 | 131 | 2.515625 | 3 | [] | no_license | <?php
function ft_is_sort($arr)
{
$mas = $arr;
sort($mas);
if ($mas == $arr)
return true;
else
return false;
}
?>
| true |
23e3631f70ecdd3bb978bb0dc0dedb4344650ad6 | PHP | sigmonsays/homeflex | /inc/functions.php | UTF-8 | 6,346 | 2.703125 | 3 | [] | no_license | <?
if (!defined("VALID")) die;
require("$localPath/inc/toolbar.php");
function getmicrotime() {
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
function getInclude($inc) {
extract($GLOBALS);
ob_start();
require($inc);
$content = ob_get_contents();
ob_end_cl... | true |
b1bacfdd5857ce4bd3013696475ae3bb7e1ab49a | PHP | rabiloo/skeleton-php-package | /undo-configure.php | UTF-8 | 372 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env php
<?php
/**
* It runs a command and prints the output
*
* @param string command The command to run.
*/
function run(string $command): void
{
$out = shell_exec($command);
echo ">>> " . $command . PHP_EOL;
echo trim((string) $out);
}
run('git reset HEAD --hard');
run('git clean -f -d')... | true |
e2c5343e4bb36d5a926f5195cd0d937b09a90b44 | PHP | akashg364/sccm | /common/components/InventoryApi.php | UTF-8 | 13,997 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\components;
use Yii;
/*
@Usage :: Yii::$app->inventoryApi->functionName(param1,param2..)
*/
Class InventoryApi extends \yii\base\Component {
public static function getUrl($route) {
return Yii::$app->params['INVENTORY_API_URL'] . $route;
}
/**
* Autrher: Arun Yada... | true |
38b759300c995e10fc9115f2aff783c6d58d45b9 | PHP | ericm1000/zenyan097 | /eLib/loginlib.php | UTF-8 | 2,544 | 2.734375 | 3 | [] | no_license | <?php
// Version: 1.10
// Date: 2012-02-10
// Initial Writing: Norm Zemke
// Purpose: Misc lib functions useful for login dev.
//
// History/Customizations:
/*
09/28/2012 E... | true |
ffc72cfac0aa6c778fe5414879bfd9672e8d51db | PHP | hengkysanjaya123/Android_Projects_Practice | /soal/shop/vendor/pandawa/pandawa/src/Component/Ddd/Specification/SpecificationRegistry.php | UTF-8 | 2,508 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the Pandawa package.
*
* (c) 2018 Pandawa <https://github.com/bl4ckbon3/pandawa>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Pandawa\Component\Ddd\Specificat... | true |
bc4aab9256cae3a70436e1e6150863ee3f44172e | PHP | alaatv/ad | /app/Traits/adTrait.php | UTF-8 | 297 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Traits;
trait adTrait
{
protected function makeAdForeignId(int $sourceId, int $itemId , string $itemType=null):string
{
$id = 's'.$sourceId;
if(!is_null($itemType)){
$id .= '_'.$itemType;
}
return $id.'_'.$itemId;
}
}
| true |
416d8e9144b0788dee834ab4ce0e662ca1cfb099 | PHP | nairim22/practica_laravel_mirian_flores | /app/Http/Controllers/Api/ModoPagoController.php | UTF-8 | 1,279 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Api;
use App\Http\Requests\Api\ModoPagos\ModoPagoStoreRequest;
use App\Http\Requests\Api\ModoPagos\ModoPagoUpdateRequest;
use Illuminate\Http\Request;
use App\Http\Controllers\Api\BaseController;
use App\Models\ModoPago;
class ModoPagoController extends BaseController
{
//L... | true |
7b32081c0944d0c5161f74c825119feb1cce023d | PHP | andz89/student_IS | /app/controllers/Classes.php | UTF-8 | 3,656 | 2.671875 | 3 | [] | no_license | <?php
class Classes extends Controller {
public function __construct(){
$this->classModel = $this->model('Section_class');
if(!isLoggedIn()){
redirect('users/login');
}
}
public function index(){
// Get posts
$class = $this->classModel->getClasses();
... | true |
4a056f4733090edf745166c52398c998e66c520d | PHP | jjxuhude/vue_thinkphp | /Lib/client.php | UTF-8 | 2,354 | 2.96875 | 3 | [] | no_license | <?php
require_once 'Oauth.class.php';
class Client{
/**
* 鉴权类对象
* @var object
*/
static private $Oauth = null;
/**
* 初始化接口
+ ---------------------------------------------------------------------
* @param string $appKey
* @param string $appSecret
+ ----------------------------------------------... | true |
633e2664c71dae5f62c5a3eedfce6c8fb8e82fa6 | PHP | ilkisha/xs_library | /App/Template/books/allBooks.php | UTF-8 | 1,634 | 2.671875 | 3 | [] | no_license | <?php /** @var \App\Data\BookDTO[] $data['books'] */ ?>
<?php /** @var \App\Data\UserDTO $data['user'] */ ?>
<h1>All Books</h1>
<?php if($data['user']->getIsAdmin() == '1'): ?>
<a href="createBook.php">Create book</a><br/>
<?php else: ?>
<a href="myBooksCollections.php">My Books</a><br>
<?php endif; ?>
<a href="myPro... | true |
03e86de2d02b92c95d493a94085471690945d5ed | PHP | elwan7dev/eCommerce-Shop | /includes/functions/func.php | UTF-8 | 9,036 | 2.96875 | 3 | [] | no_license | <?php
function getTitle()
{
global $pageTitle; // VIP: before this line func doesn't work
if (isset($pageTitle)) {
echo $pageTitle;
} else {
echo 'title';
}
}
/**
* getAllRows() function v2.0 -
* get ultimate function without INNER JOIN
* @param selectCols $select = col to select... | true |
539d6492d37554dca1b4f6201c38bc3d7ef082d4 | PHP | FrederickPullen/Sfera-Dev-RC | /protected/components/DateTimeHelper.php | UTF-8 | 10,851 | 2.953125 | 3 | [] | no_license | <?php
class DateTimeHelper
{
/**
* Clone array of dates objects
* @param array $dates Array of dates
* @return array
*/
public static function cloneArrayOfDates(array $dates)
{
$result = array();
foreach ($dates as $date) {
$result[] = clone $date;
}
... | true |
1344f32c043a32b9c06bf9f1fcb2a251b09191a1 | PHP | manolf/advent | /admin.php | UTF-8 | 4,198 | 2.71875 | 3 | [] | no_license | <?php
ob_start();
session_start();
require_once 'actions/db_connect.php';
// if session is not set this will redirect to login page
if (!isset($_SESSION['admin']) && !isset($_SESSION['user'])) {
header("Location: index.php");
exit;
}
if (isset($_SESSION["user"])) {
header("Location: home.php");
exit;
}... | true |
7e393028a57eb884e07cef5c7ecc5bfb72c3ce96 | PHP | Nitneuk-zz/amazon-mws-orders-2011 | /src/MarketplaceWebServiceOrders/Model/Money.php | UTF-8 | 3,508 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace AmazonMwsOrder\V2011;
/**
* PHP Version 5
*
* @category Amazon
* @package MarketplaceWebServiceOrders
* @copyright Copyright 2008-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* @link http://aws.amazon.com
* @license http://aws.amazon.com/apache2.0 Ap... | true |
2a351d08e5ebaa753b23527cfb4b73d8398c38b5 | PHP | lnlingyuan/IMI | /src/Server/WebSocket/Parser/DataParser.php | UTF-8 | 589 | 3 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Imi\Server\WebSocket\Parser;
use Imi\RequestContext;
/**
* 数据处理器
*/
class DataParser
{
/**
* 处理类名
* @var string
*/
protected $parserClass = JsonObjectParser::class;
/**
* 编码为存储格式
* @param mixed $data
* @return mixed
*/
public function encode($data)
{
return RequestContext::getS... | true |
c4c53483162d87e23c9fc46c4f2c32ad36093582 | PHP | rgomeztinoco/poo_uber | /PHP/Car.php | UTF-8 | 728 | 3.5 | 4 | [
"MIT"
] | permissive | <?php
class Car {
public $id;
public $license;
public $driver;
protected $passenger;
public function __construct($license, Account $driver) {
$this->license = $license;
$this->driver = $driver;
}
public function getPassenger() {
return $this.passenger;
}
public function setPassenger($p... | true |
075d2ec20b468ffd8e70bd649d1d138f07f78cc2 | PHP | inabahtrg/KalturaServerCore | /plugins/virus_scan/lib/api/KalturaVirusScanEngineType.php | UTF-8 | 285 | 2.515625 | 3 | [] | no_license | <?php
/**
* @package plugins.virusScan
* @subpackage api.objects
*/
class KalturaVirusScanEngineType extends KalturaDynamicEnum implements VirusScanEngineType
{
/**
* @return string
*/
public static function getEnumClass()
{
return 'VirusScanEngineType';
}
} | true |
56fa07ad7c3577068b71cdfb4f177d0784bfc4cd | PHP | AnthonyJost/TPI_2019 | /Code/Web/model/workinggroupsManager.php | UTF-8 | 5,194 | 2.546875 | 3 | [] | no_license | <?php
// Get the working groups of an event
function getWorkinggroups($idEvent){
require_once 'model/dbConnector.php';
$connexion = openDBConnexion();
$request = $connexion->prepare('
SELECT workinggroups.idWorkinggroups, workinggroups.Title, Cost
FROM bdd_satisfevent.WorkingGroups_has_Events
... | true |
e56c553eb81c399a0893ba0f34f7e14d0553b2b8 | PHP | abrahamdonostia/pCebanc | /app/Category.php | UTF-8 | 432 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
//Esto crea la relación uno a muchos
class Category extends Model
{
protected $table = 'categories';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'category_id', 'm... | true |
94ff847491ce3cac48b32a7d8febdc46183ecb73 | PHP | flashlaser/WeiXin_LoveToLove | /application/library/Comm/Weixin/Api/Request/.svn/text-base/Platform.php.svn-base | UTF-8 | 3,115 | 2.59375 | 3 | [] | no_license | <?php
/**
* openapi接口请求类
*/
class Comm_Weixin_Api_Request_Platform extends Comm_Weixin_Api_Request_Abstract {
public static $platform_api_server_name = "http://i.api.weibo.com";
public function __construct($url, $method = false) {
parent::__construct($url, $method);
}
/**
* 接口请求方法
... | true |
c7f228d4152cc76cff61ee646bc1ace98e5e076c | PHP | nikitonishe/GamesViewer | /components/Router.php | UTF-8 | 1,221 | 2.8125 | 3 | [] | no_license | <?php
class Router
{
private $routes;
public function __construct()
{
$this->routes = require(ROOT.'/config/routes.php');
}
private function getURI()
{
if(!empty($_SERVER["REQUEST_URI"]))
{
$uri = trim($_SERVER["REQUEST_URI"],'/');
}
return $uri;
}
public function run()
{
$uri = $this->g... | true |
7ee33f96074f5b175bf41852e9aa18bb14cb715b | PHP | iZaL/mgo | /src/Country/CountryRepository.php | UTF-8 | 1,996 | 2.609375 | 3 | [] | no_license | <?php namespace Acme\Country;
use Acme\Core\BaseRepository;
use Acme\Core\CrudableTrait;
use App;
use Auth;
use Country;
use Illuminate\Support\MessageBag;
use Session;
class CountryRepository extends BaseRepository {
use CrudableTrait;
public $defaultCountry = 'KW';
public $defaultCurrency = 'KWD';
... | true |
523b54b2e2c2610abe0bd4998983340d68482e64 | PHP | MCStreetguy/ComposerParser | /src/Service/AbstractClass.php | UTF-8 | 720 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
namespace MCStreetguy\ComposerParser\Service;
/**
* An improved standard class.
*/
abstract class AbstractClass extends IsThisEmpty
{
/**
* @see http://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members
*/
public function __get(string $name) : mixed
{
... | true |
2b4ebbfdbb9d079de0c8ba5d35e5d1ae44c9a46c | PHP | armanhv/ProyectoMultimedios2015 | /actions/mostrar_filtro_estereotipo.php | UTF-8 | 2,327 | 2.625 | 3 | [] | no_license | <?php
include_once ('.././Data/DataSitio.php');
if (isset($_POST['func'])) {
if (strcmp($_POST['func'], "estereotipo") == 0){
$_SESSION['estereotipo'] = $_POST['estereotipo'];
$da = new DataSitio();
$da->sitio_estereotipo();
$array_estereotipo = array();
if(!isset($_POST['Alajuela']) && !isset($_POST['... | true |
ca37909a03d2289a4ccde0418d91906eff8ef7cb | PHP | toverby/47924 | /karate_V2/create.php | UTF-8 | 4,386 | 2.90625 | 3 | [] | no_license | <?php
$page_title = 'Adminstration';
include ('manage.html');
// Check for form submission:
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
require ('connector.php'); // Connect to the db.
$errors = array(); // Initialize an error array.
if (empty($_POST['firstname'])) {
$errors[] = 'You forgot to enter your f... | true |
620322d2e89bcc279b11105bd7ab0a9f21bad887 | PHP | UofSC/imree-php | /imree_functions/source.razuna.php | UTF-8 | 4,999 | 2.6875 | 3 | [] | no_license | <?php
/** RAZUNA_INGEST
* This file searches the RAZUNA repository for CURATORS and pulls back data related to their SEARCH QUERY.
* CURATORS select the desired components they would like to bring to the IMREE DB and then they submit to
* INGEST this information into the IMREE MYSQL DB.
* @author Ron Brown
*/... | true |
902f361ffc17039f0c8c22431f0a129e0c3d6926 | PHP | seansisson/ARC-Projects | /Project4/login.php | UTF-8 | 1,794 | 2.75 | 3 | [] | no_license | <?php
session_start();
// Fields for obtaining CAS auth
$vhost_url = "http://10.0.0.10/login.php";
$cas_url = "https://sso.pdx.edu/cas/proxyValidate?ticket=" . $_GET['ticket'] . "&service=" . urlencode($vhost_url);
// Set URL to scrape
$ch = curl_init($cas_url);
// Execute curl retrieval, return page as a str... | true |
43093db4db9f4d0bcd617613736e1ced22099838 | PHP | virteom/bumperlane-api-client-php | /ApiClient/ApiClient.php | UTF-8 | 724 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Virteom\ApiClient\Php;
include_once('includes.php');
class ApiClient {
public static function Create($api, $clientId = MODERN_API_CLIENT_ID, $clientSecret = MODERN_API_CLIENT_SECRET, $baseUrl = MODERN_API_SITE_URL){
if($api === Api::TouchConvertV1){
return new TouchConvertV1($... | true |
0844448c273359d672f798b54e811004a3610dd3 | PHP | Irvyne/IIM_A2_REVIEWING | /array.php | UTF-8 | 485 | 2.796875 | 3 | [] | no_license | <?php
/**
* Created by Thibaud BARDIN (Irvyne)
* This code is under the MIT License (https://github.com/Irvyne/license/blob/master/MIT.md)
*/
$array = array(
'key1' => 'value1',
'key2' => 'value2',
'key3' => array(
'key3.1' => 'value3.1',
'key3.2' => array(
'key3.2.1' => 'val... | true |
5e1440e6b6d8967480fe3ecb376af3f7f04b3e8d | PHP | codeages/m3u8-toolkit | /src/Playlist.php | UTF-8 | 1,425 | 3.203125 | 3 | [] | no_license | <?php
namespace Codeages\M3U8Toolkit;
class Playlist implements \Iterator
{
private $segments = array();
private $age;
private $position = 0;
public function __construct(array $segments = array(), $age = null)
{
$this->segments = $segments;
$this->age = $age;
}
public func... | true |
bcbe954835af61d5e2ca472b250a86e012510f91 | PHP | boluijten3/BASALT_PAMsoftware | /htdocs/gino-pam/php_cm/modules/interface/converter/library/competence/ScoreConverter.class.php | UTF-8 | 4,714 | 2.703125 | 3 | [] | no_license | <?php
/**
* Description of ScoreConverter
*
* @author ben.dokter
*/
require_once('application/interface/converter/AbstractBaseConverter.class.php');
class ScoreConverter extends AbstractBaseConverter
{
const NOT_ALLOWED_DISPLAY_SCORE = '!';
static function display($score, $length = NULL, $empty = '-')
... | true |
849f54429bf9ed33ec16252731a01741584717b9 | PHP | phpnode/YiiUsers | /views/user/login.php | UTF-8 | 1,731 | 2.546875 | 3 | [] | no_license | <?php
/**
* Displays a form to allow the user to login
* @var ALoginForm $model The login form model
*/
?>
<h3>Login to your account</h3>
<h4 class="subheader">Please enter your email address and password to login to your account</h4>
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'login-form',... | true |
21a7e59097f4ba01533156e9ec6f6b9b81226ced | PHP | saracubillas/fizzBuzz | /entireKata.php | UTF-8 | 3,013 | 3.34375 | 3 | [] | no_license | <?php
namespace Kata\Tests;
class fizzBuzzTest extends \PHPUnit_Framework_TestCase
{
protected $fizzBuzz;
protected function setUp()
{
$this->fizzBuzz = new FizzBuzz();
}
/**
* @test
*/
public function it_should_return_the_same_number()
{
$this->assertSame($thi... | true |
25294eca94ddf690ca50d70d0ed8e1e2c9441efd | PHP | IlanMa/bootcamp_projects | /php/ninja_gold_game/index.php | UTF-8 | 1,565 | 2.578125 | 3 | [] | no_license | <?php
session_start();
if(!isset($_SESSION['gold'])){
$_SESSION['gold'] = 0;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Pimpin ain't easy</title>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="gold">
<h2>Your Gold</h2>
<div>
<?php
if(isset($_... | true |
752885edae048f73b91d2257454d81fbded5c364 | PHP | rgfmedia/rcjs | /admin/table-pig-stocks.php | UTF-8 | 2,885 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
if (isset($_GET['date'])) {
$getDate = $_GET['date'];
$sql = "SELECT * FROM pig_stocks WHERE date = '$getDate' ORDER BY driver DESC";
} else {
$sql = "SELECT * FROM pig_stocks WHERE date = '$date' ORDER BY driver DESC";
}
$result = mysqli_query($link, $sql);
$data = mysqli... | true |
be3b39bdd5ce0333599ae72d5b648d9c35180fc2 | PHP | PawelSzy/back-dexbook | /src/Repository/BookRepository.php | UTF-8 | 3,304 | 2.578125 | 3 | [] | no_license | <?php
namespace App\Repository;
use App\Entity\Author;
use App\Entity\Book;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Serializer\SerializerInterface;
/**
* @method Book|null find($id, $lockMode = null, $lockVersion =... | true |
2e48cfffe85cb7a6c3eb8ec65af71479391f3196 | PHP | Securiteru/ProiectITutor | /tema5/tema5.php | UTF-8 | 1,015 | 3.625 | 4 | [] | no_license | <!--PHP-->
<!---PHP Data Types-->
<!---PHP Strings-->
<!---PHP Numbers-->
<!---PHP Constants-->
<!---PHP Operators-->
<!--Orice fisier PHP are extensia php. Orice script php incepe cu tag-ul: < //?php si se termina cu tag-ul ?>, numai daca mai urmeaza cod html, daca este numai cod php nu este obligatoriu.-->
<!--Tema... | true |
1de472e693b1e4dfaf7355b959e7eb5d4a37ef13 | PHP | BacLuc/hitobito_connector | /src/Entities/EntityTrait.php | UTF-8 | 1,324 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: lucius
* Date: 28.02.17
* Time: 17:07
*/
namespace Entities;
trait EntityTrait
{
/**
* @param $data
* @return $this
* @throws \InvalidArgumentException
*/
public function populateFromData($data){
if(is_string($data)){
$o... | true |
60f6102712a26b72329c86fd2068aa0f6ec17892 | PHP | chentingting123/tp6_project | /tp6_object/app/admin/controller/User.php | UTF-8 | 3,729 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare (strict_types = 1);
namespace app\admin\controller;
use app\BaseController;
use think\Request;
use think\facade\View;
use app\common\model\User as UserModel;
class User extends BaseController
{
/**
* 显示资源列表
*
* @return \think\Response
*/
public function index(Request $reques... | true |
fc720ae14c0524611b7dd2eb15dfda3c4c03ac47 | PHP | mkostelcev/va_afl | /models/Flights/Suspensions/SuspensionProcess.php | UTF-8 | 334 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models\Flights\Suspensions;
/**
* VA AFL
*
* Suspensions Processing
* Interface
*
* @author Nikita Fedoseev <agent.daitel@gmail.com>
*
*/
interface SuspensionProcess
{
/**
* Start check flight to suspension
* @param \app\models\Flights $flight
* @return mixed
*/
... | true |
1f399d75324b490a066b5f2b359c0241ce3ac1c2 | PHP | jeremiahfernandezzzz/ffuf_webapp | /app/model/Task.php | UTF-8 | 1,596 | 2.984375 | 3 | [] | no_license | <?php
namespace ffuf\customer\project\app\model;
/**
* Task
*/
class Task
{
/**
* @var string|null
*/
private $task;
/**
* @var \DateTime|null
*/
private $createdAt;
/**
* @var \DateTime|null
*/
private $finishedAt;
/**
* @var int
*/
private... | true |
43a7945798d16a92c902515822b6cb8fb61b6221 | PHP | lisannej/vp | /EKSAM/peopledata.php | UTF-8 | 2,423 | 2.6875 | 3 | [] | no_license | <?php
require ("examheader.php");
require ("../config.php");
$database = "if20_lisanne_ja_1";
$genderfromdb="";
$maleteacherfromdb="";
$malestudentfromdb="";
$femalestudentfromdb="";
$femaleteacherfromdb="";
$entryexitfromdb="";
$occupationfromdb="";
$conn = new mysqli ($... | true |
2f4940725c4d5cd4ab32d0889fe63faa9a448a95 | PHP | LarissaLessa/DAW---Desenvolvimento-de-Tecnologias-WEB | /leitura-escrita-de-arquivo/escrita-de-arquivo/Escrita.Arquivo.php | UTF-8 | 497 | 2.65625 | 3 | [] | no_license | <?
echo "Escrita de Arquivos";
echo "<br><br>";
$arquivo = fopen("AlunosNovosExp.csv", "w") or
die("Não consegui abrir o arquivo, deu erro");
$linhaArquivo ="nome;email;matricula\n";
fwrite($arquivoSaida, $LinhaArquivo);
$linhaArquivo = "jose da silva;zedasilva@gamil.com;202175... | true |
5a7a231328754f7e5c9726d007ef35df34a1f0b4 | PHP | Harshana-Rathnayaka/Vehicle-Management-System-Flutter | /Backend/vms/api/deleteVehicle.php | UTF-8 | 1,102 | 3 | 3 | [] | no_license | <?php
require_once '../includes/dbOperations.php';
$response = array();
// check the method request
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// checking if all the values are being sent
if (isset($_POST['id'])) {
// getting the values to the variables
$vehicle_id = $_POST['id'];
... | true |
f2ba55ebbda1f4d98c5352fe8797c9a5b3498a08 | PHP | shuangzhu1/workspace | /srv/Services/Site/AreaManager.php | UTF-8 | 6,009 | 2.734375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User:ykuang
* Date: 2016/12/12
* Time: 16:55
*/
namespace Services\Site;
use Models\Site\AreaCity;
use Models\Site\AreaCounty;
use Models\Site\AreaProvince;
use Phalcon\Mvc\User\Plugin;
class AreaManager extends Plugin
{
/**
* @var AreaManager
*/
private st... | true |
d1cf35b1920a860bac8a0558f20f64829ee64332 | PHP | hudaahmedgithub/ecommerce-shop | /app/Models/Products/Review.php | UTF-8 | 1,209 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models\Products;
use App\Models\Products\Product;
use App\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Review extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable
*
* @var array
*/
pr... | true |
a7c7a90bf76b428e76ad3b6334ce1243403fd8da | PHP | olevare/Technotes | /html/fonction/ajoutcaracterise.php | UTF-8 | 727 | 2.5625 | 3 | [] | no_license | <?php
session_start();
$bdd = new PDO('mysql:host=localhost; dbname=Technotes; charset=utf8', 'root', '15361536');
// si c'est pour associé un mot-clé a un article
if(isset($_GET['billet']))
{
$req = $bdd->prepare('INSERT INTO CARACTERISE (MOT, ID_BILLET) VALUES(:MOT, :ID_BILLET)');
$req->execute(array('MOT' => $_POST[... | true |
d3c54be7c54e145c8105d4724c8241d9ae8a7c58 | PHP | huynhphuochai/php03 | /TranKhoa/Buoi5/SoSanhChuoi/xuly.php | UTF-8 | 480 | 2.625 | 3 | [] | no_license | <?php
try
{
$ch_1="";
$ch_2="";
$ketqua ="";
if(isset($_POST["ch_1"]) && isset($_POST["ch_2"]) )
{
$ch_1 = $_POST["ch_1"];
$ch_2 = $_POST["ch_2"];
}
$kq = strcmp($ch_1,$ch_2);
if($kq == 0)
$ketqua = "Hai chuỗi bằng nhau";
elseif($kq == 1)
$ketqua = "Chuỗi 1 l... | true |
10d4461c64c57dab64349219b982b45fb0460eee | PHP | ridaangoud/commerceClothes | /commerceClothes(client)/Model/Client.Model.php | UTF-8 | 4,549 | 2.9375 | 3 | [] | no_license | <?php
// inclure la classe model mere
require_once('Model.Model.php');
class ClientModel extends Model {
// chaque attribut correspond a une collone dans la table client
private $idClient ;
private $nom ;
private $email;
private $telephone ;
private $addresse;
private $ville;
private $civilite;
... | true |
7344a0f217180bd9886aedc485c4ef3210c00d87 | PHP | woutervandamme/dynWeb | /system/controller/Validator.php | UTF-8 | 1,099 | 3.109375 | 3 | [] | no_license | <?php
class Validator
{
public function isValidLength($key, $min = 1)
{
global $statusMessage;
$valid = true;
if (isset($_POST[$key])) {
if (strlen($_POST[$key]) < $min) {
$statusMessage[$key] = $key . " is minstens " . $min . " lang";
$valid =... | true |
93ab14bb77d473e71be60f310deb1f1e99f7b8c9 | PHP | TanelIsmael/PHPalused | /date/ülesanne 8.php | UTF-8 | 2,144 | 3.0625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: tanel.ismael
* Date: 29.01.2019
* Time: 11:20
*/
echo 'Ülesanne 8';
echo '<br>';
//Kuva kuupäev ja kellaaeg formaadis 20.03.2013 12:31
echo date('d.m.Y G:i', time());
echo '<br>';
//Kuva tänane eestikeelne nädalapäev, N: kolmapäev
$date = date('d.m.Y G:i', time());... | true |
f21e7c9d9040d0157f041f9e10e1014b39a22c14 | PHP | Codexshaper/laravel-database-manager | /src/Commands/DatabaseAdmin.php | UTF-8 | 2,188 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace CodexShaper\DBM\Commands;
use CodexShaper\DBM\Facades\Manager;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
class DatabaseAdmin extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signatur... | true |
d8dc469d4700686b3df19ff4d0e97e97f52c2d34 | PHP | carlojumagdao/sai-sis | /app/Http/Controllers/sessionController.php | UTF-8 | 5,729 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Session AS Session;
use DB;
use Validator;
use Redirect;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class sessionController extends Controller
{
public function index(){
$result = DB::select('SELECT s.intSesId, s... | true |
34399d871f737829cd7ffd5c889b6166a58a1db2 | PHP | anredaccion/wordpress | /src/templates/inc/deduplicator.php | UTF-8 | 343 | 2.875 | 3 | [] | no_license | <?php
/*
** TODO:
** - Modificar la función para que se pueda utilizar sin pasar el post id
*/
class Deduplicator {
private static $published = array();
public static function add($id) {
if ( !in_array( $id, self::$published ) )
array_push( self::$published, $id );
}
public static function get() {
return ... | true |
417a68da8ab6fa9e351b4a59f0acb97086068799 | PHP | malahovaleksandr/loftSchool_HomeWorkPHP | /4/index.php | UTF-8 | 5,596 | 2.6875 | 3 | [] | no_license | <?php
// код привести к стандарту psr -2
header('Content-type: text/html; charset=utf-8');
$example='задание ';
//1
echo $example.'1<br><br>';
// строка, которую будем записывать
$text = "<?xml version=\"1.0\"?>
<PurchaseOrder PurchaseOrderNumber=\"99503\" OrderDate=\"1999-10-20\">
<Address Type=\"Shipping\">
<Na... | true |
af6f8262bce64b52db2af8477656274430d50f88 | PHP | OberjukhtinIA0VWV0Allokuum/Cosiros | /core/lib/crTemplater.php | UTF-8 | 4,008 | 2.71875 | 3 | [] | no_license | <?php
//php-code from: Leo-notebook
//auther: Oberjukhtin I.A.
/* crTemplator -полнофункциональный мини-шаблонизатор, используемый в CrisCMS
version: 1.0;
Version core: 0.1-2.3;
*/
class crTemplater {
var $rightSim='';//символ открытия псевдотегв
var $lefttSim='';//символ закрытия псевдотега
var $tpl=''; //строка ... | true |
8a45276cb7f18e1603258365a315e76ac196b079 | PHP | valerawhite/mvc | /Controllers/Sign.php | UTF-8 | 741 | 3.015625 | 3 | [] | no_license | <?php
require_once('Models/Auth.php');
class Sign {
private $login;
private $password;
public function __construct() {
if(file_exists('Views/Sign.php')) {
include 'Views/Sign.php';
}
}
public function login() {
$this->login = $this->encode($_POST['login']);
$this->password = $this->encode($_POST['pass... | true |
29fd7bbbc1406b16530ee53315f0fc30f4d62d20 | PHP | m-kondratenko/tasker | /php/auth.php | UTF-8 | 1,075 | 2.546875 | 3 | [] | no_license | <?php
require_once 'config.php';
if (!empty($_GET["logout"])) {
unset($_SESSION["logged"], $_SESSION["login"]);
}
//check if credentials are ok
if (!empty($_POST["login"])&&(!empty($_POST["password"]))) {
if (($_POST["login"]==ADMIN_LOGIN)&&($_POST["password"]==ADMIN_PASSWORD)) {
$_SESSION["logged"]=1;
$_SESSIO... | true |
a64dc79eb7e4e47d7b9c1323985739c22d954425 | PHP | michaskruzelka/peraklad.ai.legacy | /modules/Projects/Http/Requests/UpdateReleaseRequest.php | UTF-8 | 2,724 | 2.515625 | 3 | [] | no_license | <?php
namespace Modules\Projects\Http\Requests;
use App\Http\Requests\Request;
use Modules\Projects\Entities\Project;
use Rlima\Laravel5DoctrineODM\LaravelDocumentManager;
use Modules\Projects\Entities\Release;
class UpdateReleaseRequest extends Request
{
/**
* @var \Doctrine\ODM\MongoDB\DocumentManager
... | true |
34b25892804bd077f2e8b2b29a7c28f136a264dd | PHP | exiaohao/isee_cms_php | /kernel/utils.php | UTF-8 | 5,067 | 2.765625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: songhao
* Date: 16/2/7
* Time: 上午1:16
*/
class utils extends db
{
/*
* Creat UUID
*/
function create_uuid($prefix = ""){ //可以指定前缀
$str = md5(uniqid(mt_rand(), true));
$uuid = substr($str,0,8) . '-';
$uuid .= substr($str,8,4) . ... | true |
9048ef17371b092c1df8a1163ec8959ab11459c1 | PHP | masanarih0ri/development | /ジーズアカデミー/卒業制作/卒制ファイル_moneylocation/dataindicate.php | UTF-8 | 19,550 | 2.828125 | 3 | [] | no_license | <?php
/*
ここでの作業
使用するテーブルは
placedataとmoneyandplaceのテーブルを結合したもの
idごとの
(済)①usemoneyの合計。usemoneyをidだけで振り分けて表示できれば、それの値を出して足すだけ。文字列を数値変換する必要がある。
(済)②flag=1のものの合計。①のデータからflag1のものだけを表示できれば、それの値を出して足すだけ。
(済)③totalmoneyは別の変数を置いて、moneyandplaceから全て足した値から①を引く
④usemoneyの合計値だが、データを時間や月で分類できるようにする(おそらく、usemoneyのためのデータがあればできるはず。月の文字列... | true |
d47b4079a8c4dd80cd53f158103ae369e4c4d2b2 | PHP | frah12/konrad2 | /0.4.4/source/CCGuestbook/CCGuestbook.php | UTF-8 | 1,296 | 2.734375 | 3 | [] | no_license | <?php
// Author: Fredrik Åhman
// Course: PHPMVC @ BTH
// File: CCGuestbook.php
// Desc: Guestbook controller for framwork called konrad based literally on Lydia.
/**
* Controller class CCGuestbook
* Extends CObject
* Implements IController
*/
class CCGuestbook extends CObject implements IController{
// Member ... | true |
84e5138bfa4a2db8535ae429fb9254db77ebd855 | PHP | dannysimfukwe/custom_php_framework | /libraries/Permission.php | UTF-8 | 4,747 | 3.0625 | 3 | [] | no_license | <?php defined('DACCESS') or die ('Access Denied!');
/**
* Manage permissions for files in a directory.
*/
class Permission {
private $_tree = array();
private $_state = array();
private $_path;
/**
* Class constructor.
* @param string $path
*/
public function __construct(... | true |
fd3a389bab1ed37f2db6d852950c2d5d8a5fcdf2 | PHP | alanfariam/vaievem | /VaieVem/bolaovv/views/cadastrar_jogos.php | UTF-8 | 2,951 | 2.625 | 3 | [] | no_license |
<div class="container">
<br>
<h2>Cadastrar Jogos</h2>
<br>
<form method='POST'>
<br>
<table class="table table-bordered table-striped table-hover table-sm">
<thead class="thead-dark">
<tr>
<th>Time Casa</th>
<th>Time Visitante</th>
... | true |
8b19af29f7cfaff5bc36bb6ebfb3bd66470b4a5b | PHP | haroldma-zz/gamecupid | /database/seeds/AvailableConsoleTableSeeder.php | UTF-8 | 1,159 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
use App\Models\Game;
use Cocur\Slugify\Slugify;
use Illuminate\Database\Seeder;
use App\Models\AvailableConsole;
class AvailableConsoleTableSeeder extends Seeder {
public function run()
{
$slugify = new Slugify();
$slugify->addRule('+', 'plus');
$json = json_decode(file_get_contents(... | true |
ff71399317f489d47179f3594cf1aec537402365 | PHP | zaharpetrow/patterns | /Factory/PizzaStore/pizza/NYStylePizza.php | UTF-8 | 1,677 | 2.90625 | 3 | [] | no_license | <?php
require_once __DIR__ . '/Pizza.php';
class NYStyleCheesePizza extends Pizza {
public function prepare() {
echo 'Подготовка ' . __CLASS__ . '<br>';
}
public function bake() {
echo 'Выпечка ' . __CLASS__ . '<br>';
}
public function cut() {
echo 'Нарезка ' . __CLASS__... | true |
cb5e7c9db2c27c82dd82b1184fbb55ebdc64c2f5 | PHP | horstoeko/zugferd | /src/entities/basicwl/ram/CreditorFinancialAccountType.php | UTF-8 | 1,450 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace horstoeko\zugferd\entities\basicwl\ram;
/**
* Class representing CreditorFinancialAccountType
*
* XSD Type: CreditorFinancialAccountType
*/
class CreditorFinancialAccountType
{
/**
* @var \horstoeko\zugferd\entities\basicwl\udt\IDType $iBANID
*/
private $iBANID = null;
/**
... | true |
40e5ac1a37173c95115f9fb2ef8697ba553902ed | PHP | MacDada/AllegroComparator | /src/TemplateRenderer.php | UTF-8 | 152 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App;
interface TemplateRenderer
{
public function render(string $template, array $vars = []): string;
}
| true |
22d11956246fdeb777472dd1368a33b824e95666 | PHP | jacowk/jericho-laravel | /app/Contact.php | UTF-8 | 2,369 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace jericho;
use OwenIt\Auditing\Auditable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use jericho\Audits\Model\ModelTransformAuditor;
use jericho\Util\ModelTypeConstants;
/**
* A model representing a contact
*
* @author Jaco Koekemoer
*
*/
class Contact extends Model
{
u... | true |
aa35536f9b6864e6ef78524eff79a06cc90b13b8 | PHP | MohammedRaslan/Restfull-API | /bank_2/encrypt.php | UTF-8 | 867 | 3.59375 | 4 | [] | no_license | <?php
// This Function Take String And Return The Ascii Code Of it ^-^
function intoAscii($string)
{
$len = strlen($string);
$y = ' ';
for ($i=0; $i<$len;$i++){
if (ord($string[$i]) < 100){
$y.='0'.''.ord($string[$i]).' ';
}else
$y.= or... | true |
2500614b85771cc458d88f1b573a79da8b3c4cba | PHP | cristian1289/Sitiocamilo | /Datos/consultas.php | UTF-8 | 1,064 | 2.5625 | 3 | [] | no_license | <?php
include_once ("adminBD.php");
class clsConsultas
{
private $objConexion;
public function __construct()
{
$this->objConexion = new clsAdminBD();
}
public function actualizarEliminarInsertar($sql)
{
$conexion=$this->objConexion->conectar();
$retorno = false;
... | true |
3a7b597ddc40952edb14a02495e5a004f01f71b3 | PHP | aizxin/swf-server | /src/process/AbstractProcess.php | UTF-8 | 1,542 | 2.78125 | 3 | [] | no_license | <?php
/**
* FileName: AbstractProcess.php
* ==============================================
* Copy right 2016-2017
* ----------------------------------------------
* This is not a free software, without any authorization is not allowed to use and spread.
* ==============================================
* @author:... | true |
7574c288776882b3ba37eeb019a4436f33f0dccf | PHP | DavidMeneces/pruebaConexionbd | /conexionBD.php | UTF-8 | 551 | 2.984375 | 3 | [] | no_license | <?php
$server = "localhost";
$user = "usrforo";
$pass = "djmz#13119000";
$db = "foro";
$conexion = new mysqli($server,$user,$pass,$db);
if($conexion->connect_errno){
printf("<hr>Connect failed (Err. nº %d): %s<hr/>", $mysqli->connect_errno, $mysqli->connect_error);
exit();
... | true |
72e6d9ca2bd65c6a9de700c190b6ca1df0a2c3f3 | PHP | victorsaavedra/suite | /src/Infrastructure/Common/Repository/DoctrineEventSourcedRepository.php | UTF-8 | 1,980 | 2.671875 | 3 | [] | no_license | <?php namespace App\Infrastructure\Common\Repository;
use App\Domain\Common\Repository\EventStoreInterface;
use App\Domain\Common\Service\EventManagerService;
use StraTDeS\SharedKernel\Domain\Entity;
use StraTDeS\SharedKernel\Domain\EntityNotFoundException;
use StraTDeS\SharedKernel\Domain\EventSourcedEntity;
use Stra... | true |
0fb318d58541678dc1967e6bfc108d06194d7235 | PHP | FabioQuadros/projeto-loja-com-php | /dao/produtodao.class.php | UTF-8 | 1,179 | 3.03125 | 3 | [] | no_license | <?php
require 'conexaobanco.class.php';
class ProdutoDAO {
private $conexao = null;
public function __construct(){
$this->conexao = ConexaoBanco::getInstance();
}
public function __destruct(){}
public function cadastrarProduto($p){
try{
$stat = $this->conexao->prepar... | true |
61cdd36e6267bd2a8e6fdb3f02f08f9c8bbdcb74 | PHP | shahzadafridi/geokurs-admin-panel-final | /application/libraries/Pesaapal.php | UTF-8 | 2,404 | 2.65625 | 3 | [] | no_license | <?php
include_once('OAuth.php');
class Pesaapal
{
public $token = NULL;
public $params = NULL;
public $consumer_key = 'HJSRUdBWo+Z8tf/Fy267KubPYne1bUyf';
public $consumer_secret = 'WnZOipCS5S5cEEnh5VttT6gBFXk=';
public $signature_method;
/**
* Pesaapal constructor.
* @par... | true |
7410125c643b740195520a7ab5fa82177fde3c48 | PHP | vdonoladev/aprendendo-programacao | /PHP/Curso Completo de PHP 7/Códigos por Seção/section-12/pdo/exemplo-01.php | UTF-8 | 406 | 3.1875 | 3 | [
"MIT"
] | permissive | <?php
// PHP Data Objects com MySQL.
$conn = new PDO("mysql:dbname=dbphp7;host=localhost", "root", "");
$stmt = $conn->prepare("SELECT * FROM tb_usuarios ORDER BY idusuario");
$stmt->execute();
$resultado = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($resultado as $row) {
foreach ($row as $key => $val... | true |
cd13ec375fc40dac34447c6c2bdff234386147b3 | PHP | nero990/upperlink-test | /upperlink_adio_consult/includes/applicant.php | UTF-8 | 3,216 | 2.921875 | 3 | [] | no_license | <?php
require_once(LIB_PATH.DS."database.php");
class Applicant extends DatabaseObject {
protected static $table_name = "applicants";
protected static $db_fields = array('id', 'first_name', 'surname', 'phone', 'email', 'passport_path');
public $id;
public $first_name;
public $surname;... | true |
8e833fb37c7946f78efa39662e5e1164567d271c | PHP | cardgate/omnipay-cardgate | /src/Message/CompletePurchaseResponse.php | UTF-8 | 1,184 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/*
* CardGate driver for Omnipay PHP payment processing library
* https://www.cardgate.com/
*
* Latest driver release:
* https://github.com/cardgate/
*
*/
namespace Omnipay\Cardgate\Message;
/**
* CompletePurchaseResponse class - It contains information about the
* transaction's status
*
* @author Ma... | true |
6473ff2065968e5f7f1386f7a1816d680c0a45bd | PHP | gossoudarev/Miner | /src/Miner/MinerExtended.php | UTF-8 | 733 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace Miner;
/**
* Created by JetBrains PhpStorm.
* User: Antoxa
* Date: 16.04.13
* Time: 18:00
*/
class MinerExtended extends Miner{
public function __construct(\PDO $pdo){
parent::__construct();
$this->setPdoConnection($pdo);
}
public function fetchAllAsObject(){
... | true |
880cd9748eb8c7b16a03fae1e74308fde21105bf | PHP | nikhil-lakare4/WebBasedNoteMakingApp | /writeData.php | UTF-8 | 682 | 2.703125 | 3 | [] | no_license | <?php
include "des.php";
$key = bin2hex("ABCDEFGH");
session_start();
$servername="localhost";
$username="root";
$password="";
$db="mydb";
$conn = new mysqli($servername, $username, $password, $db);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$text = encryptText(bin2hex($... | true |
04fc67ad8c245d5c347a3883a968ed8e5098d633 | PHP | tuneyourserver/components | /source/Spiral/Debug/Configs/DebuggerConfig.php | UTF-8 | 778 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
namespace Spiral\Debug\Configs;
use Spiral\Core\InjectableConfig;
/**
* Debug component configuration. Must only contain array of log handlers for monolog channels.
*/
class DebuggerConfig extends InjectableConfig
{
/**
... | true |
8f57ccf68197113e167683873b0ba0d848bab8a0 | PHP | sebas8632/Proyecto-SIVIUQ | /application/models/Vicerrectoria_Investigaciones_Model.php | WINDOWS-1250 | 3,342 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
class Vicerrectoria_Investigaciones_Model extends CI_Model{
function __construct(){
parent::__construct();
}
/**
* Este metodo consulta los proyectos que llegaron a la vicerrectoria de investigaciones.
* @return data, retorna los proyectos que estan en la tabla de vicerrectoria_investigaciones.
*/
... | true |
3e5d7a3c49eb399ee168238ccc3644b77f2179e4 | PHP | ReyazBeigh/amazon-mws-list-products | /ListProducts.php | UTF-8 | 2,042 | 2.796875 | 3 | [] | no_license | <?php
require_once 'vendor/autoload.php';
chdir(__DIR__);
class AmazonListingApi {
private $path;
private $fileName;
private $prductsArray;
private $feedResponse;
private $feedSubmissionId;
private $channel;
private $feedContent;
function __construct(){
}
public function startOfProgram(){
... | true |
c09964fb0881828c8b818ce1a68a844f2f86e4a2 | PHP | devprom-dev/sdk | /app/pm/classes/settings/Recurring.php | UTF-8 | 887 | 2.578125 | 3 | [] | no_license | <?php
include "RecurringIterator.php";
include "persisters/RecurringDetailsPersister.php";
class Recurring extends Metaobject
{
public function __construct() {
parent::__construct('pm_Recurring');
$this->addAttribute('RequestTemplates', 'REF_RequestTemplateId', text(1520), true);
$this->addAttribute('Tas... | true |
9a6d1de806b2bc1fe41becf3cf7125eb483cbf47 | PHP | dominx99/wallet | /src/System/Responses/Success.php | UTF-8 | 932 | 2.765625 | 3 | [] | no_license | <?php declare (strict_types = 1);
namespace Wallet\System\Responses;
use Slim\Http\Response;
use Wallet\System\Contracts\Responsable;
use Wallet\System\Infrastructure\StatusMessage;
class Success implements Responsable
{
/**
* @var array
*/
protected $data;
/**
* @var int
*/
prot... | true |
b7d3b8afa6e35b825c9717cfe0b2e580aea65dbf | PHP | BoHeTeachnology/boheyayi | /lumen_online/app/Rop/request/MdmRoleSetRequest.php | UTF-8 | 1,441 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
class MdmRoleSetRequest
{
private $apiParas = array();
private $company_key;
public function getCompanyKey()
{
return $this->$company_key;
}
public function setCompanyKey($company_key)
{
$this->company_key = $company_key;
$this->apiParas["company_ke... | true |
fbbd2f8c9c259400f2cbc58f0b2681551c060bfd | PHP | aronduby/hwp-bridge | /classes/OAuth/ServiceAbstract.php | UTF-8 | 2,787 | 2.703125 | 3 | [] | no_license | <?php
namespace OAuth;
abstract class ServiceAbstract{
public $authorized = false;
public $state;
protected $consumer_key;
protected $consumer_secret;
protected $api_url;
protected $authorize_url;
protected $access_token_url;
protected $redirect_url;
protected $global_parameters;
protected $store;
pro... | true |
ecb6d6d14299a34da677786ddbb3d8ec02fa7955 | PHP | GuiiCNunes/programacaoWebIFSC | /aulas/aula17/revisao/exerc3/verifica.php | UTF-8 | 962 | 3.015625 | 3 | [] | no_license | <?php
include("verificaidade.inc.php");
include("verificasalario.inc.php");
$pessoa[$_POST['nome1']]["idade"] = $_POST['idade1'];
$pessoa[$_POST['nome1']]["salario"] = $_POST['salario1'];
$pessoa[$_POST['nome2']]["idade"] = $_POST['idade2'];
$pessoa[$_POST['nome2']]["salario"] = $_POST['salario2'];
$pess... | true |
4ff4c1d3f956e5f0fb52ee5b98b3fa88b6ebd020 | PHP | piotrpolak/pepiscms | /pepiscms/modules/system_info/models/System_info_model.php | UTF-8 | 868 | 2.515625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | <?php
/**
* PepisCMS
*
* Simple content management system
*
* @package PepisCMS
* @author Piotr Polak
* @copyright Copyright (c) 2007-2018, Piotr Polak
* @license See LICENSE.txt
* @link http://www.polak.ro/
*/
defined('BASEPATH') or exit('No dir... | true |
4cfcc814348178cc740d65eff011e6086b347720 | PHP | wangyess/php_mysql-practice | /user.php | UTF-8 | 3,215 | 2.90625 | 3 | [] | no_license | <?php
class User
{
public $params;
public $pdo;
public function __construct()
{
$options = [
/* 常用设置 */
PDO::ATTR_CASE => PDO::CASE_NATURAL, /*PDO::CASE_NATURAL | PDO::CASE_LOWER 小写,PDO::CASE_UPPER 大写, */
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, /*是否报错,P... | true |