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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8f3d77a7e68505bf2fe4d4508b664c299576cf57 | PHP | clvarley/cache | /src/Key/RawGenerator.php | UTF-8 | 633 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace Clvarley\Cache\Key;
use Clvarley\Cache\KeyGeneratorInterface;
/**
* Generator that simply returns the raw key
*
* Useful for easy refactoring or if you want to be able to control your cache
* keys directly, without them being run through a hashing algorithm.
*
* @package Cache
* @author clvarl... | true |
19272d35642a3236b25bf977d06c4ccd3c080fe7 | PHP | koyokyou/php1113 | /framework/controller.class.php | UTF-8 | 4,714 | 2.640625 | 3 | [] | no_license | <?php
/**
* basic model
*/
class controller {
/**
* パラメータの取得
* $SystemInfo: システム初期化情報
* $IsInit: true 初期表示 false 初期表示以外
*/
protected function GetInitParamsInfo($SystemInfo){
//画面構成ID
$SystemInfo->MapPatternID = (isset($_POST["MAP_PATTERN_ID"]) && !empty($_POST["MAP_PATTERN_ID"]))?$_POS... | true |
a840af1ea7fdf55d46e506185c1d536285005e1e | PHP | gisomarjr/Rastreador | /Rastreador/DAO/Analise.php | UTF-8 | 2,017 | 2.96875 | 3 | [] | no_license | <?php
/**
* Description of Usuario
*
* @author gisomar
* @since 10/07/2015
*/
include 'Util/Conexao.php';
class Analise {
/**
*
* @author Gisomar Junior <gisomarjr1994@gmail.com>
*
* Realiza cadastro do cliente
*
*/
function cadastrar($idanalise,$idcliente,$idan... | true |
26a7fdb6e73b529d2d0ef9e37c71debf20e72bf1 | PHP | skyameny/blw | /application/api/controller/Passport.php | UTF-8 | 1,572 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* 用户登录类
*/
namespace app\api\controller;
use app\api\logic\PassportLogic;
use app\api\validate\PassportValidate;
use core\controller\Api;
use core\service\ApiService;
class Passport extends Api
{
protected $validate = PassportValidate::class;
/**
* @var PassportLogic
*/
protected $... | true |
77b7411f80ffabf5b594fcbff5a9ec30356e88e6 | PHP | edmarr2/d4sign-laravel | /src/Services/Watcher.php | UTF-8 | 1,045 | 2.578125 | 3 | [] | no_license | <?php
namespace Edmarr2\D4sign\Services;
class Watcher extends Client
{
/**
* @param $uuid_arquivo
*
* @return mixed
*/
public function find($uuid_arquivo)
{
return $this->get('watcher/'.$uuid_arquivo);
}
/**
* @param $uuid_arquivo
* @param $email
* @par... | true |
6bd3b80a3bebe668c3b980fafc69c50400a8326d | PHP | funson86/funboot | /common/components/swagger/SwaggerController.php | UTF-8 | 1,865 | 2.53125 | 3 | [] | no_license | <?php
namespace common\components\swagger;
use common\components\controller\BaseController;
use common\helpers\Url;
use Yii;
use function OpenApi\scan;
/**
* Swagger
*
* Class ScheduleController
* @package backend\modules\base\controllers
*/
class SwaggerController extends BaseController
{
/**
* @var string... | true |
9e0806f6877fe078bd207df119012116037a33e0 | PHP | SalvadorRadaVaca/library | /models/NewForm.php | UTF-8 | 295 | 2.53125 | 3 | [] | no_license | <?php
namespace app\models;
use yii\base\Model;
class NewForm extends Model {
public $valuea;
public $valueb;
public function rules() {
return[
[['valuea', 'valueb'], 'required'],
['valuea', 'number'], ['valueb', 'number']
];
}
}
?> | true |
ff7fef6ffba2dbbe49ae477144f99654cff6984f | PHP | christophemaymard/php-xml-schema | /test/PhpXmlSchema/Test/Integration/Dom/ComplexTypeElementTest.php | UTF-8 | 6,067 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the PhpXmlSchema library.
*
* @copyright 2018-2020, Christophe Maymard <christophe.maymard@hotmail.com>
* @license http://opensource.org/licenses/MIT MIT
*/
namespace PhpXmlSchema\Test\Integration\Dom;
use PhpXmlSchema\Dom\ComplexTypeElement;
use PhpXmlSchema\Dom\ElementEl... | true |
f34a37ec6c48345cf1325665241ed84fe32b7d9d | PHP | zhangjiquan1/phpsourcecode | /ideaa/crossphp/src/Cache/Request/RedisCache.php | UTF-8 | 2,421 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Cross - a micro PHP framework
*
* @link http://www.crossphp.com
* @license MIT License
*/
namespace Cross\Cache\Request;
use Cross\I\RequestCacheInterface;
use Cross\Cache\Driver\RedisDriver;
use Cross\Exception\CoreException;
/**
* @author wonli <wonli@live.com>
* Class RequestRedisCac... | true |
be5859ee391304a197b30046dd18485a75704d13 | PHP | awesomebitrix/shantilab.bxeco | /lib/Printer/BasePrinter.php | UTF-8 | 1,264 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace Shantilab\BxEcho\Printer;
use Shantilab\BxEcho\Config;
/**
* Class BasePrinter
* @package Shantilab\BxEcho\Printer
*/
abstract class BasePrinter{
/**
* @var array
*/
public $options = [];
/**
* @var null
*/
protected $data;
/**
* @var Config
*/
... | true |
6c28f1eefe5e9d017c1a663cb87a0a755393e523 | PHP | dziurka/hs-project | /src/Domain/StarWars/Models/Film.php | UTF-8 | 2,808 | 2.671875 | 3 | [] | no_license | <?php
namespace Domain\StarWars\Models;
use Domain\StarWars\Collections\FilmCollection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Notifications\Notifiable;
use Support\Traits\HasUuidKey;
/**
* Domain\StarWars\Models\Film
*
* @property string $... | true |
6aabef5496a7db95a0bfc10bd0ff1ba8645da2af | PHP | DR0120/sistema_contable | /app/Rules/MontoPermitido.php | UTF-8 | 1,250 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use App\Cuenta;
use App\TipoCuenta;
class MontoPermitido implements Rule
{
private $cuenta;
private $monto_permitido;
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct($cuenta)
... | true |
b06c135d34ad1993758a0124d8e4bc67c190b83d | PHP | EasySchoolRegistration/easy-event-registration | /inc/enum/eer-sold-ticket-status.enum.php | UTF-8 | 722 | 2.875 | 3 | [] | no_license | <?php
class EER_Enum_Sold_Ticket_Status
{
const WAITING = 0,
CONFIRMED = 1,
DELETED = 2;
private $items = [];
/**
* @codeCoverageIgnore
*/
public function __construct()
{
$this->items = [
self::WAITING => [
'title' => __('Waiting', 'easy-event-registration')
],
self::CONFIRMED => [
... | true |
b1a09f89aec7a49874f469e810160bdbd5a88c28 | PHP | adavuruku/antenantal | /appointmentUpdate.php | UTF-8 | 7,344 | 2.515625 | 3 | [] | no_license | <?php
session_start();
if(!isset($_SESSION['docID']) || !isset($_SESSION['logName'])){
header("location: index.php?out=out");
}
$notice_msg=$hospitalId = $appid =$txtpurpose="";
require_once 'connection.php';
if (!isset($_GET['hospitalid']) || $_GET['hospitalid'] == "" || !isset($_GET['appid']) ... | true |
7273f5c4fbae8a1a6c393a7d11448706e3b11edb | PHP | adarshhub/Online-Trading | /handlers/ajax/asset_api.php | UTF-8 | 1,783 | 2.59375 | 3 | [] | no_license | <?php
require("../../config/config.php");
if(isset($_SESSION['assets_api'])){
echo json_encode($_SESSION['assets_api']);
} else {
$url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest';
$parameters = [
'symbol' => 'BTC,ETH,LTC,XRP,AE,BCH,BAT,GNT,OMG,REQ,TRX,ZRX',
'convert' => 'INR',... | true |
8c43438f2da8f843eb9da53036df0b525a394c60 | PHP | brownsusan/noted | /libs/protector.php | UTF-8 | 278 | 2.5625 | 3 | [] | no_license | <?php
class protector{
public static function protect(){
//Cannot output anything on the screen before this or it will note work.
if(!(isset($_SESSION["user"]) && isset($_SESSION["user"]['userId']))){
header("location: ".$GLOBALS['web_root']);
exit();
}
}
} | true |
89ec0d1c150bc727c9e3789fd51f5e0bcaae8239 | PHP | Proyecto-de-Software/2018_grupo29 | /controller/RolesController.php | UTF-8 | 12,494 | 2.546875 | 3 | [] | no_license | <?php
require_once('controller/ResourceController.php');
require_once('model/SessionRepository.php');
require_once('model/RolesRepository.php');
class RolesController {
private static $instance;
public static function getInstance() {
if (!isset(self::$instance)) {
self::$instance = new sel... | true |
2cfe5597aebacb3ea60066c35d2382368f500d7b | PHP | nikoaleksis/oophp | /src/Controller/MovieController.php | UTF-8 | 13,332 | 2.875 | 3 | [] | no_license | <?php
namespace Niko\Controller;
use Anax\Commons\AppInjectableInterface;
use Anax\Commons\AppInjectableTrait;
// use Anax\Route\Exception\ForbiddenException;
// use Anax\Route\Exception\NotFoundException;
// use Anax\Route\Exception\InternalErrorException;
/**
* A controller for rendering content and playing the d... | true |
178e24bb4897bf7346057a709da14903e7ab3995 | PHP | albertomadrazo/piggybank | /public/update.php | UTF-8 | 5,551 | 2.875 | 3 | [] | no_license | <?php require_once("../includes/initialize.php"); ?>
<?php include_layout_template("header.php"); ?>
<?php
if(isset($_POST['submit'])){
if(isset($session->user_id)){
$user = User::find_by_id($session->user_id);
} else {
redirect_to("login.php");
}
$cantidad = $_POST['cantidad'];
... | true |
019ae958a51793c512709087fa4b375795ad2f9a | PHP | mateus9785/agenda-contatos-php | /app/Services/ContactService.php | UTF-8 | 6,846 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Services;
use Illuminate\Support\Facades\Auth;
use App\Services\ContactServiceInterface;
use App\Repositories\PhoneRepositoryInterface;
use App\Repositories\GroupRepositoryInterface;
use App\Repositories\ContactRepositoryInterface;
use App\Repositories\AddressRepositoryInterface;
use App\Repositor... | true |
06e35ae4cbc5d02f64a7abb1738c27d892b3f7eb | PHP | Huron/tic-tac-toe | /src/Exception/Validation/UnexpectedPropertyException.php | UTF-8 | 488 | 2.703125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Exception\Validation;
use Throwable;
/**
* UnexpectedPropertyException.
*/
class UnexpectedPropertyException extends AbstractValidationException
{
/**
* @param string $propertyName
* @param null|Throwable $previous
*/
public function __co... | true |
785a6916febe43c41f38a3857983a8ea410517d6 | PHP | missxiaolin/yii | /console/controllers/ElkLoggerReporter.php | UTF-8 | 900 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2018/5/1
* Time: 下午6:30
*/
namespace console\controllers;
use console\controllers\utils\Elasticsearch\Client;
use console\controllers\utils\Elasticsearch\ES;
class ElkLoggerReporter
{
public $level;
public $message;
public $context;
public... | true |
7abe1a9d6ac7b1d0874bc03b58197d618a86c043 | PHP | harshit050499/appointment | /ajax/getslot.php | UTF-8 | 3,925 | 2.515625 | 3 | [] | no_license | <?php
include('../connection.php');
if(password_verify("getslot",$_POST['token']))
{
$userid;
$sid;
$flag=0;
$name=test_input($_POST['name']);
$ename=test_input($_POST['ename']);
$check=$db->prepare('SELECT * FROM user_details WHERE name=?');
$data... | true |
b9114d75e3eec2dc9cd7e50d2273462101be9ce5 | PHP | roma-dev/catalog-site.ru | /engine/Catalog.php | UTF-8 | 2,027 | 2.734375 | 3 | [] | no_license | <?php
namespace Engine;
class Catalog
{
static $app = null;
private $services = [];
public static function init($config)
{
if (null === self::$app)
{
self::$app = new self();
self::$app->services['settings'] = $config;
self::$app->services['httpHeader'] = new HttpHeader();
self::$app... | true |
b0406343bf6d073e57b9d2b35bb1e51c66be204f | PHP | Ayanamii14/socketTongXun | /socketServer3.php | UTF-8 | 1,911 | 2.71875 | 3 | [] | no_license | <?php
error_reporting(E_ALL);
set_time_limit(0);
$address = "127.0.0.1";
$port = 7777;
$mysqli = new mysqli("localhost","root","root","studentDB");
//创建端口
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("socket_create() failed :reason:" . socket_strerror(socket_last_error()) . "\n");
//绑定
socket_bind($s... | true |
aa8b58cadac40db7954a06490281f3a863fa070c | PHP | macno/fluidframe | /model/DataTable_DataObject.php | UTF-8 | 14,674 | 2.53125 | 3 | [] | no_license | <?php
abstract class DataTable_DataObject extends Managed_DataObject {
var $colAliases,
$foreignTables;
private function parse_args($args){
$tableParams = array();
$tableParams['draw']=$args['draw'];
$tableParams['columns']=$args['columns'];
$tableParams['order']=$args['... | true |
ac5d507c4f9e4fe2d1e21250d3d42128b56a7641 | PHP | icepoke/swooleyaf | /libs_frame/SyMessageHandler/HandlerBase.php | UTF-8 | 585 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* 消息处理基类
* User: 姜伟
* Date: 2020/6/23 0023
* Time: 12:40
*/
namespace SyMessageHandler;
/**
* Class HandlerBase
* @package SyMessageHandler
*/
abstract class HandlerBase
{
/**
* 处理类型
* @var int
*/
protected $handlerType = 0;
/**
* @param int $handlerType 处理类型
*/
... | true |
082866f40c5ca0718b6297d4b71dbd83d463658c | PHP | maciejoleksy/laravel-swapi | /app/Contracts/CacheInterface.php | UTF-8 | 138 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Contracts;
use Closure;
interface CacheInterface
{
public function getOrSet(string $key, closure $callback);
}
| true |
16999f4b00c9572066b767edad28309c2d06b003 | PHP | devshittu/secondary-school-portal | /database/seeds/StudentTerminalLogsTableSeeder.php | UTF-8 | 2,956 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
use App\ClassTerm;
use App\Utils\Constants;
use Illuminate\Database\Seeder;
class StudentTerminalLogsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$dateNow = '\'' . now() . '\'';
$fields = array(Constants::... | true |
d15a9d7032a19189fc280a3fb89a5fe5fd3bcc68 | PHP | ujjwaljainnn/Guess-Who-Tweeted | /chooseUsers.php | UTF-8 | 2,225 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
/**
* The following if loop checks if the user is in
* a session which start by visiting our index.php page,
* if yes, it continues to play the game
* if not, it redirects the user to the main page first
*/
session_start();
if(!isset($_SESSION['attempt'])){
header("Lo... | true |
f0a19df27e21da7b75009fafbb436b3edafa4f84 | PHP | thedavidmeister/crypt-auth-proto | /src/Foo/RandomBundle/Tests/Utility/RandomTest.php | UTF-8 | 11,059 | 2.796875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
namespace Foo\RandomBundle\Tests\Utility;
use Foo\RandomBundle\Utility\Random;
use Symfony\Component\Validator\Validation;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationList;
class RandomTest extends \PHPUnit_Framework_TestCase
{
/**
* Size of data... | true |
bd5611477771530007ead5435285c42d4211a71a | PHP | shubhomedia/bitm_php | /loops/for.php | UTF-8 | 478 | 2.921875 | 3 | [] | no_license | <!DOCTYPE html>
<!--
MD.Owes Quruny Shubho
http://shubho.info
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
/*
for (init counter; test counter; increment counter) {
code to be executed;
... | true |
a5ec51e5a37e54768f1bf89936fe8022c6845efc | PHP | OlexBeatable/laravel-sample | /app/Repositories/Eloquent/AppActivityRepository.php | UTF-8 | 705 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Repositories\Eloquent;
use App\Models\AppActivity;
use App\Repositories\Contracts\AppActivityRepositoryContract;
use Freevital\Repository\Eloquent\BaseRepository;
class AppActivityRepository extends BaseRepository implements AppActivityRepositoryContract
{
/**
* {@inheritdoc}
*/
... | true |
f43f9f554273a06d658a5d83e45d25063fcdf2d4 | PHP | rritoch/vwp-1 | /libraries/vwp/net/protocols/smtp.php | UTF-8 | 6,670 | 3 | 3 | [] | no_license | <?php
/**
* SMTP Server Support library
*
* @package VWP
* @subpackage Libraries.Networking.Protocols
* @author Ralph Ritoch <rritoch@gmail.com>
* @copyright (c) Ralph Ritoch - All Rights Reserved
* @link http://www.vnetpublishing.com VNetPublishing.Com
* @license http://www.vnetpublishing.com/Legal/Lic... | true |
a8e731d64fe69e7de67c8c4d13fe67bdc8f05c9c | PHP | Aveann/gsb | /controleurs/c_validerFicheFrais.php | UTF-8 | 7,702 | 2.59375 | 3 | [] | no_license | <?php
/**
* Validation des frais
*
* PHP Version 7
*
* @category PPE
* @package GSB
* @author Naëva ARNOULD <naeva.ar@gmail.com>
* @link http://www.reseaucerta.org Contexte « Laboratoire GSB »
*/
$action = filter_input(INPUT_GET, 'action', FILTER_SANITIZE_STRING);
$idComptable = $_SESSION['idUser'... | true |
10196fd355f3ed743980f9cab76ecb5c17cec4e1 | PHP | trostr/VOIP_access | /module/ObjLocation.php | UTF-8 | 3,640 | 3.203125 | 3 | [] | no_license | <?php
/**
* Součást projektu VOIP access
*
* Seznam lokalit.
*
*
* @author Petr Šauer
*/
class ObjLocation extends ObjBase{
/**
* Vrací pole dat z db tabulky
* @param number $id - zde nepoužito
* @return array/boolean pole dat nebo false
*/
public function getListData($id) {
... | true |
d6da8164d47fd2592e457231d45be3cd96f4062c | PHP | nytr0gen/defcamp-ctf-quals-2018-writeups | /sweet/c1.php | UTF-8 | 830 | 2.609375 | 3 | [] | no_license | <?php
var_dump(dl('sweet.so'));
// use Sweet\Crypto;
$funcs = get_defined_functions();
// var_dump($funcs);
$classes = get_declared_classes();
// var_dump($classes);
$c = new Sweet\Crypto;
var_dump(get_class_methods($c));
var_dump(get_object_vars($c));
var_dump($c->sendtoNSA('/home/robert/Pictures/sharky_the_shark... | true |
87bc743771092e66c6ac668245867d7167ea8114 | PHP | LaurentTestard/OpenPCET | /serveurpcet/app/src/fonctionsClient/FctLog.php | ISO-8859-1 | 2,514 | 2.9375 | 3 | [] | no_license | <?php
use RedBean_Facade as R;
class FctLog {
/*Lister toutes les traces des modifications*/
public static function listerLogs(){
$logs = Log::getLogs();
$listeLogs = FctLog::creerTableauLogPourJson($logs);
return $listeLogs;
}
/*Lister les traces des modifications par action*/
public static functio... | true |
86ce05810f919a49cefc6edc7cf12868f0500d39 | PHP | aalamshahbaz/php-project | /user_login.php | UTF-8 | 2,305 | 2.765625 | 3 | [] | no_license | <?php
session_start();
include 'connection.php';
// checking if user is already logged in if logged in then it will redirect to user_profile
// if(isset($_SESSION['user_num'])){
// header("Location:user_profile.php");
// }
if(isset($_POST['login'])) {
$password=$_POST['password'];
$email=$_POST['e... | true |
d9fa001e1ac547cd694762cffc3563c9b27063f6 | PHP | HarisSaran/SoccerTeamProject | /pages/functions/saveLeague.php | UTF-8 | 813 | 3.1875 | 3 | [] | no_license | <?php
// saves the league intered into the database
function saveLeagueToDatabase($connection){
$leagueName=(isset($_POST["leagueName"]))? $_POST["leagueName"]:null;
$worldRank=(isset($_POST["worldRank"]))? $_POST["worldRank"]:null;
$country=(isset($_POST["country"]))? $_POST["country"]... | true |
65e1931171705219441c6a5c75aa8168967dd6a5 | PHP | phparmory/rate | /src/NullActor.php | UTF-8 | 293 | 2.609375 | 3 | [] | no_license | <?php
namespace Armory\Rate;
use Armory\Rate\{
Types\IpAddress
};
class NulLActor implements ActorInterface
{
/**
* Get the IP address of this actor
* @return IpAddress
*/
public function getIp() : IpAddress
{
return new IpAddress('0.0.0.0');
}
}
| true |
23a13f29be5d2977436bb841b91bf9b3bf9597de | PHP | ShekhSaifuddin007/laravel-ecommerce | /app/Http/Controllers/CategoriesController.php | UTF-8 | 3,063 | 2.578125 | 3 | [] | no_license | <?php /** @noinspection ALL */
namespace App\Http\Controllers;
use App\Category;
use Illuminate\Http\Request;
class CategoriesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
... | true |
7d4a945af355ab3f22b2c58db02c747785772cbb | PHP | CristobalBravo/chinipapeleria_API | /app/Http/Controllers/TipoEspiralController.php | UTF-8 | 3,396 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\TipoEspiral;
use Illuminate\Database\Eloquent\ModelNotFoundException;
class TipoEspiralController extends Controller
{
public function all(){
$tipoespiral= TipoEspiral::all();
$data=[
'code'=>200,
... | true |
a8f956ba72eb7a37ec103ad0aff53bd45e84f35d | PHP | davispeixoto/Force.com-Toolkit-for-PHP | /src/Davispeixoto/ForceDotComToolkitForPhp/QueryResult.php | UTF-8 | 3,959 | 2.6875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php namespace Davispeixoto\ForceDotComToolkitForPhp;
/*
* Copyright (c) 2007, salesforce.com, inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must re... | true |
a671fda63e575577f12a3a989b9dbc39b33e4e3b | PHP | Nasteee/Tuto-Grafikart | /src/Business/Property/ContactNotificationInterface.php | UTF-8 | 201 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Business\Property;
use App\Entity\Contact;
interface ContactNotificationInterface
{
/**
* @param Contact $contact
*/
public function notify(Contact $contact);
} | true |
766008e43a80db6a16fca9a82f5b02690f3f1d15 | PHP | vallsjm/blog | /src/Core/Infrastructure/Projection/Author/AuthorFinder.php | UTF-8 | 1,232 | 2.765625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Core\Infrastructure\Projection\Author;
use Common\Infrastructure\Projection\BaseFinder;
use Core\Infrastructure\Projection\Table;
final class AuthorFinder extends BaseFinder
{
public function findAll(): array
{
return $this->connection->fetchAll(\sprintf('SEL... | true |
0a9130678ce3245007243564cc054348ff2a9b4e | PHP | svfolder/yii2-teamhelper | /helpers/JiraHelper.php | UTF-8 | 3,092 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace app\modules\teamhelper\helpers;
use app\modules\teamhelper\models\Module;
use app\modules\teamhelper\models\Project;
use app\modules\teamhelper\models\Ticket;
//Parse Jira ticket content
class JiraHelper {
const TEAM_ID = 1;
const CUSTOMER_ID = 1;
const STATUS = 1;
public function pa... | true |
f82789ef336e1ab0e514f165af0b4430ea5c496d | PHP | Jouannetaud/quest-POO | /Speedometer.php | UTF-8 | 355 | 3.375 | 3 | [] | no_license | <?php
require_once 'Vehicle.php';
class Speedometer{
public const CONVERT_SPEED = 1.6;
public static function convertKmToMiles($speed): float
{
return $speed / self::CONVERT_SPEED;
}
public static function convertMilesToKm($speed): float
{
return $speed... | true |
5ed791ffeee727fceef24fa0ca3dcbfaf7ee2135 | PHP | BToney005/expLoR | /app/Console/Commands/UpdateDeckCards.php | UTF-8 | 1,765 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
use App\Models\Card;
use App\Models\Deck;
use App\Models\Deck\Card as DeckCard;
class UpdateDeckCards extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
... | true |
6db5e33e4511381588f5c94474f2370788e38486 | PHP | wellspr/base-php-system | /functions/convert_seconds_to_hour.php | UTF-8 | 536 | 3.90625 | 4 | [] | no_license | <?php
/* Converts a number of seconds to hours, minutes and seconds.
*/
function convert_seconds_to_hour($time){
echo "Time diff in seconds: " . $time . "<br>";
$numHours = $time / 3600;
echo $numHours;
echo "<br>";
echo "Time diff in hours: " . (int)$numHours . "<br>";
$numMinutes = ($time ... | true |
2b14d849d2b92665aa0e3a44903ffaee41b03b42 | PHP | Joce9777/Pagina_security | /procesar.php | UTF-8 | 398 | 3.015625 | 3 | [] | no_license | <?php
$nombre = $_GET['nombre'];
$telefono = $_GET['telefono'];
$calle= $_GET['calle'];
$colonia= $_GET['colonia'];
echo "<h2> <h2> informacion recibida desde PHP </h2> </h2>";
echo "El nombre recibido es ". $nombre. "<br/>";
echo "El telefono recibido es ". $telefono. "<br/>";
echo "La calle recibida es... | true |
e1540dcfd1edb2a6da7e447e153a9d02bc6ef2c4 | PHP | rafiat456/chahida | /public/cron/queue_email.php | UTF-8 | 2,908 | 2.65625 | 3 | [] | no_license | <?php
require 'dbCon.php'; /* return name of current default database */
require 'mail_setting.php';
/*
* Sending emails from email_queue
*/
$count = 0;
$mysqli->query("SET NAMES 'utf8'");
if ($result2 = $mysqli->query("SELECT id,email_to,email_cc,email_content,no_of_try,attachment,email_subject
... | true |
2764d42574af1a01f3b70e92cf9435a0383f0242 | PHP | KastroWalker/todo | /database/Connection.php | UTF-8 | 664 | 2.875 | 3 | [] | no_license | <?php
require $_SERVER['DOCUMENT_ROOT'] . "/config.php";
class Connection
{
public function __construct()
{
$this->user = $_ENV['userDB'];
$this->pass = $_ENV['passwordDB'];
$this->host = $_ENV['host'];
$this->database = $_ENV['table'];
}
public function Connect()
{... | true |
5c5a683ce85a56fd64ead0ec855260c7a1897ade | PHP | steve1611922/Week5-Lab1 | /intro-iii.php | UTF-8 | 1,139 | 3.671875 | 4 | [] | no_license | <! DOCTYPE html >
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Intro to PHP - Activity III and IV</title>
</head>
<body>
<p>
<?php
// php code goes here
// the original array
$provisionedActivities = array("specs","mugs","sausage rolls");
echo "The original array...";
... | true |
2aed29b37b5bd79b58b18ca6b8b33f4025646de2 | PHP | noisan/array-walker | /lib/Noi/Util/ArrayWalkerCallback.php | UTF-8 | 865 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace Noi\Util;
use ArrayAccess;
/**
* @author Akihiro Yamanoi <akihiro.yamanoi@gmail.com>
*/
class ArrayWalkerCallback implements ArrayAccess
{
private $callback;
private $offset;
public function __construct($callback, $offset = 0)
{
$this->callback = $callback;
$this->of... | true |
368d1e00366669b08f18d5246b56292e12d77fe8 | PHP | andywong31/cakephp | /app/Controller/PostsController.php | UTF-8 | 5,738 | 2.53125 | 3 | [] | no_license | <?php
class PostsController extends AppController {
public $helpers = array('Html', 'Form', 'Session');
public $components = array('Session', 'Paginator');
// public $uses = array('Category', 'Post');
public function beforeFilter() {
parent::beforeFilter();
if ($this->Auth->user('role') == 'admin'... | true |
9d7c481ae0d843fafa9ca62d30b8d09d880d6856 | PHP | Tang3698/RNO_WebSite | /siteinfo_xml.php | UTF-8 | 1,329 | 2.890625 | 3 | [] | no_license | <?php
//Database connection
function parseToXML($htmlStr)
{
$xmlStr=str_replace('<','<',$htmlStr);
$xmlStr=str_replace('>','>',$xmlStr);
$xmlStr=str_replace('"','"',$xmlStr);
$xmlStr=str_replace("'",''',$xmlStr);
$xmlStr=str_replace("&",'&',$xmlStr);
return $xmlStr;
}
$conn=new PDO('... | true |
67cc8c37cee33c4b9bf314a18932dd4b186a10b1 | PHP | FreedTBW/Assignment | /project/src/Model/Rover.php | UTF-8 | 3,248 | 3.09375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Model;
use App\Model\Orientations\Orientation;
use App\Model\Orientations\East;
use App\Model\Orientations\North;
use App\Model\Orientations\South;
use App\Model\Orientations\West;
class Rover
{
private $xAxis;
private $yAxis;
private $orientation;
priva... | true |
8e258b5121c1e27abd1b78be8296da73ac53d890 | PHP | Pawel-Pi/IKK | /app/controllers/Users.php | UTF-8 | 4,470 | 2.84375 | 3 | [] | no_license | <?php
class Users extends Controller {
private $user;
public function __construct() {
$this->userModel = $this->model('User');
}
public function register() {
if($_SERVER['REQUEST_METHOD'] == 'POST') {
//register user
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE... | true |
bc924b238fa882c96abb909fa07727fc0871a1b8 | PHP | alex-kalanis/kw_rules | /php-src/Rules/MatchAll.php | UTF-8 | 866 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace kalanis\kw_rules\Rules;
use kalanis\kw_rules\Interfaces\IValidate;
use kalanis\kw_rules\Exceptions\RuleException;
/**
* Class MatchAll
* @package kalanis\kw_rules\Rules
* Check if input matches all subrules
*/
class MatchAll extends ARule
{
use TCheckRules;
public function validate(IVa... | true |
3fc70824e8f8c9b5ad0ed4f995e83c3254e8ed4f | PHP | rubythonode/laravel-doctrine-db2 | /database/seeds/DatabaseSeeder.php | UTF-8 | 546 | 2.53125 | 3 | [] | no_license | <?php
use App\Domain\Entities\Task;
use App\Domain\Entities\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
entity(User::class)->create();
entity(User::class)->create()... | true |
ea6f8c6b726c14eca9784c571494926f5ee7d245 | PHP | thureinmyoag/Old-Items-Selling-Website | /home.php | UTF-8 | 2,433 | 2.75 | 3 | [] | no_license | <?php
include("confs/config.php");
session_start();
// If the user is not logged in redirect to the login page
if (!isset($_SESSION['loggedin'])) {https://github.com/thureinmyoag/Old-Items-Selling-Website/blob/master/home.php
header('Location: index.php');
exit();
}
$items = mysqli_query($conn, "SELECT * FROM items... | true |
21d46da482658a83245693d669bca055c1790d48 | PHP | eddturtle/direct-upload | /tests/RegionTest.php | UTF-8 | 948 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace EddTurtle\DirectUpload\Tests;
use EddTurtle\DirectUpload\Exceptions\InvalidRegionException;
use EddTurtle\DirectUpload\Region;
use PHPUnit\Framework\TestCase;
class RegionTest extends TestCase
{
public function testValid()
{
$object = new Region('eu-west-1');
$this->assertTrue... | true |
64da86a98a406c36a001f6c207f4c562a40960ef | PHP | easytrue/payment | /src/PaymentManage.php | UTF-8 | 1,311 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: overnic
* Date: 2018/4/12
* Time: 18:21
*/
namespace OverNick\Payment;
use OverNick\Payment\Alipay\AliPayApp;
use OverNick\Payment\Kernel\Tools\PayCode;
use OverNick\Payment\Wechat\WechatPayApp;
use OverNick\Support\Manager;
/**
* Class PaymentManage
*
* @property \Ove... | true |
541d12fa75097cf57306427afad305733a434c1a | PHP | Chatuayy/Past-Works | /Data Lab/lab02/Rows.php | UTF-8 | 468 | 3.078125 | 3 | [] | no_license | <html>
<head>
<title>Rows</title>
<body>
<?php
$numrows = $_GET['rows'];
echo '<table border ="1">';
for($i=0;$i<$numrows;$i++){
$color = array("#FF0000","#FFF000","#00FFFF");
if ($i%3 == 0)
$a = $color[0];
elseif ($i%3 == 1)
$a = $color[1];
elseif ($i%3 == 2)
$a = $colo... | true |
44f1de71a69416fa2253bda44c3929f8c86c61ab | PHP | johang/wikitrends | /render/wikipedia.php | UTF-8 | 7,744 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
define("WIKIPEDIA_USERAGENT", "Wikitrends/4.0 (johang@toolserver.org)");
include_once "cache.php";
function wikipedia_fetch_main_page($L) {
$ch = curl_init("http://$L.wikipedia.org");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_RETURNTRAN... | true |
9431b2b9266bb35a6edb4f94288ab74d547fb7d6 | PHP | izzunmustaqim/hr-cms | /protected/models/Tbldepartment.php | UTF-8 | 6,040 | 2.609375 | 3 | [] | no_license | <?php
/**
* This is the model class for table "tbldepartment".
*
* The followings are the available columns in table 'tbldepartment':
* @property integer $DepartmentId
* @property integer $DeptCatId
* @property string $DepartmentDesc
* @property integer $StatusId
* @property integer $HODUserId
* @property int... | true |
7bafd6955bd5c0415403619b3c859a14279f593a | PHP | NeneWang/tidywork.space | /backend/api/card.php | UTF-8 | 3,043 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
include '../includes/db.php';
include '../includes/functions.php';
header("Content-Type:application/json");
if (isset($_POST["update"])) {
extract($_POST);
$dataArray = json_decode($update);
for ($i = 0; $i < count($dataArray->cards); $i++) {
$cardId = $dataArray->cards[$i]->cardId;
... | true |
a97b09f45fe34361270ff1191d3bf1899100d139 | PHP | mohmedsalem19/uploader | /index.php | UTF-8 | 2,357 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
if (isset($_POST["upload"])) {
$filesname = $_FILES["torrent"]["name"];
$filesize = $_FILES["torrent"]["size"];
$filetype = $_FILES["torrent"]["type"];
$filetmp = $_FILES["torrent"]["tmp_name"];
$namemody = str_replace(' ', '*', $filesname);
if ($filetype == 'application/x-bittorrent') {
$newd... | true |
40263e79b6b23db9daab856d76338d79131d3e3a | PHP | oliver9321/reclutamientophp | /Model/loginModel.php | UTF-8 | 1,219 | 2.921875 | 3 | [] | no_license | <?php
class LoginModel
{
private $pdo;
public $Correo;
public $Clave;
public function __CONSTRUCT()
{
try
{
$this->pdo = Database::StartUp();
}
catch(Exception $e)
{
die($e->getMessage());
}
}
public function login(L... | true |
fdbd52af18d14fd4438f9c4e38636619bdf30a53 | PHP | NanoZoul/PhpStorm | /src/routes.php | UTF-8 | 2,812 | 2.71875 | 3 | [] | no_license | <?php
// Routes
$app->get('/[{name}]', function ($request, $response, $args) {
// Sample log message
$this->logger->info("Slim-Skeleton '/' route");
// Render index view
return $this->renderer->render($response, 'index.phtml', $args);
});
class Pic extends Illuminate\Database\Eloquent\Model {
publ... | true |
cc6c4cd3e29c1c8a27e34994d1439e3989714c78 | PHP | tarunewb/GET-STARTED | /register.php | UTF-8 | 880 | 2.59375 | 3 | [] | no_license | <?php
$name=$_POST["fname"];
if($name==""){
echo "Error......First Name is Empty";
}
else{
echo "$name<br>";
}
$Name=$_POST["lname"];
if (!empty($Name)){
echo "$Name<br>";
}
else{
echo "Error......Last Name is Empty";
exit;
}
$Email=$_POST["mail"];
if (!empty($Email)){
echo "$Email<br>";
}
else{
echo "Error....... | true |
76d5930eef8310d2f280d8ba0b53de7d78208bb4 | PHP | udistrital/arka_desarrollo | /core/auth_new/Sesion.class.php | UTF-8 | 14,003 | 2.640625 | 3 | [] | no_license | <?php
require_once ("core/auth/SesionSql.class.php");
require_once ("core/auth/SesionBase.class.php");
class Sesion extends SesionBase {
private static $instancia;
const SESIONID='sesionId';
const EXPIRACION='expiracion';
const APLICATIVO='aplicativo';
const ACCEDER='acces... | true |
ca6c55c7d71421539938073898650411e1172ddd | PHP | baiooy/hqimt_backend | /backend/application/models/M/Hospital.php | UTF-8 | 4,887 | 2.609375 | 3 | [] | no_license | <?php
class Application_Model_M_Hospital extends Application_Model_M_B_Hospital{
/*
* 通过邮箱和密码查询
*/
public static function fetchByEmailAndPasswd($email,$passwd){
$select = self::select();
$select
->where('email = ?',$email)
->where('passwd = ?',$passwd)
->where(... | true |
e5f82598648fca82f32e06e9a5d65ec2c04b300b | PHP | hayyuelha/SimpleSecureWeb | /bin/register.php | UTF-8 | 1,207 | 2.578125 | 3 | [] | no_license | <?php
if(file_exists("../connect/connect.php")){
include("../connect/connect.php");
}else{
include("connect/connect.php");
}
Class Register{
/* OK */
function addUser($username, $password, $email,$csrf_token){
if($csrf_token == generate_csrf_token()){
$query = mysql_query("INSERT INTO user (usern... | true |
361dbd4e73b697294847be0a6ae123a53221fe47 | PHP | inoves/ModInoves | /trash/generated_models/commentbase.php | UTF-8 | 364 | 2.515625 | 3 | [] | no_license | <?php
//
class CommentBase extends ActiveRecord {
protected $columns = array('id', 'user_id', 'subject', 'content', 'active', 'page_id');
protected $table_name = 'comments';
protected $table_vanity_name = 'comments';
protected $primary_key = 'id';
static function find($id, $options=null) {
return paren... | true |
950f49461ee2c63a6b65fc9729dbc9b7341d5814 | PHP | laxmi59/mfwg | /mfwg/index.php | UTF-8 | 12,658 | 2.515625 | 3 | [] | no_license | <?php
include_once("classes/class.system.php");
include_once("classes/class.js.php");
$S = new System();
$S->dbconn();
if($_SERVER['REQUEST_METHOD'] == "POST" && $_POST["singup"] == 1)
{
extract($_POST);
$data=$_POST;
//$phonenumber=$phone1."-".$phone2."-".$phone3;
$res=$S->userAdd($data);
if($res[0]==1)
{
Head... | true |
f7adbb2ceae23bdc04da1dae3489762f7181f420 | PHP | e020282/Boxee-NFO-Generator | /gennfo.php | UTF-8 | 2,859 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | <?php
function uploadThumb($moviename) {
if (!file_exists("thumbs") || !is_dir("thumbs")) {
mkdir("thumbs");
}
if ((($_FILES["thumb"]["type"] == "image/jpeg")
|| ($_FILES["thumb"]["type"] == "image/pjpeg"))
&& ($_FILES["thumb"]["size"] < 1000000)) {
if ($_FILES["thumb"]["error"] > 0) {
return "E2";
}
... | true |
7a3de8ff75f5403b81f1586492177c73a79d44a7 | PHP | tygor/Liriope-Framework | /Liriope/Component/Forms/Form.php | UTF-8 | 3,251 | 3.140625 | 3 | [] | no_license | <?php
namespace Liriope\Component\Forms;
use Liriope\Component\Forms\FormField;
/**
* The Form class pulls together all pieces of the form system.
*/
class Form implements \Iterator {
// @var boolean
private $error = FALSE;
// @var string The name of the form and the form heading
public $name;
// @var... | true |
8aedaac93d80fb8012f573febb0bb8ed21897f8d | PHP | gibbonweb/PocketScrooge | /lib/pocketscrooge/models/TransactionModel.php | UTF-8 | 1,090 | 2.671875 | 3 | [] | no_license | <?php
/*
* Copyright (c) 2012, gibbonweb
* All rights reserved.
*/
namespace pocketscrooge\models;
use hydrogen\model\Model;
use hydrogen\database\query;
use pocketscrooge\sqlbeans\TransactionBean;
use pocketscrooge\helpers\DatetimeRange;
class TransactionModel extends Model {
protected static $modelID = 'tm';
... | true |
dedf086d8eb33772279737ec1a722ef8d5890a5b | PHP | anxp/sherlock | /Classes/iArrayFiltration_2D.interface.inc | UTF-8 | 459 | 2.59375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: andrey
* Date: 2019-03-25
* Time: 08:05
*/
interface iArrayFiltration_2D {
public static function selectUniqueSubArrays_byField(array $inputArray, string $fieldToCheck): array;
public static function selectUniqueSubArrays_byTotalCompare(array $inputArray): array;
pub... | true |
cc2f81cc5f8a1cd35a4d5211829ebe34428e9ec6 | PHP | marcanthonyconcepcion/MarcPHPRESTAPIDemo | /tests/PDODatabaseRecordsTest.php | UTF-8 | 4,247 | 2.703125 | 3 | [] | no_license | <?php
/*
* Copyright (c) 2021.
* Marc Concepcion
* marcanthonyconcepcion@gmail.com
*/
require_once __DIR__ . "/../DatabaseRecords.php";
require_once __DIR__ . "/../PDODatabaseRecords.php";
class PDODatabaseRecordsTest extends PHPUnit\Framework\TestCase
{
private DatabaseRecords $dut;
private array $expec... | true |
6c7482cab103e41f56f88b3682adb85f5849c361 | PHP | zq940222/yuetanglvju | /application/admin/model/Spec.php | UTF-8 | 2,219 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: #ZhangQiang
* Date: 2018/7/12
* Time: 14:24
*/
namespace app\admin\model;
use traits\model\SoftDelete;
class Spec extends BaseModel
{
use SoftDelete;
protected $deleteTime = 'delete_time';
public function item()
{
return $this->hasMany('SpecItem... | true |
dfe7e107df735128da3f7f0bee90efeee9c01bda | PHP | nathysOne/comp353 | /mySqlFunc.php | UTF-8 | 19,947 | 2.703125 | 3 | [] | no_license | <?php
function connectDB(){
$servername = "localhost";
$username = "root";
$password = "password";
$dbms = "comp353Final";
// Create connection
$connection = new mysqli($servername, $username, $password, $dbms);
// Check connection
if ($connection->connect_error) {
die("Connection failed: ");
}
//echo... | true |
2d68ceead7dcfdc1359fb929b4a68fab4b31153a | PHP | anjana06/anjana06.github.io | /css/formnew.php | UTF-8 | 1,645 | 2.609375 | 3 | [] | no_license | <?php
include('connection.php');
session_start();
if(!isset($_SESSION['uname']))
{
header('Location:index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title> to-do-list </title>
</head>
<body>
<form method="POST">
<table>
<tr>
<td> TI... | true |
1431bb1205a03de2a95d47ee4849bc6883899e77 | PHP | amenakhatunbd/maritfair | /app/Http/Controllers/Admin/Auth/ForgotPassword.php | UTF-8 | 1,730 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\SM\SM;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Facades\Auth;
class ForgotPassword extends Controller
{
public function __construct()
{
$this->middleware('guest');
}... | true |
b3954993ec1624db9965e390c8b75ff0346600e3 | PHP | levodyn/gameworldBack | /app/Http/Controllers/ArticleController.php | UTF-8 | 1,362 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Article;
class ArticleController extends Controller
{
public function index()
{
$article = Article::with('user')->orderBy('created_at', 'DESC')->get();
return response()->json($article,200);
}
public function ... | true |
61febed55e9a84c2d54eb8053461264ee4e30e49 | PHP | Oktopost/Squid | /Source/Squid/MySql/Impl/Connectors/Internal/Map/MapFactory.php | UTF-8 | 1,151 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace Squid\MySql\Impl\Connectors\Internal\Map;
use Squid\MySql\Impl\Connectors\Internal\Map\Maps\ArrayMapper;
use Squid\MySql\Impl\Connectors\Internal\Map\Maps\DummyMapper;
use Squid\MySql\Impl\Connectors\Internal\Map\Maps\LiteObjectMapper;
use Squid\MySql\Impl\Connectors\Internal\Map\Maps\LiteObjectSimple... | true |
07d6834c115341a74ffa650af97a592219b02ea8 | PHP | ivancas84/php-controller-gen | /src/core/gen/generate/phpdbgen/sql/method/fields/Fields.php | UTF-8 | 1,007 | 2.609375 | 3 | [] | no_license | <?php
require_once("generate/GenerateEntityRecursiveFk.php");
class Sql_fields extends GenerateEntityRecursiveFk {
public $fields = [];
/*public function generate(){
if(!$this->getEntity()->hasRelations()) return "";
$this->start();
$this->recursive($this->getEntity());
$this->end();
return ... | true |
0cf895c04c1cc8fbde29567a2d285c7c4c3007b2 | PHP | i12-sistemas/icom-i12-clienteapp | /api/app/Console/Commands/DownloadNFeAlmoxarifadoBSoftCommand.php | UTF-8 | 1,761 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Http\Request;
class DownloadNFeAlmoxarifadoBSoftCommand extends Command
{
protected $signature = 'bsoft:processanfealmoxarifado';
protected $description = 'Faz o download de XML das notas do almoxarifado no sistema BSoft';
... | true |
643bf9ff773e388a50e9320369b215f4503c92d2 | PHP | btran12/Movie-Database-Website | /add_movie.php | UTF-8 | 5,034 | 2.640625 | 3 | [] | no_license |
<?php
session_start();
if ($_SESSION['valid'] && ($_SESSION['username'] == 'btran')){
if (empty($_POST)){
?>
<html>
<head>
<title>Add Movie</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<?php
include "nav-bar.php";
?>
<?php
include '... | true |
eefd0c827d80bfd102164eadc47ba35ef3e4b3a2 | PHP | Thepahka/clickscomputer | /model/pieza.model.php | UTF-8 | 4,490 | 2.890625 | 3 | [] | no_license | <?php
class PcModel
{
private $pdo;
public function __CONSTRUCT()
{
try
{
$this->pdo = Database::open();
$this->pdo->SetAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
die($e->getMessage());
}
}
public function newPc($data)
{
t... | true |
92c7dec16d1b71707ec39403aa03e1d75c287cab | PHP | PapooSoftware/PapooCMS | /plugins/faq/lib/inputfilter_class.php | UTF-8 | 12,170 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
/** @class: InputFilter (PHP4 & PHP5, with comments)
* @project: PHP Input Filter
* @date: 10-05-2005
* @version: 1.2.2_php4/php5
* @author: Daniel Morris
* @contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.
* @copyright: Daniel Morris
* @email: dan@... | true |
c6ebb84ae30c35343d2f1ae9512940a469b3dc96 | PHP | tasoftch/php-process | /Tests/ProcessTest.php | UTF-8 | 7,051 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright (c) 2019 TASoft Applications, Th. Abplanalp <info@tasoft.ch>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | true |
7597463adb7361d097c80fb884a4819f099b40df | PHP | SilasKenneth/evaluation | /includes/Evaluation_Log.php | UTF-8 | 907 | 2.90625 | 3 | [] | no_license | <?php
class Evaluation_Log{
private $unit_id;
private $evaluation_id;
private $student_id;
private $lecturer;
/**
* @return mixed
*/
public function getUnitId()
{
return $this->unit_id;
}
/**
* @return mixed
*/
public function getEvaluationId()
{
... | true |
3214246c7d291d6f88ad7065ebe520483348665d | PHP | tedc/iro-theme | /woocommerce/cart/cart-shipping.php | UTF-8 | 4,476 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Shipping Methods Display
*
* In 2.1 we show methods per package. This allows for multiple methods per order if so desired.
*
* This template can be overridden by copying it to yourtheme/woocommerce/cart/cart-shipping.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you... | true |
645ad22770fde81ab2c243d679bf387d7b7228d3 | PHP | AlphaPipe-ORIGIN/otphp | /lib/HOTP.php | UTF-8 | 1,752 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace OTPHP;
class HOTP extends OTP implements HOTPInterface
{
public function __construct()
{
... | true |
a63e8e904f73d959ad6a4be7319d3d01125c1a90 | PHP | Fcmam5/home-work-php101 | /name-asking_cookies.php | UTF-8 | 435 | 2.515625 | 3 | [] | no_license | <?php
$hisname = $_POST['urname'];
if( $hisname != null){
setcookie("hisname", $hisname, time()+3600);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Asking for your name</title>
</head>
<body>
<p>It works :) The problem is only with the index initialisation</p>
<form method="POST" action="landing-page_post.php ">
<inpu... | true |
1f12e65b27ab60870aceab684ef62772c218a5b1 | PHP | fintara/thesis-manager | /src/AppBundle/Services/ThesisService.php | UTF-8 | 1,388 | 2.921875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: fintara
* Date: 18/01/2017
* Time: 22:02
*/
namespace AppBundle\Services;
use AppBundle\Entity\Thesis;
use AppBundle\Entity\Worker;
use AppBundle\Exceptions\ReviewerDuplicatedException;
use AppBundle\Repository\ThesisRepositoryInterface;
/**
* Thesis service
*
* @pac... | true |
83bb2a78b1e264ff31736b819f6ec4b00b217083 | PHP | twixi/online-store | /controllers/AdminUsersController.php | UTF-8 | 4,304 | 2.53125 | 3 | [] | no_license | <?php
class AdminUsersController{
// переход по "Управление пользователями"
public static function actionIndex() {
if (isset($_SESSION['user']) && $_SESSION['user']['admin']==1 && $_SESSION['user']['is_ban']==0) {
$name_page = 'users';
$menu = CoreController::getMainMenu();
$users = Admin... | true |