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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fe8138347104f89163405324392f90400bb94e93 | PHP | othmandori/AddressBook | /src/Services/FileUploader.php | UTF-8 | 722 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Services;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class FileUploader
{
private $file_upload_dir;
public function __construct($file_upload_dir)
{
$this->file_upload_dir = $file_upload_dir;
}
public functi... | true |
d6db2489092eb675b41db186612208fc20f748fb | PHP | bai615/laravel-demo | /routes/api.php | UTF-8 | 3,102 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... | true |
86c5a1eb6c8cfe8f366b6f7385200cb1632d2557 | PHP | khendar/Jumento | /lib/Parser.php | WINDOWS-1252 | 7,127 | 3.21875 | 3 | [] | no_license | <?php
/* CHANGE LOG
** 11 DEC 2005 **
- <php> tag now allow any < or > inside the tag
- h1, h2 & h3 now allow = inside the tag
- h1, h2 & h3 can be placed anywhere
- strong and em now allow quotes inside the tag
- announce tag can be placed anywhere
- announce tag can allow + inside
** 14 DEC 2005 **
- <noparse> and <... | true |
3a1410974a712ed10a390807bb1ae583bc0f1d26 | PHP | weyus/phpOpenFW2 | /src/plugins/Database/Drivers/DataTrans/dt_oracle.php | UTF-8 | 10,648 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
//**************************************************************************************
//**************************************************************************************
/**
* Data Transaction / Oracle Plugin
* A Oracle plugin to the (DataTrans) class
*
* @package phpOpenFW
* @author Christian J. ... | true |
5b9b8bc29afadae14ddb741bc77837e614446fea | PHP | altwebdev1/mingl-web | /vendor/gabordemooij/redbean/space.php | UTF-8 | 1,141 | 2.921875 | 3 | [] | no_license | <?php
/*
* RedBean NameSpace Utility (experimental)
* Written by Gabor de Mooij (c) copyright 2011
* Licensed New BSD
*/
echo "\n Namespace Utility for RedBeanPHP (experimental). ";
if (($_SERVER["argc"])!==2) {
die("\n Usage php space.php [namespace] \n\n");
}
if (!file_exists("rb.php")) {
die("\n could not find... | true |
6b9fc91cc15bf8b5ddffd3afa57c227ce96a0925 | PHP | fadlifadlorrohman/tugas-pak-hilal | /uniview.php | UTF-8 | 3,041 | 2.515625 | 3 | [] | no_license | <?php
include "unikoneksi.php";
$tampilkan = "select * from universitas";
$query_tampilkan = mysql_query($tampilkan);
echo
"<table border=1>
<tr>
<td colspan=6 align=middle><a href=>Tambah Data</td>
</tr>
<tr>
<th>Nama Universitas</th>
<th>Action</th>
</tr>";
while ($hasil... | true |
fc3ef8912953c5ce710fecaa8b6339350ce5bfc4 | PHP | irubenboy/HLC | /Projects/boletinCadenas/php/exercise01 (2).php | UTF-8 | 301 | 3.71875 | 4 | [] | no_license | <?php
$cadena = "En un lugar de la mancha de cuyo nombre no quiero
acordarme";
echo "Mayúsculas: " . strtoupper($cadena), "<br>", "Minúsculas: " . strtolower($cadena), "<br>", "Primera letra mayúsculas: " . ucfirst($cadena), "<br>", "Primera letra minúsculas: " . lcfirst($cadena);
?> | true |
630d231dca599a4325064527a6372848f099076a | PHP | beevester/kichose | /crm-api/var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityProduct.php | UTF-8 | 15,347 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Product extends \App\Entity\Product implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is... | true |
739580022369719b47bec2bc09960b41ba377191 | PHP | mirekmarek/php-jet | /application/Classes/Content/Article.php | UTF-8 | 5,789 | 2.5625 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
/**
*
* @copyright Copyright (c) Miroslav Marek <mirek.marek@web-jet.cz>
* @license http://www.php-jet.net/license/license.txt
* @author Miroslav Marek <mirek.marek@web-jet.cz>
*/
namespace JetApplication;
use Jet\DataModel;
use Jet\DataModel_Definition;
use Jet\DataModel_Fetch_Instances;
use Jet\Form_Defi... | true |
3264fdcaf4b97a86ffe0cfc2920af5b3be27750f | PHP | yauhenko/carkeeper-old | /backend/src/Tasks/Mail.php | UTF-8 | 769 | 2.6875 | 3 | [] | no_license | <?php
namespace Tasks;
use Framework\MQ\Handler;
use Framework\Patterns\DI;
use Mailgun\Mailgun;
use Twig\Environment;
class Mail extends Handler {
public function sendTpl(array $data) {
$di = DI::getInstance();
/** @var Environment $twig */
$twig = $di->twig;
$data['html'] = $twig->render($data['tpl'], $d... | true |
b7056b779bae0a4865300d6afea1b9e0e9fab0c8 | PHP | Borbizzle/cs_club_website | /php/contact_form.php | UTF-8 | 1,323 | 2.796875 | 3 | [] | no_license | <?php
require 'vendor/autoload.php';
require_once 'class.smtp.php';
if(isset($_POST['email']) && isset($_POST['firstname']) && isset($_POST['lastname']) && isset($_POST['message'])) {
if($_POST['email'] !== "" && $_POST['firstname'] !== "" && $_POST['lastname'] !== "" && $_POST['message'] !== "") {
$fi... | true |
ff52f8221db0702066c7bfc523e8a23ab24ca439 | PHP | intk/automated-adwords-creation | /includes/methods/keywords/keywords.inc.php | UTF-8 | 13,071 | 3.03125 | 3 | [] | no_license | <?php
#header('Content-Type: application/json; charset=utf-8');
#ini_set('display_errors', 1);
class Keywords {
private $charLimit;
private $lexicon;
public function __construct($title, $venue, $city, $placements, $type) {
// Don't use title longer than 80 characters
$this->type = $type;
$this->title = $titl... | true |
9ff18e2514fb3044bc002fb16992240b3ccd8435 | PHP | ufrgs-hyman/proxy-agg | /components/CrontabManager.php | UTF-8 | 15,269 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Ryan Faerman <ryan.faerman@gmail.com>
* @author Krzysztof Suszyński <k.suszynski@mediovski.pl>
* @version 0.2
* @package php.manager.crontab
*
* Copyright (c) 2009 Ryan Faerman <ryan.faerman@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
*... | true |
7589a4ef2078353a9d05c00359a7d46cbc290416 | PHP | cimplival/QOA | /app/Http/Controllers/Auth/AuthController.php | UTF-8 | 2,360 | 2.53125 | 3 | [] | no_license | <?php
namespace QOA\Http\Controllers\Auth;
use Auth;
use QOA\User;
use Validator;
use QOA\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Http\Requests;
use Illuminate\Http\Request;
use Illuminate\Contracts\Auth... | true |
e4db7fde17e33a145035f4d5a4800b4437f83cfb | PHP | jvrcavalcanti/Routing | /src/ResponseBuilder.php | UTF-8 | 1,026 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace Accolon\Routing;
use React\Http\Message\Response;
class ResponseBuilder
{
private $body;
private int $status;
private array $headers;
public function __construct($body, int $status = 200, array $headers = [])
{
$this->body = $body;
$this->status = $status;
... | true |
11f6aab393fbe55b658e25cb56567b2e850375a8 | PHP | linuxserver/Heimdall | /vendor/laravel/framework/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php | UTF-8 | 2,433 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace Illuminate\View\Compilers\Concerns;
trait CompilesIncludes
{
/**
* Compile the each statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileEach($expression)
{
return "<?php echo \$__env->renderEach{$expressi... | true |
473a790e5d71a39ca660fc07ff4cc769a79b8338 | PHP | rootlocal/yii2-crud | /src/actions/UpdateAction.php | UTF-8 | 6,319 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace rootlocal\crud\actions;
use Yii;
use rootlocal\crud\components\Action;
use yii\db\ActiveRecord;
use yii\web\Response;
use yii\base\ErrorException;
use yii\web\NotFoundHttpException;
use Closure;
/**
* Class UpdateAction
* Updates an existing [[ActiveRecord]] model.
* If update is successful, the b... | true |
1a464aaffec9d1749e6c9c9745c40495eb4645f7 | PHP | diepleblueflaming/BigShoes-Shop | /application/helpers/common_helper.php | UTF-8 | 4,979 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 1/8/2017
* Time: 5:09 PM
*/
$CI = &get_instance();
// ham tr ve url den thu muc public.
/**
* @param string $url
* @return string
*/
function public_url($url = ""){
return base_url("public/".$url);
}
// ham validate chuoi... | true |
a234b312971b9e17cab0c10c54f49d1c47e598a6 | PHP | juddy/GIP | /web/generatedCode/simple-example2/information_schema/TABLESPACES/confirmDeleteTABLESPACES.php | UTF-8 | 2,614 | 2.53125 | 3 | [] | no_license | <?php
include_once("../common/dbConnection.php");
include_once("../common/header.php");
?>
<?php
$thisTABLESPACE_NAME = $_REQUEST['TABLESPACE_NAMEField']
?>
<?php
$sql = "SELECT * FROM TABLESPACES WHERE TABLESPACE_NAME = '$thisTABLESPACE_NAME'";
$result = MYSQL_QUERY($sql);
$numberOfRows = MYSQL_NUMROWS($result);
if ... | true |
164452d363b0c936f03be5d5db5c35ea934c898e | PHP | SlobodanLazic/Common_project | /dal/dal_models/userDM.class.php | UTF-8 | 2,124 | 3 | 3 | [] | no_license | <?php
class UserDM
{
private $ID_USER;
private $IME;
private $PREZIME;
private $EMAIL;
private $USERNAME;
private $PASSWORD;
private $POSLEDNJE_LOGOVANJE_KORISNIKA;
private $FOTO_NAZIV;
private $USER_STATUS;
public function SetID_USER($ID_USER)
{
$this->ID_USER = $ID_USER;
}
public ... | true |
b49588afe8157277d8e6258127819064af78ad3f | PHP | nidhhoggr/bob_suite | /birdfinder/views/TaxAssView.class.php | UTF-8 | 3,493 | 2.6875 | 3 | [] | no_license | <?php
class TaxAssView {
public static function getCreator() {
$form .= '<img id="one_for_all_img" />';
$form .= FormUtil::wrapDiv("One For All?" . self::getBirdSortToggle() . FormUtil::getBirdSelector("one_for_all"),'one-for-all-wrap');
$form .= self::getCreateAssForm();
$form .=... | true |
2084fa2ea6a6424c8c91f426872e8a4f42cfe2c4 | PHP | luckyday-tech/sample-online-meeting | /app/Models/VideoChatManager.php | UTF-8 | 1,350 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
class VideoChatManager
{
public static function authentication($apiKey, $apiSec, $peerId, $duration = 1200) {
if (empty($apiKey))
return VIDEOCHAT_ERROR_API_KEY;
if (empty($apiSec))
return VIDEOCHAT_ERROR_API_SEC;
if (empty($peerId))
... | true |
1cfa9485e45faa84f89f48eab78be510a79d3f1f | PHP | Ezyva2015/campusimport | /class-gf_db_campus_order_data_importer.php | UTF-8 | 6,094 | 2.765625 | 3 | [] | no_license | <?php
namespace GF;
class GF_DB_CAMPUS_ORDER_DATA_IMPORTER {
//id
//form_id
//source_platform
//gravity_form
//data
//updated_at
//created_at
private $table_name = "wp_rg_campus_order_data_importer";
function __construct() {
}
public function getMappedDataByFormIdAndSou... | true |
56b41a3ddf71339db7560e581a5fad043b174ed4 | PHP | treejames/Test-2 | /uni/ThinkPHP/Vendor/PHPExcel/impExcel.php | GB18030 | 4,150 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | <?
/**
*excelķ
*ߣ
*ʱ䣺2012-06-05
* ʹʾ //// ͷDzͬĿѡʽʵҪ
* Ӧеע͡
* ʹ Excel5 ӦGBK롣
*/
function uploadFile($file,$filetempname)
{
//Լõϴļ·
$filePath = 'upFile/';
$str = "";
//·PHPExcel·
require_once 'PHPExcel.php';
require_once 'PHPExcel/PHPExcel/IOFactory.php';
... | true |
e06b47b825a4b2b45364a0dd16db0b52b5802d90 | PHP | geisonfgf/brick | /bricks/page.php | UTF-8 | 2,064 | 2.71875 | 3 | [] | no_license | <?php
class Page {
var $head_scripts;
var $scripts;
var $css;
var $title;
var $bricks;
function __construct($head_scripts, $scripts, $css, $title, $description, $bricks) {
$this->head_scripts = $head_scripts;
$this->scripts = $scripts;
$this->css = $css;
$this->... | true |
4afd5406e99b89965e405ec92dff5ef62808f635 | PHP | mrclay/ScopedRole | /lib/ScopedRole/Loader.php | UTF-8 | 655 | 2.796875 | 3 | [] | no_license | <?php
namespace ScopedRole;
class Loader {
/**
* SPL autoloader function
* @param string $class
*/
public static function load($class)
{
$class = ltrim($class, "\\");
if (0 !== strpos($class, 'ScopedRole\\')) {
return;
}
$path = dirname(__DIR__) ... | true |
424e2d976aa742658c9898c1d2c534b529fe177f | PHP | r3dmaohong/PeriodicalAnalysis | /Excel/0421_inputfile_dep_no.php | UTF-8 | 3,389 | 2.703125 | 3 | [] | no_license | <?php
require_once 'reader.php';
echo "<title>計算學校與科系出現次數</title>";
echo "<style>h { color: red; font-style: italic; font-weight: 900;}</style>";
echo "<br>【計算學校與科系出現次數】<br>";
echo "<br>";
echo "<form action='0421_inputfile_dep_no.php' method='get'>";
echo " 請選擇要輸入的檔案: <input type='file' name='F'>"... | true |
db2d85a3fb1ee2786017059ae5c6c9bb1ae0db84 | PHP | geodesicsolutions-community/geocore-community | /src/classes/php5_classes/RecurringBilling.class.php | UTF-8 | 38,969 | 2.6875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | <?php
//RecurringBilling.class.php
/**
* Holds the geoRecurringBilling object class.
*
* @package System
* @since Version 4.1.0
*/
/**
* The geoRecurringBilling object, an object representation of a recurring
* billing in the system.
*
* One geoRecurringBilling object per item that has recurring billing to... | true |
4072b5e695ed08435ab8bef5ea8b3faee932c95b | PHP | tpanelli/Ingenieria-de-software-2-grupo-14 | /validacion.php | UTF-8 | 1,178 | 2.59375 | 3 | [] | no_license | <?php
class Acceso{
private $email;
private $clave;
public function Comparar($m,$c){
$this->email = $m;
$this->clave = $c;
include_once 'archivoconexion.php';
$link = conectar();
$result=mysqli_query($link,'SELECT * FROM `usuario` WHERE `mail` = "'. $this->email .'" and `contrasenia` = "'. $this->cl... | true |
a7fbc4758c72a6dd7de30554c2e9b87efa123cc5 | PHP | MagnusGreiff/Ramverk-1-projekt | /src/Navbar/Navbar.php | UTF-8 | 1,345 | 2.71875 | 3 | [] | no_license | <?php
namespace Radchasay\Navbar;
use \Anax\DI\InjectionAwareInterface;
use \Anax\DI\InjectionAwareTrait;
class Navbar implements InjectionAwareInterface
{
use \Anax\Common\ConfigureTrait;
use InjectionAwareTrait;
public function getHTML()
{
$nav = "<navbar class='" . $this->config["config"]... | true |
2266188ba2f5ee2fa3034bca1a19ad539bdb7f20 | PHP | rfq13/gii_test | /logic_test.php | UTF-8 | 295 | 3.421875 | 3 | [] | no_license | <?php
$x=8;
for ($i = 1; $i <= $x; $i++) {
for ($j = 1; $j <= $i ; $j++) {
echo $j;
}
echo '<br>';
}
$jumlah=5;
for($a=1; $a<=$jumlah; $a++){
for($b=$jumlah; $b>=$a; $b--){
print(' ');
}
for($c=1; $c<=$a; $c++){
echo '*';
}
echo "<br/>";
} | true |
4e800285b054e51436420d40308ac35226c1d817 | PHP | realshadow/request-deserializer | /src/Serializers/AbstractSerializer.php | UTF-8 | 1,532 | 2.640625 | 3 | [] | no_license | <?php
namespace Realshadow\RequestDeserializer\Serializers;
use Illuminate\Config\Repository;
use JMS\Serializer\Serializer;
use JMS\Serializer\SerializerBuilder;
use Realshadow\RequestDeserializer\Providers\LaravelServiceProvider;
/**
* Class AbstractSerializer
*
* @package Realshadow\RequestDeserializer\Serial... | true |
f1d7e106a44304eee8c4f2a7f5e598c574d99e1a | PHP | mrBarney/User-Authentication-Demo | /index.php | UTF-8 | 5,548 | 2.703125 | 3 | [] | no_license | <?php
include('server.php');
if (!isLoggedIn()) {
$_SESSION['msg'] = "You must log in first";
header('location: login.php');
}
// when heart monitor button is clicked
if (isset($_POST['heart_monitor_btn'])) {
$_SESSION['success'] = "File successfully executed";
header('location: success.php');
}
$na... | true |
2c5389dd1014efff5d35f4e1b69bed3c029a6f40 | PHP | dainst/wordpress-components | /plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-cornerstone/src/class-wpml-cornerstone-register-strings.php | UTF-8 | 666 | 2.546875 | 3 | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | <?php
class WPML_Cornerstone_Register_Strings extends WPML_Page_Builders_Register_Strings {
/**
* @param array $data_array
* @param array $package
*/
protected function register_strings_for_modules( array $data_array, array $package ) {
foreach ( $data_array as $data ) {
if ( isset( $data['_type'] ) && !... | true |
0a78e103e2c42d797a72b0557887a0442f593fcf | PHP | st-hol/php-course-work-project | /app/controllers/Controller.php | UTF-8 | 3,201 | 2.828125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Stas
* Date: 30/03/19
* Time: 12:14
*/
require_once __DIR__ . "/../../core/TemplateEngine.php";
require_once __DIR__ . "/../middleware/LocaleMiddleware.php";
/**
* Class Controller
*/
class Controller
{
/**
* @var TemplateEngine
*/
protected $templator... | true |
86fb4f8d11ee178f671c86221f94acfd32871531 | PHP | tiandidoushidali/bugs | /app/Utils/HttpProtocol.php | UTF-8 | 2,340 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Utils;
class HttpProtocol {
/**
* @param $appSecret
* @param $params
* @param string $method
* @return string
* 参数签名
*/
public static function sign($appSecret, $params, $method = 'md5') {
if (!is_array($params)) $params = array();
ksort($param... | true |
33f7c031f2a15427d294113cc06cd6bdde5c103c | PHP | Sjoekoe/sports-calendar | /app/Accommodations/AccommodationRouteBinding.php | UTF-8 | 609 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Accommodations;
use App\Http\AbstractRouteBinding;
use App\Http\RouteBinding;
class AccommodationRouteBinding extends AbstractRouteBinding implements RouteBinding
{
/**
* @var \App\Accommodations\AccommodationRepository
*/
private $accommodations;
public function __construct... | true |
5593e61516bc1b0b05e2480b4c8e25a839b09976 | PHP | DamianDugan/PHP-Rush-MVC | /Controllers/ArticlesController.php | UTF-8 | 1,852 | 2.71875 | 3 | [] | no_license | <?php
require_once(ROOT . 'Core/Controller.php');
class ArticlesController extends Controller
{
public static $ArticleInstance;
public function delete($id)
{
$this->loadModel("Article");
$d = $this->Article->delete_task($id);
echo "<p> Article ".$id. " a bien été supprimé </p>";
$this->redirect(WEBROOT . ... | true |
a1a6193169955b3c318238addc9244893e117c3b | PHP | martinariel/erpsolutions | /ofa/src/classes/cls_ftp.php | UTF-8 | 1,070 | 2.578125 | 3 | [] | no_license | <?php
class cls_ftp {
private $host;
private $pto = 21;
private $user;
private $pwd;
function __construct ( $host = '127.0.0.1' , $user = 'user', $pwd = 'pwd') {
$this->host = $host;
$this->user = $user;
$this->pwd = $pwd;
}
private function connect() {
... | true |
9899e9f238224e19f5afd608ec07ec22bc1ecc92 | PHP | openpear/svn.openpear.org | /PHP_Obfuscator/tags/release-0.1.0-20100702104610/test/PHP_Obfuscator/PHP_Obfuscator_Encoder_NullEncoderTest.php | UTF-8 | 788 | 2.78125 | 3 | [] | no_license | <?php
ini_set("include_path", dirname(__FILE__)."/../" . PATH_SEPARATOR . ini_get("include_path"));
require_once "PHPUnit/Framework/TestCase.php";
require_once 'PHP/Obfuscator/Encoder/NullEncoder.php';
/**
* testcase for PHP_Obfuscator_Encoder_NullEncoder
*
* @version $Id$
*/
class PHP_Obfuscator_Encod... | true |
fdff8aa0d509939d83fc58e1e071a789b88e8cee | PHP | devGauravTiwari/Library | /settings/helper/App.php | UTF-8 | 1,317 | 2.796875 | 3 | [] | no_license | <?php
class App{
function login($uid,$password){
$DB = mysqli_connect(Env::$HOST_NAME,Env::$USER_NAME,Env::$PASSWORD,Env::$DATABASE_NAME);
$query="select * from users where email='$uid' and password='$password'";
$res=$DB->query($query);
if($res->num_rows>0){
session_destroy();
session_start();
... | true |
353c5b90032d7b6ac88fdccbe55276682b813d63 | PHP | trueanqu/sample_shop | /vendor/trueanqu/Framework/Config.php | UTF-8 | 1,630 | 2.96875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: bohdan
* Date: 8/17/16
* Time: 10:29 AM
*/
namespace Framework;
class Config extends Singleton
{
private static $config = [];
private $configDirPath = '../config/';
private $defaultConfigName = 'default_config.php';
private function __construct()
{
... | true |
40ca1b2efb3e456d5fc2c443008d913474799cc6 | PHP | petrospe/webcrm | /fileindb.php | UTF-8 | 3,546 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
session_start();
if (!isset($_SESSION['user']))
{
header("Location: login.php");
}
?>
<meta HTTP-EQUIV="REFRESH" content="0; url=files.php">
<?php
require "config.php";
//file table entries
$fileName = $_FILES['path']['name'];
$tmpName = $_FILES['path']['tmp_name'];
$fileSize = $_FILES['path']['size'];
$fileT... | true |
de33ea6f5a2fd789bbc5eb00a1bf555a469baaf9 | PHP | igor972/codewars | /php/codewars_3.php | UTF-8 | 589 | 3.546875 | 4 | [] | no_license | <?php
// Link Exercício: https://www.codewars.com/kata/550554fd08b86f84fe000a58/train/php
function inArray($array1, $array2) {
$list = [];
foreach($array1 as $word) {
foreach($array2 as $text) {
if(strpos(strtolower($text), strtolower($word)) !== false) {
if(!in_array($word, $list)){
... | true |
92128785a0d198903abe0a3c96e83c237f5b11f1 | PHP | MaxCorvus/PHP-Course | /strings.php | UTF-8 | 646 | 3.46875 | 3 | [] | no_license | <?php
/*
*/
$text = 'Hello world!';
$text1='Hello ';
$text2 = 'world';
echo $text1 . $text2;
echo '</br>';
/*Создайте переменную $age и присвойте ей ваш возраст.
Выведите на экран 'My age is {здесь должен быть возраст} years'.
Это задания нужно сделать двумя способами. Используя одинарные и двойные кавычки.
*/
$age ... | true |
47a6ecd50c4741d4ec13f995fead63ee5a83a5ee | PHP | camiloinostrozae/SistemaGestionDiscapacitados | /models/Persona.php | UTF-8 | 9,277 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "persona".
*
* @property int $id_persona
* @property string $nombre
* @property string $apellido
* @property string $rut
* @property string $fecha_nacimiento
* @property string $email
* @property string $telefono
* @property strin... | true |
04eda03220b16af759a9a0eae7f7177a3d0ab173 | PHP | lomagno2003/tvtandil_rest | /src/model/entities/SocialMediaReference.php | UTF-8 | 756 | 2.796875 | 3 | [] | no_license | <?php
namespace tvtandil\model\entities;
/**
* @Entity @Table(name="social_media_reference")
*/
class SocialMediaReference{
/**
* @Id @Column(type="integer") @GeneratedValue
*/
protected $id;
/**
* @Column(type="string", nullable=true)
*/
protected $facebookPostId;
/**
* @Column(type="string", nu... | true |
5cf573aa4e2f52f5017daf6e2bbf006eb89bfc66 | PHP | wimea-ict/AWS-monitor | /aws-monitor/app/Console/Commands/SendReport.php | UTF-8 | 872 | 2.90625 | 3 | [] | no_license | <?php
namespace station\Console\Commands;
use Illuminate\Console\Command;
use station\Http\Controllers\ReportController;
class SendReport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'report:send';
/**
* The con... | true |
d59b789112ac2e9c531b28da8234ba2627d62ee4 | PHP | Thomanu/BudgetHub | /Td2_code/incomedecl.php | UTF-8 | 3,690 | 2.640625 | 3 | [] | no_license | <?php
require_once __DIR__ . '/libraries/database.php';
require 'functions.php';
$pdo = db_connect();
$error = [];
$href = "assets/css/addIncomes.css";
$error = false;
$incomes = income_list($pdo);
$lists = users_list($pdo);
// Le formulaire a été soumis
if (!empty($_POST)) {
// vérifie que... | true |
7aa7383afeacebd8f9f6ddcdf9e8a92eb6e21d53 | PHP | k2s/xtbackup | /core/Engine.php | UTF-8 | 30,639 | 2.65625 | 3 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | <?php
/** @noinspection PhpIncludeInspection */
require_once "core/StopException.php";
/** @noinspection PhpIncludeInspection */
require_once "core/CfgPart.php";
/** @noinspection PhpIncludeInspection */
require_once "core/Lock.php";
// may be used in INI
!defined('ENGINE_DIR') && define("ENGINE_DIR", realpath(__DIR__... | true |
8d48cedb9452f1c3423b76f7a22c3060a1d28e92 | PHP | BackupTheBerlios/openology-svn | /framework/branches/0.3/core/format/DateFormatter.php | UTF-8 | 2,334 | 2.5625 | 3 | [] | no_license | <?php
// +---------------------------------------------------------------------------+
// | This file is part of the Openology FrameWork |
// | Copyright (c) 2004-05 Openology.org Team |
// | ... | true |
37c5169c3b71e5700da30659a395391f135f567b | PHP | Artur-am/test1-php | /app/models/model_main.php | UTF-8 | 1,864 | 2.609375 | 3 | [] | no_license | <?php if(false===defined('QW'))exit;
class Model_Main extends Model
{
private array $data = [];
/**
* @return [type]
*/
public function get_data()
{
$this->get_users();
$this->get_groups();
$this->get_faculty();
$this->data['title'] = 'Home';
return $t... | true |
f52868770ab7f9b3aad3ee13615fe8e55afb09b9 | PHP | jovvybersamin/laravel-edronscateringservices | /app/Http/Controllers/Admin/PackageController.php | UTF-8 | 3,130 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Package;
use App\Menu;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Http\Requests\PackageRequest;
use App\Http\Controllers\Controller;
class PackageController extends Controller
{
/**
* List all the packages
*
* @return \Illumi... | true |
38d5b47e26d8344ac1e0f8fb279f718a1e63af20 | PHP | tvvignesh/friendbus | /www/master/securedir/m_php/master_db.php | UTF-8 | 7,157 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
/**
*
* CONTAINS ALL DATABASE OPERATION FUNCTIONS
* @author T.V.VIGNESH
*
*/
class ta_dboperations
{
public $mysqli;
function __construct($dbname=tbl_user_info::dbname)
{
return $this->dbconnect($dbname);
}
/**
*
* CONNECTS TO THE DATABASE
*
* @param string $dbname Databa... | true |
f988b9f8fce7751316347d305880222897aac098 | PHP | yiimaker/yii2-social-share | /tests/_support/Helper/Unit.php | UTF-8 | 824 | 2.53125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* @link https://github.com/yiimaker/yii2-social-share
* @copyright Copyright (c) 2017-2019 Yii Maker
* @license BSD 3-Clause License
*/
namespace Helper;
/**
* Helper for unit tests.
*
* @since 1.4.0
*/
class Unit extends \Codeception\Module
{
/**
* Creates HTML meta tag.
*
* @par... | true |
9f18524c82be9014eece702c31a6b49dc291824a | PHP | linux007/swoole-server | /src/console/BaseServer.php | UTF-8 | 2,489 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: linux
* Date: 17/5/28
* Time: 下午12:35
*/
namespace base\console;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Exception\InvalidArgumentException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\Outpu... | true |
ac09d4bc5cc45834957adac1218d8eaa6415d79d | PHP | reshmagt/RespondCMS | /sites/common/menu.php | UTF-8 | 1,397 | 2.5625 | 3 | [] | no_license | <?php
if(!isset($type)){
$type = 'primary';
}
$p_id = '';
if(isset($id)){
$p_id = ' id="'.$id.'"';
}
?>
<nav<?php print $p_id; ?> class="<?php print $type; ?>">
<ul>
<?php
$json = file_get_contents($dataloc.'data/menu.json');
$data = json_decode($json, true);
foreach($data as &$item) {
$c_page... | true |
001d689d047cd46c040b7333666689918017f4ae | PHP | ukisoft/procon | /VipAlgorithm/Loop.php | UTF-8 | 488 | 3.625 | 4 | [] | no_license | <?php
/*
* Hello World![改行]を5回表示させてください。 print(或いはprintf,cout等)を5回コピーすれば当然可能ですが、
* ループ構文(for,while等)を利用して、print等は1回の使用にとどめてみてください。
*/
namespace Vip;
class Loop {
static public function getLoop($num)
{
$result = '';
for ($i = 0; $i < $num; $i++) {
$result .= "Hello World!\n";
... | true |
00d13911cddcb5e401cafd9f37b0f404556f0523 | PHP | genych/mnts | /src/DTO/Transfer.php | UTF-8 | 1,050 | 3.375 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace App\DTO;
class Transfer
{
private int $sender;
private int $receiver;
private string $amount;
private string $currency;
/**
* @param int $sender
* @param int $receiver
* @param mixed $amount
* @param string $currency
*/
... | true |
1786aa0dbc5d3d640e67b4bb723b2e14e320e804 | PHP | slayyy/laravel-blog | /app/Http/Controllers/Auth/LoginController.php | UTF-8 | 973 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Support\Facades\Hash;
class LoginController extends Controller
{
public function index()
{
return view('auth.login');
}
public function login(Request $reque... | true |
1dc0a5a28de46bbd84895963508046dd7c6d5ccd | PHP | isaqib23/fann | /database/migrations/2019_11_11_090730_create_campaign_touch_point_placement_actions_table.php | UTF-8 | 1,258 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Class CreateCampaignTouchPointPlacementsTable.
*/
class CreateCampaignTouchPointPlacementActionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::crea... | true |
b31bd08297ab39dde01c2b105cbe09220075c31c | PHP | anhsiao/tumblr_tag_cloud | /A-Frame/index.php | UTF-8 | 2,066 | 2.703125 | 3 | [
"MIT"
] | permissive | <?
/**
* This is the main controller file for aframe. It includes what's needed, and runs the
* framework's main functions.
*
*
* Copyright (c) 2009, Lyon Bros Enterprises, LLC. (http://www.lyonbros.com)
*
* Licensed under The MIT License.
* Redistributions of files must retain the above c... | true |
c4a67f207c26225d0efa4bea03c38722786489d0 | PHP | BackupTheBerlios/blogmarks | /blogmarks.bak/Element/Factory.php | ISO-8859-1 | 1,987 | 3.109375 | 3 | [] | no_license | <?php
/** Dclaration de la classe Element_Factory
* @version $Id: Factory.php,v 1.3 2004/03/17 14:15:04 mbertier Exp $
* @todo Passer les define dans les fichiers de conf
* @todo Dfinir une liste d'lments valides
*/
define( 'BM_ELEM_LOCATION', 'Blogmarks/Element' );
define( 'BM_ELEM_PREFIX', 'Eleme... | true |
dd6807b37a96985b56e68d3457af716fd31afbcb | PHP | Lapayo/SAMPHP | /server-folder/php/core/text3d.php | UTF-8 | 1,294 | 2.984375 | 3 | [] | no_license | <?php
class Text3D
{
protected static $instances = array();
protected $id;
public static function find($id)
{
if($id instanceof Text3D)
return $id;
if(isset(static::$instances[$id]))
return static::$instances[$id];
return static::$instances[$id] = new static($id);
}
public static function create(... | true |
a654e942b94dbed156405823f13b3d02cbbd2eed | PHP | Trisky/MiMercado | /app/Meli/Products/ProductsFetcher.php | UTF-8 | 3,085 | 2.875 | 3 | [] | no_license | <?php
namespace App\Meli\Products;
use App\Meli\Auth;
use App\Meli\Connection;
use App\Meli\NoAccessDataException as NoAccessDataException;
use App\Meli\Settings;
use GuzzleHttp\Exception\ClientException;
class ProductsFetcher
{
CONST BASEURL = "https://api.mercadolibre.com";
private $settings;
privat... | true |
764447f3b2ce16deefcaab10d2a169ad5e63c21a | PHP | gaurav009/radient | /radiantApp/frontend/models/Customer.php | UTF-8 | 2,449 | 2.6875 | 3 | [] | no_license | <?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "customer".
*
* @property int $id
* @property string $name
* @property int $company
* @property int $country_id
* @property int $state_id
* @property int $city_id
* @property int $pin_code
* @property string $gst
* @property... | true |
467b99e6a9cf127307c878087800595d717abf39 | PHP | mickknutson/javaeecookbook | /xampp/php/PEAR/PHPDoc/warning/PhpdocWarning.php | UTF-8 | 2,252 | 2.9375 | 3 | [
"PHP-3.01",
"BSD-3-Clause",
"BSD-4-Clause-UC",
"Zlib",
"ISC",
"LicenseRef-scancode-other-permissive",
"TCL",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"JSON",
"LicenseRef-scancode-pcre",
"blessing",
"Apache-2.0"
] | permissive | <?php
/**
* Container for all kind of Warnings the parser/analyser recognizes
*
* The base of the report generator module is this container. It's currently
* pretty simple and will change later on...
*
* @version $Id: PhpdocWarning.php,v 1.1 2001/05/08 04:48:39 sbergmann Exp $
*/
class PhpdocWarning extends PhpdocOb... | true |
760541d5761a080cd83c923adf2e8b8e0ed2bbab | PHP | christianstaat/parltrack-tools | /json2csv.php | UTF-8 | 1,092 | 2.53125 | 3 | [] | no_license | <?php
$file = "ep_meps_current";
$fp = fopen($file.'.csv', 'w');
$meps= json_decode (file_get_contents($file.'.json'));
$out=array ('epid','first_name','last_name','email','birthdate','gender','eugroup','phone','office','committee','delegation');
foreach ($meps as $mep){
//if (!$mep->Constituencies[0]->end) {
if (!$... | true |
d7f16da746cdcbc2641e85bbd2f12eb85535fe6a | PHP | pintofbeer/mailchimp | /src/pintofbeer/mailchimp/MailChimpApi.php | UTF-8 | 1,477 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace pintofbeer\mailchimp;
class MailChimpApi extends MailChimpBase{
private $_lists;
private $_read_all_lists = false;
public function __construct($api_key){
MailChimpBase::setApiKey($api_key);
}
public function getLists(){
if(!empty($this->_lists) && $this->_read_all_lists) retu... | true |
a9b3ef9fa29803ec0e22863995a95c960b290483 | PHP | doctrine/orm | /tests/Doctrine/Tests/Models/Cache/State.php | UTF-8 | 2,225 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\Cache;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping\Cache;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\OR... | true |
76bcf6c9883fc4a8dce5ad5f3b165c6a8a100fa5 | PHP | jmillot33/DernierCri | /app/Http/Controllers/FluxController.php | UTF-8 | 2,858 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FluxController extends Controller
{
public function getFLux(){
$rss = simplexml_load_file('https://www.lemonde.fr/rss/une.xml');
return $rss;
}
public function index()
{
return view('home... | true |
6bae6e9c6e6511aa88d4004da39275e0e0e3eca7 | PHP | vsolomka/repo210228 | /index.php | UTF-8 | 1,323 | 4.09375 | 4 | [] | no_license | <?php
/*
* 1. Получить сумму всех вторых элементов массива произвольного размера и вложенности.
*/
$array0 = [
14,
"9" => [
"false",
"true",
[
201,
"202" => 202,
]
],
400,
[
501,
"502",
]
];
function getSumOf2nds($input... | true |
ff7de0c3df4c0e92f185500ae5e3ab1b3db8cd59 | PHP | Priyesh108/ns | /controllers/PriceController.php | UTF-8 | 5,412 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\controllers;
use app\models\Customers;
use app\models\Products;
use Yii;
use app\Models\Price;
use app\models\PriceSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PriceController implements the CRUD actions for Price model.
*/
class PriceCont... | true |
f81c8f318bf05c88978f074d3d513644182b56cf | PHP | theTairo/tasker | /login.php | UTF-8 | 837 | 2.609375 | 3 | [] | no_license | <?php
session_start();
if($_SESSION['logged'] == true)
{
header('Location: main.php');
exit();
}
include('database/connect.php');
$username = $_POST['username'];
$password = $_POST['password'];
$stmt = $db->prepare('SELECT * FROM users WHERE user... | true |
da926b4e0c71832be0255186711662c43ee60202 | PHP | rubenrleyva/coursePOO | /lesson_30/tests/ModelArrayAccessTest.php | UTF-8 | 2,688 | 3.015625 | 3 | [] | no_license | <?php
namespace Lesson_30;
use Lesson_30\Model;
use phpDocumentor\Reflection\Types\This;
class ModelArrayAccessTest extends \PHPUnit\Framework\TestCase
{
// método helper
protected function newModel(array $attributes = [])
{
return new class($attributes) extends Model {};
}
public funct... | true |
ec2eed9108a02b024c55f6c9d2081c87f00b38e6 | PHP | lucasgonella/projeto | /banco.php | UTF-8 | 590 | 2.75 | 3 | [] | no_license | <?php
require_once 'autoload.php';
use Alura\Banco\Modelo\Conta\Titular;
use Alura\Banco\Modelo\Endereco;
use Alura\Banco\Modelo\CPF;
use Alura\Banco\Modelo\Conta\Conta;
$endereco = new Endereco ('Petropolis', 'um bairro', 'minha rua', '71B');
$vinicius = (new Titular(new CPF('123.456.789-10'), 'Vinicius Dias', $en... | true |
2bd66bb308ef5f4e836045caf7fedc3c158e5ef6 | PHP | mostafajamali1997/mazandgaz | /application/models/Factors.php | UTF-8 | 3,053 | 2.671875 | 3 | [] | no_license | <?php
class Factors extends CI_Model
{
private $id;
private $orderedBy;
private $dateOfOrder; //current timeStamp in database
private $orderingUserIp;
private $orderingUserAgent;
private $orderStatus;
private $creatureBy;
private $paidStatus;
private $paidCodeInPaymentList;
private $dateTimeOfPaid;
privat... | true |
fbc76d842132c6792098971a42749e0207dc06b1 | PHP | dinamsky/mix | /src/AppBundle/Command/MoveUserImagesCommand.php | UTF-8 | 2,150 | 2.515625 | 3 | [] | no_license | <?php
namespace AppBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
class MoveUserImagesCommand extends ContainerAwareCommand
{
... | true |
cf37f7887fd570c1607a4a5a0f7928f074037466 | PHP | josigam15/PhpToolbox | /PhpClass4/Class4/calculator/CalculatorData.php | UTF-8 | 650 | 3.28125 | 3 | [] | no_license | <?php
class CalcData
{
private $val1;
private $val2;
private $operator;
function __construct($val1, $val2, $operator) {
$this->val1 = $val1;
$this->val2 = $val2;
$this->operator = $operator;
}
function getVal1() {
return $this->val1;
}
function... | true |
7a2fa6481cfad1f42ade7c05d4e59fbdc393be6f | PHP | adielp89/gollum | /cosita.php | UTF-8 | 2,264 | 2.578125 | 3 | [] | no_license | <?php
$args = array(
'post_type' => 'slider',
'tax_query' => array(
array(
'taxonomy' => 'posicion',
'field' => 'slug',
'terms' => 'derecha',
),
),
);
// The Query
$the_query = new WP_Query( $args );
// The Loop using flexslider
/*
if ( $the_query->have_posts() ) { ?>
<div id="slider" cla... | true |
73c65a385d05844cc58fb5b7c8d62205d7c81acf | PHP | 23tl/scaffold-Laravel-admin | /app/Cache/SmsCache.php | UTF-8 | 1,401 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Cache;
class SmsCache extends BaseCache
{
/**
* 短信
* key sms_场景值_手机号码
*/
const SMS_CODE = 'sms_%s_%s';
/**
* 写入短信验证码缓存
* @param int $scenes
* @param string $mobile
* @param int $code
* @param int $ttl
*
* @return mix... | true |
ace2e41a32fdbebe1c3234026c8302705a48318a | PHP | oliverchrist/css3 | /pages/demos/primeNumbers.php | UTF-8 | 1,094 | 2.515625 | 3 | [] | no_license | <?php
$basePath = $_SERVER['DOCUMENT_ROOT'];
if(substr($basePath, -1, 1) != '/') { $basePath .= '/'; }
?>
<!DOCTYPE html>
<html>
<head>
<?php include $basePath . 'components/global/head.php'; ?>
<script>
$(function(){
for(var x = 2, y; x < 1000; x++, y = 2) {
... | true |
01d34650eb92f313e6af39d44263554d2fa5ea09 | PHP | hi-noikiy/oemshop | /app/api/model/plus/friends/Friends.php | UTF-8 | 5,799 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace app\api\model\plus\friends;
use app\api\model\user\User;
use app\common\model\plus\friends\Friends as FriendsModel;
/**
* 好友圈模型
*/
class Friends extends FriendsModel
{
/**
* 隐藏字段
*/
protected $hidden = [
'app_id',
];
/**
* 获取好友圈列表
* @param $params
*... | true |
cf3bfd5fce4303075899ce9462d0330f18a3b315 | PHP | KatterinaM/experience-work | /dataprocessor/src/app/Service/Queue/AMQP/QueueAMQPService.php | UTF-8 | 7,255 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Service\Queue\AMQP;
use Exception;
use App\Entity\Queue\QueueJob;
use JMS\Serializer\SerializerInterface;
use PhpAmqpLib\Channel\AMQPChannel;
use PhpAmqpLib\Exchange\AMQPExchangeType;
use PhpAmqpLib\Message\AMQPMessage;
use PhpAmqpLib\Connection\AMQPStreamConnection as AMQPConnection;
use Psr\Log\... | true |
9cf218beacb97e2f86bd0e239718984a665547df | PHP | brieucthomas/ergast-client | /src/BrieucThomas/ErgastClient/Model/Standings.php | UTF-8 | 813 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
/*
* (c) Brieuc Thomas <tbrieuc@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BrieucThomas\ErgastClient\Model;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @author Brieuc Thomas <brieuc.tho... | true |
9b9de1b62aa7dfb8eb6d1f7e92638a9c017e1835 | PHP | avew/simple-api-with-laravel5 | /app/Http/Controllers/Api/UsersController.php | UTF-8 | 1,404 | 2.625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Api;
/**
* Created with love.
* User: aseprojali
* Date: 8/9/16
* Time: 8:38 PM
* Website : avew.github.io
*/
use App\Http\Controllers\ApiController;
use App\Transformers\UserTransformer;
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\Facades\JWTAuth;
class Us... | true |
fdb85e371475189fd1359a297e8e0652c925f505 | PHP | bellmit/NCMI | /Website/welive/includes/Class.Select.php | UTF-8 | 2,570 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | <?php
// +---------------------------------------------+
// | Copyright 2010 - 2028 WeLive |
// | http://www.weentech.com |
// | This file may not be redistributed. |
// +---------------------------------------------+
if(!defined('WELIVE')) die('File not found!');
class S... | true |
1b62a871537f2667c84a9396196b1958872615cc | PHP | gamecon-cz/gamecon | /model/Logger/LogHomadnychAkciTrait.php | UTF-8 | 1,197 | 2.5625 | 3 | [] | no_license | <?php
namespace Gamecon\Logger;
use Gamecon\Cas\DateTimeCz;
use Gamecon\Cas\DateTimeImmutableStrict;
trait LogHomadnychAkciTrait
{
private function zalogujHromadnouAkci(
string $skupina,
string $akce,
string|int|float|bool $vysledek,
\Uzivatel ... | true |
aeffbb1f172412a3858c9efb32e0bb7c19e8ab80 | PHP | B-Translator/btrclient | /lib/fn/render/statistics.php | UTF-8 | 2,569 | 2.546875 | 3 | [] | no_license | <?php
/**
* @file
* Function: render_statistics()
*/
namespace BTranslator\Client;
use \bcl;
/**
* Build the content of statistics.
*/
function render_statistics($lng = 'fr', $origin = NULL, $project = NULL) {
// Get the statistics.
try {
$btr = wsclient_service_load('public_btr');
$stats = $btr->rep... | true |
290d9f2020276e0d024c2bf02c20b46766c89869 | PHP | nh-gear/foundry | /Container.php | UTF-8 | 7,987 | 2.765625 | 3 | [] | no_license | <?php
/**
* Gear Component: Foundry
*
* Foundry is a object bootstrapping component build upon a queue mechanism.
* Common use cases are: Application Bootstrapping, Container Bootstrapping, ...
*
* © 2014 concept and development by Matthias Kaschubowski
*
* Gear is a nihylum sub-namespace for standalone php com... | true |
7aba4586de1fde4a009483a4cb74a7d6bed914f1 | PHP | imane-C/Projet_M1_S2_SQL | /Controller/bddManagement.php | UTF-8 | 2,552 | 3.203125 | 3 | [] | no_license | <?php
// --------------------------------CREATE A NEW BDD--------------------------------
function createBase ($dbname){
/**
* @param String $dbname a "string containing the name db wich will be create by the fonction is expected"
* @return None (only creating a db)
**/
try{
$pdo =... | true |
16522038aa337460c1374869f826335921997bd9 | PHP | uglide/zfcore-autoupdate | /application/modules/options/models/Options.php | UTF-8 | 2,145 | 2.90625 | 3 | [] | no_license | <?php
/**
* Class Options_Model_Options
*
* @category Application
* @package Model
*
* @author Anton Shevchuk <AntonShevchuk@gmail.com>
* @link http://anton.shevchuk.name
*
* @version $Id: Option.php 207 2010-10-20 15:37:18Z AntonShevchuk $
*/
class Options_Model_Options extends Zend_Db_Table_Row_Abst... | true |
e6e5873a11b7158218b528a973790842e9c51537 | PHP | dmacdonald750/enigma | /src/Models/PageModel.php | UTF-8 | 2,565 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
namespace Enigma\Models;
class PageModel
{
protected $db;
public $id;
public $title;
public $body;
public $slug;
public function __construct()
{
$sql = "CREATE TABLE IF NOT EXISTS `pages` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`title` TEXT,
`body` TEXT,
... | true |
ea9f9769c56d19a87f7d4b1ce752dab9fbcee26b | PHP | W-J-77/cw | /app/Http/Controllers/StallController.php | UTF-8 | 2,011 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Stall;
use Illuminate\Http\Request;
class StallController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for c... | true |
e111b94fca0cbac377155b9d5219f6f2f77c04d0 | PHP | Jacint56/gamerbase-api | /src/GraphQL/Resolver/GameResolver.php | UTF-8 | 2,638 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\GraphQL\Resolver;
use App\Entity\Game;
use Doctrine\ORM\EntityManager;
use Overblog\GraphQLBundle\Definition\Argument;
use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface;
use Overblog\GraphQLBundle\Definition\Resolver\ResolverInterface;
use Knp\Component\Pager\PaginatorInterface;
c... | true |
e02636317739533a7d4ad1259d088b7d11f16eb8 | PHP | kshitijshah95/Healtrail | /admin/admin.php | UTF-8 | 3,348 | 2.703125 | 3 | [] | no_license | <?php session_start(); /* Starts the session */
session_start();
if(!isset($_SESSION['seen'])){
echo 'A message';
}
$_SESSION['seen'] = true;
/* Check Login form submitted */
if(isset($_POST['Submit'])){
/* Define username and associated pa... | true |
79a48a614801ca80abab2dd95a4d2ad0425ca625 | PHP | lovewqww/analytics-sdk | /src/Response.php | UTF-8 | 1,634 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace Redocn\Analytics;
/**
* 对API输出的结果进行处理
* Class Response
* @package Redocn\Analytics
*/
class Response {
protected $_data;
public function __construct(array $data) {
$this->_data = $data;
}
/**
* 取得一个列表
* @param \Result\ARow $itemRow
* @ret... | true |
11b31f66f3b3743b3bef79a09fd35efa031b910a | PHP | araf-systalent/TravelServicesClients | /Travellanda/HotelService.php | UTF-8 | 12,911 | 2.78125 | 3 | [] | no_license | <?php
namespace Tsp\Travellanda;
use Poirot\Connection\Http\HttpSocketConnection;
use Poirot\Connection\Interfaces\iConnection;
use Tsp\Travellanda\Interfaces\iTravellanda;
use Tsp\Travellanda\Reservation\FakerConnection;
use Tsp\Travellanda\Reservation\Platform;
use Tsp\Travellanda\Reservation\ReqMethod;
use Poirot\A... | true |
c8d07840894d7e6fb7426e24a9ca988cd1f92416 | PHP | MarcosCruzRascon/DIWEB | /ProyectoFinalFebreroMarcosCruz/src/Entity/Tipoenvios.php | UTF-8 | 2,284 | 2.625 | 3 | [] | no_license | <?php
namespace App\Entity;
use App\Repository\TipoenviosRepository;
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=TipoenviosRepository::class)
*/... | true |
7e02f50b05f3881936a9110673c94de4706de693 | PHP | Princy06/Assessment | /show_detail.php | UTF-8 | 1,224 | 2.515625 | 3 | [] | no_license | <?php
session_start();
$con=mysqli_connect("localhost:3307",'root','','intern');
$s="select * from player ORDER BY score DESC,fullname";
$result=mysqli_query($con,$s);
$row_count=mysqli_num_rows($result);
?>
<!DOCTYPE html>
<html>
<head>
<title>Transactions</title>
<link rel="stylesheet" href="https://cdnjs.cloudf... | true |