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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
15c3c5fdb652a85939f24c4d543127adb0d65fba | PHP | bodyTop/studyComposer | /src/Study.php | UTF-8 | 183 | 2.859375 | 3 | [] | no_license | <?php
namespace Breeze;
class Study
{
public function index(){
return 'hello word';
}
public function newSum(int $a, int $b){
return $a+$b;
}
} | true |
b5b5c08a096f7890898d19121aab8807ac646065 | PHP | eerotuu/team-6-project | /php/api/comments.php | UTF-8 | 2,286 | 3.328125 | 3 | [] | no_license | <?php
class Comment{
private $conn;
private $table_name = "comments";
public $id;
public $name;
public $time_stamp;
public $message;
public $image_url;
public function __construct($db){
$this->conn = $db;
}
function readId() {
$query = "SELECT * FROM comments WHERE id=:id";
$stmt = $... | true |
ef0d6309db146a0b61de086b41df3985d3db1f7a | PHP | aertslab/iRegulon | /web/common.php | UTF-8 | 5,527 | 2.984375 | 3 | [] | no_license | <?php
/* Get IP address of the user. */
$client_ip = $_SERVER['REMOTE_ADDR'];
/* Get iRegulon client version. */
$client_version = $_SERVER['HTTP_USER_AGENT'];
class Job_status_codes {
const REQUESTED = '1';
const RUNNING = '2';
const FINISHED = '3';
const ERROR = '-1';
}
function only_post_requ... | true |
357d74d4c47581b2543541d2607b2981f24dfdde | PHP | sandreas/m4b-tool | /src/library/Audio/Traits/LogTrait.php | UTF-8 | 389 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace M4bTool\Audio\Traits;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerTrait;
trait LogTrait
{
use LoggerTrait, LoggerAwareTrait;
public function log($level, $message, array $context = [])
{
if ($this->logger instanceof LoggerInterface) {
... | true |
b47fe439f39ac1aada0e6f02bdbcc55f50fb0fd2 | PHP | DustinHartzler/PharmToTable | /wp-content/plugins/sfwd-lms/includes/admin/classes-import-export/import/class-learndash-admin-import-users.php | UTF-8 | 9,398 | 2.515625 | 3 | [] | no_license | <?php
/**
* LearnDash Admin Import Users.
*
* @since 4.3.0
*
* @package LearnDash
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if (
class_exists( 'Learndash_Admin_Import' ) &&
trait_exists( 'Learndash_Admin_Import_Export_User_Activity' ) &&
! class_exists( 'Learndash_Admin_Import_Export_Users' )
) {
/**
* ... | true |
a876086efdf43b92219107b16eb628b3ddeae073 | PHP | AlexanderDolgov/inline_content_editor | /src/Access/InlineContentEditorAccessCheck.php | UTF-8 | 1,493 | 2.609375 | 3 | [] | no_license | <?php
namespace Drupal\rai_inline_content_editor\Access;
use Drupal\Core\Access\AccessResultAllowed;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountProxyInterface;
use Drupal\Core\Access\AccessResult;
/**
* Provides access checks for Inline Content Editor module.
*/
class InlineContentEdito... | true |
cccfd4a66bc06c329cb21c93815577b06bb8a65e | PHP | fadeltd/eprocurement | /class/pesertaLelang.php | UTF-8 | 10,059 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of pesertaLelang
* Digunakan untuk melakukan operasi dengan tabel pesertaLelang
* @author Fadel
*/
class pesertaLelang {
private $idPesertaLelang;
private $idLelang; //Foreign Key i... | true |
f8c6d25d9834cda1c27392c4d6f313af00c5c8e6 | PHP | mowglii/Thesis | /backend/dbsaveex.php | UTF-8 | 780 | 2.546875 | 3 | [] | no_license | <?php
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST["exer_id"]) ) {
if ( $_POST["exer_id"] != ""
&& $_POST["exer_name"] != ""
&& $_POST["exer_kcal"] != ""
) {
$exer_id = intval($_POST["exer_id"]);
$exer_name = $_POST["exer_name"];
$exer_kcal = intval($_POST["exer_kcal"]);
$save... | true |
747763784a1f888ee6f68bf1430ef7dc5db41d88 | PHP | malbore/m1press-plugin-v2 | /includes/class-utilities.php | UTF-8 | 1,956 | 2.578125 | 3 | [] | no_license | <?php
class Utilities
{
public function __construct()
{
$this->conf_file = get_template_directory() . '/editor-conf.json';
}
public function get_colors()
{
$file = get_template_directory() . '/custom/scss/_colors.scss';
if (is_readable($file)):
$file_lines = file($file);
$colors = [];
array_... | true |
a4d426873f81a06e13045e86e80221250e91a8ce | PHP | kunalnigam07-zz/sampleCodeExample | /app/Http/Middleware/BanCheck.php | UTF-8 | 1,555 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Http\Middleware;
use Auth;
use Closure;
use AuthHelper;
use NetworkHelper;
class BanCheck
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure ... | true |
46c5206d3e3bee7e35c8fb7816467a568a3535e2 | PHP | sajidalsakib/APWT-Tasks | /student_class.php | UTF-8 | 811 | 3.78125 | 4 | [] | no_license | <?php
class Student{
public $name;
public $id;
public $courses=[];
function showinfo(){
echo "Name : $name";
echo "Id : $id";
}
function addCourse ($courseName){
$this->courses[] = $courseName;
}
function sh... | true |
2710423d41370a977c9a1d8a9dde4fcbef9c1521 | PHP | bpierre/gif.gg | /app/lib/url-id-manager.php | UTF-8 | 888 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
namespace Gifgg;
class UrlIdManager {
private $gifs_dir = NULL;
private $id_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
private $reserved_ids = ['about'];
function __construct($gifs_dir) {
$this->gifs_dir = $gifs_dir;
}
function id_to_filename($id) {
return $... | true |
ecb8db3ee0ccf0929fb2c89ab92243be01f9a89f | PHP | bradyo/spell-checker-challenge | /src/Checker.php | UTF-8 | 4,821 | 3.359375 | 3 | [] | no_license | <?php
/**
* Checker finds spelling suggestions for mis-typed words based on dictionary
* words.
*
* Checker corrects the following three types of spelling mistakes:
* 1. Case (upper/lower) errors: "inSIDE" -> "inside"
* 2. Repeated letters: "jjoobbb" -> "job"
* 3. Incorrect vowels: "weke" -> "wake"
*/
clas... | true |
dfd0086e79cc170fb0d0c3a07c1ec0db90f6b5d8 | PHP | elct9620/MCUCourseCLI | /src/migrations/2013_10_04_1380875542_create_courses_table.php | UTF-8 | 781 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
use MCUCourseCLI\Migration;
class CreateCoursesTable extends Migration {
public function up() {
$this->schema()->create('courses', function($table)
{
$table->increments('id');
$table->integer('system');
$table->string('course_code');
$table->string('course_name');
$table-... | true |
098a9be1ca47f87704b3d1a9c53da681d7c491c6 | PHP | Hvardd/Wayfare | /src/src/php/hentMeldinger.php | UTF-8 | 1,625 | 2.625 | 3 | [] | no_license | <?php
function FyllListe () {
$conn = mysqli_connect("localhost", "root", "", "Wayfare");
if (!isset($_SESSION['user_email'])) {
echo 'Ikke logget inn';
exit();
}
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
... | true |
5a6d5b85fab9dc5cdfb398e4df4a0e52b1688137 | PHP | arkanmgerges/tasker | /src/Tasker/Exception/Definition/ErrorAbstract.php | UTF-8 | 1,055 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace Tasker\Exception\Definition;
use MultiTierArchitecture\Exception\Definition\ErrorAbstract as MultiTierArchErrorAbstract;
use Tasker\Exception\Tool\Helper;
use Monolog\Logger;
/**
* This type of exception is used when runtime errors that do not require immediate action but should typically
* be logge... | true |
22116b7958dce90f41512a025079b15055460eb7 | PHP | skingori/opensource | /admin/add-dep.php | UTF-8 | 2,270 | 2.796875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: king
* Date: 01/04/2017
* Time: 11:24
*/
// Inialize session
session_start();
// Check, if user is already login, then jump to secured page
if (isset($_SESSION['logname']) && isset($_SESSION['rank'])) {
switch($_SESSION['rank']) {
case 2:
header('l... | true |
97f77810c44dfc058b4bcfe0526ebf70da7e3471 | PHP | Leonxv/tpall.command- | /src/Aleondev/tp/Main.php | UTF-8 | 848 | 2.625 | 3 | [] | no_license | <?php
namespace Aleondev\tp;
use pocketmine\plugin\PluginBase;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
use pocketmine\level\Position;
class Main extends PluginBase{
public function onEnable() : void{
$this->getLogger()->info("Aktiviert");
}
public function onCommand(CommandSende... | true |
bd0d85f2ce16b702e41c148cb9869c6e1c154a1c | PHP | borisguery/CoreTrackerBundle | /Bgy/CoreTrackerBundle/Processor/Processor.php | UTF-8 | 965 | 2.671875 | 3 | [] | no_license | <?php
/**
* @author Boris Guéry <guery.b@gmail.com>
*/
namespace Bgy\CoreTrackerBundle\Processor;
use Bgy\CoreTracker\CoreDump;
use Bgy\CoreTracker\Filter\FilterStrategyInterface;
use Bgy\CoreTracker\Sorter\SorterStrategyInterface;
class Processor implements ProcessorInterface
{
protected $filter;
protect... | true |
63d361fd43178cc8c5c00fda83c2b84fcdd1c1bb | PHP | freddyalpino/loginismuba | /fa-13/bengkel/servicesearch.php | UTF-8 | 1,865 | 2.625 | 3 | [] | no_license | <?php
$server="localhost";
$username="root";
$password="";
$database="servicemotor";
$coba =mysqli_connect($server, $username, $password, $database);
$noktp=$_POST['noktp'];
$sql = "SELECT * FROM `service` WHERE noktp='$noktp'";
$data = $coba->query($sql);
echo "<a href='servicetampil.php'>Back</a>";
ech... | true |
fbb4e8f996bcaf45d1fc03195181d5dc4459ac11 | PHP | AsuraDeus/Training | /Courses/Php2/day1/part1.php | UTF-8 | 343 | 2.59375 | 3 | [] | no_license | <?php
//echo '<h1>Hello World</h1>';
setcookie('name','Stanislav',time() +3600);
$user = [
'name' => 'Stas',
'login' => 'qwas',
'pass' => 'wut'
];
$str = base64_encode(serialize($user));
setcookie('user',$str);
$user= unserialize(base64_encode($_COOKIE['user']));
echo '<br />';
print_r($user);
ech... | true |
cf819ce385e32b96a07f940074e3faa1f491c148 | PHP | cultuurnet/uitpas-beheer-silex | /test/Activity/SalesInformation/SalesInformationTestDataTrait.php | UTF-8 | 3,574 | 2.53125 | 3 | [] | no_license | <?php
namespace CultuurNet\UiTPASBeheer\Activity\SalesInformation;
use CultuurNet\UiTPASBeheer\Activity\SalesInformation\Price\PriceClass;
use CultuurNet\UiTPASBeheer\Activity\SalesInformation\Price\Prices;
use CultuurNet\UiTPASBeheer\Activity\SalesInformation\Tariff\Tariff;
use CultuurNet\UiTPASBeheer\Activity\Sales... | true |
25b32bc103fb777949635978fd90f680fa4b6a2b | PHP | BernhardRode/sgbottwartal | /src/scripts/hvw_spielplan_to_ics.php | UTF-8 | 11,033 | 2.890625 | 3 | [] | no_license | <?php
include '_phpquery.php';
function pretty_json($json) {
$result = '';
$pos = 0;
$strLen = strlen($json);
$indentStr = ' ';
$newLine = "\n";
$prevChar = '';
$outOfQuotes = true;
for ($i=0; $i<=$strLen; $i++) {
$char = substr($json, $i, 1);
if ($char == '"' &&... | true |
2d188710a8769bf916f2cabc3b0a49979ee3ddc2 | PHP | felixwahner/TextformatterOEmbed | /vendor/essence/dom/src/Document.php | UTF-8 | 613 | 3.375 | 3 | [
"MIT",
"BSD-2-Clause-Views"
] | permissive | <?php
/**
* @author Félix Girault <felix.girault@gmail.com>
* @license MIT
*/
namespace Essence\Dom;
use Closure;
/**
* Represents an HTML document.
*/
abstract class Document {
/**
* HTML source.
*
* @var string
*/
protected $_html;
/**
* Contructor.
*
* @param string $html HTML source.
... | true |
a3861b0aca155911f2fe43e50ebb4be10cebf6a8 | PHP | javiya-rupal/slim-shout-app | /tests/TestCase/Domain/QuoteTest.php | UTF-8 | 2,799 | 2.84375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Tests\Domain;
use App\DataProviders\QuotesFromJsonReader;
use PHPUnit\Framework\TestCase;
use App\Domain;
class QuoteTest extends TestCase
{
private $fileGetContentsWrapper;
//---------------------------------------------------------------------//
// Setup ... | true |
daddda9b29cf10f446dfad479d9a372b0a715831 | PHP | Ckadd/tpso | /app/Repository/KnowledgebaseViewRepository.php | UTF-8 | 2,527 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Repository;
use App\Model\KnowledgebaseView;
class KnowledgebaseViewRepository {
protected $knowledgebaseViewRepository;
public function __construct(KnowledgebaseView $knowledgebaseViewRepository) {
$this->knowledgebaseViewRepository = $knowledgebaseViewRepository;
}
... | true |
6df63ded14879f19fac6292041eb18092347e1f9 | PHP | zywaited/tool_php | /model/OGModel.class.php | UTF-8 | 901 | 2.578125 | 3 | [] | no_license | <?php
/****
waited
****/
//防非法访问
defined('KEY') || exit('非法访问');
class OGModel extends Model {
protected $table = 'ordergoods';
protected $pk = 'og_id';
// 把订单的商品写入ordergoods表
public function addOG($data) {
if($this->add($data)) {
$sql = 'update goods set goods_... | true |
97f83f1990efa65fddbc67310bf0d7a52797569b | PHP | PurityKoi/Buses254_Laravel | /buses254/app/Http/Controllers/b_scheduleController.php | UTF-8 | 3,132 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\bSchedule;
use App\bDetails;
class b_scheduleController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
... | true |
de8275d55d9a3eef7e02b64234dd873dbbdf9a26 | PHP | takamichi/loxcan | /src/Command/ScanCommand.php | UTF-8 | 3,780 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Siketyan\Loxcan\Command;
use Eloquent\Pathogen\Path;
use Siketyan\Loxcan\Model\DependencyCollectionDiff;
use Siketyan\Loxcan\Model\Repository;
use Siketyan\Loxcan\Versioning\VersionDiff;
use Siketyan\Loxcan\UseCase\ReportUseCase;
use Siketyan\Loxcan\UseCase\ScanUseCase;
use S... | true |
bae68b9454f3a5a1df11917bb81d310487bcf5af | PHP | ivanstoynov/eab | /protected/eab/ClassLoading/class.EabAutoLoader.php | UTF-8 | 2,823 | 2.953125 | 3 | [] | no_license | <?php
/**
* Auto loader class
*
* @category Loaders
* @package Eab
* @author Ivan Stoyanov <iv44@yahoo.com>
* @copyright 2010-2014 Stoqnoff
* @since 1.0.0
*/
class EabAutoLoader
{
private static $_instance;
/**
* Directory separator
*
* @var string
*/
private $_ds;
/**
* Regi... | true |
27a8e517def58a5e0edbc559583e1dd6a67b5171 | PHP | kivancerten/php_game_of_life | /BoardInterface.php | UTF-8 | 383 | 3.046875 | 3 | [] | no_license | <?php
interface BoardInterface
{
/**
* @param BoardGeneratorInterface $boardGenerator
*/
public function __construct(BoardGeneratorInterface $boardGenerator);
/**
* @param Cell $cell
*
* @return boolean
*/
public function calculateNewStatusOfCell(Cell $cell);
public ... | true |
06b8a511d6d1ee1459a4acc026de412bf9cffb6a | PHP | IvanAlmeidaReyes13/GestiorHotel | /GESTOR HOTEL/src/bbdd.php | UTF-8 | 15,218 | 2.859375 | 3 | [] | no_license |
<?PHP
class bbdd
{
const HOST = "localhost";
const US = "root";
const PW = "";
const BBDD = "gestionjalula";
var $conexion;
function __construct()
{
$this->conexion = new mysqli();
$this->conexion->connect(self::HOST, self::US, self::PW, self::BBDD);
}... | true |
cbf2aba338f81c129a55b27f6572df8b2c9308cb | PHP | viloveul/database | /src/Connection.php | UTF-8 | 1,260 | 3.078125 | 3 | [] | no_license | <?php
namespace Viloveul\Database;
use Viloveul\Database\Contracts\Connection as IConnection;
abstract class Connection implements IConnection
{
/**
* @var mixed
*/
protected $host;
/**
* @var mixed
*/
protected $name = '';
/**
* @var mixed
*/
protected $port =... | true |
3cb6d280f8a78194108f27aebe3a105f82f13df7 | PHP | kamicloud/laravel-unofficial-relations | /src/Eloquent/Relations/HasManyBySet.php | UTF-8 | 3,969 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Kamicloud\LaravelUnofficialRelations\Eloquent\Relations;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
class HasManyBySet extends Relation
{
protected $relatedKey;... | true |
4b5a89a86d5ee6aa3adb2b99c660d07eea6f7cb9 | PHP | yyyfeeg/leyou | /admin.backend/lyinclude/sms.class.php | UTF-8 | 5,728 | 2.640625 | 3 | [] | no_license | <?php
class SMS{
private $account; // 接口账号
private $pwd; // 接口密码
/**
* 构造方法
* @param [type] $gid 游戏ID
* @param [type] $key 后台接口加密KEY
* @param [type] $url 后台接口地址
*/
public function __construct()
{
$this->account = "xinghui@xinghui";
$this->pwd = 'H6FSq9X8';
}
/**
* 短信群发
* $url ... | true |
110b87ad1b54d466ea009163b67fc8a13c576441 | PHP | Githubxinwei/saas | /common/models/base/ActionCategoryRelation.php | UTF-8 | 828 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\models\base;
use Yii;
/**
* This is the model class for table "{{%action_category_relation}}".
*
* @property string $id 自增ID
* @property string $cid 分类ID
* @property string $aid 动作ID
*/
class ActionCategoryRelation extends \yii\db\ActiveRecord
{
/**
* @inheritdoc... | true |
0289a3c6bf759691ad4e54fa237dd1840e683e7b | PHP | LoweryCS/LogReg | /login.php | UTF-8 | 4,606 | 2.53125 | 3 | [] | no_license | <?php
session_start();
$_SESSION['message'] = '';
$mysqli = new mysqli('localhost', 'root', 'mypassword123', 'logreg');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
//are paswords equal?
if($_POST['password'] == $_POST['cpassword'])
{
$username = $mysqli->real_escape_string($_POST['u... | true |
6f49de8566d229f55dd0e9b5a49096113f5c9651 | PHP | JanjanCurry/yiibloomberg | /protected/models/DbCompany.php | UTF-8 | 2,714 | 2.65625 | 3 | [] | no_license | <?php
/**
* This is the model class for table "db_company".
*
* The followings are the available columns in table 'db_company':
* @property integer $id
* @property string $name
* @property integer $updated
* @property integer $created
*/
class DbCompany extends ActiveRecord {
/**
* @return string the associ... | true |
dec9a2dfca8043bf0ac3b2473163ef1571024946 | PHP | theylooksotired/asterion | /app/lib/base/LangTrans/LangTrans.php | UTF-8 | 431 | 2.71875 | 3 | [] | no_license | <?php
/**
* @class LangTrans
*
* This class contains all the translations of the phrases and words in Asterion.
*
* @author Leano Martinet <info@asterion-cms.com>
* @package Asterion
* @version 3.0.1
*/
class LangTrans extends Db_Object {
/**
* Get the translation of a phrase or a word using its code.
*/
... | true |
6a2d5f90bf2cd4e150bf1a230498cb6fd94be653 | PHP | WhoTrades/bitbucket-api | /src/Entity/Browser/Directory.php | UTF-8 | 879 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Anton Gorlanov <antonxacc@gmail.com>
*/
namespace whotrades\BitbucketApi\Entity\Browser;
use whotrades\BitbucketApi\Entity\Base;
class Directory extends Base
{
const CHILD_TYPE_FILE = 'FILE';
const CHILD_TYPE_DIRECTORY = 'DIRECTORY';
protected $path;
protected $children;
/*... | true |
f3f1520511d3e065ad85a4ffd2d8b85ec1de384e | PHP | mlzxgzy/CTF-Collection | /3.过滤斜杠/check.php | UTF-8 | 350 | 2.5625 | 3 | [] | no_license | <?php
header("Content-type: text/html; charset=utf-8");
show_source(__FILE__);
$res = FALSE;
if (isset($_GET['ip']) && $_GET['ip']) {
$ip = $_GET['ip'];
$m = [];
if (!preg_match_all("/\//", $ip, $m)) {
$cmd = "ping -c 4 {$ip}";
exec($cmd, $res);
} else {
$res = $m;
}
}
if ($... | true |
94e0d5cc216f70cd32a88339cf54475e9b559f0f | PHP | devhook/shop | /src/components/shop/OrderStatus.php | UTF-8 | 2,798 | 2.5625 | 3 | [] | no_license | <?php namespace Devhook\Shop;
use \Model;
// use DB;
// use URL;
class OrderStatus extends Model
{
//--------------------------------------------------------------------------
protected $table = 'order_statuses';
protected $typeList = array(
'0' => '',
1 => 'Новый заказ (списывает товар со склада)',
2 => ... | true |
276eb397c586bb279d4ce3188f230daf7dfa6d1b | PHP | CodeBear22/journal | /src/model/user/User.php | UTF-8 | 1,629 | 3.109375 | 3 | [] | no_license | <?php
namespace src\model\user;
class User
{
private $allUserFileData;
CONST MAX_USER_COUNT = 10;
CONST USER_FILE_NAME = "UserData.csv";
CONST FILE_STORAGE_DIR = "/home/shopclues/journal/src/dataFiles/users/";
public function __construct()
{
$this->fetchUsersData();
}
publi... | true |
ec441176ba97ea93e11fc4b978974b658c00f5e6 | PHP | TimeToogo/Penumbra | /Source/Drivers/Base/Object/EntityRequest.php | UTF-8 | 1,089 | 2.71875 | 3 | [] | no_license | <?php
namespace Penumbra\Drivers\Base\Object;
use \Penumbra\Core\Object;
use \Penumbra\Core\Object\Expressions\Expression;
class EntityRequest extends Request implements Object\IEntityRequest {
private $Properties = [];
public function __construct(
$EntityOrType,
array $Properti... | true |
8ba415e31ce9ba31a774bba437e92d64ad839b5d | PHP | gustavosf/the-simple-php-framework-kernel | /src/Framework/Model.php | UTF-8 | 5,113 | 3.25 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of The Simple PHP Framework
*
* @package Framework
* @author Gustavo Seganfredo
*/
namespace Framework;
use Framework\Support\Str;
/**
* Model class
*/
abstract class Model implements \ArrayAccess, \Iterator
{
/**
* Table name
*
* @var string
*/
protected static $_ta... | true |
a2b32e65f77f3c5a086e23c3529116199514e11a | PHP | NoMan2000/oopPHP | /Oopphp/src/ChapterNine/Closures.php | UTF-8 | 647 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Oopphp\ChapterNine;
require_once __DIR__ . '/../../../public/bootstrap.php';
/**
* Class Closures
* @package Oopphp\ChapterNine
*/
class Closures
{
/**
* @var \Closure
*/
public $loadLocal;
/**
* @var \Closure
*/
public $loadGlobal;
/**
* Closures cons... | true |
6164351ece782d44e9d416978635295e4d819ba8 | PHP | flyingpig65/CApstone2 | /register.php | UTF-8 | 2,328 | 2.53125 | 3 | [] | no_license | <?php
$database=new mysqli("localhost","id7469495_ntl","@@YAss00","id7469495_private_message");
if ($database->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if(isset($_POST['btn'])){
session_start();
$password=htmlspecialchars($_POST['password']);
$password2=htmlspecialchars... | true |
d35c18e6bbc126efbde66853f95a557e938af09c | PHP | Shardj/dogbooks | /app/Models/Address.php | UTF-8 | 1,391 | 2.84375 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'addresses';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
... | true |
dfecddbad28e74d8844311769489d6a668cae1bd | PHP | MaBre01/trajectoire-balle | /src/Controller/Tp4Controller.php | UTF-8 | 515 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Chart\Tp4;
class Tp4Controller extends AbstractController
{
public function get()
{
$this->render('tp4/get.html.php');
}
public function post()
{
$angle = $_POST['angle'];
$initialSpeed = $_POST['initialSpeed'];
$bulletWeigh... | true |
ccaeafd0252dd667a71e3a5c58f2aec8d2ddeb0e | PHP | morgyken/Finance | /Library/Payments/Mpesa/MpesaRepository.php | UTF-8 | 2,008 | 2.578125 | 3 | [] | no_license | <?php
namespace Ignite\Finance\Library\Payments\Mpesa;
/**
* Class MpesaRepository
* @package Dervis\Library\Payments\Mpesa
*/
class MpesaRepository
{
/**
* The M-Pesa API Endpoint.
*
* @var string
*/
public $endpoint;
/**
* The callback URL to be queried on transaction comp... | true |
7d68f60cea6a0c471eb82fecca019e553a10f462 | PHP | dirts/inatu | /package/risk/Risk.class.php | UTF-8 | 5,172 | 2.53125 | 3 | [] | no_license | <?php
namespace Inauth\Package\Risk;
use \Inauth\Libs\Util\Util;
use Libs\Cache\Memcache as Memcache;
use Libs\Cache\HMemcache as HMemcache;
use \Inauth\Package\Util\Utilities as U;
/**
* 用户信息-模块
*/
class Risk {
/*
* 验证风控
*/
public static function risk($rule_id, $param) {
$token = array()... | true |
ca53eff8c148a9acacf2f081a57e0889bc168e94 | PHP | yasuzo/projectStravaPHP | /app/objects/Controllers/IndexOtherController.php | UTF-8 | 929 | 2.796875 | 3 | [] | no_license | <?php
namespace Controllers;
use Http\Responses\{HTMLResponse, Response};
use Services\{Templating, Firewall};
use Http\Request;
/**
* Renders index template
* Used when a user isn't logged in
*/
class IndexOtherController implements Controller{
private $templatingEngine;
private $firewall;
public fu... | true |
aa8acf68c4eec6453c85add9f3ba3e4d58435a50 | PHP | wenner-sanner/php-pdo | /conexao1.php | UTF-8 | 493 | 2.828125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: wenner
* Date: 08/06/18
* Time: 22:05
*/
$conn = new PDO('mysql:dbname=pdo_php;host=localhost',
'wenner', 'admin123');
$stmt = $conn->prepare('SELECT * FROM tb_usuarios ORDER BY deslogin');
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($r... | true |
16b08bbc4911ce59bffaf2ff3fc369d1f9c4e664 | PHP | bellyfat/module-qliroone | /Model/QliroOrder/IdentityVerification.php | UTF-8 | 1,160 | 2.53125 | 3 | [] | no_license | <?php
/**
* Copyright © Qliro AB. All rights reserved.
* See LICENSE.txt for license details.
*/
namespace Qliro\QliroOne\Model\QliroOrder;
use Qliro\QliroOne\Api\Data\QliroOrderIdentityVerificationInterface;
/**
* IdentityVerification class
*/
class IdentityVerification implements QliroOrderIdentityVerificatio... | true |
1a422887489ad2e245ff878a67a92f91a96c19f2 | PHP | Kendysond/Apps | /icancook/application/libraries/obj/Dishobj.php | UTF-8 | 1,118 | 2.671875 | 3 | [] | no_license | <?php
/**
* KENDYSON
*
* Copyright (c) 2014, Kendyson Douglas
*
* @package CodeIgniter
* @author KENDYSON
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
* @copyright Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/)
* @link http://kendyson.com
* @sin... | true |
2b082b95766e83989695cb19a34f70817ec514af | PHP | electric-eloquence/fepper-drupal | /backend/drupal/core/modules/layout_builder/src/LayoutTempstoreRepositoryInterface.php | UTF-8 | 1,637 | 2.8125 | 3 | [
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-other-copyleft",
"GPL-2.0-or-later",
"MIT"
] | permissive | <?php
namespace Drupal\layout_builder;
/**
* Provides an interface for loading layouts from tempstore.
*/
interface LayoutTempstoreRepositoryInterface {
/**
* Gets the tempstore version of a section storage, if it exists.
*
* @param \Drupal\layout_builder\SectionStorageInterface $section_storage
* ... | true |
0818ea02c8f61af1ad855aee526db0573eb4d26c | PHP | eggysetiawan/screencast-be | /database/seeders/UserSeeder.php | UTF-8 | 1,402 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Support\Str;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = [
[
'name' => 'Ra... | true |
52aa2ed8ead9a84c0005a631a71cb58008acd0a5 | PHP | frozenblood07/latorder | /src/Entity/Orders.php | UTF-8 | 2,165 | 2.640625 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\OrderRepository")
*/
class Orders
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)... | true |
0f115b2fafda605332cbef1d01a99e9c0469fb88 | PHP | proximitybbdo/laravel-cms | /src/database/migrations/2016_10_19_105304_create_items.php | UTF-8 | 1,095 | 2.546875 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateItems extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('items', function (Blueprint $table) {
$table->inc... | true |
9c6c6e327f5240c5e8db3468e07a4e0cd27b8a56 | PHP | spindado/ejerciciosPHP | /Tema19MySQL/ejercicios/Singleton/pruebas/pruebaSingleton.php | UTF-8 | 823 | 3.6875 | 4 | [] | no_license | <?php
class MySingleton{
private static $instance;
private $count;
private function __construct(){
echo "Construyendo objeto..." .PHP_EOL;
}
public static function getInstance(){
if(!self::$instance instanceof self){
self::$instance... | true |
bc61cdeb8273bfe56328e475cb5faf9ffcb51014 | PHP | yakoup46/db | /QueryBuilder.php | UTF-8 | 4,260 | 3.203125 | 3 | [] | no_license | <?php
namespace Datto\ORM;
class QueryBuilder {
/**
* @var array $properties Defined properties of a given Article
*/
protected $properties;
/**
* @var string $table SQL table
*/
protected $table;
/**
* boolean $hasWhere Denotes there was a previous where condition
... | true |
bf9cb4c5353b6130bc12ef72be5d4e6df4fa98cd | PHP | HansColman/CMDB | /WizardScoreBoard/Classes/GameController.php | UTF-8 | 40,372 | 2.796875 | 3 | [] | no_license | <?php
require_once 'GameService.php';
require_once 'ValidationException.php';
Class gameController{
private $gameService;
private $result;
private $count = 0;
public function __construct(){
$this->gameService = new GameService();
}
/**
* This function is the main function of this call
* It will ... | true |
bc15a626a4636413226acb0ed1755b0cad13f4c8 | PHP | UnbreakableEdu/UMLPOO | /atividade/teste_funcionario.php | UTF-8 | 394 | 3.09375 | 3 | [] | no_license | <?php
require_once "Funcionario.php";
require_once "Data.php";
$data1 = new Data("12","06","2000");
//print_r ($data1);
//print_r ($data2);
$usuario1 = new Funcionario("Josemir","Cultural",1000,"000000000-01",$data1);
echo $usuario1->mostra();
echo "<br>";
$data2 = new Data("18","09","2003");
$usuario2 = new Fu... | true |
e7438a1c070bdb11c62c47082ec4b844073f9f18 | PHP | loveyu/ProjectManager | /sys/lib/version_hook.php | UTF-8 | 2,084 | 2.5625 | 3 | [] | no_license | <?php
namespace ULib;
use Core\Page;
class Version_Hook extends Page
{
function __construct(){
hook()->add('project_content', [
$this,
'content_parse'
]);
}
public function content_parse($data, $type){
preg_match_all("/<!--\\[VERSION:([a-zA-Z_]+):([a-z_]+)\\]-->/", $data, $matches, PREG_SET_ORDER);
... | true |
1372aaeeec1ecb3f364865a5b1cba441749d777e | PHP | andreaskosten/php_examples | /oop_traits_conflicts.php | UTF-8 | 948 | 3.15625 | 3 | [] | no_license | <?php
/**
* Resolving traits conflicts in PHP
*
* This example is based on code taken from:
* https://github.com/igorsimdyanov/php7/blob/master/inherit/traits_conflict.php
*
*/
trait Header
{
public function getBackground()
{
echo "Header::getBackground<br>";
}
public function getBor... | true |
4d01ba10d4457dc7d8d8425353cd0a871cb5808c | PHP | bgradio/social-work-theme | /inc/news_widget.php | UTF-8 | 3,943 | 2.828125 | 3 | [] | no_license | <?php
/**
* Adds News Widget widget.
Plugin Name: News Custom
Plugin URI: socw-aaron.dev.pixotech.com
Description: Create custom testimonials for the homepage.
Version: 1.0
Author: Aaron McNeal
Author URI: socw-aaron.dev.pixotech.com
*/
class News_Widget extends WP_Widget {
/**
* Register widget... | true |
7599a4153793534f49e984ae06e260b14692bd0f | PHP | andrumi/webservice | /application/models/Api_model.php | UTF-8 | 3,645 | 2.71875 | 3 | [] | no_license | <?php
class Api_model extends CI_Model {
public function __construct()
{
$this->load->database();
}
public function get_heroes($id = FALSE)
{
if ($id === FALSE)
{
$query = $this->db->get('heroes');
return $query->result_array();
}
$q... | true |
42b74722abb123d1543e5e07e2d09b2891967c8f | PHP | Kento1221/BlogApi | /app/Http/Controllers/UserControllers/UserAvatarController.php | UTF-8 | 1,329 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
class UserAvatarController extends Controller
{
private string $avatar_path = 'public/images/users/';
public function store(Request $request)
... | true |
de0a9d6583ea4ae3d9a74cd01387402ef67c6afd | PHP | nadeem9307/sapp | /order_created_class.php | UTF-8 | 4,495 | 2.53125 | 3 | [] | no_license | <?php
require __DIR__ . '/vendor/autoload.php';
use phpish\shopify;
require __DIR__ . '/conf.php';
include_once 'connect_db.php';
//************************ Class for MenuMeals Plan ************************* //
class order_created_class extends CONNECT_DB {
private $conn;
public function __construct() {
... | true |
226da3274e3ead3788acabfa215ea79c4edcd595 | PHP | zintzun/healthclubs | /web/interfaces/schema_helpers.inc | UTF-8 | 1,514 | 3.3125 | 3 | [] | no_license | <?php
/**
* Clever little function that takes a table structure
* defined in PHP, and turns into a mySQL table, and creates
* it in the db.
*/
function create_table(&$table_structure)
{
global $db;
$sql = '';
foreach ( $table_structure as $type => $fields )
{
if ( ! is_arr... | true |
9a26d3d2421d40b4fc78b30d3bed7d5750513468 | PHP | PaulMarkBorja/midterm-exam | /app/Models/Customers/Repositories/CustomerRepository.php | UTF-8 | 3,712 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Models\Customers\Repositories;
use App\Models\Base\BaseRepository;
use App\Models\Customers\Customer;
use App\Models\Customers\Exceptions\CustomerNotFoundErrorException;
use App\Models\Customers\Exceptions\CreateCustomerErrorException;
use App\Models\Customers\Exceptions\UpdateCustomerErrorExcepti... | true |
8b34bc8d02217194a3a5d3b977cc436452e09787 | PHP | sagittaracc/suql | /tests/suql/models/Query22.php | UTF-8 | 548 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace test\suql\models;
use suql\builder\MySQLBuilder;
use suql\syntax\entity\SuQLTable;
use suql\syntax\parser\Yaml;
use suql\syntax\SuQL;
use test\suql\schema\AppScheme;
class Query22 extends SuQLTable
{
protected static $schemeClass = AppScheme::class;
protected static $builderClass = MySQLBuild... | true |
666c3e6d81cdf46225b22cfd257215f957f17a58 | PHP | class2si/project | /klinik-apotek/laporan_pendaftaran.php | UTF-8 | 2,776 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | <?php
include_once "library/inc.seslogin.php";
# UNTUK PAGING (PEMBAGIAN HALAMAN)
$row = 50;
$hal = isset($_GET['hal']) ? $_GET['hal'] : 0;
$pageSql = "SELECT * FROM pendaftaran";
$pageQry = mysql_query($pageSql, $koneksidb) or die ("error paging: ".mysql_error());
$jml = mysql_num_rows($pageQry);
$max = ceil($jml/$... | true |
86c89c345dad93efe281df75abd6aeca821b10ff | PHP | auraphp/Aura.Framework | /src/Aura/Framework/Autoload/Loader.php | UTF-8 | 1,898 | 2.75 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
/**
*
* This file is part of the Aura project for PHP.
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*
*/
namespace Aura\Framework\Autoload;
use Aura\Autoload\Loader as Autoloader;
use Aura\Framework\System;
/**
*
* A framework-aware autoloader.
*
* @package Aura.Framework
*
*/
cla... | true |
b9923c99c3f68acbf949802ad6575ff074f18c5e | PHP | chetna1998/File_mgt_system | /uploadreview.php | UTF-8 | 1,569 | 2.625 | 3 | [] | no_license | <?php
require("libs/config.php");
include("header.php");
//uid..
if ($_POST)
{
$uid = $_POST['uid'];
head($uid);
echo "hey ".$uid."<br><br>";
}
?>
<div >
<?php
$on=0;
//file id..
$fileid = $_POST['file'];
echo $fileid." ";
//my current sequence...
$sqno_array = $_POST['sqno_array'];
$sqno=$sqno... | true |
9ddfcd22002f5a1c87c985528617c160756c4483 | PHP | Pandass/ThinkAdmin | /vendor/zoujingli/think-library/src/Controller.php | UTF-8 | 6,011 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
// +----------------------------------------------------------------------
// | Library for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2018 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// |... | true |
e9dba6f692d7fd5f3acdcaeced3830f3ee1d0920 | PHP | dxmoto/site | /app/code/BoostMyShop/AdvancedStock/Block/Sales/Order/Create/Search/Renderer/StockDetails.php | UTF-8 | 1,821 | 2.515625 | 3 | [] | no_license | <?php
namespace BoostMyShop\AdvancedStock\Block\Sales\Order\Create\Search\Renderer;
class StockDetails extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
{
protected $_warehouseItemCollectionFactory;
public function __construct(
\Magento\Backend\Block\Context $context,
... | true |
6532a2998824da2687088b9c610ce78543a4245e | PHP | parlament08/optingram | /app/Repositories/Contracts/UserRepository.php | UTF-8 | 1,566 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories\Contracts;
use App\Models\User;
use Illuminate\Contracts\Auth\Authenticatable;
/**
* Class EloquentUserRepository.
*/
interface UserRepository
{
/**
* @return mixed
*/
public function get();
/**
* @param $input
*
* @return mixed
*/
pub... | true |
40dd6f2ca59f01b006c64779e7b10dd902034cee | PHP | XoopsX/tpMailForm | /html/modules/mailform/Form/FormEdit.php | UTF-8 | 2,828 | 2.671875 | 3 | [] | no_license | <?php
class Mailform_Form_FormEdit extends Pengin_Form
{
/** @var Mailform_Model_Form */
protected $formModel = null;
/**
* @param Mailform_Model_Form $formModel
*/
public function __construct(Mailform_Model_Form $formModel)
{
$this->formModel = $formModel;
parent::__construct();
}
public function set... | true |
06db842c77a7d4071e3658ddd9c648d5b0743761 | PHP | CityConnectBr/forms-pkg-angra | /src/Services/DynamicFormService.php | UTF-8 | 1,099 | 2.734375 | 3 | [] | no_license | <?php
namespace Mayrajp\Forms\Services;
use Mayrajp\Forms\Models\DynamicForm;
class DynamicFormService
{
public function create(array $data): DynamicForm
{
$newDynamicForm = DynamicForm::create([
'name' => $data['name'],
'description' => $data['description'],
'cre... | true |
d2c4c9ec26a0b50f17161eb1f85488b865a66651 | PHP | DanFGit/cms-phil | /admin/new.php | UTF-8 | 5,923 | 2.625 | 3 | [] | no_license | <?php
//Connect to database and start session
include_once('../common/base.php');
//All database queries
function showForm($colour, $title = '', $summary = '', $content = '', $image = '') {?>
<form id="updateProject" method="POST">
<div>
<label for="title">Title</label>
<input type=... | true |
f814abafe5b4353616547afd39a54d87c12c7242 | PHP | jonbrobinson/aaulyp | /app/Aaulyp/Services/UploadCareHelper.php | UTF-8 | 1,063 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Aaulyp\Services;
use app\Aaulyp\Constants\ApiConstants;
use Illuminate\Support\Facades\Storage;
/**
* Class UploadCareHelper
*
* @package App\Aaulyp\Services
* @link https://uploadcare.com/docs/processing/
*/
class UploadCareHelper
{
/**
* @link https://uploadcare.com/docs/processin... | true |
99944d700a07aca964ce57667972d63972f0eee8 | PHP | caoshen1/cao_admin | /extend/resources/driver/LocalFile.php | UTF-8 | 2,669 | 2.796875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: bzg
* Date: 2019/9/30
* Time: 10:36
*/
namespace resources\driver;
use resources\exception\ResourceException;
use resources\ResourceInterface;
/**
* 本地文件驱动
* Class LocalFile
* @package resources\driver
*/
class LocalFile implements ResourceInterface
{
/**
*... | true |
6437581eac2a67032aaaa91adf0186bcc7828650 | PHP | ubermichael/pkppln-44 | /src/Entity/TermOfUse.php | UTF-8 | 2,260 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/*
* (c) 2021 Michael Joyce <mjoyce@sfu.ca>
* This source file is subject to the GPL v2, bundled
* with this source code in the file LICENSE.
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Nines\UtilBundle\Entity\AbstractEntity;
/**
* TermOfUse.
*
* @ORM\Table(n... | true |
caa5db74b160d8eb9d24a1a99f08ee6bacc2be25 | PHP | maxatoblady/Motus | /vue.class.php | UTF-8 | 1,152 | 4.03125 | 4 | [] | no_license | <?php
class vue {
var $tab_mot; // Array de mot de 7 lettres
var $run; // Boolen 0 : jeu en cours , 1 : jeu gagné
public function affiche(){
$contenu = "";
if (is_array($this->tab_mot)){
$contenu = "<center>";
$contenu .= $this->statut()."<table>";
foreach ($this->tab_mot as $mot){
... | true |
c1594fdac3ea5424fc1eb3bad05f06e8cba9c1d4 | PHP | networkteam/JimFlowPrint | /src/Jimdo/JimFlow/PrintTicketBundle/Lib/Printer/GcpPrinter.php | UTF-8 | 656 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace Jimdo\JimFlow\PrintTicketBundle\Lib\Printer;
use \Jimdo\JimFlow\PrintTicketBundle\Lib\Printer\PrinterInterface;
use \Jimdo\JimFlow\PrintTicketBundle\Lib\Google\GCP\Client;
class GcpPrinter implements PrinterInterface
{
/**
* @var \Jimdo\PrintTicketBundle\Lib\Google\GCP\Client
*/
priv... | true |
dee62c3798b41b4f26b5030b9be72964dc6a21c9 | PHP | hamed1369/shub | /ow_plugins/iiscontrolkids/bol/kids_relationship_dao.php | UTF-8 | 3,162 | 2.53125 | 3 | [] | no_license | <?php
/**
* Copyright (c) 2016, Yaser Alimardany
* All rights reserved.
*/
/**
*
* @author Yaser Alimardany <yaser.alimardany@gmail.com>
* @package ow_plugins.iiscontrolkids.bol
* @since 1.0
*/
class IISCONTROLKIDS_BOL_KidsRelationshipDao extends OW_BaseDao
{
private static $classInstance;
public sta... | true |
a98ce0ea18fdcf71832b2db79c6510f98d391842 | PHP | mubassirhayat/Messiah-Web | /inc/ClassLibrary/SmileAPI.php | UTF-8 | 3,298 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
namespace ClassLibrary;
class SmileAPI {
public function get_session() {
$username = "6"; //Put your API Username here
$password = "smileit8531"; //Put your API Password here
$data = file_get_contents("http://api.smilesn.com/session?username=" . $username . "&password=" . $pass... | true |
7a7fe223ae093ec6fb15b903a438dc275f2e4394 | PHP | ruangprogrammer/2014-ruangprogrammer-content-lawas | /shop.hijabjogjastore.com/@admin/modul/mod_page/page.php | UTF-8 | 4,108 | 2.53125 | 3 | [] | no_license | <?php
session_start();
if (empty($_SESSION['username']) AND empty($_SESSION['passuser'])){
echo "<link href='style.css' rel='stylesheet' type='text/css'>
<center>Untuk mengakses modul, Anda harus login <br>";
echo "<a href=../../index.php><b>LOGIN</b></a></center>";
}
else{
$aksi="modul/mod_page/aksi_page.php";
s... | true |
52c68baefbfb68a1e39622ff26708a671d104bf7 | PHP | marco-loche/marco-loche.github.io | /twilli/assets/php/mail.php | UTF-8 | 2,855 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
/* =====================================================
* change $email_to and $email_form
* ===================================================== */
$email_to = "your_email@yourdomain.com"; // the email address to which the form sends submissions
$email_from = "do-not-reply@yourdomain.com"; // the emai... | true |
d75376d4d322a4bb3ddc1cb1fa0c4939138c4b81 | PHP | marc0525/PiggyCustomEnchants | /src/PiggyCustomEnchants/Entities/WitherSkull.php | UTF-8 | 1,729 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace PiggyCustomEnchants\Entities;
use pocketmine\entity\Effect;
use pocketmine\entity\Entity;
use pocketmine\entity\Living;
use pocketmine\entity\projectile\Projectile;
use pocketmine\event\entity\ProjectileHitEvent;
/**
* Class WitherSkull
* @package PiggyCustomEnchants\Entities
*/
class WitherSkull... | true |
d33f43c6ce8e35ea11c79b97e0ef9f88ca548f19 | PHP | census-instrumentation/opencensus-php | /ext/tests/name_uncastable_object.phpt | UTF-8 | 693 | 2.78125 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | --TEST--
OpenCensus Trace: Providing integer as name
--SKIPIF--
<?php
if (version_compare(phpversion(), '7.4', '>=')) die("skip this test is for PHP versions < 7.4; see name_uncastable_object_php74.phpt for the PHP 7.4+ equivalent");
?>
--FILE--
<?php
class UncastableObject
{
private $value = 'my value';
}
$obj =... | true |
81d8f0686aee81b8e1b3b0a699e552d05d3bca25 | PHP | Toe-Hlaing-Win/Laravel-Simple-Blog | /app/Http/Controllers/PostController.php | UTF-8 | 5,294 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Input;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Models\Post;
use App\Models\Tag;
use App\Models\Post_tag;
use App\Models\Category;
use Auth;
class PostController extends Controller
{
//posts-list
public function lists()
... | true |
6b9ec9e99e586800fc5d1a402cb9837efcfd00ad | PHP | alfo93/Progetto-Biblioteca | /generaNumeroCopie.php | UTF-8 | 299 | 3.015625 | 3 | [] | no_license | <?php
$filename = 'codici_libri.csv';
$linee=file($filename);
$contatore = 1;
$fine = sizeof($linee);
for($i=1;$i<$fine;$i=$i+1){
if($linee[$i]===$linee[$i-1]){
$contatore = $contatore + 1;
}else{
echo $contatore,PHP_EOL;
$contatore = 1;
}
}
?> | true |
8c760b7f933a3d4bb05fc6044ed617d5ec39a3b5 | PHP | andrewvenson/clothes-it | /app/Http/Controllers/OutfitController.php | UTF-8 | 1,069 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\outfits;
class OutfitController extends Controller
{
public function fits(){
$fits = new outfits();
$all_itms = $fits::orderBy('created_at', 'desc')->get();
$fittys = [];
foreach ($all_itms as $itm... | true |
bbb7e4b8a51d18dbda68b3283423080e25e64cb5 | PHP | kharism/YiCRISP | /protected/views/terms/view.php | UTF-8 | 1,566 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/* @var $this TermsController */
/* @var $model Terms */
$this->breadcrumbs=array(
'Terms'=>array('index'),
$model->id,
);
$this->menu=array(
array('label'=>'List Terms', 'url'=>array('index')),
array('label'=>'Create Terms', 'url'=>array('create')),
array('label'=>'Update Terms', 'url'=>array('update', 'i... | true |
e75f6b01e62fe4532a68fc7e1ccc98e46b8eaf46 | PHP | calks/cc_shop_pkg | /entities/product_category.php | UTF-8 | 8,381 | 2.578125 | 3 | [] | no_license | <?php
class shopPkgProductCategoryEntity extends coreBaseEntity {
public $parent_id;
public $title;
public $description;
public $seq;
public $active;
protected static $_tree;
protected static $_parent_mapping;
protected static $_child_mapping;
public function getTableName() ... | true |
67027169fef7a61c4b1985f335db7fa18263ab15 | PHP | elvyrra/h-widgets | /widgets/MetaData.php | UTF-8 | 1,526 | 2.53125 | 3 | [] | no_license | <?php
namespace Hawk\Plugins\HWidgets;
class MetaData extends Widget {
public function display() {
$bgColor = '';
if(!empty($this->avatar)) {
$avatar = $this->avatar;
$initial = '';
}
elseif(isset($this->name)) {
$avatar = '';
$initi... | true |
d6e7a8659924714565351ce7194cc394701ff0ab | PHP | JasonRivers/streampanel | /src/app/Console/Commands/RelayUpdate.php | UTF-8 | 1,490 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Relay;
use Carbon\Carbon;
class RelayUpdate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = '
relay:update
{relay? : The ID of a r... | true |
3b6edf96f77bea78f266db0907404b2a66432c42 | PHP | adzialocha/dead-composers-api | /src/UpdateHandler.php | UTF-8 | 6,801 | 2.96875 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | <?php
namespace DeadComposers;
use DateTime;
use DeadComposers\Utils\CountryCodes;
use DeadComposers\Utils\LicenseYears;
use DeadComposers\Wikidata\WikidataDeadPeople;
class UpdateHandler {
const BATCH_COUNT = 28;
function __construct() {
$this->country_codes = new CountryCodes();
$this->li... | true |