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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
853b1fe9770cdab5abe05357b9d24ef53ce2d02a | PHP | hjhnju/yucheng | /application/modules/Infos/controllers/Media.php | UTF-8 | 1,241 | 2.59375 | 3 | [] | no_license | <?php
/**
* 媒体报道
*/
class MediaController extends Base_Controller_Page {
public function init(){
$this->setNeedLogin(false);
parent::init();
}
/**
* 媒体报道列表页
*
* /infos/media
* @param $page, MUST, [1,-), index of page
* @assign data=>array('page', 'pagesize... | true |
11a8446331bac4069a48152e1df9b3fd83271b33 | PHP | niubea/thinkphp5.1-blog | /application/admin/controller/blog/Member.php | UTF-8 | 6,079 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/9/23
* Time: 2:25
*/
namespace app\admin\controller\blog;
use app\common\controller\AdminController;
/**
* 会员管理
* Class Member
* @package app\admin_blog\controller
*/
class Member extends AdminController {
/**
* 默认模型对象
*/
... | true |
efe8a79d0b669a2f0a4a9da610a7c72a22abf7f1 | PHP | kaushikpatel11/lara-demo | /app/Rules/Password.php | UTF-8 | 1,043 | 3.03125 | 3 | [] | no_license | <?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use Validator;
class Password implements Rule {
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct() {
//
}
/**
* Determine if the validation rule passes.
*
* @param string $attribu... | true |
cbfb5ce46c3f3d431abeadd725a5be123ef6683d | PHP | snamper/erp-1 | /api/models/form/CusShopcartForm.php | UTF-8 | 1,200 | 2.59375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models\form;
use app\models\CusOrderDetail;
use app\models\CusShopcart;
use Yii;
use yii\base\Exception;
class CusShopcartForm extends \yii\base\Model
{
// 保存购物车
public function save($data, $storeId, $userId)
{
// 删除原有的购物车数据,保存新的
$transaction = CusShopcart::getDb()->b... | true |
6f09b9df575474795af018cfb4991fa614ca463e | PHP | jayden-chua/leetcode | /src/A0200NumberOfIslands/Solution.php | UTF-8 | 2,903 | 3.25 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace App\A0200NumberOfIslands;
class Solution {
private $grid = [];
/**
* @param array $grid
* @return Integer
*/
public function numIslandsDfs(array $grid) {
$islands = 0;
$this->grid = $grid;
foreach ($this->grid as $i => $row) ... | true |
8beb5e6af36985440f922939e5bab6e562fc7ce7 | PHP | MateuszBochen/EbayWsdl | /Classes/GetBidderListRequestType.php | UTF-8 | 4,342 | 2.828125 | 3 | [] | no_license | <?php
namespace EbayWsdl\Classes;
class GetBidderListRequestType extends AbstractRequestType
{
/**
* @var boolean $ActiveItemsOnly
*/
protected $ActiveItemsOnly = null;
/**
* @var \DateTime $EndTimeFrom
*/
protected $EndTimeFrom = null;
/**
* @var \DateTime $EndTimeTo
... | true |
e2fd1c173f3b80c9e326b8408ca740ae5daa052e | PHP | afrihost/BaseCommandBundle | /Tests/Helper/Locking/LockingEnhancementTest.php | UTF-8 | 8,217 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use Afrihost\BaseCommandBundle\Tests\Fixtures\App\TestKernel;
use Afrihost\BaseCommandBundle\Tests\Fixtures\EncapsulationViolator;
use Afrihost\BaseCommandBundle\Tests\Fixtures\HelloWorldCommand;
use Afrihost\BaseCommandBundle\Tests\Fixtures\LockCommand;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\... | true |
c7642da6b5dd6a656e3a820f2f2c786cb60f333a | PHP | Technobabble17/hmart2 | /app/View/Components/Element/Delete.php | UTF-8 | 1,167 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\View\Components\Element;
use Illuminate\View\Component;
class Delete extends Component
{
public int $id;
public string $routeName;
public string $routeKey;
public string $label = 'Delete'; // we are just setting a default value here
/**
* Create a new component instance.... | true |
a543892b86af3f6e446fcaeb38f67e99ac86d1f2 | PHP | kojodre/XcLusivo | /backend/models/Chat.php | UTF-8 | 2,671 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use common\models\User;
use backend\models\Meassge;
use Yii;
/**
* This is the model class for table "chat".
*
* @property integer $id
* @property integer $adv_id
* @property integer $nadv_id
* @property integer $created_at
* @property integer $updated_at
*/
class Chat extends \yi... | true |
49220c416fb9c16fdc5e932ec221385b92deff7a | PHP | ratepay/jtl3shop-conncetor | /includes/plugins/ratepay/version/100/paymentmethod/ratepaypayment/paypage/Model/Item.php | UTF-8 | 5,855 | 3.125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Set Parameter for a Request and send them to the Paypage.
*
* @category PayIntelligent
* @package PiRatepay_Paypage_Model
* @copyright Copyright(c) 2012 PayIntellignet GmbH
* @license
* @version 1.0.0
*/
class PiRatepay_Paypage_Model_Item
{
/**
* articlenumber
* @var string
*/
... | true |
572a57d18564f76ac6c4eb269b8ca4f00c614b74 | PHP | luciegarciaweb/Peko | /app/Page.php | UTF-8 | 1,086 | 2.828125 | 3 | [] | no_license | <?php
namespace App;
use Jenssegers\Date\Date;
use Illuminate\Database\Eloquent\Model;
class Page extends Model
{
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'is_active' => 'boolean',
];
/**
* The attributes that s... | true |
525efb624e9206074a718e28dc2e065bb82eda7e | PHP | MarcoBonaventura/PHP-XML | /includes/LibroItalia.php | UTF-8 | 1,852 | 2.53125 | 3 | [
"MIT"
] | permissive | <article>
<?php
session_start();
$_SESSION['$tempXML'];
$reader = new XMLReader();
$reader->open('.\dataXML\data.xml');
$doc = new DOMDocument();
$XMLdata = "";
$tempXML = "";
if (file_exists('./dataXML/data.xml'))
{
$XMLdata = simplexml_load_file('./dataXML/da... | true |
ab329403fc02861e97c5aaff90a8f9366075ebd2 | PHP | ktanakaj/simple_blog | /public/admin/auth.php | UTF-8 | 1,606 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* 簡易ブログアプリ「Simple Blog」
*
* @package SimpleBlog
* @subpackage controllers
* @version 0.2
* @author Koichi Tanaka
* @copyright Copyright © 2016 Koichi Tanaka
*/
require_once(dirname(__FILE__) . '/../controllerbase.php');
/**
* ベーシック認証用のレスポンスを返しプログラムを終了する。
* @return void
*/
function exitF... | true |
47b28d9e98e04567de1713ed587fe0dfcfb67fa0 | PHP | lsv/magmi-datapump | /src/Datapump/Product/ItemHolder.php | UTF-8 | 8,345 | 2.765625 | 3 | [
"Unlicense"
] | permissive | <?php
/**
* @author Martin Aarhof <martin.aarhof@gmail.com>
* @version GIT: $Id$
*/
namespace Datapump\Product;
use Datapump\Exception;
use Datapump\Logger\Logger;
use Datapump\Product\Data\DataAbstract;
use Symfony\Component\Console\Helper\ProgressHelper;
use Symfony\Component\Console\Output\OutputInterface;
/**
... | true |
447a17ac3538864a8e7d7f76aa5b2ae969f78a38 | PHP | artlantis/karma | /src/Karma/Configuration/Parser.php | UTF-8 | 5,839 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Karma\Configuration;
use Gaufrette\Filesystem;
use Karma\Configuration\Parser\NullParser;
use Karma\Configuration\Parser\IncludeParser;
use Karma\Configuration\Parser\VariableParser;
use Karma\Configuration\Parser\ExternalParser;
use Psr\Log\NullLogger;
class Parser
{
use \Karma\Logging\LoggerAwa... | true |
1d6754eefbc67e778a7cdf59eaf6caf4933b9d86 | PHP | yangus777/Projet_PHP | /item/new_item_created.php | UTF-8 | 981 | 2.546875 | 3 | [] | no_license | <html>
<head>
<title>New Item Created</title>
</head>
<body>
<?php
session_start();
// Database Connection
$base = mysql_connect('localhost', 'root', '');
// DB SELECT
mysql_select_db ('pdahan_db', $base) or die("bug");
if(isset($_POST['name'])){
$name=$_POST['name'];
} else{
echo'You did not enter a name';
}
if(i... | true |
4ee07dcca5acab19e0f63098dd69ed95c168c2d3 | PHP | angel24r/FinalWeb | /cliente/tabla.php | UTF-8 | 3,362 | 2.5625 | 3 | [] | no_license | <?php
include "header.php";
include "../class/classBaseDatos.php";
$product_ids = array();
$arra= array();
if(filter_input(INPUT_POST,'addtocart'))
{
if(isset($_SESSION['carro']))
{
$count=count($_SESSION['carro']);
$arra=array_column($_SESSION['carro'],'Id');
if(!in_array(filter_input(INPUT_GET,... | true |
1dcfb5f7a9912f8acd332ee240c15214316053d6 | PHP | fangcanqin/yigouv2 | /blog/app/Http/Controllers/Admin/NoticeController.php | UTF-8 | 3,846 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
//导入公告模型类
use App\Models\Notice;
//导入公告验证类
use App\Http\Requests\NoticeStoreBlogPost;
class NoticeController extends Controller
{
/**
* 公告列表
*
* @return \Illuminate\Http\Response
*/
... | true |
3cbe5ee2be40c223ada6ee9b56040bd9a611394a | PHP | ggjacob/Physician-Appointment-Website | /functions.php | UTF-8 | 1,769 | 2.5625 | 3 | [] | no_license | <?php
function connect()
{
$db = "s196065";
$link = mysql_connect('localhost', 's196065', 'tersupse');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
$r2 = mysql_select_db($db);
if (!$r2) {
echo "Cannot select database\n";
trigger_error(mysql_error(), E_USER_ERROR);
}
}
fu... | true |
d300e5a9156a992d475bdc8a97cec4b0aefa85fa | PHP | jimbaldwin123/bbcwav | /app/Wav.php | UTF-8 | 1,344 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Wav extends Model
{
private $url;
private $download_folder;
public static function downloadFile($url, $path)
{
$newfname = $path;
$file = fopen ($url, 'rb');
if ($file) {
$newf = fopen ($newfname, ... | true |
f6e7efe3cc34cac1608613b7252ca9911e5157aa | PHP | jayceyzh/micro-frame | /test/db/QueryTest.php | UTF-8 | 1,139 | 2.515625 | 3 | [] | no_license | <?php
require_once dirname(__DIR__) . "/mpfLoad.php";
class QueryTest extends PHPUnit_Framework_TestCase{
private $app;
private $Query;
public function setup(){
$db = new mpf\db\Db([
"dbFile"=>__DIR__ . "/test.db",
"dbtype"=>"sqlite",
"dbcharset"=>"utf8",
"db... | true |
ad6fe89d93db06b33bbeb17d4ac7be17961f6d30 | PHP | Novichkoff/megabob.ru | /src/Site/FirstPageBundle/Controller/Mailer.php | UTF-8 | 1,933 | 2.609375 | 3 | [] | no_license | <?php
namespace Site\FirstPageBundle\Controller;
use FOS\UserBundle\Model\UserInterface;
use FOS\UserBundle\Mailer\MailerInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class Mailer
{
private $generator;
public function __construct(UrlGeneratorInterface $generator)
... | true |
6576d871a3f6df4abfe7f65ec951ecde330e6217 | PHP | boluijten3/BASALT_PAMsoftware | /htdocs/gino-pam/php_cm/modules/interface/builder/employee/finalResult/EmployeeFinalResultPageBuilder.class.php | UTF-8 | 3,394 | 2.65625 | 3 | [] | no_license | <?php
/**
* Description of EmployeeFinalResultPageBuilder
*
* @author ben.dokter
*/
require_once('modules/interface/builder/employee/finalResult/EmployeeFinalResultInterfaceBuilder.class.php');
class EmployeeFinalResultPageBuilder
{
static function getPageHtml($displayWidth,
$... | true |
ab399f376f84b93f5ebf559c523e85db636f453b | PHP | arshad483/multiple-wishlist | /Api/Data/MultipleWishlistItemInterface.php | UTF-8 | 2,292 | 2.546875 | 3 | [] | no_license | <?php
/**
* @category BKozlic
* @package BKozlic\MultipleWishlist
* @author Berin Kozlic - berin.kozlic@gmail.com
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
namespace BKozlic\MultipleWishlist\Api\Data;
use BKozlic\MultipleWishlist\Api\Data\MultipleWishlistIte... | true |
235f6ce88933fb5c1663e387c45d82e2e43c12f2 | PHP | mixheaven/pdo | /index.php | UTF-8 | 1,046 | 3.25 | 3 | [] | no_license | <?php
require_once 'connec.php';
$pdo = new \PDO(DSN, USER, PASS);
if($_SERVER['REQUEST_METHOD'] === 'POST')
{
$query = "INSERT INTO friend (firstname, lastname) VALUES (:firstname, :lastname)";
$statement = $pdo->prepare($query);
$statement->bindValue(':firstname', $_POST['firstname'], PDO::PARAM_STR)... | true |
6302b3dda416e0fec1cb44d83efa8ca0a9acd256 | PHP | Yedindin/Chat-Room | /chat.php | UTF-8 | 627 | 2.6875 | 3 | [] | no_license | <?php
include 'connection.php';
$query = "SELECT * FROM chat ORDER BY id DESC";
$run = $con -> query($query);
$flag = true;
while ($row = $run->fetch_array()) :
if($flag) $style="rgb(240,236,235)";
else $style="rgb(220,210,205)";
$flag = !$flag;
?>
<div id="message" style ="background-color:<?=$sty... | true |
281b5dfba5cd03e4804552667bdc76ce37223aba | PHP | ludichrislyts/promptr | /tests/PromptrTest.php | UTF-8 | 7,883 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @backupGlobals disabled
* @backupStaticAttributes disabled
*/
require_once "src/Promptr.php";
require_once "src/Topic.php";
require_once "src/Question.php";
$server = 'mysql:host=localhost;dbname=promptr_app_test';
$username = 'root';
$password = 'root';
$DB = n... | true |
349479ce60446a321daab7090c2de0c5cc8d6907 | PHP | bridCquinn/UCFPathFinder | /API/EditClass.php | UTF-8 | 1,562 | 2.828125 | 3 | [] | no_license | <?php
/*
JSON package expected
{
"userID" : <<userID>>
"schedule" : <<Class Object in JSON Format>>
}
JSON package returned if error
{
"error" : <<error message if one exisits>>
}
*/
$inData = getRequestInfo();
$userID = $inData["userID"];
$array = $in... | true |
e8dd768161806bb79ed7d98bb95fbd99f40fd6ed | PHP | kooliahmd/SyliusRewardPlugin | /src/RewardPointsCalculator/RewardPointsCalculator.php | UTF-8 | 1,030 | 2.625 | 3 | [] | no_license | <?php
/*
* This file is part of reward plugin for sylius.
*
* (c) Ahmed Kooli
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace SnakeTn\Reward\RewardPointsCalculator;
class RewardPointsCalculator... | true |
10ad4907e448979adc4a5119d49dee4365d5efd3 | PHP | louisstow/Rubarb | /objects/TradeAlien.php | UTF-8 | 251 | 2.625 | 3 | [] | no_license | <?php
class TradeAlien extends ORM {
public static $table = "trade_aliens";
public static $key = array("tradeID", "playerID", "alienID");
public static $attr = array(
"tradeID" => INT,
"playerID" => INT,
"alienID" => INT
);
}
?> | true |
413b50193c8ec55a9bd5f83b5e0c1d6a8671a10f | PHP | angeloGlz/blogOc | /class/Billet.php | UTF-8 | 2,743 | 3.078125 | 3 | [] | no_license | <?php
class Billet {
private $_id;
private $_titre;
private $_texte;
private $_image;
public function __construct(array $contenu){
$this->hydrate($contenu);
}
public function hydrate(array $contenu){
foreach ($contenu as $key => $value) {
$method = 'set'.ucfirst($key);
if (method_exists($this... | true |
4740e1d3ab3708135bb9ade4de459dc3dfc8c6d3 | PHP | ylib/fun | /shellcmd.php | UTF-8 | 1,767 | 2.875 | 3 | [] | no_license | <?php
function sanitize($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
function permitted($req)
{
$safe = array("ps -e","ls -l","ceph status","ceph osd tree");
if ($req) {
... | true |
f66a43fc30c6b57770818babe012f35b1a1dd055 | PHP | exirous/vortex-site | /protected/models/Post.php | UTF-8 | 2,726 | 2.5625 | 3 | [] | no_license | <?php
class Post extends CActiveRecord
{
public $default_blog = "Черновики";
public static function model($className=__CLASS__)
{
return parent::model($className);
}
public function tableName()
{
return 'posts';
}
public function behaviors(){
return array(
'CommentBehavior' => ar... | true |
1f6f1733971fb17b4de519ae8a08fa50093872cf | PHP | nguyenngoc-it/MVC_DEMO | /demo-mvc/app/Model/AuthorModel.php | UTF-8 | 3,610 | 3 | 3 | [] | no_license | <?php
namespace App\Model;
class AuthorModel //CRUD with Database
{
private $dbConnect;
public function __construct()
{
$this->dbConnect = new DBConnect();
}
//Lấy ra toàn bộ Author
public function getAll()
{
try {
$sql = "SELECT * FROM `authors` ORDER BY `id... | true |
bf6974e129287194af07b4c662fb20796fff587e | PHP | filipJaci/quizic | /app/Exceptions/Handler.php | UTF-8 | 4,070 | 2.8125 | 3 | [] | no_license | <?php
namespace Quizic\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
// NOT FOUND
use Illuminate\Database\Eloquent\ModelNotFoundException;
// VALIDATION
use Illuminate\Validation\ValidationException;
// JWT
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\Ex... | true |
7949d253e52df02031567d68d15e5a3f3f97fbb3 | PHP | ImmisKissa/xamk-tehtavat | /PHP-ohjelmointia/PHP-ohjelmointiaOT1/ot1d.php | UTF-8 | 1,127 | 3.15625 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ot1d</title>
</head>
<body>
<h1>Bensapumppu</h1>
<form action="ot1d.php" method="POST">
<label for="hinta"></label>
<p>Litrahinta: <input type="text" name="hinta"></p>
<label for="maara"></label>
... | true |
9b683052cdec55acbc2b8b1ccfcd371eaeb411b6 | PHP | cordoval/VespolinaInvoice | /lib/Vespolina/Invoice/Manager/InvoiceManager.php | UTF-8 | 1,689 | 2.625 | 3 | [] | no_license | <?php
/**
* (c) 2012 Vespolina Project http://www.vespolina-project.org
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Vespolina\Invoice\Manager;
use Vespolina\Entity\InvoiceInterface;
use Vespolina\Entity\OrderInterface;
use Vespolina... | true |
d3dfccf442b86b8421a69c6e511aa2bad4f3fd60 | PHP | alex19870220/LeadForce | /app/Acme/Indexer/CreateCampaignCommand.php | UTF-8 | 274 | 2.71875 | 3 | [] | no_license | <?php namespace Acme\Indexer;
class CreateCampaignCommand {
/**
* @var integer $project_id
*/
public $project_id;
/**
* Instantiate the object
*
* @param integer $project_id
*/
function __construct($project_id)
{
$this->project_id = $project_id;
}
} | true |
9f2d324675dc937e45fd6ab9d8b68a260784bdb0 | PHP | wpillar/fourum | /fourum/lib/Fourum/Storage/Group/GroupRepositoryInterface.php | UTF-8 | 456 | 2.890625 | 3 | [] | no_license | <?php namespace Fourum\Storage\Group;
/**
* Interface for fetching and creating Groups
*/
interface GroupRepositoryInterface
{
/**
* Get all Groups
*/
public function all();
/**
* Get Group(s)
*
* @param mixed $id
*/
public function get($id);
/**
* Create a n... | true |
48d2bd0f58e25cee9a758c1e47e8ba40313960ab | PHP | eduardtovmasyan/News | /app/Mail/ExportCsv.php | UTF-8 | 792 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class ExportCsv extends Mailable
{
use Queueable, SerializesModels;
protected $csvPath;
/**
* Create a new message instance.
... | true |
8df8b6c78902edf1155dcfc012c2cedd59eac2c5 | PHP | sethmchris/phpmysqlvqp-5ed-dev | /ch13/sitename/login.php | UTF-8 | 1,063 | 2.765625 | 3 | [] | no_license | <?php # Modified version of Script 12.3 - login.php
// This page processes the login form submission.
// Upon successful login, the user is redirected.
// Two included files are necessary.
// Send NOTHING to the web browser prior to the setcookie() lines!
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
require('includes... | true |
91d48b92502fc400ce70db7782cb0abdd79a2317 | PHP | slutsky/enum-example | /src/MicrophoneConnector.php | UTF-8 | 790 | 3.234375 | 3 | [] | no_license | <?php
namespace Slutsky\EnumExample;
class MicrophoneConnector
{
public const JACK = 'jack';
public const MINI_JACK = 'mini_jack';
public const USB = 'usb';
public const XLR_3PIN = 'xlr_3pin';
private string $value;
private function __construct(string $value)
{
$this->value = $va... | true |
69418612c9b2ede5b542f41638a26c134a1dbef4 | PHP | DoryanLievre/project_php_PetitComptable | /_functions/deleteBankAccount.php | UTF-8 | 190 | 2.609375 | 3 | [] | no_license | <?php
function deleteBankAccount($selectedAccount){
$db = db_connect();
$req = $db->prepare("DELETE FROM bankAccount WHERE id = :id");
$req->execute(array('id' => $selectedAccount));
} | true |
d257966b0a73359f00e062b66353e7fc42361a86 | PHP | BradChurch/Jiloa | /Patient/PatPermEmployeeEdit.php | UTF-8 | 6,020 | 2.609375 | 3 | [] | no_license | <?php require_once('../../Connections/swmisconn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$... | true |
7d3257d9511f966a78c82130b6b467407afb05fc | PHP | tg-bot-api/bot-api-base | /src/Method/SendStickerMethod.php | UTF-8 | 1,436 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Method;
use TgBotApi\BotApiBase\Method\Interfaces\SendMethodAliasInterface;
use TgBotApi\BotApiBase\Method\Traits\FillFromArrayTrait;
use TgBotApi\BotApiBase\Method\Traits\SendToChatVariablesTrait;
use TgBotApi\BotApiBase\Type\InputFileType;
/**
* Class ... | true |
85b0d1d71817344c720543745eb6ba92c7251552 | PHP | fabriciohd/betatest | /database/migrations/2021_04_19_195102_createalltables.php | UTF-8 | 2,428 | 2.703125 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Createalltables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('characters', funct... | true |
539939dfa4aa94ba73fd129b3460729a3137a669 | PHP | Skiy11/My-mvcframework | /framework/Bootstrap/DatabaseConnect.php | UTF-8 | 1,170 | 3.0625 | 3 | [] | no_license | <?php
namespace Framework\Bootstrap;
class DatabaseConnect
{
private static $instance = null;
/**
* @var array
*/
protected $config;
/**
* @var \PDO
*/
private static $connection;
protected function __construct()
{
$this->config = Config::getConfig();
... | true |
d5efcd2a9ab151b9673791449bb848a93afd1a6a | PHP | samhol/data.samiholck.com | /sphp/php/tests/sphp/Html/Attributes/PropertyParserTest.php | UTF-8 | 1,911 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
/**
* SPHPlayground Framework (http://playgound.samiholck.com/)
*
* @link https://github.com/samhol/SPHP-framework for the source repository
* @copyright Copyright (c) 2007-2018 Sami Holck <sami.holck@gmail.com>
* @license https://opensource.org/licenses/MIT The MIT License
*/
namespace Sphp\Html\A... | true |
8c8834ae76f0fdd67106eb85b327a250e3f90bcb | PHP | neos/contentrepository-development-collection | /Neos.EventSourcedContentRepository/Classes/Domain/ValueObject/SerializedPropertyValues.php | UTF-8 | 5,980 | 2.75 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Neos\EventSourcedContentRepository\Domain\ValueObject;
/*
* This file is part of the Neos.ContentRepository package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please v... | true |
652c5f096e0b4009ce27d49a34f0a7a5a611ff94 | PHP | Mamook/Framework | /framework/application/modules/Content/Playlist.php | UTF-8 | 8,844 | 3.265625 | 3 | [
"MIT"
] | permissive | <?php /* framework/application/modules/Content/Playlist.php */
# Make sure the script is not accessed directly.
if(!defined('BASE_PATH')) exit('No direct script access allowed');
# Get the parent Category class.
require_once Utility::locateFile(MODULES.'Content'.DS.'Category.php');
/**
* Playlist
*
* The Playlis... | true |
1f4dcb812d2ba9f629627d1b330afb768e543f52 | PHP | PBExpress/Meeting_room_booking_web_project | /mysql.php | UTF-8 | 4,088 | 2.609375 | 3 | [] | no_license | <?php
session_start();
$_SESSION['logged_in']='book';
$username=$_SESSION['username'];
$host="127.0.0.1";
$dbusername="root";
$dbpassword="nimish999";
$dbname="WTL";
// connect to the database
$conn = new mysqli ($host,$dbusername,$dbpassword,$dbname);
if(mysqli_connect_error())
... | true |
b803c0de24ffbe98ebb0928c15e57336720eb3a6 | PHP | fabricekabongo/common | /Repository/Repository.php | UTF-8 | 4,235 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace FabriceKabongo\Common\Repository;
use Doctrine\DBAL\Connection,
FabriceKabongo\Common\Repository\IRepository,
FabriceKabongo\Common\Entity\IEntity,
Symfony\Component\EventDispatcher\EventDispatcher,
Symfony\Component\EventDispatcher\GenericEvent;
/**
* L'implementation standard de l'... | true |
5ce81135872cecc3dc0644d949134697e57f4371 | PHP | akinmobile/PhotoNoter | /backend-conferencing/sample/createStitch.php | UTF-8 | 964 | 2.546875 | 3 | [] | no_license | <?php
/*HEADER INFORMATION*/
function parse_results($res){
/*Variables*/
$lines = explode("\n", $res);
/*Print All*/
echo '<pre>'.print_r($lines, TRUE). '</pre>';
/*Location*/
$url = $lines[8];
}
/*Variables*/
$API_KEY = '23144662';
$API_SECRET = '963cee84e34e35a02fe53387824223952807f16... | true |
4129d233b7f08e2154b194b404cec467dec050bc | PHP | jujulchen/derRest | /src/Routes.php | UTF-8 | 3,605 | 2.625 | 3 | [
"MIT",
"Beerware"
] | permissive | <?php
declare(strict_types = 1);
namespace derRest;
use derRest\Database\DatabaseConnection;
use derRest\Generator\Maze;
use Klein\Klein;
use Klein\Request;
use Klein\Response;
use derRest\Functions\phtml;
final class Routes
{
public function routes(Klein $klein):Klein
{
$klein->respond(['GET', 'POST... | true |
d199930dc7845886ac85280f373b869ce668710b | PHP | scento/phalcon | /test/phalcon-php/BaseTest.php | UTF-8 | 505 | 2.921875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Base Testcase
*
* @author Wenzel Pünter <wenzel@phelix.me>
*/
class BaseTest extends PHPUnit_Framework_TestCase
{
/**
* Helper function for Exception testing
*
* @param callable $trigger
* @param array $params
* @param string $exception
*/
protected function assertException($trigger, $param... | true |
57b9fb71c0443ea31059dbaeecd0166c9ee5187a | PHP | hotreload/laravel-church-webApp | /app/Helpers.php | UTF-8 | 9,081 | 2.53125 | 3 | [] | no_license | <?php
namespace App;
use Session;
use App\Model\Settings;
use App\Model\Sermon;
use App\Model\Event;
use App\Model\Gallery;
use App\Model\SundaySchedule;
class Helpers {
public static function createNestableList($entertainments) {
$_this = new self;
if (count($entertainments) < 1) {
... | true |
167c7a872290394bc71d2f7b2d3b9cb3bbf2e241 | PHP | Brun0L3z/My-Work---Job-Search-Engine- | /admin/page_education.php | UTF-8 | 4,714 | 2.65625 | 3 | [] | no_license | <?php
require_once '_includes/class.Education.php';
class Education
{
private $template = '';
private $smarty;
private $industries;
public function __construct()
{
$this->education = EducationList::getInstance();
}
public function processRequest($action, $educationID, $smarty)
{
$thi... | true |
48fd43910b5a5cc3766d7b12195c56f6d16b9e18 | PHP | ChrisKanger/MapperBundle | /FBoon/MapperBundle/Mapper.php | UTF-8 | 1,019 | 2.53125 | 3 | [] | no_license | <?php
namespace FBoon\MapperBundle;
use FBoon\MapperBundle\Annotation\AnnotationReader;
/**
* Extend this class to create a new mapper
*
* @author Frank Boon <boon.frank@gmail.com>
*/
abstract class Mapper
{
/**
* @var Reader
*/
protected $annotationReader;
/**
* @var Boolean
*/
... | true |
94d19264a022aa9f19efb8dc5eabba382d0504bb | PHP | treehouselabs/TreeHouseSwiftBundle | /src/TreeHouse/SwiftBundle/Metadata/Metadata.php | UTF-8 | 1,558 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace TreeHouse\SwiftBundle\Metadata;
class Metadata implements \IteratorAggregate
{
/**
* @var array
*/
protected $data = [];
/**
* @param array $data
*/
public function __construct(array $data = [])
{
$this->data = $data;
}
/**
* @return array... | true |
02215eb31e04797984b7cd1875d31d3bf4d53d38 | PHP | SparK-Cruz/cefu | /admin/src/models/Usuario.php | UTF-8 | 899 | 2.703125 | 3 | [] | no_license | <?php
namespace cefu\admin\models;
use elpho\database\Entity;
use elpho\lang\String;
class Usuario extends Entity{
const INVALID_AUTH = "Usuário e/ou senha incorretos.";
public function __construct(\PDO $connection=null){
$this->setTable("usuarios");
$this->setFieldList("login", "senha");... | true |
09f9be6ff5796245bb1f08bc39c25a3be079548e | PHP | Mexidense/birthday-greetings-kata-php | /src/Infrastructure/Notification/CallbackSendBirthdayGreetingMessenger.php | UTF-8 | 686 | 2.828125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace BirthdayGreetingsKata\Infrastructure\Notification;
use BirthdayGreetingsKata\Application\SendBirthdayGreeting\SendBirthdayGreeting;
use BirthdayGreetingsKata\Application\SendBirthdayGreeting\SendBirthdayGreetingMessenger;
final class CallbackSendBirthdayGreetingMessenger imp... | true |
96d6b228d4aa8238d2fad389dee6c1cdc120c0be | PHP | nskun/desiginpattern | /PHP/Singleton5-1/Index.php | UTF-8 | 413 | 2.53125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
require_once '/TicketMaker.php';
$obj = TicketMaker::getInstance();
print $obj->getNextTicketNumber();
print $obj->getNextTicketNumber();
print $obj->getN... | true |
49bbc36f743235a7fdec00c20061982f4e03fa54 | PHP | iamfil/netForum-xWeb-APi | /netForum/xWeb/Xml/Generated/WEBCentralizedShoppingCartRemoveLineItemResponse.php | UTF-8 | 1,259 | 2.59375 | 3 | [] | no_license | <?php
namespace netForum\xWeb\Xml\Generated;
class WEBCentralizedShoppingCartRemoveLineItemResponse
{
/**
* @var CentralizedOrderEntryType $WEBCentralizedShoppingCartRemoveLineItemResult
*/
protected $WEBCentralizedShoppingCartRemoveLineItemResult = null;
/**
* @param CentralizedOrderEntr... | true |
2937981c2c1c022be21f0fa6b458c5be3f1bc677 | PHP | cobbweb/DoctrineExtensions | /lib/Gedmo/Tree/AbstractTreeListener.php | UTF-8 | 5,740 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace Gedmo\Tree;
use Doctrine\Common\EventArgs,
Gedmo\Mapping\MappedEventSubscriber;
/**
* The base tree listener model.
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @package Gedmo.Tree
* @subpackage AbstractTreeListener
* @link http://www.gediminasm.org
* @license MIT... | true |
2964ddb9a109aae927f9b3d90e4781f5191d52b6 | PHP | saegey/orgchart | /lib/orgChart.php | UTF-8 | 4,041 | 3.390625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Provides a way to create organizational data for employees.
*/
class OrgChart {
//property declaration
private $originalData = array();
private $index = array();
private $calcData = array();
/**
* Returns instance of OrgChart
*
* @param array $employees Array of employees
... | true |
492747bc4ef286776da4fa598b9399b06c369ed0 | PHP | christmas-tree/it4409-cong-nghe-web | /week02/index.php | UTF-8 | 1,030 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | <?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$UNIVERSITY_DICT = array(
"1" => "Hanoi Royal University of Science and Technology",
"2" => "Vietnam National University, Hanoi",
"3" => "National Economics University",
);
$name = $_POST['name'];
$username = $_POST['username'... | true |
7ac613d076c04ee083dbc3d655c3620407947bdb | PHP | Anagha22/dbms-testing | /Untitled Folder/register.php | UTF-8 | 2,189 | 2.609375 | 3 | [
"MIT"
] | permissive |
<html>
<head>
<title>Login Page</title>
<style type = "text/css">
body {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
}
label {
font-weight:bold;
width:100px;
font-size:14px;
... | true |
1f4b2ee4572cd0ac644a388c343712c3ca5d4b68 | PHP | abetterstory/abetter-wordpress | /plugins/sitepress-multilingual-cms/vendor/wpml/tm/classes/menu/mcsetup/class-wpml-tm-mcs-search-factory.php | UTF-8 | 450 | 2.640625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | <?php
/**
* Class WPML_TM_MCS_Search_Factory
*/
class WPML_TM_MCS_Search_Factory {
/**
* Create MCS Search.
*
* @param string $search_string
*
* @return WPML_TM_MCS_Search_Render
*/
public function create( $search_string = '' ) {
$template = new WPML_Twig_Template_Loader(
array(
WPML_TM_PATH .... | true |
cd5de4708c96200935c447028a5fcb3bc9ed435a | PHP | fechu/LocalizationChecker | /src/SM/Lexer/Token.php | UTF-8 | 2,292 | 3.6875 | 4 | [
"MIT"
] | permissive | <?php
namespace SM\Lexer;
/**
* A token that represents a part in a text.
*
* The Lexer will output an array of tokens.
*
* To define a custom token, you can either Subclass or just instantiate.
*/
class Token {
/**
* The Regular expression which is used to identifiy this token.
*
* U... | true |
0eb9760416300ef1cee3c99a29ed7f456014bbbf | PHP | masteropen/symfony-security-system | /src/Security/Voter/UserVoter.php | UTF-8 | 2,156 | 2.875 | 3 | [] | no_license | <?php
namespace App\Security\Voter;
use App\Entity\User;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
/**
* Voter Authorization mechanism
*/
class UserVoter extends Voter
{
const ROLE_USER = 'ROLE_USER';
const ROLE... | true |
8c774bf79fbac877b255941f802dc25af1702a8a | PHP | DamienRiviere/SnowTricks | /src/Domain/Trick/Video/VideoDTO.php | UTF-8 | 886 | 2.984375 | 3 | [] | no_license | <?php
namespace App\Domain\Trick\Video;
use Symfony\Component\Validator\Constraints as Assert;
final class VideoDTO
{
/**
* @var integer
*/
protected $id;
/**
* @var string
* @Assert\NotBlank(
* message="Le lien de la vidéo ne doit pas être vide !"
* )
* @Assert\U... | true |
1fe382202d62420cf9eb53997eaa5230f9dd0d53 | PHP | RoboJackets/apiary | /app/Models/OAuth2Client.php | UTF-8 | 2,403 | 2.546875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace App\Models;
use Laravel\Passport\Client;
/**
* An OAuth 2 client.
*
* @property string $id
* @property int|null $user_id
* @property string $name
* @property string|null $secret
* @property string|null $provider
* @property string $redirect
* @property bool $persona... | true |
0684a140c76e4e5378316bd41179bacac94cc06e | PHP | Piohb/WebServices | /app/Http/Controllers/StockController.php | UTF-8 | 6,345 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Http\Resources\StockCollection;
use App\Models\Stock;
use Illuminate\Http\Request;
class StockController extends Controller
{
/**
* @OA\Get(
* path="/stocks/{id}",
* tags={"Stock"},
* summary="Return a stock",
* @OA\Parameter... | true |
877c38b9e8f5f7f6d8acc7e5bab549f9165d9ea1 | PHP | concretecms/concretecms | /concrete/src/Support/CodingStyle/Fixer/InlineTagFixer.php | UTF-8 | 9,599 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Concrete\Core\Support\CodingStyle\Fixer;
use PhpCsFixer\AbstractFixer;
use PhpCsFixer\Fixer\ConfigurationDefinitionFixerInterface;
use PhpCsFixer\FixerConfiguration\FixerConfigurationResolver;
use PhpCsFixer\FixerConfiguration\FixerOptionBuilder;
use PhpCsFixer\FixerDefinitio... | true |
d03909776ffbed78411395901fdaf7b5dace7007 | PHP | weiboad/weibo-ads-php-sdk | /src/WeiboAd/Core/ADsApi.php | UTF-8 | 8,889 | 2.5625 | 3 | [] | no_license | <?php
namespace WeiboAd\Core;
use WeiboAd\Collection;
use WeiboAd\Core\Entity\ADs;
use WeiboAd\Exception\InvalidArgumentException;
/**
* Class ADsApi
* @package WeiboAd\Core
*/
class ADsApi extends AbstractApi
{
const URI_READING = "/ads/%d";
const URI_LIST = "/ads";
const URI_CREATE = "/ads";
... | true |
231da4a7a14a64a40476a5a4614807006e042ab4 | PHP | vestervang/rs-api | /src/RS3/GE/PriceHistory.php | UTF-8 | 2,681 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: frederikthomsen
* Date: 06/01/2018
* Time: 19.19
*/
namespace vestervang\rsApi\RS3\GE;
class PriceHistory
{
protected $today;
protected $day30;
protected $day60;
protected $day180;
protected $priceHistory;
public function __construct($priceHistory... | true |
6ac52db7e709bbccfbc251c01d43b068bcce0eaa | PHP | jgwill/lampyno | /www/wp-content/themes/ashe/templates/header/featured-slider.php | UTF-8 | 3,024 | 2.546875 | 3 | [
"GPL-3.0-only",
"WTFPL",
"MIT",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only"
] | permissive | <?php
$slider_navigation = ashe_options( 'featured_slider_navigation' );
$slider_pagination = ashe_options( 'featured_slider_pagination' );
$slider_data = '{';
$slider_data .= '"slidesToShow":1, "fade":true';
if ( !$slider_navigation ) {
$slider_data .= ', "arrows":false';
}
if ( $slider_pagination ) {
... | true |
637ba1ca5f267b9acbcf323de4058a47d7b1c171 | PHP | janaravi10/programmingspot | /includes/registration.php | UTF-8 | 6,393 | 2.59375 | 3 | [] | no_license | <?php include "includes/database.php"; ?>
<?php include "includes/header.php"; ?>
<?php include 'includes/functions.php'; ?>
<!-- Navigation -->
<?php include "includes/navigation.php"; ?>
<!-- Page Content -->
<div class="container">
<?php if (isset($_POST['register'])) {
... | true |
b57741714b883fc7d0329eff558a6423aedfeed4 | PHP | fernando-maio/internations | /app/Components/Validations.php | UTF-8 | 3,161 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Components;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
class Validations
{
/**
* Validate login
*
* @var array $data
*
* @return Validator
*/
public static function loginValidate($data)
{
$rules = array(
'... | true |
14c34cbf427498b447154c87378cd659be81f4ff | PHP | azpay/starkbank-sdk-php | /src/utils/enum.php | UTF-8 | 345 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace StarkBank\Utils;
use \ReflectionClass;
class Enum
{
public static function values()
{
$reflection = new ReflectionClass(get_called_class());
return $reflection->getConstants();
}
public static function isValid($item)
{
return in_array($item, get_called_cla... | true |
cf74e6e4c2ba245ba3c10fc28571931048091487 | PHP | jbreitenbucher/wordpress-plugins-and-themes | /site-list-shortcode/site-list-shortcode.php | UTF-8 | 1,591 | 2.703125 | 3 | [] | no_license | <?php
/*
Plugin Name: Site List
Plugin URI: https://technology.wooster.edu
Description: This plugin will add a shortcode that can be used to generate and display a list of all the sites in a multisite network.
Author: Jon Breitenbucher
Author URI: http://jon.breitenbucher.net
Version: 1.0
License: GNU General Public ... | true |
866eaf50ee5f8af335ac8023a2936f552bce8b55 | PHP | NishatTasnim671/WT_FINAL_SUM21 | /Project/Admin Panel/controllers/CategoryController.php | UTF-8 | 1,379 | 2.75 | 3 | [] | no_license |
<?php
require_once 'models/db_config.php';
$name = "";
$err_name = "";
$hasError = false;
$err_db = "";
if (isset($_POST["add_category"])) {
//name
if (empty($_POST["name"])) {
$hasError = true;
$err_name = "Name Required";
} else {
$name = $_POST["name"];
}
if (!$hasErr... | true |
97179677232a14cc171463a3b2c04fd28de4d3be | PHP | Archie22is/mandriller | /globals.php | UTF-8 | 318 | 2.71875 | 3 | [] | no_license | <?php
function mandriller($subject, $body, $email, $name='')
{
$message = new Mandriller\Message();
$message->subject = $subject;
$message->body=$body;
$message->to_email=$email;
$message->to_name = $name;
$mailer = new Mandriller\Mailer();
$mailer->send($message);
return $mailer;
}
| true |
60214b6f596bfbc1f6875813b0a5dde9ed8dcb8a | PHP | anfer86/teaching-php-introducao | /exemplo_for.php | UTF-8 | 330 | 3.53125 | 4 | [] | no_license | <?php
for ($i=1; $i < 10; $i+=5){
echo $i . ' ';
}
$nomes = ['Andres','Anahi','Tomero', 'Rutini'];
for ($i=0; $i < sizeof($nomes); $i++) {
echo $nomes[$i] . ' ';
}
?>
<br>
<?php
foreach ($nomes as $nome){
echo $nome . ' ';
}
foreach ($_SERVER as $key => $value){
echo "<li><b>$key:</b> $value </l... | true |
cf2aa8bc3f10bf6cf887cf9cb1406f9eae6a17df | PHP | NguyenKhai0201/Omely | /admin/lib/database.php | UTF-8 | 1,653 | 2.875 | 3 | [] | no_license | <?php
include '../config/config.php'
?>
<?php
class Database
{
public $host = DB_HOST;
public $user = DB_USER;
public $pass = DB_PASS;
public $dbname = DB_NAME;
public $link;
public $error;
public function _construct()
{
$this->connectDB();
}
private function connectD... | true |
e679f8efa20d5240fcdbc02599706ee6e61844da | PHP | monyc2000/filmoteca-1 | /app/Filmoteca/Models/Film.php | UTF-8 | 2,144 | 2.703125 | 3 | [] | no_license | <?php
namespace Filmoteca\Models;
use Codesleeve\Stapler\ORM\StaplerableInterface;
use Codesleeve\Stapler\ORM\EloquentTrait;
use Carbon\Carbon;
use Eloquent;
class Film extends Eloquent implements StaplerableInterface
{
use EloquentTrait;
protected $guarded = [];
protected $appends = ['cover_urls'];
public f... | true |
1656f45e71885eb6d1e8d7c90222970c8692829c | PHP | devlabs91/travelgate-notify | /src/Models/Ota/ReferencePlaceHolderType.php | UTF-8 | 897 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace Devlabs91\TravelgateNotify\Models\Ota;
/**
* Class representing ReferencePlaceHolderType
*
* Used to provide a reference to an object that is stored elsewhere in a collection of the same objects.
* XSD Type: ReferencePlaceHolderType
*/
class ReferencePlaceHolderType
{
/**
* The unique r... | true |
2b7f914e41ec7ea59c8d1e16fe9f33c3635f57de | PHP | cascade-core/simplecrud | /class/abstractdriver.php | UTF-8 | 2,206 | 2.640625 | 3 | [] | no_license | <?php
/*
* Copyright (c) 2012, Josef Kufner <jk@frozen-doe.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | true |
b48d4d0d75e9831f469ee12285aa03e89f2b8b75 | PHP | Poluyanvv/shop.free96.ru | /admin/models/catmodel.php | UTF-8 | 5,542 | 2.78125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Валерий
* Date: 03.03.2016
* Time: 20:09
*/
class CatModel
{
/* @var $mysqli Mysqli */
public $mysqli;
public function __construct()
{
$this->mysqli = Register::get('mysqli');
}
public static function getAll(){
/* @var $mysqli Mysq... | true |
25e9b7eb91de34db941a9836109f2cdd42ceec51 | PHP | yunsite/t-info-together | /retriever/pic_save.php | UTF-8 | 866 | 2.78125 | 3 | [] | no_license | <?php
/*
* Description: 保存网页图片至本地
* Author: loveruguo(http://blog.csdn.net/loveruguo/article/details/6704736)
*
*
*/
/*
* Description: 保存网页中图片到本地
*
* @param $Url 网页URL(需为完整url,不能为相对url)
* @param $SavePath 保存本地路径
* @return boolean
*/
//http://www.iwaimai.net/gmap/images/markers/red/marke... | true |
391401437ac006c8847115346eaf12639542efe6 | PHP | nguyenthanh4794/social_commerce | /application/modules/Socialcommerce/Form/Payment/Gateway.php | UTF-8 | 1,676 | 2.515625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Nguyen Thanh
* Date: 11/8/2016
* Time: 11:28 PM
*/
class Socialcommerce_Form_Payment_Gateway extends Engine_Form
{
public function init()
{
//Set Form Informations
$this -> setAttribs(array('class' => 'global_form','method' => 'post'))
-... | true |
d45f5f413acaf1aa4fe6fef9da1f7feefa76f1dc | PHP | vonglasow/Profile | /src/Profile/Bench/Active.php | UTF-8 | 2,870 | 2.578125 | 3 | [] | no_license | <?php
namespace Profile\Bench;
class Active extends Inactive {
protected $bRunning = false;
protected $fMemoryStart;
protected $fMemoryStop;
protected $fStart;
protected $fStop;
protected $sMarkerName;
protected $sMarkerGroup;
protected $sUniqid;
public function __construct($sName... | true |
2fedfa3bb6be1ee7a1921624df6880423c85959c | PHP | JauhienKaraliou/forum_v1.02 | /inc/lib/User.php | UTF-8 | 7,477 | 3.03125 | 3 | [] | no_license | <?php
/**
* Class User
* Класс Пользователя
*/
class User {
private $userData = array();
private $resp = true;
private $errors = array();
public static $isLogged;
public static $username;
public static $userID;
public static $userStatusID;
public function __construct(){
if... | true |
3a669acd3ee7c11b7a5df330415c3733a1e85e2d | PHP | earthperson/HelloWorld | /homepage/engine/index/lib.php | WINDOWS-1251 | 1,937 | 3.484375 | 3 | [
"MIT"
] | permissive | <?php
/**
*
*
* @return string
*/
function saying($file) {
//
$arr = @file($file) or $arr = array();
// ,
if (count($arr) == 0) return false;
//
mt_srand(floatval(microtime()) * 100000000);
//
$str = trim($arr[ mt_rand(0, count($arr)-1) ]);
//
$arr = explode('|', $str);
$s... | true |
b617c46eecc6a155e40991a77466ac0321ea3e2c | PHP | Direct7Design/Cache | /libs/ANS/Cache/Interfaces/Files.php | UTF-8 | 4,123 | 2.859375 | 3 | [] | no_license | <?php
namespace ANS\Cache\Interfaces;
class Files implements \ANS\Cache\Icache
{
public $loaded = false;
private $settings = array();
private $folder;
/**
* public function __construct (array $settings)
*
* return none
*/
public function __construct ($settings)
{
$... | true |
73f6323667e2da62a90c58e1ba2fcd52f453cb34 | PHP | ankitwagadre/Online-Form-using-MySQL-and-PHP | /inside/insert.php | UTF-8 | 3,707 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
include("../sql_files/connect.php");
include("session.php");
session_start();
//echo "inserting into database";
//print_r($_POST);
//Array ( [name] => asd [address] => asd [purpose] => asd [econtact] => qdsa [contact] => das [datedep] => asd [timedep] => da [bus] => y )
function check_input($value)
{
if(!em... | true |
47b6e8b972c416dc365ef8eebaa94fe5ea368961 | PHP | CamileGhastine/BlogOC5 | /CamileApp/Model/PostsManager.php | UTF-8 | 3,865 | 2.59375 | 3 | [] | no_license | <?php
namespace CamileApp\Model;
/**
* Class PostsManager
* @package CamileApp\Model
*/
class PostsManager extends Manager
{
protected $table = 'posts';
/**
* all posts (with number of comments)
* function request($sql, $param, $table, $fetchall)
* @return mixed
*/
public function ... | true |
cf3ec6059d07ffb5d364633a7aabf1ce29d2f18e | PHP | xia-lao/LStest03302021 | /index.php | UTF-8 | 6,249 | 3.125 | 3 | [] | no_license | <?php
/**
* A file with the task
* 1. Создать класс Item, который не наследуется. В конструктор класса передается ID объекта.
* 2. Описать свойства (int) id, (string) name, (int) status, (bool) changed. Свойства доступны только внутри класса.
* 3. Создать метод init(). Предусмотреть одноразовый вызов метода.
... | true |
b8fc676ea8a217fcba22aaee217b374f94bd67ff | PHP | fracz/refactor-extractor | /results/kakserpom--phpdaemon/654d49dc86c4875f542340ed5b992fd5e052b638/before/CacheItem.php | UTF-8 | 586 | 3.046875 | 3 | [] | no_license | <?php
/**
* CacheItem
*
* @package Core
*
* @author Zorin Vasily <kak.serpom.po.yaitsam@gmail.com>
*/
class CacheItem {
public $value;
public $hits = 1;
public $listeners;
public $expire;
public function __construct($value) {
$this->listeners = new SplStack;
$this->value = $value;
}
public function g... | true |
0fd8ba28836f6e1d3cc8f8840e5e260f69503e6b | PHP | josdavidmo/orion | /clases/aplicacion/CHistorialCambiosBeneficiario.php | UTF-8 | 6,008 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Clase Historial Cambios Beneficiario.
* Clase plana o entidad de Historial de Cambios, contiene la definicion y el manejo
* de los atributos del historial de cambios de los beneficiarios a traves de la
* definicion de los mismos y los metodos de set y get.
* @see beneficiarios.php (@package m... | true |