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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
507a518b3e5e4f4472a31ee51e6cea8bdfd095ef | PHP | kingkernel/Marrento | /app/engine/class/resumeReport.class.php | UTF-8 | 1,947 | 2.578125 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
/*
data criação: 31/01/2018
*/
class resumeReport{
public $somacontent;
public $total;
public $cidades = [];
public $bairros = [];
public $reportItens = [];
public $infoListText;
public $bigtitle = 'nome';
public function __construct(){
}
public function getResume(){
$sql = 'call sp_getcidades('.$_SE... | true |
fb3ca5baa9171735b20c6d81f15c905058043bda | PHP | xynobo/bizon365-api-php | /src/Models/Webinar.php | UTF-8 | 1,409 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace slavkluev\Bizon365\Models;
class Webinar extends Base
{
protected $_id;
protected $name;
protected $text;
protected $type;
protected $nerrors;
protected $count1;
protected $count2;
protected $data;
protected $webinarId;
protected $created;
/**
* @retu... | true |
99f7c4560e337f6375d5afde246174ae9230bc11 | PHP | jontxust0/proyecto_final | /model/peliculasGeneroClass.php | UTF-8 | 772 | 2.734375 | 3 | [] | no_license | <?php
class peliculasGeneroClass{
protected $id;
protected $id_pelicula;
protected $id_genero;
public function getId()
{
return $this->id;
}
public function getId_pelicula()
{
return $this->id_pelicula;
}
public function getId_genero()
... | true |
b1cc71e1dd5ebab6ae56b50991f180edbb07e378 | PHP | nikita2206/callable-tests | /tests/variadics-failure5.php | UTF-8 | 142 | 2.9375 | 3 | [] | no_license | <?php
function a(callable(callable($a)) $cb)
{
$cb("b");
}
function b($a) { }
function c(callable(...$a) $cb) {
$cb(1, 2, 3);
}
a("c");
| true |
a93c9f73898f465e401d73aca6c46cb1a66d6d22 | PHP | paljinov/php-data-structures | /src/LinkedList/LinkedList.php | UTF-8 | 6,483 | 3.71875 | 4 | [
"MIT"
] | permissive | <?php
namespace App\LinkedList;
use RuntimeException;
/**
* Implementation of linked list data structure.
* Wiki: https://en.wikipedia.org/wiki/Linked_list
*/
class LinkedList
{
/**
* Number of nodes.
*
* @var int
*/
private $count;
/**
* First linked list node.
*
*... | true |
04cf339ec3907ffb23016989d9a8156e172ad8dd | PHP | markwu/Cartify | /libraries/cart.php | UTF-8 | 13,184 | 3.140625 | 3 | [] | no_license | <?php
/**
* --------------------------------------------------------------------------
* Cartify
* --------------------------------------------------------------------------
*
* Cartify, a shopping cart bundle for use with the Laravel Framework.
*
* @package Cartify
* @version 2.0.0
* @author Bru... | true |
04e04dd905dcd4453202528b682eed16af087af1 | PHP | matheusinhesta/GTFSManager | /app/Models/VehiclePosition.php | UTF-8 | 1,902 | 2.59375 | 3 | [] | no_license | <?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class VehiclePosition
*
* @property int $id
* @property int $trip_descriptor_id
* @property int $vehicle_id
* @property float $lat
* ... | true |
f2ba81370f67e67783cca5f9955e573899b7738e | PHP | compranicles/hotelsystem | /app/Models/UserModel.php | UTF-8 | 2,272 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php namespace App\Models;
use CodeIgniter\Model;
class UserModel extends Model{
protected $table = 'users';
protected $primaryKey = 'user_id';
protected $returnType = 'array';
protected $allowedFields = [
'user_id',
'first_name',
'last_name',
'date_of_birth'... | true |
64c24fbf46b8f708bee0251e26c3d6a38eca28ab | PHP | bentideswell/magento1-wordpress-integration | /app/code/community/Fishpig/Wordpress/Model/Resource/Term.php | UTF-8 | 3,627 | 2.625 | 3 | [] | no_license | <?php
/**
* @category Fishpig
* @package Fishpig_Wordpress
* @license http://fishpig.co.uk/license.txt
* @author Ben Tideswell <help@fishpig.co.uk>
*/
class Fishpig_Wordpress_Model_Resource_Term extends Fishpig_Wordpress_Model_Resource_Abstract
{
/**
* Determine whether there is a term order fi... | true |
8241c9dc10bd1df80fd63e7e243c1462c2dc0d1c | PHP | Harithapv/php-laravel-bootcamp | /Day1/exercise1.php | UTF-8 | 273 | 3.359375 | 3 | [] | no_license | <?php
$arr = [2, 3, [4,5], [6,7], 8];
$output = array();
foreach ($arr as $value){
if(is_array($value)) {
foreach ($value as $array) {
array_push($output, $array);
}
} else {
array_push($output,$value);
}
}
print_r($output); | true |
594a5698a5c3c9d5c390ffb99fe198efb87024f3 | PHP | arewolf/schoolwork | /localhost/Practices/Week1/GenderName.php | UTF-8 | 151 | 3.234375 | 3 | [] | no_license | <?php
$name = "Russ";
$gender = "F";
if ($gender == "M") {
$name = "Hello Mr. " . $name;
echo $name;
}
else {
echo "Hello Mrs. " . $name;
}
?>
| true |
43ce136b6ab2e177761c31759828ebca1f46594d | PHP | dnshouse/solidExamples | /src/OpenClosed/Checkout.php | UTF-8 | 634 | 3.015625 | 3 | [] | no_license | <?php
namespace Solid\OpenClosed;
class Checkout
{
protected $payment;
public function __construct($payment)
{
$this->payment = $payment;
}
public function acceptPayment()
{
if ($this->payment instanceof PayPal) {
return $this->payment->payByPayPal();
}
... | true |
d1e7b7c1c5c8315e94cd9fa26a9fe13ec08a6245 | PHP | davidmars/m-vc | /_app/mvc/m/vv/press/VV_contactList.php | UTF-8 | 661 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by JetBrains PhpStorm.
* User: david
* Date: 01/11/12
* Time: 16:27
* To change this template use File | Settings | File Templates.
*/
class VV_contactList extends ViewVariables{
/**
* @param $model M_contacts
*/
public function __construct($model){
$this->model=$mode... | true |
6fa6f73f5a8841ffbcbc1622f63cf35db58d9102 | PHP | Barbeek/Piscine-PHP | /D07-PHP-OBJET/ex04/Lannister.class.php | UTF-8 | 133 | 3.125 | 3 | [] | no_license | <?php
class Lannister{
public function sleepWith($person){
print($this->with($person));
print PHP_EOL;
}
}
?> | true |
4781c9a17404c8ca88c96c4dd3df8253c8a40dbe | PHP | ferdn4ndo/infotrem | /legacy/antigo/inserirfotonova.php | ISO-8859-1 | 7,692 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
//Includes
include "includeslocalhost.php";
if (!isset($_SESSION)) {
session_start();
}
?>
<?php
$colname_cfoto_rs = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_cfoto_rs = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);
}
mysql_select_db($... | true |
763366d5b1bb2166b11b693608a4abd18a1de676 | PHP | fortifi/php-api | /src/Requests/AuthTokenRequest.php | UTF-8 | 866 | 2.796875 | 3 | [] | no_license | <?php
namespace Fortifi\Api\V1\Requests;
use Fortifi\Api\Core\ApiRequest;
use Packaged\Helpers\Objects;
use Packaged\Helpers\Strings;
class AuthTokenRequest
extends ApiRequest
implements \JsonSerializable
{
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return [
"token" => $this->getT... | true |
1222ece5183daa4b3c379c655a103d29d559d3ce | PHP | ccmbenchmark/ting_api_platform | /src/Util/QueryBuilderHelper.php | UTF-8 | 2,364 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace CCMBenchmark\Ting\ApiPlatform\Util;
use CCMBenchmark\Ting\ApiPlatform\Ting\Query\Expr\Join;
use CCMBenchmark\Ting\ApiPlatform\Ting\Query\JoinType;
use CCMBenchmark\Ting\ApiPlatform\Ting\Query\SelectBuilder;
use function implode;
use function sprintf;
final class QueryBuilde... | true |
8efeae4396962b9664b9df3b151a6f61030b65ca | PHP | thumamah/thumamah.github.io | /delete_process.php | UTF-8 | 1,000 | 2.515625 | 3 | [] | no_license |
<!-- <form action="" method="POST" class="form">
<input type="text" name="id" placeholder="Registration Number"/>
<br>
<input type="submit" name="search" id="searchF" value="Search" class="btn btn-primary" />
</form> -->
<?php
// connection
require('/home/s3022041/sqlC/dbConnect.php');
... | true |
22fa5427a7065f37d6a4349410536e87788b3b32 | PHP | freshinger/fitbase.app | /src/Fitbase/Bundle/EmailBundle/Subscriber/UserSubscriber.php | UTF-8 | 1,257 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace Fitbase\Bundle\EmailBundle\Subscriber;
use Fitbase\Bundle\UserBundle\Event\UserEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class UserSubscriber implements EventSubscriberInterface
{
protected $mailer;
protected $translator;
protected $templating;
public f... | true |
1458b40cf2e832ad81326b6ddbad74d0d14b6403 | PHP | larapulse/support | /src/Helpers/Regex.php | UTF-8 | 1,223 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace Larapulse\Support\Helpers;
class Regex
{
public static function quantifyGroup(string $str, $min = null, $max = INF, string $tag = null) : string
{
$tag = $tag ? "?<{$tag}>" : '';
return "({$tag}{$str})".self::fetchQuantifier($min, $max);
}
/**
* Build quantifier ... | true |
41677182751c4fae49a87a1350e59a4e286c94bd | PHP | hirokiproject/PROJECT | /01/HP/production/kirimEmailBroadcast.php | UTF-8 | 608 | 2.5625 | 3 | [] | no_license | <?php
$mail_subject=$_POST['mail_subject'];
echo "Mail Subject : $mail_subject<br>";
$email_list=$_POST['email_list'];
echo "Email List : $email_list<br>";
$mail_body=$_POST['mail_body'];
echo "Mail body : $mail_body<br>";
$process=explode(",",$email_list);
reset($process);
foreach ($process as $to)... | true |
405200de5f3fd7d6ae6606e9ffcedc69f50c2a8f | PHP | bondhupabel120/news-portal | /app/Http/Controllers/SignUpController.php | UTF-8 | 3,376 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Visitor;
use Illuminate\Http\Request;
use App\Category;
use App\Breaking;
use App\International;
use Illuminate\Support\Facades\Session;
class SignUpController extends Controller
{
public function index(){
return view('front.user.sign-up',[
'cat... | true |
89fe62bcac579b0e93d9c906187537c2912a6d32 | PHP | hkulekci/qdrant-php | /src/Endpoints/Collections/Index.php | UTF-8 | 1,269 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Index
*
* https://qdrant.tech/documentation/indexing/
*
* @since Mar 2023
* @author Haydar KULEKCI <haydarkulekci@gmail.com>
*/
namespace Qdrant\Endpoints\Collections;
use Qdrant\Endpoints\AbstractEndpoint;
use Qdrant\Exception\InvalidArgumentException;
use Qdrant\Models\Request\CreateIndex;
... | true |
1ef3e3d5db7ad82cf0e1403ee9608fb5c28ed720 | PHP | pospi/wpbackendbase | /field_types/formio_field-youtube_user.class.php | UTF-8 | 847 | 2.53125 | 3 | [] | no_license | <?php
/**
* Facebook user ID input
*
* Just a text input with some javascript wrapped around it to make the intent clearer
*
* @package wpBackendBase
* @author Sam Pospischil <pospi@spadgos.com>
*/
class FormIOField_Youtube_user extends FormIOField_Text
{
public $buildString = '<div class="row{$alt? alt}{$clas... | true |
bce1d4a7856bf446382f612bb9ece85c4c5474e8 | PHP | bleachangel/public | /TM/sl/3/3.24/test.php | UTF-8 | 491 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | <?php
function example1($m){
$m = $m*5 + 10;
echo "在函数内:\$m = ".$m;
}
$m = 1;
echo example1($m);
echo "<p>example1(\$m),在函数外:\$m = $m <p>";
function example2(&$n){
$n = $n*5 + 10;
echo "在函数内:\$n = ".$n;
}
$n = 1;
echo example2($n);
echo "<p>example2(\$n),在函数外:\$n = $n <p>";
function values($... | true |
f6baece7c325691d89b0399f7ff2205dfcc6c3f9 | PHP | roque510/filmon | /Modulos/listaEmisoras.modulo.php | UTF-8 | 1,018 | 2.75 | 3 | [] | no_license | <?php
require_once("config.php");
$conn = new mysqli($SVR,$USR,$PW,$DB);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$type = 'videos';
if(isset($_GET['vid'])){
if($_GET['vid'] == 'peli')
$type = 'peliculas';
else
$type = 'videos';
}
$sql = "SELECT * ... | true |
e0fd742ffedbca34dd6a32e5b0ccb11833e79353 | PHP | qt06/qtlight | /var/form.php | UTF-8 | 4,385 | 3.125 | 3 | [] | no_license | <?php
/**
* create form elements
*
* author: qingtian
* website: http://www.qt06.com/
*/
class form
{
private $element_array = array();
private $begin_form = null;
private $end_form = null;
private $action = null;
private $method = null;
function __construct($action=null,$method=null,$otherparams= array()) {
if(... | true |
dcd99946aa6c2cd71d760c498a417465580c4857 | PHP | yiisoft/yii2-app-advanced | /frontend/tests/unit/models/ContactFormTest.php | UTF-8 | 1,192 | 2.65625 | 3 | [] | permissive | <?php
namespace frontend\tests\unit\models;
use frontend\models\ContactForm;
use yii\mail\MessageInterface;
class ContactFormTest extends \Codeception\Test\Unit
{
public function testSendEmail()
{
$model = new ContactForm();
$model->attributes = [
'name' => 'Tester',
... | true |
9c6dc484d5fe1b59cd9bff58c9147985fc3c61f9 | PHP | Dobeb96/SpikerV2 | /pobierz.php | UTF-8 | 766 | 2.625 | 3 | [] | no_license | <?php
ob_clean();
ob_end_flush();
$zip = new ZipArchive();
$zipname = substr($_POST['path'], 2).substr(time(), 5).".zip";
$zip->open($zipname, ZipArchive::CREATE);
$files = glob($_POST['path']."/*");
for ($i = 0, $len = count($files);... | true |
6031122e30e7492c02fbbe601469d59ab35a84af | PHP | DougStoker/contractapp | /php_server/data_uploader.php | UTF-8 | 1,654 | 2.703125 | 3 | [] | no_license | <?php
$file = 'contractors.json';
$json = file_get_contents($file,0,null,null);
$data = json_decode($json);
$mysqli = new mysqli('127.0.0.1', 'root', 'password', 'contractorsdb');
if ($mysqli->connect_errno) {
echo "could not connect";
echo "Errno: " . $mysqli->connect_errno . "\n... | true |
ebd3c908e79d04851ba6584a2dc26a1fa5a73971 | PHP | joseph-montanez/soft-mocks | /tests/unit/Badoo/ArrayDestructingPHP71TestClass.php | UTF-8 | 483 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Oleg Efimov <o.efimov@corp.badoo.com>
* @author Kirill Abrosimov <k.abrosimov@corp.badoo.com>
*/
namespace Badoo\SoftMock\Tests;
class ArrayDestructingPHP71TestClass
{
protected const VALUES = ['a', 'b', 'c'];
public static function getA()
{
[$a,,] = self::VALUES;
re... | true |
8e43e72811ddfd2d809837a33b978b5c2c833981 | PHP | ericlette/knownonline | /app/Repositories/OrderDetailRepo.php | UTF-8 | 841 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
use App\Models\Order;
use App\Models\OrderDetail;
class OrderDetailRepo
{
/**
* @return OrderDetail|mixed
*/
public function getModel()
{
return new OrderDetail();
}
/**
* @return OrderDetail|mixed
*/
public function store(Order $... | true |
0b415bbf73e95578ce15a92b283a56c937910816 | PHP | InteractivePlus/PDK2021-Wrapper | /src/Implementions/Sender/LocaleFileEmailServiceProvider.php | UTF-8 | 560 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace InteractivePlus\PDK2021\Implementions\Sender;
use libphonenumber\PhoneNumber;
class LocalFileEmailServiceProvider extends ConsoleEmailServiceProvider{
private string $_filename;
public function __construct(string $filename)
{
$this->_filename = $filename;
}
public function ... | true |
8f434fed9786a496c4198d091b7f61ded9ca5c70 | PHP | sgrame/openSGrame | /openSGrame/library/SG/Validate/CompanyNumber.php | UTF-8 | 1,925 | 2.984375 | 3 | [] | no_license | <?php
/**
* @category SG
* @package Validate
* @author Peter Decuyper <sgrame@gmail.com>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://github.com/sgrame/openSGrame
* @filesource
*/
/**
* SG_Validate_CompanyNumber
*
* Validator for Company Numbers
* Check... | true |
4b09eac9968b077b6841c8372f347b14fbb4cebb | PHP | hyyqcweb/php-learn | /form/form.php | UTF-8 | 3,057 | 3.46875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>整体form提交实例</title>
<style>
.error {
color: #FF0000;
}
</style>
</head>
<body>
<?php
$nickname = $email = $website = $remark = $gender = ""; // 变量
$nicknameErr = $emailErr = $websiteErr =... | true |
85fc8ff76268fe0c02629cb48d36a8144032dc72 | PHP | CarolineSchevers/PHP | /5.mysql/auth.php | UTF-8 | 4,869 | 2.578125 | 3 | [] | no_license | <?php
session_start();
// initializing variables
$login_email = "";
$errors = array();
////////////////// The registration logic //////////////////
include_once 'connection.php';
$conn = openConnection();
$first_name = $conn->real_escape_string($_POST['first_name']);
$last_name = $conn-... | true |
fadbd3b73216b3e4a670cc72d464bb15cc85f404 | PHP | Anatoliy111/dmkg | /app/models/UtLich.php | UTF-8 | 1,218 | 2.53125 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "ut_lich".
*
* @property int|null $ID
* @property string|null $SCHET
* @property string|null $TIP
* @property string|null $N_LICH
* @property string|null $DATA_POV
* @property string|null $DATA_VIG
* @property int|null $VID_ZN
*/
... | true |
5c9d105668501cf699405fc9ea54298c5a5a8a62 | PHP | andror190/first | /first.php | UTF-8 | 2,984 | 3.015625 | 3 | [] | no_license | <?php
echo "My first";
echo "<br>";
$x = (rand (10,30)) ;
echo "<center><h1>$x</h1></center>";
$text1 = "learning";
$text2 = "movie";
echo "i love " .$text1 ." from " .$text2. " for2";
echo "<br>" ;
echo str_replace("mamad","ali","mamad rft khune ali");
echo "<br>";
$f = 10.5 ;
var_... | true |
4802dc8dc795706e939d572b8c88b952937e72df | PHP | IsaacDev2022/Courses | /Curso PHP 7/aula17.php | UTF-8 | 279 | 3.5 | 4 | [] | no_license | <?php
// Operadores ariméticos: operadores para realizar operações comununs como adição, subtração, multiplicação, etc.
/*
Adição +
Subtração -
Multiplicação *
Divisão /
Módulo %
Exponenciação **
*/
echo 4 ** 2;
?> | true |
240eb487b8db3c3fcd8f4b4b7d134fd79fa8a67e | PHP | MrAnonymusz/AdvancedReporter---Reloaded | /app/Http/Controllers/Admin/SiteSettingsController.php | UTF-8 | 1,931 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\CoreController;
use Illuminate\Http\Request;
use App\Setting;
class SiteSettingsController extends Controller
{
private $settings;
/**
* Update's the site settings
*
* @param \Request $request
... | true |
1cda5f5e6b11243b9a91830db0e9edad26f192ca | PHP | padosoft/support | /src/ip.php | UTF-8 | 15,095 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
/**
* get Client IP. DEPRECATED! use getClientIP().
* @param array $server
* @return string
* @deprecated
* @see getClientIp();
*/
function getIPVisitor(array $server = []) : string
{
$IP2Check = '';
if (array_key_exists('HTTP_X_FORWARDED_FOR', $server) && trim($server['HTTP_X_FORWARDED_FOR']) != '... | true |
fc61e4e69c88c022cfa3c8b6b9c5089835042266 | PHP | lake83/pdf-generator | /models/Files.php | UTF-8 | 1,872 | 2.59375 | 3 | [] | no_license | <?php
namespace app\models;
use yii\helpers\Json;
/**
* This is the model class for table "files".
*
* @property int $id
* @property int $template_id
* @property string $name
* @property string $filds_value
*/
class Files extends \yii\db\ActiveRecord
{
public $values = false;
public $rows = [];
... | true |
ea8e4d8f07380115f6c8f4997d088457f12095dc | PHP | Dhii/containers | /tests/functional/CachingContainerTest.php | UTF-8 | 2,729 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Dhii\Container\FuncTest;
use Dhii\Container\CachingContainer as TestSubject;
use Dhii\Container\TestHelpers\ComponentMockeryTrait;
use Exception;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class CachingContainerTest extends TestCase
{
use ComponentMockeryTrait;
... | true |
9d73e6da7ef5515a2c2135075ebd0de5c17ed003 | PHP | eulogix/cool-core-bundle | /Lib/Wiki/WikiMediaConnector.php | UTF-8 | 2,607 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Eulogix\Cool package.
*
* (c) Eulogix <http://www.eulogix.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eulogix\Cool\Lib\Wiki;
use Eulogix\Cool\Lib\Traits\CoolCacheShimmed;
use... | true |
f97e117ea19a82ee9e6e577f76b266bf53779e73 | PHP | montycheese/RecDawgs | /src/edu/uga/cs/recdawgs/entity/impl/LeagueImpl.php | UTF-8 | 6,765 | 3.125 | 3 | [] | no_license | <?php
namespace edu\uga\cs\recdawgs\entity\impl;
use edu\uga\cs\recdawgs\entity\League as League;
use edu\uga\cs\recdawgs\persistence\impl\Persistent as Persistent;
use edu\uga\cs\recdawgs\RDException as RDException;
/** This class represents a sports league in the RecDawgs system. A league has a name (which must be... | true |
2f944cbd87bd5af0bd1f49e8aa9eedf743af0d65 | PHP | kgosciniak/decker | /controller/Controller.php | UTF-8 | 2,152 | 3.15625 | 3 | [] | no_license | <?php
include_once("model/Model.php");
class Controller {
public $model;
public function __construct() {
$this->model = new Model();
}
public function invoke() {
// card not clicked
if (!isset($_GET['card']))
{
// if no card specified, return all cards
$cards = $this-... | true |
4c547e7b68eb1d5ff49ee3c819da8187b3020072 | PHP | kmligue/Voting-System | /app/models/Course.php | UTF-8 | 3,473 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
class Course extends Eloquent {
protected $table = 'courses';
public function student() {
return $this->hasMany('Student', 'course_id');
}
public function position() {
return $this->hasOne('Position');
}
private static function hasPosition($courseid) {
return Position::where('courseid', '=', $cou... | true |
c5a1fca2b08610a1367eb18591051badd7b68339 | PHP | dnadlinger/theBlackboard | /backend/classes/MethodNotFoundException.php | UTF-8 | 317 | 3.28125 | 3 | [] | no_license | <?php
class MethodNotFoundException extends Exception {
public function __construct( $methodName ) {
parent::__construct( 'Method not found: ' . $methodName );
$this->methodName = $methodName;
}
public function getMethodName() {
return $this->methodName;
}
private $methodName;
}
?> | true |
5c290d05d87bec74e71826534b0ec46ad4e713ac | PHP | ddhruvgupta/Bluetooth | /WebApp/new_user.php | UTF-8 | 3,919 | 2.71875 | 3 | [] | no_license | <?php
session_start();
include "./utils/bootstrap.php";
include "./utils/connection.php";
include "./utils/emailVerification.php";
// include "navbar.php";
// include "utils/bootstrap_js.php";
//If insert if successful
if(isset($_POST['cancel'])){
header("location: index.php");
return;
}
if(isset($_POST['add'... | true |
566c284f866903fdba3ca015b02cd42d0c6627ef | PHP | rolexmessi/adebe | /wp-content/plugins/StupidPie/stupidbot/campaign_controller.php | UTF-8 | 4,675 | 2.609375 | 3 | [] | no_license | <?php
class Stupidbot_Campaign_Controller{
var $stupidbot;
public function __construct() {
$this->stupidbot = new Stupidbot;
if(isset($_POST['stupidbot_campaign'])) $this->create($_POST['stupidbot_campaign']);
if(isset($_POST['stupidbot_campaigns'])) $this->update($_POST['stupidbot_campaigns']);
... | true |
81e200c364e7f00cdc946cf958e1c07f9f144977 | PHP | eduardoemca/Tesis | /controlador/controlador-unidad.php | UTF-8 | 1,913 | 2.578125 | 3 | [] | no_license | <?php
require_once("../modelo/modelo-unidad.php");
require_once("../modelo/modelo-bitacora.php");
$objetounidad= new unidad();
$objetobitacora= new bitacora();
if (isset($_POST['Agregar-unidad-modal']))
{
$objetounidad->set_unidad($_POST['nombre-unidad-modal']);
$objetounidad->set_descripcion($_POST['descr... | true |
f97cbb8e8cce59a45df9473892e0c4fa8bd59bca | PHP | samsonasik/BetterReflection | /test/compat/ReflectionFunction_isClosure_basic.phpt | UTF-8 | 520 | 2.546875 | 3 | [
"MIT"
] | permissive | --TEST--
Reflection::isClosure
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
--SKIPIF--
<?php
if (!extension_loaded('reflection') || !defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
print 'skip';
}
?>
--FILE--
<?php require 'vendor/autoload.php';
$closure = function($param) { return "this... | true |
791cb461170b93996ab99935c0808b0cfba4880d | PHP | thobinh/php39_devpro | /Day12_PHP_Function_Custom_Include_Require_Function_Scope_Variable/Bai_tap_ve_nha_Day12_PHP_Function_Custom_Include_Require_Function_Scope_Variable/Danh_sach_nop_bai_ngay_12/PHP39_Day12_NguyenDucTung/BTVN/Bai_6.php | UTF-8 | 1,080 | 3.15625 | 3 | [] | no_license | <!--
6. Viết hàm tìm max – min của 4 giá trị cho trước là a – b – c - d, với mô tả như sau
• Kết quả hiển thị ra màn hình có dạng sau: “Max = <giá-trị>, Min = <giá-trị>”
• Áp dụng hàm vừa xây dựng để tìm max-min với một số trường hợp sau:
- a = 0, b = 0, c = 2, d = 6
- a = 2, b = 4, c = -6, d = -10
- a = 0, b = 5, c = ... | true |
9e858a54251cd051350f513f08419e7a21022627 | PHP | enduser/expressive-route-discovery | /src/DiscoverAction.php | UTF-8 | 707 | 2.671875 | 3 | [] | no_license | <?php
namespace ExpressiveDiscovery;
use Zend\Diactoros\Response\JsonResponse;
class DiscoverAction
{
/** @var array */
private $routes;
/**
* DiscoverAction constructor.
* @param array $routes
*/
public function __construct(array $routes)
{
$this->routes = $routes;
}
... | true |
3c320e8c01cd158a2d9d1eed9c5eb59e2f65f428 | PHP | Boydbueno/php-game-whut | /src/Stats/Wisdom.php | UTF-8 | 119 | 2.765625 | 3 | [] | no_license | <?php
namespace Stats;
class Wisdom extends Stat
{
protected $name = "Wisdom";
protected $acronym = "wis";
}
| true |
3c37fd6b7b43ec7141843fd23cb4794147f2114f | PHP | SBordier44/TinyFram | /src/Auth/Entity/User.php | UTF-8 | 2,755 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Auth\Entity;
use DateTime;
use Framework\Auth\UserInterface;
use function is_string;
class User implements UserInterface
{
/**
* @var int|null
*/
private $id;
/**
* @var string|null
*/
private $username;
/**
* @var string|null
*/
private $emai... | true |
90ecdeaacd977b32dfd74493cae9b176fbb2cc82 | PHP | sasaki132/sample | /src/src/Model/Table/CommentsTable.php | UTF-8 | 818 | 2.625 | 3 | [] | no_license | <?php
namespace App\Model\Table;
use Cake\ORM\Table;
use Cake\ORM\Query;
use Cake\ORM\RulesChecker;
use Cake\Validation\Validator;
class CommentsTable extends Table{
public function initialize(array $config){
parent::initialize($config);
$this->setTable('comments');
$this->setDisplay... | true |
1a7da3a15bd63319a0e4f085e1ccd5f98a289a39 | PHP | perenciolo/phpdao | /class/Usuario.php | UTF-8 | 5,426 | 3.0625 | 3 | [] | no_license | <?php
class Usuario
{
private $id;
private $login;
private $senha;
private $reg_date;
public function __construct($login = '', $password = '')
{
$this->setLogin($login);
$this->setSenha($password);
}
/**
* Get the value of id.
*/
public function getId()
... | true |
865459935bf9efa58efd31f467330a66d3fe3850 | PHP | vora1993/mcroy | /module/Application/src/Application/Entity/SliderInterface.php | UTF-8 | 395 | 2.65625 | 3 | [] | no_license | <?php
namespace Application\Entity;
interface SliderInterface
{
public function getId();
public function getName();
public function getUrl();
public function getSortOrder();
public function getDateAdded();
public function getDateModified();
public function getStatus();
public function ... | true |
ab53d7c1b48de8f8378d4eaa2d676e2b0514f013 | PHP | qcubed/application | /src/Jqui/SortableBase.php | UTF-8 | 3,345 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
/**
*
* Part of the QCubed PHP framework.
*
* @license MIT
*
*/
namespace QCubed\Jqui;
use QCubed\Exception\Caller;
use QCubed\Exception\InvalidCast;
use QCubed\Project\Application;
use QCubed\Type;
use QCubed as Q;
/**
* Class SortableBase
*
* The SortableBase class defined here provides an interface... | true |
3577d5de16cd968fb563ce1d0befdadd7bcc89cf | PHP | rymanalu/http | /src/Contracts/Response.php | UTF-8 | 371 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace Rymanalu\Http\Contracts;
interface Response
{
/**
* Check if the calls is successful by the response code.
*
* @return bool
*/
public function isSuccessful();
/**
* Get the response body.
*
* @param bool $toArray
* @return array|object|null
*... | true |
941310ada87e03ba7e3ca3b400e1a4b8dd4e281d | PHP | Clivern/Timber | /timber/database/migrations/Options.php | UTF-8 | 2,530 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Timber - Ultimate Freelancer Platform
*
* @author Clivern <support@clivern.com>
* @copyright 2015 Clivern
* @link http://clivern.com
* @license http://codecanyon.com/license
* @version 1.1
* @package Timber
*/
namespace Timber\Database\Migrations;
/**
* Create Options T... | true |
62413ced13b87e69b86f97005d4789585e5eaa14 | PHP | anggilb/codeeval | /03 - hard/p_134_a_bus_network.php | UTF-8 | 3,087 | 2.828125 | 3 | [] | no_license | <?php
class aBusNetwork {
private $_MAXSTOPS = 31;//310
private $_MAXNODES = 60;//6000
private $_MAXCOST = 300;//30000
private function get_cost($src, $dst, $g) {
$end = 0;
$head = 0;
$ans = $this->_MAXCOST;
$nodeq[$end++] = $src;
for($i=0; $i<$this->_MAXNODES; $i++) {
$costs[$i] = $this->_MAXCOST;... | true |
b61302bcecd85fd91c36a5a60d708feb67c61942 | PHP | CresQuest/Android-apps | /ampache-3.5.4/ampache-3.5.4/lib/class/user.class.php | UTF-8 | 31,174 | 2.765625 | 3 | [] | no_license | <?php
/*
Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License v2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WAR... | true |
cca77b4cd3fee73943984c752051338202309c8c | PHP | PatBass/TaxCalculator | /src/AppBundle/Entity/Sas.php | UTF-8 | 1,164 | 2.640625 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Sas
*
* @ORM\Table(name="sas")
* @ORM\Entity(repositoryClass="AppBundle\Repository\SasRepository")
*/
class Sas extends Entreprise
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\Ge... | true |
536b03fa8abc941a065427f5232dc05c4cffcc4a | PHP | jdanetmedia/dwp | /model/cartDAO.php | UTF-8 | 10,422 | 2.765625 | 3 | [] | no_license | <?php
if (isset($_POST["submitcart"])) {
addtocart($_GET["item"], $_POST["amount"]);
}
//unset($_SESSION["cart"]);
function addtocart($item, $amount) {
$amount = (int)$amount;
if (!isset($_SESSION["cart"])) {
$_SESSION["cart"] = array($item => $amount);
} else {
if (!isset($_SESSION["cart"][$item]))... | true |
d35f071029ff7f7794aa92189ddf1d6fb0d9988e | PHP | TheConceptStore/jwt-api-client | /src/Resources/Mailer.php | UTF-8 | 2,296 | 3 | 3 | [
"MIT"
] | permissive | <?php namespace Tcsehv\JwtApiClient\Resources;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\View;
class Mailer
{
/**
* @var string
*/
protected $mailFrom;
/**
* @var array
*/
protected $mailTo;
/**
* @var string
*/
protected $url;
/*... | true |
13ee2154c67a1c2027780ffb9cb28955e447b46a | PHP | OlneyR/portfolio | /4321/link_list_admin/link_list_admin.php | UTF-8 | 1,507 | 2.5625 | 3 | [] | no_license | <?php
// acquire shared info from other files
include("../../../includes/dbconn.inc.php"); // database connection
include("shared.php"); // stored shared contents, such as HTML header and page title, page footer, etc. in variables
// make database connection
$conn = dbConnect();
print $HTMLHeader;
print $PageTitl... | true |
e18ff85f310505f58a22f8451483a207f516ba03 | PHP | GiorgioRindonone/php-oop-2 | /classes/telefonini.class.php | UTF-8 | 342 | 2.609375 | 3 | [] | no_license | <?php
class Smartphones extends Prodotto
{
public $schedatecnica;
public function __construct($_nome, $_prezzo, $_marca, $_descrizione, $_codicesconto, $_schedatecnica)
{
parent::__construct($_nome, $_prezzo, $_marca, $_descrizione, $_codicesconto);
$this->schedatecnica = $_scheda... | true |
6a8164a083a919bf1b6aa3847b9a98562fc3f572 | PHP | RentCeisy/task-mesh | /app/Services/ProductService.php | UTF-8 | 991 | 2.734375 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Product;
use App\Repositories\Impl\ProductRepository;
use App\Services\Impl\ProductServiceImpl;
class ProductService implements ProductServiceImpl
{
protected $productRepository;
public function __construct(ProductRepository $productRepository)
{
$this->prod... | true |
96fe9526b64c0e67b06c0447a9ecffb1779bb60b | PHP | Wells4sure/trademo | /app/controller/products/categories.php | UTF-8 | 1,609 | 2.6875 | 3 | [] | no_license | <?php
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
include '../../../config/Autoloader.php';
$response = array();
$category = new App\Category();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if(isset($_POST['create'])){
$name = $category->checkInputs($_POST['nam... | true |
7fff2ab4da8f69eac8f667ac261cc589aa37d5e1 | PHP | dimaslanjaka/fuzzing | /lib/abstract/RouteAbstract.php | UTF-8 | 565 | 2.78125 | 3 | [] | no_license | <?php
/**
* All abstract logic for the Route class
*
* @name MetaFuzzer {pha:zing}
* @package Fuzzing
* @author <mario.heiderich@gmail.com>
*/
abstract class RouteAbstract {
/**
* Returns the route array
*
* @return array the routes
*/
public function getRoutes() {
... | true |
94797c3c9c1e09ea21ccdd1f4fa3e7a02500eddc | PHP | lucasrothamel/symfony-api-challenge | /src/Entity/User.php | UTF-8 | 2,198 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Swagger\Annotations as SWG;
/**
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
*/
class User implements \JsonSerializable
{
/**
* @v... | true |
c7692056fc8a56752a06bcd2183696b72754f2ec | PHP | M-Ricketts/mucking | /app/Http/Controllers/PageController.php | UTF-8 | 358 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers; //points where this file is located
use App\Http\Controllers\Controller; // uses the controller class built into laravel
/**
*
*/
class PageController extends Controller //new class named page conttroller that borrows the controller fucntionalitiy
{
public function about() {
... | true |
7edb8b8bb22dde69845176a8a23fdb82e4b026c9 | PHP | 4alpha/assignments | /saurabh/angular-material/Controller.php | UTF-8 | 1,017 | 2.53125 | 3 | [] | no_license |
<?php
ini_set('display_errors', 1);
spl_autoload_register(function ($class_name) {
$class_name = str_replace("\\","/",$class_name.'.php');
include $class_name;
});
echo PHP_INT_MAX;
$filename = $_POST['filename'];
$file = explode('_', $filename);
$controller = 'Controllers\\' . $file[0].'Cont... | true |
2bcb36134efb5491d6f33ab1a87bbbbd4c27786f | PHP | bumoodle/moodle-filter_streaming | /filter.php | UTF-8 | 2,964 | 2.6875 | 3 | [] | no_license | <?php // $Id: filter.php,v 1.38.2.10 2009/05/07 08:55:50 nicolasconnault Exp $
//////////////////////////////////////////////////////////////
// jwplayer plugin filtering
//
// This filter will replace any links to an flv, f4v, mp4 or m4v file with
// a jwplayer media plugin that plays the media inline.
//
// To a... | true |
a33cd94a528d41dff10e48c333e94f27eabbe69d | PHP | qzlll/laravel-bjyblog | /app/Models/Base.php | UTF-8 | 2,050 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use DB;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Base extends Model
{
// 软删除
use SoftDeletes, Cachable;
/**
* 禁止被批量赋值的字段
*
* @var array
*/
protected $... | true |
50a7cf7c0fd92449e35f59b84978fa33b474affc | PHP | parsons12/Independent-Study-Form | /Project_Files/verifyuser.php | UTF-8 | 739 | 2.578125 | 3 | [] | no_license | <?php
session_start();
include('server.php');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$username = strtolower($_POST["username"]);
$sql = 'SELECT password FROM users WHERE username =' . '("' . $username . '")';
print $sql;
try{
$q = $db->query($sql);
$result = ... | true |
d10771351d619226b39c1c469a3ee81d30716e66 | PHP | Jognder/php | /7.php | UTF-8 | 80 | 2.734375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<body>
<?php
$x=5;
$y=4;
echo $x+$y;
?>
</body>
</html> | true |
1b82a5b725f2a0c81b9f42c931819720c2e411ff | PHP | VigneshS03/PHP-applications | /Automobile Registry/add.php | UTF-8 | 2,081 | 2.703125 | 3 | [] | no_license | <?php
if (isset($_POST['cancel'])) {
header("Location:view.php");
return;
}
session_start();
if ( ! isset($_SESSION['name']) ) {
die('ACCESS DENIED');
}
$pdo = new PDO('mysql:host=localhost;port=3306;dbname=autoscrud','fred', 'zap');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if(isset($_PO... | true |
4ee863e71bf8f9d0ceaa8eb42c11d654cf9457a1 | PHP | QuyItEngineer/2018_chanel | /app/Models/Banner.php | UTF-8 | 1,052 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Models;
use App\Observers\RecordFingerPrintTrait;
use Eloquent as Model;
/**
* Class Banner
* @package App\Models
* @version October 27, 2018, 5:21 am UTC
*
* @property \Illuminate\Database\Eloquent\Collection roleHasPermissions
* @property string url_banner
* @property integer created_by
... | true |
777042f5848159887c76fa91bea19209aceebde7 | PHP | Penjor/groupcash-php | /src/io/Transcoder.php | UTF-8 | 924 | 3.015625 | 3 | [] | no_license | <?php
namespace groupcash\php\io;
abstract class Transcoder {
/**
* @return string
*/
public abstract function token();
/**
* @param mixed $input
* @return string
*/
protected abstract function doEncode($input);
/**
* @param string $encoded
* @return mixed
... | true |
d4691848678918c81539d8be475498f5bf2ae7e1 | PHP | miguelFLG13/coconut | /protected/config/common.conf.php | UTF-8 | 3,973 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/*
* Common configuration that can be used throughout the application
* Please refer to DooConfig class in the API doc for a complete list of configurations
* Access via Singleton, eg. Doo::conf()->BASE_PATH;
*/
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('Europe/Madrid');
/**
* for benchm... | true |
804810cb10d3b993a3a98b529fdce036774430dd | PHP | vinothpofi/1bookingz | /application/models/Experience_review_model.php | UTF-8 | 1,045 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
*
* This model contains all db functions related to user management
* @author Teamtweaks
*
*/
class Experience_review_model extends My_Model
{
public function __construct()
{
parent::__construct();
}
function get_all_review_deta... | true |
c15fe4bab87cd8d05eec07cd509d969f4df2a950 | PHP | bschmisseur/Revolution | /Revolution/data/ProductDataService.php | UTF-8 | 11,112 | 2.75 | 3 | [] | no_license | <?php
include_once 'Database.php';
include_once '../../model/Product.php';
include_once '../../model/User.php';
include_once '../../model/ShoppingCart.php';
session_start();
Class ProductDataService
{
private $connection;
function __construct()
{
$database = new Database();
$this->con... | true |
0561638f8dcf8aedaa8c71ac1d22197b2eb9506e | PHP | SourceAssociation/vbeike | /api/MessageApi.class.php | UTF-8 | 3,158 | 2.6875 | 3 | [] | no_license | <?php
class MessageApi extends Api{
private function __formatMessageList($message) {
foreach ($message as $k => $v) {
$message[$k] = $this->__formatMessageDetail($v);
}
return $message;
}
private function __formatMessageDetail($message) {
unset($message['deleted_by']);
$message['from_uname'] = getUserNa... | true |
2b90d38448fa671ad6dadae4f55d649765b818d2 | PHP | geeksesi/LocationInfo | /static/index_city.php | UTF-8 | 1,836 | 2.8125 | 3 | [] | no_license | <?php
include '../StaticClass/City.php';
City::$data =
[
'qom' =>
[
'name' => 'qom',
'phone_code' => '025',
'local_name' => 'قم',
'latitude' => 146,
'longitude' => 467
],
'tehran' =>
[
'name' => 'tehran',
... | true |
c814ebeb04eabedde8bc9ec620ca1773d56f7fb4 | PHP | rahulm1ll3k/property | /template-part/signup.php | UTF-8 | 1,467 | 2.6875 | 3 | [] | no_license | <?php
session_start();
include "config.php";
$u_first = $_POST['first'];
$u_last = $_POST['last'];
$u_email = $_POST['email'];
$u_password = $_POST['password'];
$u_gender = $_POST['gender'];
$u_phone = $_POST['phone'];
$u_finance = $_POST['finance'];
$u_organization = $_POST['organization'];
echo "<h1>" ... | true |
5f2303c8955b80defc54ca1722328edf84b27a63 | PHP | Manish-Pandya/USC | /rsms/src/includes/modules/radiation/classes/OtherWaste.php | UTF-8 | 1,490 | 2.75 | 3 | [] | no_license | <?php
/**
*
*
*
* @author Perry Cate, GraySail LLC
*/
class OtherWaste extends RadCrud {
/** Name of the DB Table */
protected static $TABLE_NAME = "other_waste";
/** Key/Value array listing column names and their types */
protected static $COLUMN_NAMES_AND_TYPES = array(
"pickup_id" => "integer",
... | true |
52ccd08cfe403592676dbeb8b7430999ff9c4e66 | PHP | jobverplanke/form-builder | /src/Fields/Color.php | UTF-8 | 1,954 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace JobVerplanke\FormBuilder\Fields;
use JobVerplanke\FormBuilder\Exceptions\InvalidColorFormatException;
use JobVerplanke\FormBuilder\FieldControl;
/**
* Class Color
* @author Job Verplanke <job.verplanke@gmail.com>
*/
class Color extends FieldControl
{
/**
* @var s... | true |
4c90854871168f0f9283201836d6b44e0d33ff41 | PHP | cndavy/docker-office | /custom_apps/mail/lib/Folder.php | UTF-8 | 3,568 | 2.546875 | 3 | [
"AGPL-3.0-only",
"MIT"
] | permissive | <?php
/**
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* Mail
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hop... | true |
b3d40481a4a3c29769cc4560e39ee6f44c5ea6c2 | PHP | arall/tall-shop | /app/Models/ProductImage.php | UTF-8 | 3,956 | 2.78125 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Intervention\Image\Facades\Image;
use Illuminate\Support\Str;
class ProductImage extends Model
{
use HasFactory;
/**
* Indicates if the ... | true |
988cfe2c0ae3c68014368f328d4f2faa9d632471 | PHP | pressi/core-bundle | /src/Repository/ThemeDesignerRepository.php | UTF-8 | 930 | 2.546875 | 3 | [] | no_license | <?php
namespace IIDO\CoreBundle\Repository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use IIDO\CoreBundle\Entity\ThemeDesignerEntity;
class ThemeDesignerRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegis... | true |
977fe1c778c8342bea03605e0b0f512ad98eea74 | PHP | uniqcle/Yii2 | /frontend/widgets/getList/GetList.php | UTF-8 | 816 | 2.609375 | 3 | [] | no_license | <?php
namespace frontend\widgets\getlist;
use Yii;
use yii\base\Widget;
use frontend\models\News;
class GetList extends Widget
{
//По умолчанию ShowLimit (переданные из виджета) не задан
public $showLimit = null;
public function run(){
//maxNewsInList - берутся из параметров
$maxN... | true |
6f1076cfe1f5b343f6ef4efe64bf6b1f91013a1b | PHP | RadicalLinux/faceBot | /fB_DB.php | UTF-8 | 13,469 | 2.53125 | 3 | [] | no_license | <?php
$_SESSION['vDataDB'] = Parser_SQlite_Connect(PARSER_SQLITE);
$_SESSION['vDataStoreDB'] = Parser_SQlite_Connect(DATASTORE_SQLITE);
$_SESSION['vRewardStoreDB'] = Parser_SQlite_Connect(REWARDSTORE_SQLITE);
// ------------------------------------------------------------------------------
// Units_GetUnitByName get un... | true |
e61e4f7e3278a422855d3483a7c359fd14655380 | PHP | bluecrestsol/cleaning-service | /database/migrations/2020_04_21_053935_modify_some_columns_to_nullable_on_companies_table.php | UTF-8 | 1,747 | 2.515625 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ModifySomeColumnsToNullableOnCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::st... | true |
9c3cba61c6595e4add2fede5f29c2a2694e5c4d7 | PHP | Plumes/Zakabot | /database/migrations/2017_04_09_181326_create_posts_table.php | UTF-8 | 1,134 | 2.515625 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema... | true |
965fb7bdae64efc0d3d72aa8fa3deb504ad96f83 | PHP | 848five/sneekysnap | /admin/includes/_createPost.php | UTF-8 | 719 | 2.53125 | 3 | [] | no_license | <?php
echo getcwd() . "\n";
include($_SERVER['DOCUMENT_ROOT']."/admin/includes/_dbconfig.php");
mysql_select_db('admin');
$sql = "SELECT * FROM posts";
$title = $_REQUEST['title'];
$deck = $_REQUEST['deck'];
$article = $_REQUEST['article'];
$images = $_REQUEST['images'];
echo $title ." being created";
$sql="INSERT... | true |
0c146ea4042a6fea0de89e0c5192707a71d2c66b | PHP | zzctmac/flwt | /src/thumb/StringTraversal.php | UTF-8 | 280 | 2.671875 | 3 | [] | no_license | <?php
/**
* User: ZZCTMAC
* Date: 2017/2/7
* Time: 22:56
*/
namespace flwt\thumb;
trait StringTraversal
{
public static function getStringIterator($string)
{
$len = strlen($string);
for($i = 0; $i < $len; $i++)
yield $string[$i];
}
} | true |
b50c7a97833bd58cdd3e621a1c0aae2fcd69cebe | PHP | elitetheespeon/PHP-Booru | /html/classes/stats.php | UTF-8 | 3,552 | 2.578125 | 3 | [] | no_license | <?php
class stats{
var $user;
var $logger;
var $misc;
function __construct(){
$this->user = new user();
$this->logger = new logger();
$this->misc = new misc();
}
function render(){
global $f3, $db;
//Log page hit
$this->logger->log_action($f3->get('checked_user_id'), $_SERVER['... | true |