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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dc9e4c24cc5232fceca1174388cf46f0a07e9711 | PHP | NF017-NF083/site-web-naturopathe | /admin/backoffice.php | UTF-8 | 3,090 | 2.609375 | 3 | [] | no_license | <?php
session_start();
if (empty($_SESSION['login'])){
header('Location: ../connexion.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="../css/styles.css">
<title>Connexion au BackOffice</title>
</head>
... | true |
80f2572860cd0a9a0ac6b6d138ab362bf0e1da3c | PHP | rodvilla/mini-blog | /app/Http/Controllers/HomeController.php | UTF-8 | 905 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
class HomeController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/... | true |
6f18871c8595b49129ccc93eae04b63ac0d51d23 | PHP | likejelly1/UTSCI | /application/models/Barang.php | UTF-8 | 1,412 | 2.53125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
class Barang extends CI_Model
{
private $_table = "barang";
public $id_barang;
public $nama_barang;
public $stok;
public function rules()
{
return [
['field' => 'nama_barang',
'label' => 'Name Barang',
'rules' => 'required'],
['f... | true |
a50dff055c916b11a1be91dc51642e5cefa15c18 | PHP | kaliloulah1155/parionsdirectco | /app/Utilities/Authinfos.php | UTF-8 | 1,101 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Utilities;
use Auth;
use App\User;
use App\Models\Smsmessages;
use App\Models\Smstext;
use Spatie\Permission\Models\Role;
class Authinfos{
public function isFirstname(){
$user = Auth::user();
return $firstname=$user->firstname;
}
public function isLastname(){
$... | true |
cd99371bd8293ddb7fa7d92a7c94681f194f1cab | PHP | rricote/Lanparty | /app/Competition.php | UTF-8 | 1,538 | 2.640625 | 3 | [] | no_license | <?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Competition extends Model {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'competitions';
/**
* The attributes that are mass assignable.
*
* @var array
*/
pr... | true |
f312f4b1d992f288a21b90fbb1bd061515bbc667 | PHP | starwarsgood/mathPHP111016 | /index.php | UTF-8 | 95 | 2.8125 | 3 | [] | no_license | <?php
require_once 'math.php';
$object = new math;
$object -> sum(2,3);
echo $object -> lol;
?> | true |
f9b3820fb1df72482ef1cc56b9e1c0215b8601c7 | PHP | thisIsRasel/easybuy | /app/database/migrations/2017_07_01_164151_create_product_reviews_table.php | UTF-8 | 677 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductReviewsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_reviews', function(Blueprint $table)
{
$table->increments('i... | true |
c492b4ae5e7e0876628cd5865b610414aa1d5617 | PHP | torshid/turkraft | /web/category.php | UTF-8 | 1,072 | 2.546875 | 3 | [] | no_license | <?php
require_once 'includes/page.php';
$Page = new Page();
$Page->GetFunctions()->Load('canager');
$Page->GetFunctions()->Load('category');
if (!isset($_GET['id']) || !is_numeric($_GET['id']))
{
$Page->Head('pages.category.inexistant', true);
echo '<div class="errors">' . $Page->GetLanguage()->GetTe... | true |
61a748412d995487b380ca6527e0a9b84caa4235 | PHP | gurpalsingh1919/laravel5.7-bootstrap4 | /app/Http/Controllers/ProfileController.php | UTF-8 | 1,794 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use App\User;
class ProfileController extends Controller
{
public function __construct()
{
$this->middleware(... | true |
cee942b30c21cbf41fa258b295c32efcf51ac623 | PHP | lpierce1313/final_project | /change_pass_submit.php | UTF-8 | 455 | 2.59375 | 3 | [] | no_license | <?php
include("mysql_connection.php");
if(isset($_POST['submit'])) {
$password = hash('sha256', $_POST['password']);
// Perform validations
$insertQuery = $conn->prepare("UPDATE users SET password=? where id=?");
$insertQuery->bind_param("si", $password, $_POST["info"]);
if($insertQuery->e... | true |
59a4161b76c7cbb9fd155fd3cba349a2d537468c | PHP | manitapote/RoomRent-webservice | /roomrent_api/User/Requests/ForgotPasswordRequest.php | UTF-8 | 888 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Roomrent\User\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ForgotPasswordRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... | true |
a4070e39483842e83a2843c84af4f5fd0d2cbd56 | PHP | dashifen/shadowlab-old | /ui/Responses/User/Accounts/LookUp/Unlock.php | UTF-8 | 2,840 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php if (sizeof($this->errors) == 0) { ?>
<p>Great news! We found your account. Even better: your confirmation code matched the one
in our database. That means, either you're the account's owner or you cleverly (and likely
illegally) hacked the owner's email all for the purpose of gaining acces... | true |
d3cf87f3b2f09f3f42dc7db5d9ec22b3cc4a3ed4 | PHP | sergiolibe/static-mechanism-solver | /src/Utils/FileUtils.php | UTF-8 | 2,206 | 2.984375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace SMSolver\Utils;
use JsonException;
use RuntimeException;
class FileUtils
{
/**
* @param string $directoryToScan
* @param string $regExpression
* @return string[]
*/
public static function getFilesInMatchingExpressionDirectory(string $directoryToSc... | true |
0246810bdd7ce648a74896113e16ebfc6c2ccfa7 | PHP | Rayyanahmed/ecommerce | /public/cart.php | UTF-8 | 3,016 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | <?php require_once("./resources/config.php"); ?>
<?php
if(isset($_GET['add'])) {
// Here we are building a cap according to how many products we have on hand
$query = query("SELECT * FROM products WHERE product_id =" . escape_string($_GET['add'] . " "));
// Make sure query goes through
confirm($query);
w... | true |
de38f743dadd80bf68561a96f26095b9875dd9c7 | PHP | mlomb/halite2018-stats | /web/api/historical.php | UTF-8 | 2,049 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
include_once("../../common.php");
startAPIRequest();
if(!isset($_GET["users"])) {
dieAPIError("Users not provided");
}
$users = arrayFromParameter(isset($_GET["users"]) ? $_GET["users"] : "");
$limit = 0;
if(isset($_GET["limit"])) {
if(ctype_digit($_GET["limit"])) {
$limit = intval($_GET["limit"]);
if($... | true |
9bd35d666f72ec0a03ccc0b9c6415cbbde223aca | PHP | josheytee/application | /app/core/view/link/LinkManager.php | UTF-8 | 1,284 | 2.546875 | 3 | [] | no_license | <?php
namespace app\core\view\link;
use app\core\cache\CacheManager;
use app\core\routing\RouteManager;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\RequestContext;
/**
* Description of Link
*
* @author Agbeja Oluwatobiloba <tobiagbeja4 at gmail.com>
*/
class ... | true |
7a798114de009f8880d96eb10970b046a7457834 | PHP | filipanselmo11/Desenvolvimento_Web | /PHP/array_globals.php | UTF-8 | 215 | 3.4375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Arrays Globals</title>
</head>
<body>
<?php
$x = 5;
$y = 10;
function meuTeste(){
$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];
}
meuTeste();
echo $y;
?>
</body>
</html> | true |
e386de065e95a69a9230dbc5cd7d47114b78a966 | PHP | ActiveRules/json-reference | /tests/PointerTest.php | UTF-8 | 5,808 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace Activerules\JsonReference\Test;
use Activerules\JsonReference\Pointer;
class PointerTest extends \PHPUnit_Framework_TestCase
{
function test_get()
{
$document = $this->getDocument();
$pointer = new Pointer($document);
$this->assertCorrectJson($document, $pointer->get(... | true |
b6e415c60db7078302f3438234015e21ea550418 | PHP | cliffordacion/facebook | /src/Oembed.php | UTF-8 | 959 | 2.703125 | 3 | [] | no_license | <?php
namespace Cliffordacion\Facebook;
use Facebook\Facebook;
use Facebook\Facebook\Exceptions as FbExceptions;
class Oembed
{
public function __construct(
$appId,
$appSecret,
$graphVersion = 'v2.10'
) {
$this->appId = $appId;
$this->appSecret = $appSecret;
... | true |
1cc3988a3e69e62e4bcbb328543f0a3049b67913 | PHP | chrisagon/hrcv3 | /plugins/plugins-resources/AppGiniPlugin.php | UTF-8 | 17,733 | 2.96875 | 3 | [] | no_license | <?php
class AppGiniPlugin{
protected $title, $name, $logo, $errors;
public $progress_log;
public function __construct($config = array()){
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$this->errors = array();
$this->title = 'AppGini Plugin';
$this->name = 'plugin';
$this->logo = '';
... | true |
7c840ff8880c48cf05aaed97eb9d9d60446ce056 | PHP | hell-of-the-devil/Viper | /libirc/Encryption.php | UTF-8 | 150 | 2.515625 | 3 | [] | no_license | <?php
class Encryption {
public static function SHA256($str) {
$str = sha1($str);
return $str;
}
}
?>
| true |
b9f9d5a75aba8611d5af1388a66d6e353ebe5c30 | PHP | Denlev/shop | /components/User.php | UTF-8 | 190 | 3.125 | 3 | [] | no_license | <?php
class User
{
private $cash = 100;
public function getCash()
{
return $this->cash;
}
public function setCash($cash){
$this->cash = $cash;
}
} | true |
82b935f7a330f0fdcac31394ab6f09522fd3ea6a | PHP | isigmund/OCRegisterUser | /terminate.php | UTF-8 | 895 | 2.546875 | 3 | [] | no_license | <h2>User Termination</h2>
<form method="POST">
<input type="text" name="user" placeholder="User" value="<? echo $_GET['user'] ?>"/>
<input type="password" name="auth" placeholder="Auth"/>
<input type="submit" />
</form>
<?php
//Mess around with it, you'll figure it out.
if (isset($_POST['user'])&&$_POST['auth']=... | true |
f1619cd4a80d07673e40558e134227a2c2c59d07 | PHP | ajdoc/ajd-validation | /src/AJD_validation/Contracts/Abstract_filter_validate.php | UTF-8 | 1,094 | 2.75 | 3 | [
"MIT"
] | permissive | <?php namespace AJD_validation\Contracts;
use \Exception;
use AJD_validation\Contracts\Abstract_callback;
abstract class Abstract_filter_validate extends Abstract_callback
{
protected $validFilters = [
FILTER_VALIDATE_BOOLEAN,
FILTER_VALIDATE_EMAIL,
FILTER_VALIDATE_FLOAT,
FILTER... | true |
6efdd041bcfde622ced2b25344cbf11020dd6f07 | PHP | jienchen/SPDRSAnalysis | /PHP/processing/parse.php | UTF-8 | 10,614 | 2.59375 | 3 | [] | no_license | <?php
session_start();
include('simple_html_dom.php');
$ticker = strtoupper(stripslashes(trim(htmlspecialchars($_GET["ticker"]))));
$_SESSION['ticker'] = $ticker;
$html = file_get_html("https://www.spdrs.com/product/fund.seam?ticker=".$ticker);
$connection = mysqli_connect('localhost','root','',etfcsv... | true |
e2a408ada0df80cf10c0502bd5a57ded453e566d | PHP | nicolas-rm/mx-mercantil-v2 | /modelos/camiones.modelo.php | UTF-8 | 9,198 | 2.84375 | 3 | [] | no_license | <?php
require_once "conexion.php";
class ModeloCamiones
{
/*=============================================
REGISTRAR CONDUCTORES
=============================================*/
static public function agregarCamionesModelo($tabla, $datos)
{
$stmt = Conexion::conectar()->prepare("INSERT INTO $ta... | true |
93b6b66f4388be4764c1a58896a7ca51899cea3f | PHP | pascalchevrel/mozilla-l10n-query | /classes/QueryL10n/Bugzilla.php | UTF-8 | 1,739 | 3.09375 | 3 | [] | no_license | <?php
namespace QueryL10n;
/**
* Bugzilla class
*
* This class is used to extract information about Bugzilla l10n components
*
* @package QueryL10n
*/
class Bugzilla
{
/**
* @var array $component_list List of Bugzilla l10n components
*/
private $component_list;
/**
* @var string $sou... | true |
cae441fef12899f47e9ca064e83b7d3a3b1d8b3b | PHP | jdrda/olapus | /app/Article.php | UTF-8 | 2,906 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Article module model
*
* Model for module Article
*
* @category Model
* @subpackage Admin
* @package Olapus
* @author Jan Drda <jdrda@outlook.com>
* @copyright Jan Drda
* @license https://opensource.org/licenses/MIT MIT
*/
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\... | true |
7cc08f257ccbb118a9c57cb03dee5b2876e87ba1 | PHP | chidaa/Pidev | /src/Entity/Article.php | UTF-8 | 2,917 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Entity;
use App\Repository\ArticleRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=ArticleRepository::class)
*/
class... | true |
c236c5211614b12ed3ac362ad8b7d9c063970959 | PHP | refaelgold/zf2project | /module/AuthDoctrine/src/AuthDoctrine/Form/LoginForm.php | UTF-8 | 1,605 | 2.546875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: refaelgold
* Date: 11/27/13
* Time: 6:31 PM
*/
//this must for form in AuthDoctrine
namespace AuthDoctrine\Form;
//this is for give the form from zf2
use Zend\Form\Form;
class LoginForm extends Form
{
public function __construct($name = null)
{
// we wa... | true |
8924d69ae48874900ca8b650eefebce554024358 | PHP | fracz/refactor-extractor | /results/server/a3070405d94621d01cc97ca10cc9cdf220e14064/after/app.php | UTF-8 | 10,810 | 2.859375 | 3 | [] | no_license | <?php
/**
* ownCloud
*
* @author Frank Karlitschek
* @author Jakob Sack
* @copyright 2010 Frank Karlitschek karlitschek@kde.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foun... | true |
ad3b187a087e8c5656b79b7ba31e935522691132 | PHP | jasonmarkzdjz/zdjz.service.net | /framework/util/TMPackUtils.class.php | UTF-8 | 7,525 | 2.875 | 3 | [] | no_license | <?php
/**
*---------------------------------------------------------------------------
*
* T E N C E N T P R O P R I E T A R Y
*
* COPYRIGHT (c) 2008 BY TENCENT CORPORATION. ALL RIGHTS
* RESERVED. NO PART OF THIS PROGRAM OR PUBLICATION MAY
* BE REPRODUCED, TRANSMITTED... | true |
d352893fc7965f388c7484fb0031a98920d09e96 | PHP | herivgs/Laravel-SOLID | /app/BusinessLayer/TaskProcessor.php | UTF-8 | 1,482 | 2.84375 | 3 | [] | no_license | <?php
namespace App\BusinessLayer;
use App\Contracts\BusinessLayer\ITaskProcessor;
use App\Contracts\DataLayer\ITaskRepository;
use App\Types\Task;
use App\Exceptions\BusinessLayerException;
use Validator;
class TaskProcessor implements ITaskProcessor
{
private $TaskRepository;
public function __construct(ITaskR... | true |
35fdd38459eb932ab11bfa5d40401bf847deb5f7 | PHP | lihexin88/stu_test | /系统/test.php | UTF-8 | 550 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php require_once("conn.php"); ?>
<?php
function check_dir(){
$year = date ( 'Y' ); //获得年份, 例如: 2006
$month = date ( 'n' ); //获得月份, 例如: 04
$day = date ( 'j' ); //获得日期, 例如: 3
$dir = iconv("UTF-8", "GBK", "ali-oss/".$year."/".$month."/".$day);
if(is_dir($dir... | true |
5886e97eb4014fb2f6d9a4b3072ab9a437a34ef9 | PHP | HurshTiwari/EquipmentReservationSystem | /inc/class.equipment.inc.php | UTF-8 | 2,250 | 3.046875 | 3 | [] | no_license | <?php
//class of users
class equipment{
private $_db;
public function __construct($db=NULL)
{
if(is_object($db))
{
$this->_db = $db;
}
else
{
$dsn = "mysql:host=".DB_HOST.";dbname=".DB_NAME;
$this->_db = new PDO($dsn, DB_USER, DB_PASS);
... | true |
fb8c604aeeda0c399f33ddb1044ad48e10f26c6b | PHP | mzhang444/repo | /ServerSide/classes/Image.php | UTF-8 | 3,900 | 2.5625 | 3 | [] | no_license | <?
class Image{
public static $size = array(
'huge' => array(
'name' => 'h',
'width' => 640,
'height'=> 480
),
'big' => array(
'name' => 'b',
'width' => 275,
'height'=> 175
),
'medium' ... | true |
f053d48a82664cce599a92f1da5474769dba1fb2 | PHP | nadarageh1/ecommerce- | /newitem.php | UTF-8 | 3,593 | 2.53125 | 3 | [] | no_license | <?php
$pageTitle = "New Item Page";
include 'init.php';
if(isset($_SESSION['user'])){
if($_SERVER['REQUEST_METHOD'] =='POST'){
$title =filter_var($_POST['name'],FILTER_SANITIZE_STRING);
$description =filter_var($_POST['description'],FILTER_SANITIZE_STRING);
$price =filter_var($_POST['pr... | true |
919e366423c48e870d35a89b66ce4bf196a2dd09 | PHP | juanga16/CursoPHP | /Codigo Fuente/Unidad 14 - Base de datos/borrado.php | UTF-8 | 586 | 2.96875 | 3 | [] | no_license | <?php
require "include/abrir_conexion.php";
?>
<h1>Borrado de registros</h1>
<?php
try {
// Seteamos los parametros
$id = 6;
// Preparo el delete y bindeo los parametros
$delete = $conexion->prepare("DELETE FROM pelicula WHERE id=?");
$delete->execute(array($id));
... | true |
32e420761951bd8e39174358501899be7d5499c4 | PHP | Darshan1710/hrpr | /app/Http/Controllers/Admin/ServicesController.php | UTF-8 | 10,909 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\ServicesRequest;
use App\Models\Services;
use Illuminate\Http\Request;
class ServicesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response... | true |
f34bb09f8aa4fc8ea0a97b77b68df8d7d216ed1b | PHP | AnnotateMe/AnnotateMe | /laravel/app/Http/Requests/Account/UpdateRequest.php | UTF-8 | 3,530 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests\Account;
use App\Expert;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this... | true |
bdb1274945bf91ee9f643a728483293ac30d2dc3 | PHP | YNCBearz/design-pattern | /app/StrategyPattern/CashRegister/ElectronicReceipt.php | UTF-8 | 240 | 2.53125 | 3 | [] | no_license | <?php
namespace App\StrategyPattern\CashRegister;
use App\StrategyPattern\CashRegister\Contracts\Receiptable;
class ElectronicReceipt implements Receiptable
{
public function getReceipt()
{
return '電子發票';
}
}
| true |
1b51eae40f73b80a09ca919df22bf10e0a64dc7a | PHP | meow-Kat/second-Laravel | /app/Http/Controllers/ProductTypeController.php | UTF-8 | 2,884 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\ProductType;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class ProductTypeController extends Controller
{
// 建構子 ↓ 因為下面的都會重複寫
public function __construct()
{ // 全域變數 的格式
$this->index = 'admin.product.type.index';
... | true |
30b8601f0377999d24f623dc286e831af4772864 | PHP | glibmarchenko/lootly | /app/Repositories/Eloquent/Criteria/WhereMerchantIntegration.php | UTF-8 | 630 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Repositories\Eloquent\Criteria;
use App\Repositories\Criteria\CriterionInterface;
class WhereMerchantIntegration implements CriterionInterface
{
protected $conditions;
protected $table_name = 'merchant_integrations';
public function __construct(array $conditions)
{
$this... | true |
c7ab21e8abef7b1340b9a34c4775eda962d0e294 | PHP | ggagnaux/Kohd-Art-Website | /src/blog-post.php | UTF-8 | 4,163 | 2.546875 | 3 | [] | no_license | <?php
include_once "utility/_kohd.php";
function wpDisplayRecentPosts() {
// How many recent posts to display?
$postCount = 5;
// Define our WP Query Parameters
$the_query = new WP_Query('posts_per_page='.$postCount);
// Start our WP Query
while ($the_query -> have_posts()) : $the_query -> the_post()... | true |
2ed02511d9fc9c7743cfd3f0cd1f02c620ff6dcf | PHP | odannyc/laravel-alertify | /src/Alertify/AlertifyNotifier.php | UTF-8 | 1,096 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @package laravel-alertify
*/
namespace odannyc\Alertify;
use Illuminate\Session\Store;
class AlertifyNotifier
{
/**
* An array of Logs
* @var array $logs
*/
private $logs = [];
/**
* The session class used to store sessions... | true |
37f8fd8d148f09b198eed9ee1406e51cf79e1459 | PHP | drzoidberg/framework | /src/ViewManager.php | UTF-8 | 761 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Twig;
class ViewManager
{
private $twig;
public function __construct()
{
$loader = new \Twig\Loader\FilesystemLoader(dirname(__DIR__) . '/templates');
$this->twig = new \Twig\Environment($loader, ['cache'=>dirname(__DIR__) . '/cache/views']);
}
public f... | true |
205c8cee3db588af9f93a58d27447b1a7bd55c85 | PHP | qbbr/Annotation | /Parser/Boolean.php | UTF-8 | 670 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Boolean
*
* @package Q_Annotation
* @author Sokolov Innokenty, <sokolov.innokenty@gmail.com>
* @license http://opensource.org/licenses/MIT MIT License
* @copyright Copyright (c) 2011, qbbr
*/
class Q_Annotation_Parser_Boolean extends Q_Annotation_Parser_Abstract
{
public function getAnnotations()... | true |
38944df29287a516992a74958c58a42554e265a5 | PHP | Alexsandro555/prov | /Modules/Product/Http/Controllers/AttributeValueController.php | UTF-8 | 2,841 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace Modules\Product\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Initializer\Traits\ControllerTrait;
use Modules\Product\Entities\Attribute;
use Modules\Product\Entities\AttributeValue;
use Modules\Product\Entities\Product;
use Modules\Product\Entities\Attr... | true |
3bdf988b453899438e4e079d53854d3ca79bda60 | PHP | hssin-ahm/E-COMMERCESITEWEB | /commands/fill.php | UTF-8 | 1,564 | 2.578125 | 3 | [] | no_license | <?php
use App\Connection;
require dirname(__DIR__) . '/vendor/autoload.php';
$pdo = Connection::getPDO();
$pdo->exec("SET FOREIGN_KEY_CHECKS = 0");
$pdo->exec("TRUNCATE TABLE post_category");
$pdo->exec("TRUNCATE TABLE post");
$pdo->exec("TRUNCATE TABLE category");
$pdo->exec("TRUNCATE TABLE user");
$pdo->exec("SET... | true |
d2e005e09fbd9708a78e7e7f21c01b384cf87b02 | PHP | StadGent/php_package_services-opening-hours | /src/Exception/ServiceNotFoundException.php | UTF-8 | 669 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace StadGent\Services\OpeningHours\Exception;
use GuzzleHttp\Exception\RequestException;
/**
* Service Not Found Exception.
*
* @package StadGent\Services\OpeningHours\Response\Exception
*/
final class ServiceNotFoundException extends ExceptionWithResponseAbstract
{
/**
... | true |
0f4c64e14bef1566737487bddc90764daed15781 | PHP | griven/color_shop | /db/seeds/BoxVolumes.php | UTF-8 | 828 | 2.625 | 3 | [] | no_license | <?php
use Phinx\Seed\AbstractSeed;
class BoxVolumes extends AbstractSeed
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
... | true |
bdad419f346de61fea3675fde96efd9ab1822d7d | PHP | braunsg/passing-the-beat | /inc/content/fetch-artist-history.php | UTF-8 | 2,324 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
/*
passing-the-beat
https://github.com/braunsg/passing-the-beat
Created by: Steven Braun
Last updated: 2016-04-29
Open source code for "Passing the Beat," an interactive visualization of Billboard Top 100,
U.K. Top 200, and J-Wave Tokio Hot 100 crossover artists built with D3.js.
This work is provided under ... | true |
5e234967402731fcbe0052b5289f07864fe2d186 | PHP | edsonls/php_oo | /src/Drive/DataAccess.php | UTF-8 | 711 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Drive;
class DataAccess
{
private $drive = 'mysql';
private $host = '172.17.0.3';
private $db = 'iti_malia';
private $password = '123456';
private $user = 'root';
private $connection;
public function __construct()
{
try {
$this->connection = new... | true |
e2bc9655d7cd2bf2b519b23b1ab3b77b0e8e172d | PHP | Jallal/DatabaseSystemsProject | /lib/cls/DocView.php | UTF-8 | 4,609 | 2.75 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: elhazzat
* Date: 4/26/15
* Time: 2:28 PM
*/
class DocView {
private $user;
private $site;
private $doc;
private $docName;
private $projid;
private $docTree = array();
public function __construct(Site $site, User $user = null, $request)
{
... | true |
da4a08e64bc4fba927b98a9499b67bf4e821c698 | PHP | lifemining/PhpBaseLib | /src/Tools/File.php | UTF-8 | 8,183 | 2.875 | 3 | [] | no_license | <?php
namespace Lifemining\PhpBaseLib\Tools;
class File
{
public static function isNewer($pathfile_new, $pathfile_old)
{
if (!file_exists($pathfile_old)) {
return true;
}
return (filemtime($pathfile_new) > filemtime($pathfile_old));
}
/**
*
* @param arra... | true |
c2a955b75a9483ebf644631301c29de86544b3dd | PHP | marcio199226/Volta-framework-and-cmf | /libraries/Di.php | UTF-8 | 8,631 | 2.59375 | 3 | [] | no_license | <?php
/**
*Volta framework
*@author marcio <opi14@op.pl>, <polishvodka7@gmail.com>
*@copyright Copyright (c) 2012, marcio
*@version 1.0
*/
class Vf_Di_Container
{
const CONTAINER = 'containerCore';
/**
*Skladowa klasy ktora przechowywuje obiekt jako singleton
*@access private
*@static
*@var array $instance
... | true |
9c3f769593772e8b22cd592b2ae32e36907087a9 | PHP | kreinholz/e15 | /classifier/app/Http/Controllers/ClassifierController.php | UTF-8 | 1,501 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Http\Controllers;
ini_set('memory_limit', '2048M');
use Illuminate\Http\Request;
use Arr;
use Str;
use Phpml\ModelManager;
class ClassifierController extends Controller
{
public function classify(Request $request)
{
$request->validate([
'arti... | true |
c6654c32f2c0e4026b4b2e439b582ffdbce4fe01 | PHP | D3lph1/Boollet | /src/Structure/Operator/UnaryOperator.php | UTF-8 | 302 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace D3lph1\Boollet\Structure\Operator;
use D3lph1\Boollet\Structure\Expression\Expression;
interface UnaryOperator extends Operator
{
public function evaluate(Expression $expr, array $labelToValue = []): bool;
public function revert(bool $val): bool;
}
| true |
36f0d49387e4431ca26a8dfc147a247a33a450a7 | PHP | Yokuokitahi/piscine2020 | /connect.php | UTF-8 | 5,840 | 2.59375 | 3 | [] | no_license | <?php
error_reporting(E_ALL & ~E_NOTICE);
//recuperer les données venant de la page HTML
$identifiant = isset($_POST["identifiant"])? $_POST["identifiant"] : "";
$password = isset($_POST["mdp"])? $_POST["mdp"] : "";
$erreur = '';
$database = "midgard";
$db_handle = mysqli_connect('localhost', 'root', '');
$db_found =... | true |
be812ccaf033d696865b61c2784c2669a8553313 | PHP | alok-sm/crowdsBackend | /database/migrations/2016_11_11_041603_create_user_domain_rank_table.php | UTF-8 | 651 | 2.609375 | 3 | [] | no_license | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserDomainRankTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_domain_rank', function(Blueprint $table)
{
$table->string('user... | true |
1ecb0dbc1e18da845ab23b8359e94df666e11e4f | PHP | Vince-gith/vav | /database/migrations/2021_11_06_040643_create_riders_table.php | UTF-8 | 820 | 2.609375 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRidersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('riders', functio... | true |
f4b3545cc3c1e6016c8c6bfc4af6c30160e184fd | PHP | keljtanoski/framework-1 | /src/AnnotatedRoutes/src/RouteGroup.php | UTF-8 | 4,185 | 2.703125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Router;
use Psr\Container\ContainerInterface;
use Psr\Http\Server\MiddlewareInterface;
use Spiral\Core\Container\Autowire;
use Spiral\Core\CoreInterface;
use Spiral\Http\Pipeline;
us... | true |
75bb1c2e74a34b9a91e9abfbeab049d330c700ac | PHP | ydn2856/runcloud | /api/login.php | UTF-8 | 1,313 | 2.84375 | 3 | [] | no_license | <?php
$conn = mysql_connect('localhost','root','runcloud') ;//連接資料庫
if(!$conn)
{die("無法建立連線");}
else
{echo "成功建立連結<br>";}
mysql_query("SET NAMES 'utf8'");//設定語系
$db_selected=mysql_select_db('runcloud');
if (!$db_selected)
{die("無法開啟runcloud".mysql_error($conn));}
else
... | true |
e5c30327878f9acefd2021c0d7fff322077e94b6 | PHP | chrisdu64/exointrophp | /exo9/index.php | UTF-8 | 552 | 3.75 | 4 | [] | no_license | <?php
$nombre = 0;
for($i=1;$i<=30;$i++){
function EstPair($i){
if($i%2===0){
$nombre+=$i;
}
else{
$nombre+=0;
}}
return;
echo EstPair($i);
}
echo $nombre;
/*
function Es... | true |
2c776d7ac43b194bc931d6c8f89e4a5037c63542 | PHP | AyushYadav/tournamentscheduling | /display_round_3.php | UTF-8 | 789 | 2.578125 | 3 | [] | no_license | <?php
$conn=mysqli_connect('localhost','root','','User_Database');
if($conn)
{
$sql="select * from round_3";
if($result=mysqli_query($conn,$sql))
{ echo "<table>";
echo "<tr>
<th>S.No</th>
<th>Player 1</th>
<th>Player 2</th>
</tr>";
while($row=mysqli_fetch_assoc($result))
{ $plyi... | true |
b7b46c3ee9aec3fdc2a45edace4af18768a9851c | PHP | Chemaclass/scripts-for-fun | /php/Pyramid/src/Model/Pyramid.php | UTF-8 | 1,914 | 3.671875 | 4 | [
"MIT"
] | permissive | <?php
namespace Model;
/**
* @author chema
*/
class Pyramid
{
const EMPTY_CHAR = ' ';
const FILLED_CHAR = '*';
/** @var int */
private $height;
/** @var int */
private $baseLenght;
/** @var string */
private $filledChar;
/** @var string */
private $emptyChar;
/**
... | true |
3352afdb16237ed20b9a266df972b353427b93f2 | PHP | TonyKaravasilev/CryptoManana | /src/CryptoManana/Hashing/HmacShaTwo384.php | UTF-8 | 481 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* The SHA-2 family HMAC-SHA-384 hashing algorithm class.
*/
namespace CryptoManana\Hashing;
use CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyedHashFunction as KeyedHashAlgorithm;
/**
* Class HmacShaTwo384 - The SHA-2 family HMAC-SHA-384 hashing algorithm object.
*
* @package CryptoManan... | true |
eaea9d2a21199b65045447152ddb7e6890a75e09 | PHP | clee231/LUG-3d-printing-front | /app/controllers/DevController.php | UTF-8 | 699 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
class DevController extends BaseController {
public function showIndex($arg = NULL) {
switch ($arg) {
case "dbname":
return $this->showDbName();
case "version":
$laravel = app();
return Response::json(array('error' => false, 'version' => $laravel::VERSION));
default:
return Response::js... | true |
5fed21937aa91df811312f3f8ab1e29064ac99f1 | PHP | some-random-username/student-list | /src/helpers/md5.php | UTF-8 | 359 | 2.96875 | 3 | [] | no_license | <?php
namespace src\helpers;
class md5
{
public static function generateSalt($n1=1, $n2=10) {
return substr(md5(random_int(100,999)), $n1, $n2);
}
public static function hashPassword($password, $salt='') {
if(empty($salt)) {
$salt = self::generateSalt();
}
... | true |
dae7dfe57c084b0fe0f98557513bdd2380d4380a | PHP | ChristofferGoude/1DV449_cg222gb | /Laboration 1/View/scraperView.php | UTF-8 | 1,449 | 2.921875 | 3 | [] | no_license | <?php
namespace View;
class scraperView{
/**
* @var $newScrape (The button for initiating a new scrape)
*/
private static $newScrape = "self::newScrape";
private $message = "";
/**
* @param $scrapeResult (The result from the scrape, empty if nothing has been scraped)
*/
public function drawPage($scrapeR... | true |
d8053a2f4764356e61616e8e586b337d9cdab1d8 | PHP | polecika/barashka-msk | /admin/includes/main.php | UTF-8 | 13,392 | 2.71875 | 3 | [] | no_license | <?
// Запись новой старницы в БД
if($_GET["add_page"]==1)
{
$tree = $_POST["tree"];
$name = $_POST["name"];
$cpu = $_POST["cpu"];
$title = $_POST["title"];
$ketwords = $_POST["keywords"];
$description = $_POST["description"];
$content = $_POST["content"];
$sql = "INSERT INTO `pages... | true |
62e01e11541d3e336c80212aa73bffe4ca8d4454 | PHP | whawes/WebSite | /gestion de ressources/views/CoolAdmin-master/dataA.php | UTF-8 | 295 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
include "../../entities/auteur.php";
include "../../core/AuteurC.php";
$auteur1C=new AuteurC();
$result = $auteur1C->GetAuteurParVente();
//loop through the returned data
$data = array();
foreach ($result as $row) {
$data[] = $row;
}
//now print the data
print json_encode($data); | true |
62c5b44cbac53415c866508dba75b64d7dad2894 | PHP | nlattessi/php-certificado-captcha-demo | /lib/WriteHTML.php | UTF-8 | 4,064 | 2.765625 | 3 | [] | no_license | <?php
require_once __DIR__ . '/../vendor/fpdf17/fpdf.php';
class PDF_HTML extends FPDF
{
var $B=0;
var $I=0;
var $U=0;
var $HREF='';
var $ALIGN='';
var $lineHeight = 0;
function footer()
{
// FIRMAS
$texto = 'Firma del Director del Prestador de Servicios';
$this->Ce... | true |
6097db2158639315d395efe83584c9572ecec061 | PHP | asmaaabozied/demo | /app/Models/Scopes/ClassificationScopes.php | UTF-8 | 926 | 2.578125 | 3 | [] | no_license | <?php
namespace App\Models\Scopes;
use Illuminate\Database\Eloquent\Builder;
/**
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Category parentsOnly()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Category leafsOnly()
*/
trait ClassificationScopes
{
/**
* Scope th... | true |
42d9d172294f415950f968ac9872eb8b6c309857 | PHP | olvidio/orbix | /apps/actividadestudios/model/entity/ActividadAsignatura.php | UTF-8 | 19,244 | 2.65625 | 3 | [] | no_license | <?php
namespace actividadestudios\model\entity;
use core;
use web;
/**
* Fitxer amb la Classe que accedeix a la taula d_asignaturas_activ_all
*
* @package delegación
* @subpackage model
* @author Daniel Serrabou
* @version 1.0
* @created 14/11/2014
*/
/**
* Clase que implementa la entidad d_asignaturas_act... | true |
0cbc46c26db63b469e169d6e9cea3300f7ca2d8e | PHP | kasimali-dhuka/code-signal | /php/51-deleteDigit.php | UTF-8 | 340 | 3.046875 | 3 | [] | no_license | function deleteDigit($n) {
$digit_arr = str_split($n);
$i = 0;
$max = 0;
while($i < count($digit_arr)) {
$new_arr = $digit_arr;
array_splice($new_arr, $i, 1);
$sum = join($new_arr);
if($sum >= $max) {
$max = $sum;
}
$i++;
}
re... | true |
4b03b4adcb295bd5ba572dd0f60b9b44960241bd | PHP | SocialConnect/sms | /src/ProviderContainer.php | UTF-8 | 984 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Patsura Dmitry https://github.com/ovr <talk@dmtry.me>
*/
namespace SocialConnect\SMS;
use RuntimeException;
use SocialConnect\Common\Http\Client\ClientInterface;
use SocialConnect\Common\HttpClient;
use SocialConnect\SMS\Provider\ProviderInterface;
class ProviderContainer
{
/**
* @var ... | true |
c53f63b6998c4f6f2a3560e7e3dfbfb084358fb4 | PHP | maxyengine/jsFileManager | /src/server/src7.2/FileManager/UseCase/File/MoveFile.php | UTF-8 | 1,260 | 2.921875 | 3 | [] | no_license | <?php
namespace Nrg\FileManager\UseCase\File;
use Nrg\FileManager\Persistence\Abstraction\FileRepository;
use Nrg\FileManager\Value\Path;
/**
* Class MoveFile.
*
* Service to move file.
*/
class MoveFile
{
private const OVERWRITE = false;
/**
* @var FileRepository
*/
private $repository;
... | true |
8d316a6da8f153b477fa4f8b1e119c322f8e315b | PHP | avinash-glocify/forecast | /app/Console/Commands/ExpenseNotifications.php | UTF-8 | 925 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Model\Expanse;
use Carbon\Carbon;
class ExpenseNotifications extends Command
{
protected $signature = 'expense:create';
protected $description = 'This command add new entry to expense table';
public function handle()
{
... | true |
b0b70ed89bc51948e4439b1a52aebb977ff69da0 | PHP | AhsanJafri/BookioMuet | /Bookio Folders/mcqs.php | UTF-8 | 1,750 | 2.765625 | 3 | [] | no_license | <?php
$conn=mysqli_connect('localhost','root','','bookio');
$z=1;
$a=1;
$i=array(); #Intialize an array
$t=array();
#Taking the input from the firstpage.php
if(isset($_POST['submit'])){
$year=$_POST['opt'];
$sub=$_POST['Sub'];
#$rowcount=mysqli_num_rows($row);
#$ran=rand(1,$r... | true |
f65027098634313a7b743653437e59b9d7da81c2 | PHP | ikhalilatteib/symfony | /src/Service/StringUtils.php | UTF-8 | 155 | 2.890625 | 3 | [] | no_license | <?php
namespace App\Service;
class StringUtils
{
public function capitalize($string)
{
return ucfirst(mb_strtolower($string) );
}
} | true |
f8fc13ef9528e2d7da44b11629d24f564e4000bf | PHP | raldney/BancoDeImagem | /api/index.php | UTF-8 | 13,329 | 2.5625 | 3 | [] | no_license | <?php
require 'Slim/Slim.php';
$app = new Slim();
$app->post('/Login', 'logar');
$app->get('/Usuarios', 'getUsuarios');
$app->get('/Usuarios/:id', 'getUsuario');
$app->post('/NovoUsuario', 'addUsuario');
$app->put('/Usuarios/:id', 'updateUsuario');
$app->delete('/Usuarios/:id', 'deleteUsuario');
/*EVENTOS*/
$app-... | true |
7cd4e79611cf1b6b6db6bf2c68f486e9d87279bc | PHP | javamon1174/jframe | /src/application/core/ORM.php | UTF-8 | 10,647 | 2.8125 | 3 | [] | no_license | <?php
/**
* Javamon's JFramework
*
* PHP 컴포저 기반 제이프레임워크
*
* Created on 2017. 5.
* @package Javamon\Jframe
* @category Index
* @license http://opensource.org/licenses/MIT
* @author javamon <javamon1174@gmail.com>
* @link http://javamon.be/Jframe
* @link https://github.com/j... | true |
73c2120d0c8ce0a7648683d09a47f9fd32c9e444 | PHP | Solire/moSymbiote | /File/Core.php | UTF-8 | 2,008 | 2.796875 | 3 | [] | no_license | <?php
/**
* Mycoplasma
*
* @author Siwaÿll <sanath.labs@gmail.com>
* @license CC by-nc http://creativecommons.org/licenses/by-nc/3.0/fr/
*/
namespace Siwayll\MoSymbiote\File;
use \Siwayll\Mollicute\Command;
use \Siwayll\Mollicute\Core as Mollicute;
/**
* Mycoplasma
*
* @author Siwaÿll <sanath.labs@gmail.co... | true |
5f3d6f080d04bbf5a7e5256eaafb2563fee4e9ed | PHP | donPuerto/Php-Tutorials | /Php Array/array.php | UTF-8 | 3,585 | 4.03125 | 4 | [] | no_license | <?php
/*
Notes:
In PHP, there are three types of arrays:
Indexed arrays - Arrays with a numeric index
Associative arrays - Arrays with named keys
Multidimensional arrays - Arrays containing one or more arrays
Breaking Line
"\n" => use double quote not single quote
echo "<br/>" => can be use only in HTML
Declaration... | true |
1d3d469770781e66971eebc0e3e1d8e56ad16fed | PHP | 4iz278/cviceni | /04-objekty-II-validace/04-serializable.php | UTF-8 | 1,166 | 3.609375 | 4 | [] | no_license | <?php
namespace MujJmennyProstor;
/**
* Class Osoba - ukázková třída implementující rozhraní Serializable
* @package MujJmennyProstor
*/
class Osoba implements \Serializable{ //TODO: proč je před názvem rozhraní Serializable zpětné lomítko?
public $jmeno;
public $prijmeni;
/**
* Strin... | true |
bfa8efa8e9bd07e7991868d5e52431255f0bf793 | PHP | ducsuus/progress-meter | /server/PHP/socket.php | UTF-8 | 1,492 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | <?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
// Sends a message to the Python Websocket server telling it to update all clients with the viewcode supplied
function updateProgressBar($viewcode){
// Create connection
$conn = new PDO('mysql:host=localhost;dbname=progress;', 'php', '09^asfd#8fa... | true |
d7e74b78539b90915d5c22d46800bfc8df1aa0e7 | PHP | arturkarczmarczyk/sipbc2019 | /src/Model/Lease.php | UTF-8 | 2,128 | 3.015625 | 3 | [] | no_license | <?php
namespace App\Model;
use DateTime;
class Lease
{
/** @var int */
private $id;
/** @var int */
private $bookId;
/** @var int */
private $readerId;
/** @var DateTime */
private $from;
/** @var DateTime */
private $to;
/** @var DateTime *... | true |
b4c35db79662ab6d843d2a490e9e3d6a1b540539 | PHP | laudeco/AIP-exploder | /src/AltitudeLimit.php | UTF-8 | 543 | 2.578125 | 3 | [] | no_license | <?php
namespace OpenAip\Aip;
use JMS\Serializer\Annotation as Serializer;
/**
*
* @package OpenAip\Aip
* @author Laurent De Coninck <lau.deconinck@gmail.com>
*/
final class AltitudeLimit
{
/**
* @Serializer\XmlAttribute
*
* @var string
*/
private $reference;
/**
* @Serializ... | true |
53c86e6a70eb215aa43c9bb2c24f540bae6617a1 | PHP | KValexander/training-project-laravel | /app/Http/Controllers/MainController.php | UTF-8 | 636 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
// Connecting models
use App\Models\GameModel;
use App\Models\DeveloperModel;
class MainController extends Controller
{
// Main page
public function main_page() {
// Get data
$games = GameModel::where("state", 1)->orderBy("updated_... | true |
698dfef8e743cb7e6574beb1bca79a2a0dca6831 | PHP | Donovan1993/MonProjet | /src/Entity/Users.php | UTF-8 | 5,950 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Entity;
use ArrayObject;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiResource;
use Symfony\Component\Serializer\Annotation\Gro... | true |
3fa207319422d27274897805ad99854327b43498 | PHP | johnenrick/wasteline | /application/modules/api/models/M_map_marker.php | UTF-8 | 2,724 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of m_map_marker
*
* @author johnenrick
*/
class M_map_marker extends API_Model{
public function __con... | true |
020897e14b42b45752c17f615f2740333863b3a6 | PHP | BoldizArt/librafire_php | /src/Model/StudentModel.php | UTF-8 | 366 | 2.625 | 3 | [] | no_license | <?php
/**
* @file contains Boldizar\LibraFire\Model\StudentModel;
*/
namespace Boldizar\LibraFire\Model;
use Boldizar\LibraFire\Model\Model;
class StudentModel extends Model
{
public $id;
public $first_name;
public $last_name;
public $grades; // JSON
public $scool_board;
/** @var string TAB... | true |
19aa3db7c6b0c0fa890a2c0ac9a0c3df77f3905c | PHP | it14083/wengrss | /register.php | UTF-8 | 2,124 | 2.671875 | 3 | [] | no_license | <html>
<head>
<title>New Account</title>
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="./res/favicon.ico">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
require_once("functions.php");
if(isset($_POST['name']) && isset($_POST['email']) && ... | true |
0c5e6e5e67901c44ae98bd50ca9df533526d4c41 | PHP | naqiyamutmainnah/oop | /index.php | UTF-8 | 948 | 3.171875 | 3 | [] | no_license | <?php
require ('animal.php');
require ('Ape.php');
require ('Frog.php');
$sheep = new Animal('shaun', 2, 'false');
echo 'namanya ' . $sheep->get_name() . '<br>'; // "shaun"
echo 'kakinya ' . $sheep->get_legs() . '<br>'; // 2
echo 'cold blood ' . $sheep->get_cold_blooded() . '<br>' ; // false
echo '<br>';
$sungokong... | true |
b8ad09c746f551d8f8c99d36acbc458cc83937fe | PHP | jdelon02/cyberchapd8 | /web/modules/contrib/bamboo_twig/bamboo_twig_loader/src/TwigExtension/Loader.php | UTF-8 | 3,858 | 2.59375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | <?php
namespace Drupal\bamboo_twig_loader\TwigExtension;
use Drupal\bamboo_twig\TwigExtension\TwigExtensionBase;
/**
* Provides some loaders as Twig Extensions.
*/
class Loader extends TwigExtensionBase {
/**
* {@inheritdoc}
*/
public function getFunctions() {
return [
new \Twig_SimpleFunction... | true |
5643ce1fb7b2963351b8c6cefb223297d140660a | PHP | Anskhilji/myblog | /app/Http/Controllers/Admin/PostController.php | UTF-8 | 10,902 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Author;
use App\Models\Category;
use App\Models\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use function Symfony\Component\String\b;
class PostController extends Controller
{... | true |
c1013f55ce09088cce9fb224c67e86d350e31f56 | PHP | mumingv/php | /books/php_qa/chapter_09/examples/ErrorHandler.class.php | UTF-8 | 3,447 | 3.140625 | 3 | [] | no_license | <?php
/**
* Error Handler class
*
* Handles E_USER_ERROR, E_USER_WARNING, E_WARNING, E_USER_NOTICE,
* and E_NOTICE errors.
*/
class ErrorHandler
{
/**
* Location of NOTICE log
* @var string
*/
protected $_noticeLog = '/tmp/notice.log';
/**
* Error message
* @var string
*/
public $message... | true |
c8263ac6fed9c92e8f74ce0a9749166e949487cf | PHP | uc-intellekt/php-girls | /src/Helper/GreetingHelper.php | UTF-8 | 474 | 3.0625 | 3 | [] | no_license | <?php
namespace Helper;
/**
* Created by PhpStorm.
* User: Intellekt
* Date: 21.04.2017
* Time: 17:26
*/
class GreetingHelper
{
private $message;
public function __construct($message)
{
$this->message = $message;
}
// public function getMessage()
// {
// return $this->messa... | true |
154baf3b477ca1c4747a72eeb4e6b450400b4304 | PHP | donglei/php-pack-unpack | /message.php | UTF-8 | 2,726 | 2.8125 | 3 | [] | no_license | <?php
/*
ubyte compress; // 包体加密标志 3,1
ubyte crypt; // 包体压缩标志 4,1
ubyte serviceId; // 服务编号,用于消息转发使用 5,1
uint msgId; // 消息ID 6,4
ulong userId; // 用户ID 10, 8
int checkSum; // 登录的验证信息 18, 4
ushort erroCode; // 错误码 22, 2
ubyte pathlen; // 请求标识的长度 24, 1
uint bodylen; // 包体长度 25, ... | true |