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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7b61a6a92a657ea284e5bc6862e94bbe683ad581 | PHP | 11040678444/ddxm | /application/index/model/item/PurchasePriceModel.php | UTF-8 | 3,477 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | <?php
// +----------------------------------------------------------------------
// | 普通商品的真实消耗库存
// +----------------------------------------------------------------------
namespace app\index\model\item;
use think\Model;
use think\Db;
class PurchasePriceModel extends Model
{
protected $table = 'ddxm_purchase_price... | true |
79e3b049171313a62ec69b6799924034e6386f0e | PHP | navenprasad/parkz | /app/database/migrations/2014_03_27_043255_create_spot_vehicle_table.php | UTF-8 | 521 | 2.53125 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSpotVehicleTable extends Migration {
public function up()
{
Schema::create('spot_vehicle', function(Blueprint $table) {
$table->increments('id');
$table->integer('spot_id')->unsigned();
$table->inte... | true |
0427ec0145c06b7a402b5c28e261fe79b4817c09 | PHP | liuxd/HackZdayePort | /test.php | UTF-8 | 1,229 | 2.875 | 3 | [] | no_license | <?php
require __DIR__ . '/index.php';
/**
* Colorful echo.
* @param string $string The string you want to show.
* @param string $style Color theme.It can be:notic, info, error, system.
*/
function cecho($string, $style = 'info')
{
if (PHP_SAPI !== 'cli') {
echo $string, "\n";
return;
}
... | true |
dd8e16ecc1f78fb50e4ed8b3df5cae18bee91a43 | PHP | pierredup/Di | /Test/fixtures/Foo.php | UTF-8 | 162 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace DiTest;
use DiTest\Bar as Baz;
class Foo
{
public $baz;
public function __construct(Baz $baz)
{
$this->baz = $baz;
}
} | true |
c92e21a49c931f3916ec6362bc269e711b49fc95 | PHP | xinlianit/Library | /PHP/Snowflake.class.php | UTF-8 | 5,178 | 3.296875 | 3 | [] | no_license | <?php
/**
* Snowflake 唯一ID生成服务
*/
abstract class Snowflake {
/**
* 开始时间戳(毫秒:ms) 2017-01-01 00:0:00
*/
const START_EPOCH = 1483200000000;
/**
* 最大时间戳(毫秒:ms) 2014-01-01 00:0:00
*/
const MAX_TIME_STAMP = 1388505600000;
/**
* 最大随机数;1毫秒最多可以产生随机数4096个 (... | true |
9f794f6fed4a12ca6ffd1a97de89838aedd183a9 | PHP | flyingnn/UTP | /application/models/m_oauth.php | UTF-8 | 9,227 | 2.515625 | 3 | [] | no_license | <?php
class M_oauth extends CI_Model{
protected $user_table = '';
public $open_id = '';
public $access_token = '';
function __construct()
{
date_default_timezone_set('Asia/Shanghai');
parent::__construct();
require_once 'oauth2.0/curl.php';
require_once 'oauth2.0/curl_... | true |
025edfc10b27cdcb336027f186ebe532c3e4995c | PHP | Chekote/behat_intro | /model/Sale.php | UTF-8 | 135 | 2.578125 | 3 | [] | no_license | <?php namespace model;
class Sale {
/** @var string YYYY-MM-DD */
public $date;
/** @var float */
public $total;
}
| true |
024060f08cc29eaf7d255bb8f1ca04d0a8179e6e | PHP | ateneomisa/PHPRegSystem | /RegSystem-master/RegSystem_template/act.php | UTF-8 | 572 | 2.65625 | 3 | [] | no_license | <?php
require ("config.php");
if(isset($_POST['name']) && isset($_POST['idnum'])){
$username = $_POST['name'];
$idnum = $_POST['idnum'];
$sql = "INSERT INTO registration(Username, idno) VALUES ('" . $username . "', '" . $idnum . "')";
if ($dbcon->query($sql) === TRUE) {
... | true |
594f06bc8e0756b3696ec857e4dd1d9b41919366 | PHP | healthbridgeltd/zava-cop | /api/app/Http/Controllers/SayHelloController.php | UTF-8 | 678 | 2.875 | 3 | [
"Unlicense",
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Response;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
class SayHelloController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
... | true |
73e3d5dc26f05af2af606618a0685a366d551195 | PHP | DrDeath72/YiiBlocks | /ypm/controllers/PackageController.php | UTF-8 | 2,583 | 2.65625 | 3 | [] | no_license | <?php
/**
* Package controller handles displaying and publishing packages.
* @author Charles Pick
* @package packages.ypm.controllers
*/
class PackageController extends ABaseAdminController {
/**
* Declares class based actions
* @return array The class based actions to use for this controller
*/
... | true |
9edfc8a12e5ec17049c1f700536a45386fd3f967 | PHP | Techbinod/image_gallery | /admin/includes/function.php | UTF-8 | 579 | 2.84375 | 3 | [] | no_license | <?php
function debugger($data, $is_die,$dump=false){
echo "<pre style='color:#000; background-color:#ccc;'>";
if($dump){
var_dump($data);
/*echo "I am dump";*/
}else {
print_r($data);
/*echo "I am print_r";*/
}
echo "</pre>";
if ($is_die){
exit;
}
}
function classAutoLoader($class){
$class ... | true |
9a5ca4ff2c64e0e493844cab2b43de02b98f829f | PHP | Ascen41/desarrollo-web | /ejercicios/php/ejercicio8validacionform.php | UTF-8 | 3,390 | 3.046875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ejercicio 8 validacion de formulario</title>
</head>
<body>
<?php
$nombre = $apellidos = $edad = $email= ... | true |
b4c6d0e053633c1bf9cf3d0b7a14f2e15e0a6165 | PHP | abhishekcs10/CRAWLER_DB | /WEBSITE/action_page4.php | UTF-8 | 1,209 | 2.78125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>PHP connect to MySQL</h1>
<div id="container1">
<?php
$db = mysqli_connect("127.0.0.1", "root", "Password#1", "CSEIITKGP");
if (!$db) {
echo "Error: Unable to connect to MySQL." . PHP_EOL;
echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
... | true |
bbdca1ffb7acb5c2f63ac664b2f9ef1348d67e90 | PHP | tasarweb/laravel-sms | /src/SMS.php | UTF-8 | 560 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Tasar\SMS;
use GuzzleHttp\Client;
class SMS
{
protected $client;
protected $panel;
public function __construct()
{
$this->client = new Client();
$this->panel = config('tasarsms.panel');
}
public function __call($name, $arguments)
{
$class = __NAME... | true |
f116a2753818766ceb2d721a0a9b4440ab845cca | PHP | BillyGbk/Projet2ndGM | /Projet-Billel 2ndGuerre/code/PHP/Model/utilisateurManager.class.php | UTF-8 | 3,153 | 3.0625 | 3 | [] | no_license |
<?php
class utilisateurManager
{
static public function add(utilisateur $utilisateur)
{
$db = DbConnect::getDb(); // Instance de PDO.
// Pr�paration de la requ�te d'insertion.
$q = $db->prepare('INSERT INTO utilisateur(name, pseudoUtilisateur, firstName, password, confirm, level ) VALUES(:name, ... | true |
13fd2b61b1a9a5d53f0c74dc0c730f5d1cbca109 | PHP | haxibiao/lighthouse | /src/Support/DriverManager.php | UTF-8 | 4,541 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
namespace Nuwave\Lighthouse\Support;
use Closure;
use Illuminate\Container\Container as Application;
use InvalidArgumentException;
use Nuwave\Lighthouse\Exceptions\InvalidDriverException;
use ReflectionClass;
/**
* NOTE: Implementation pulled from \Illuminate\Cache\CacheManager. Purpose is
* to serve as a ba... | true |
0c59f56e7d041f7622f2b8d18f91a1be7e06e46c | PHP | mac2000/torrents | /functions.php | UTF-8 | 5,051 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
function date_class($added)
{
if (is_string($added) || is_numeric($added)) {
$added = new DateTime($added);
}
$diff = $added->diff(new DateTime('NOW'));
return 'days-' . $diff->days;
}
function filter($text, $stopwords)
{
foreach ($stopwords as $stopword) {
... | true |
c1b42cb43ca9f7219f6afba72461af0ac8cdd37d | PHP | vin120/EmployeeSystem | /protected/components/CLoginController.php | UTF-8 | 1,375 | 2.578125 | 3 | [] | no_license | <?php
/**
* Controller is the customized base controller class.
* All controller classes for this application should extend from this base class.
*/
class CLoginController extends CController
{
/**
* @var string the default layout for the controller view. Defaults to '//layouts/column1',
* meaning usin... | true |
5827c39a213c8c261a3be5bb92ee95500936112a | PHP | sasha012/comentarios | /index.php | UTF-8 | 949 | 2.53125 | 3 | [] | no_license | <?php
$connection=mysqli_connect('localhost', 'root', 'root', 'COMENTARIOS')or die("mysql muere");
$resultado=$connection->query("SELECT texto FROM comentario");
?>
<!DOCTYPE html>
<html>
<head>
<title>Comentarios</title>
<link rel="stylesheet" type="text/css" href="estilos.css">
<meta charset="UTF-8">
... | true |
da6d01490f91661eb15d5d245ee2254b2cf54fe1 | PHP | xaviered/Libraries | /Server/Http/ContentXUrl.php | UTF-8 | 988 | 2.703125 | 3 | [] | no_license | <?php
namespace ixavier\Libraries\Server\Http;
use ixavier\Libraries\Server\Core\RestfulRecord;
/**
* Class ContentXURL adds functionality to URLs coming from the iXavier's `content` service
*
* @package ixavier\Libraries\Http
*/
class ContentXURL extends XURL
{
public $app;
public $type;
public $resource;
/... | true |
59d1c3898d7093cd04b6b050a06fe6321d3a3771 | PHP | Johel-Solis/web_site_BonAPetit | /src/Menu/Plate/Domain/ValueObjects/PlateDescription.php | UTF-8 | 663 | 3.09375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Src\Menu\Plate\Domain\ValueObjects;
use InvalidArgumentException;
final class PlateDescription
{
private $value;
public function __construct(string $description)
{
$this->validate($description);
$this->value = $description;
}
private func... | true |
0764a283a6aac4427205fd7be7f54a50eb83637b | PHP | pingidentity/pf-agentless-ik-sample-php | /sample-applications/AgentlessIdPSample/IdpSampleApp/Model/Authenticator.php | UTF-8 | 347 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | <?php
class Authenticator
{
public function authenticate($username, $password)
{
$fileContents = file_get_contents(CONFIGURATION . 'idp-sample-users.json');
foreach(json_decode($fileContents, true) as &$value)
{
if($value['username'] == $username && $value['password'] == $password)
{
return true;
... | true |
9315a2e166d29fb092b46baf0d903fde8f06ddfe | PHP | Lidemy/mentor-program-4th-BoisonChang | /homeworks/week11/hw1/index.php | UTF-8 | 5,207 | 2.65625 | 3 | [] | no_license | <?php
require_once('conn.php');
require_once('utils.php');
/*
1. 從 cookie 讀取 PHPSESSID(token)
2. 從檔案裡面讀取 session id 的內容
3. 放到 $_SESSION
*/
$username = NULL;
$users = NULL;
$roleid = NULL;
if(!empty($_SESSION['username']) ) {
$username = $_SESSION['username'];
$users = getUserFromUsername($_SES... | true |
9f05ae94a12efd4f8dfe64ef4c7a571648a3b1d9 | PHP | kubikubo96/crawler-curl-php | /app/controllers/StoreDataController.php | UTF-8 | 2,138 | 3.015625 | 3 | [] | no_license | <?php
namespace App\Controllers;
use App\Models\Model;
use App\Crawler\factory\CrawlerFactory;
use Exception;
class StoreDataController
{
public function index()
{
if (isset($_POST) && !empty($_POST)) {
$uri = $_POST['url'];
$domain = substr($uri, 0, 22);
$model = ... | true |
7bc25719add55fad7c5ea7474291203f5ba052e5 | PHP | LGD-Systems-Research/LGD-ERP-backend-api | /app/Components/Logger/LoggerManager.php | UTF-8 | 2,667 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Components\Logger;
use App\Components\Core\BaseManager;
use App\Components\Core\Result;
use App\Components\Logger\Repositories\LogRepository;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Query\Builder;
use Illuminate\Http\Request;
class LoggerManager extend... | true |
2e93953a373d38f3cea0980bc3ec98da861e95af | PHP | StepanBronovskyi/parser | /components/Db.php | UTF-8 | 624 | 2.78125 | 3 | [] | no_license | <?php
class Db {
public static function getConnection() {
$db = new PDO('mysql:host=localhost;dbname=parser', 'root', '');
if(!$db) {
$db->exec("CREATE TABLE `links` (
`id` int(11) NOT NULL,
`title` varchar(400) NOT NULL,
... | true |
91cc08e523e63833af96b403e130f4d5710bc503 | PHP | The-Handler-Library/HTML-Files | /signup.php | UTF-8 | 2,247 | 2.546875 | 3 | [] | no_license | <?php
include_once 'header.php';
?>
<section class="signup-form">
<h2>Sign up</h2>
<form action="signup.inc.php" method="post">
<input type="text" name="name" placeholder="Full name...">
... | true |
a480f3c0a604983857e0dbd465b7d84f9408dfc9 | PHP | saintajora/restcountries | /database/migrations/2019_09_07_170256_create_countries_tables.php | UTF-8 | 1,394 | 2.703125 | 3 | [] | no_license | <?php
/**
* Migration for Rest Countries cache
*
* @author Ben Goetzinger
* @package RestCountries
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCountriesTables extends Migration {
/**
* Run the migrations.
*
... | true |
256e515bc75a0a07e68b5a14a53a34b87292c24c | PHP | benwhite10/Tracker | /includes/session_functions.php | UTF-8 | 2,883 | 2.703125 | 3 | [] | no_license | <?php
$include_path = get_include_path();
//include_once $include_path . '/public_html/classes/AllClasses.php';
function sec_session_start(){
$session_name = 'sec_session_id';
$secure = false;
// This stops Javascript being able to access the session id
$httponly = true;
// Forces sessions to only ... | true |
b2070c11c3c1bae7569a53888b772da34a343187 | PHP | pwebftik/c3Responsi | /Dicky_Ananda_Putra_054/modul6/percabangan dan perulangan.php | UTF-8 | 1,232 | 3.8125 | 4 | [] | no_license | <?php
$t = date("H"); //percabangan latihan 1
if($t < "20"){
echo "Have a good day!";
}
echo "<br><br>";
$t = date("H");//latihan 2
if($t < "20"){
echo "Have a good day!";
}
else{
echo "Have a good night!";
}
echo "<br><br>";
$t = date("H");//latihan 3
if($t < "10"){
echo "Have a good morning!... | true |
5fffd5943dcf2971dab81ef92b20c08ff3bb9171 | PHP | chiquitto/AulasUnipar2015 | /tads-2serie-aplicacoes-web/mysqli/array-boolean-a.php | UTF-8 | 125 | 2.703125 | 3 | [] | no_license | <?php
$a = array();
//$a[] = null;
//$a = (boolean) $a;
//var_dump($a);
if (!$a) {
echo "Array esta vazio";
} | true |
e7d7c96c24984165f8292c50f7367e69b8e88431 | PHP | piotr04j/php_desgin_patterns | /behavioral/Command/User.php | UTF-8 | 201 | 2.671875 | 3 | [] | no_license | <?php
namespace behavioral\Command;
abstract class User extends Command
{
protected $tv;
function __construct(TV $tv)
{
$this->tv = $tv;
}
abstract function execute();
}
| true |
ec9c44a3e9d9fc8321e6c7e80e17efe824714167 | PHP | hackeru2/sweetch | /app/models/Data.php | UTF-8 | 1,510 | 2.859375 | 3 | [] | no_license | <?php
require_once "DB.php";
class Data
{
private $db;
public $data;
public $delimiter = 10000;
public function __construct()
{
$this->db = new Database;
}
public function upload()
{
set_time_limit(10000); //
$file = 'c:/tmp/Data8277.csv';
// $outp... | true |
76895510e8a3aa59e5a089fe9afe9734b41ee489 | PHP | zirwang/FinalProject | /resetPassword.php | UTF-8 | 1,651 | 2.859375 | 3 | [] | no_license |
<!DOCTYPE html>
<html lang="en">
<head>
<title> Reset Password </title>
<meta charset="UTF-8">
<style>.error {color: #FF0000;}</style>
<link rel="stylesheet" type="text/css" href="login.css">
</head>
<body>
<?php
include "checkLogInStatus.php";
?>
<h1>Reset Password</h1>
<form method="POST" action ="<?php echo ... | true |
339f19e0f7d6d7a1afc902f616c2d60a215a1df3 | PHP | giriraj1995/API_Project_Edyst | /myslimsite/app/api/books.php | UTF-8 | 387 | 2.515625 | 3 | [] | no_license | <?php
//display all records
$app->get('/api/books',function() {
echo "Welcome to books ";
require_once('dbconnect.php');
$query="select * from books order by id";
$result=$mysqli->query($query);
while($row= $result->fetch_assoc()){
$data[]=$row;
}
if(isset($data)){
header('Content-Type: application/j... | true |
e066cda9fda52695b35ff63c6a3c7328b435d85a | PHP | frogyboy/project | /src/Missions/Admin/Api/UserApi.php | UTF-8 | 1,817 | 2.546875 | 3 | [] | no_license | <?php namespace Application\Missions\Admin\Api;
use Application\Entity\User;
use Atomino\Gold\Gold;
use Atomino\Gold\GoldApi;
use Atomino\Gold\GoldSorting;
use Atomino\Gold\GoldView;
use Atomino\Carbon\Database\Finder\Filter;
use Atomino\Carbon\Entity;
#[Gold(User::class, 5, true)]
class UserApi extends GoldApi {
p... | true |
25a671d92a6f9918bde55251edbaff29669d95aa | PHP | TKragsberger/GryphonSecurityRestFullWebservice | /connection.php | UTF-8 | 1,062 | 2.84375 | 3 | [] | no_license | <?php
class Connection {
public function getConnection() {
// $dbHost = 'localhost';
// $user = 'root';
// $password = '';
// $db = 'kragsberger_dk';
// $dbHost = 'kragsberger.dk.mysql';
// $user = 'kragsberg... | true |
a575f85b31eee70f263394faf428f1ac221b4936 | PHP | marcinKuliszewski/poczter | /app/Http/Controllers/CmsController.php | UTF-8 | 2,881 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\CMS;
use Illuminate\Support\Facades\DB;
/**
* System zarządzania treścią .
*/
class CmsController extends Controller
{
public function __construct()
{
$this->middleware('auth');
... | true |
00c7b06f280aba5fc2d6bb781de27e593f2ae248 | PHP | xiaotudouer/practice | /TP/Application/Admin/Controller/DeptController.class.php | UTF-8 | 3,688 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: xx
* Date: 17/3/1
* Time: 09:55
*/
//声明命名空间
namespace Admin\Controller;
//引入父类控制器元素
use Think\Controller;
//定义添加控制器并继承父类控制器
class DeptController extends Controller
{
//定义部门列表showList方法
public function showList()
{
//这个方法有两个业务逻辑,获取数据和展示模板
//实例化父... | true |
e45c544655a4a4f3339c9882e314b3de97da3192 | PHP | thainbahuy/alego | /app/Http/Requests/ContactRequest.php | UTF-8 | 1,569 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ContactRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get th... | true |
10c3801ca5a1eeb68fb3dad18aa0f770c0150e04 | PHP | jean8mathieu/UrlShortnerV2 | /app/Console/Commands/createAdminAccount.php | UTF-8 | 1,253 | 3 | 3 | [] | no_license | <?php
namespace App\Console\Commands;
use App\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Hash;
class createAdminAccount extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'create-admin {username} {pass... | true |
727cdfed6a92b5cfba7d5762f18286a42fc55612 | PHP | brzuchal/exception-fixer | /tests/Example.php | UTF-8 | 725 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace Brzuchal\ExceptionFixer\Tests;
class Example
{
public static function test(): array
{
try {
$file = __FILE__; $line = __LINE__; throw ExampleException::create(...\func_get_args());
} catch (ExampleException $exception) {
return [... | true |
832a114c8df6a043e0e402a454ee4de3c078ca4b | PHP | JackMandrake/gwith | /gwith_back/src/Controller/StoryController.php | UTF-8 | 5,162 | 2.625 | 3 | [] | no_license | <?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use App\Entity\Story;
use App\Form\StoryType;
use App\Repository\StoryRepository;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Confi... | true |
f702e95dda2ab32a3ff12c96554350974c1c7cfa | PHP | dlin-me/getopt | /tests/Dlin/Getopt/Tests/GetoptTest.php | UTF-8 | 6,734 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/**
*
* User: davidlin
* Date: 12/04/14
* Time: 11:15 PM
*
*/
namespace Dlin\Getopt\Tests;
use Dlin\Getopt\Getopt;
use Dlin\Getopt\OptionDefinition;
class GetoptTest extends \PHPUnit_Framework_TestCase
{
/**
* Assert that two arrays are equal. This helper method will sort the two arrays before c... | true |
f2b5fed75751afed06c36a848ceaf73103e29252 | PHP | crazymeeks/php-mongodb | /src/MongoDB/Model/QueryBuilder/WhereQueries.php | UTF-8 | 4,724 | 2.90625 | 3 | [] | no_license | <?php
namespace Crazymeeks\MongoDB\Model\QueryBuilder;
use MongoDB\BSON\Regex as MongoRegex;
trait WhereQueries
{
/**
* Construct a where equal query
*
* @param array $args
* [
* 'field',
* 'value'
* ]
*
... | true |
b918590dd6898bcdffeecc856001f0aec50d636a | PHP | AT-PHPIntership/winter-2018-shoes-shop | /app/Models/Promotion.php | UTF-8 | 569 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Promotion extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'percent', 'description', 'max_sell', 'total_sold', 'start_date', 'end_date',
];... | true |
5b08a52c5d81968b8576a8ba0bcb0d258f4364f4 | PHP | Manjushas123/Laravel_5.3 | /NPAT/app/Services/Auth/AclAuthentication.php | UTF-8 | 6,409 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Services\Auth;
use App\Repositories\PermissionRepository as PermissionRepository;
use App\Models\User as User;
use Session;
use App\Repositories\PermissionDomainObjectRepository as PermissionDomainObjectRepository;
use App\Services\ReflectionClassService;
use App\Repositories\RoleUserRepository;
u... | true |
2e104cabf401396b1e1dbaf083ab0f6f4310f63a | PHP | weiyuexin/107lab_SummerStudy | /暑假第三次培训/代码及说明/zhangjiaoli/php/newAction.php | UTF-8 | 4,603 | 2.578125 | 3 | [] | no_license | <?php
header('content-type:text/html;charset=utf-8');
$mysqli=new mysqli('localhost','root','air0729.','test');
if($mysqli->connect_errno){
die('CONNECT ERROR:'.$mysqli->connect_error);
}
include_once 'tool.inc.php';
$link=connect();
//验证是否登录
include_once 'is_manage_login.php';
$mysqli->set_charset('utf8'... | true |
b82c4425b5a65b545972dd8bc931a952331d4b77 | PHP | cliffordru/Northside-2014 | /index3.php | UTF-8 | 4,828 | 2.6875 | 3 | [] | no_license | <?php
// load the API Client library
include "eventbrite.php";
// http://www.eventbrite.com/api/key/
// Eventbrite user_key (OPTIONAL, only needed for reading/writing private user data)
// http://www.eventbrite.com/userkeyapi
$authentication_tokens = array('app_key' => 'HJRPHMRZZ7HPCASJJT',
... | true |
5a05ca9584561d0e002d88fce3f451bb439b370b | PHP | tongtienanh/Cooking | /platform/packages/feed/src/FeedRss.php | UTF-8 | 11,885 | 2.609375 | 3 | [] | no_license | <?php
namespace Workable\Feed;
use Illuminate\Contracts\Cache\Repository as CacheRepository;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Routing\ResponseFactory as ResponseFactory;
use Illuminate\Contracts\View\Factory as ViewFactory;
use Illuminate\Filesystem\Filesystem a... | true |
cc14af1a3103357dde4eaad0964929cbb49a2550 | PHP | dbalabka/playground | /app/Model/PhpStanAnalyzer.php | UTF-8 | 7,202 | 2.5625 | 3 | [] | no_license | <?php declare(strict_types = 1);
namespace App\Model;
use Nette\Utils\FileSystem;
use Nette\Utils\Json;
use Symfony\Component\Process\Process;
class PhpStanAnalyzer
{
/** @var CodeSanitizer */
private $codeSanitizer;
/** @var string */
private $phpBin;
/** @var string */
private $phpStanDir;
/** @var stri... | true |
47f1b850a9b16c78a946eead47884c3d0ec763a4 | PHP | Ruijan/ExpensesWebsite | /BackEnd/test/Database/DBCurrenciesTest.php | UTF-8 | 3,194 | 2.765625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: MSI-GP60
* Date: 12/4/2018
* Time: 10:08 PM
*/
namespace BackEnd\Tests\Database;
use BackEnd\Database\DBCurrencies\DBCurrencies;
use BackEnd\Database\DBCurrencies\UndefinedCurrencyException;
use BackEnd\Database\InsertionException;
class DBCurrenciesTest extends TableCre... | true |
6fff22f5306b785dffa7f8a3e51146378ba5f794 | PHP | Shikhar03Stark/samadhaan | /officer.php | UTF-8 | 7,371 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
session_start();
require 'connectdb.inc.php';
use Parse\ParseClient;
use Parse\ParseException;
use Parse\ParseQuery;
use Parse\Exception;
use Parse\ParseObject;
use Parse\ParseUser;
$baseurl = "http://localhost/samadhaan/";
if(isset($_SESSION['username']) && isset($_SESSION['role']) && strcmp($_SESSIO... | true |
cb51da5db60018f3383adb765d2d5f3dbb6ceff0 | PHP | Nemanja985/CRUD | /vendor/prggmr/xpspl/modules/network/api.php | UTF-8 | 873 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace network;
/**
* Copyright 2010-12 Nickolas Whiting. All rights reserved.
* Use of this source code is governed by the Apache 2 license
* that can be found in the LICENSE file.
*/
/**
* Creates a new socket connection.
*
* @param string $address Address to make the connection on.
* @param str... | true |
819a414ffa8ab29cd250cc2bfb6e3fe30f6ec3c4 | PHP | monkeecreate/KaizenCMS | /helpers/Form/textarea.php | UTF-8 | 864 | 2.84375 | 3 | [] | no_license | <?php
class Form_textarea extends Form_Field
{
private $_options;
private $_setting;
/* __constructor */
public function Form_textarea($aSetting) {
$this->_setting = $aSetting;
$this->_options = $this->getOptions($aSetting["type"]);
}
public function html() {
$sHTML = $this->getLabel($this->_setting["ti... | true |
4f5e4ed06b66c4f74328dfa7caa3d07bbb477793 | PHP | jparkhurst3/TaskReset | /view_tasks.php | UTF-8 | 3,709 | 2.875 | 3 | [] | no_license | <?php
session_start();
require "header.php";
//TODO: Check if the URL has the 'saved' keyword, from coming from RESET?
//Check that user is authenticated
if (is_null($_SESSION["session_userID"])) {
echo "User is not authenticated. Redirecting to login page...";
header("Location: ../login.php?");
exit();
} ... | true |
1beb194523a21005c67b9237e66f70c64412f505 | PHP | angelquijano/FeriaInstituciones | /vistaInstituciones.php | UTF-8 | 1,540 | 2.640625 | 3 | [] | no_license | <style>
table, tr, th, td{
border: 1px solid;
}
</style>
<?php
include_once "validaSesion.php";
sesionValida();
function presentaInstituciones($num_rows, $nombreinstitucion, $nombreproyecto, $horasproyecto, $vacantesproyecto, $vacantespermitidasproyecto, $descripcionproyecto, $contactoinstitucion) {
echo... | true |
2d016d9285d3714d8ff5a38d22e2b3eca20ee5d1 | PHP | OyugiK/apple_mrx | /apple/register.php | UTF-8 | 9,574 | 2.71875 | 3 | [] | no_license | <?php
# start the session
#ob_start();
#error_reporting(E_ALL);
error_reporting(0);
session_start();
# imports
require_once("AppleService.php");
require_once 'Klogger.php';
error_reporting(0);
$flash = isset($_SESSION['flash-message']) ? $_SESSION['flash-message'] : null;
$token = isset($_SE... | true |
410730d0f2533a3303ee76d06758613980ff8523 | PHP | HimanshiJain/PokerGame | /www/Contracts/Game.php | UTF-8 | 831 | 2.921875 | 3 | [] | no_license | <?php namespace Sixteenstudio\Poker\Contracts;
/*
* This file is part of the Poker package.
*
* (c) Matthew Collison <matthew@sixteenstudio.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
interface Game {
/**
* The... | true |
8379aa98a863dac66641e0dca57e640a9c794d0b | PHP | iPrior/winnetou | /src/GitLogParser.php | UTF-8 | 1,844 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Winnetou;
class GitLogParser
{
/**
* @var GitLogVO[]
*/
protected $data = [];
/**
* @var GitLogParserConfigVO
*/
protected $config;
/**
* GitLogParser constructor.
* @param GitLogParserConfigVO $config
* @throws \Exception
*/
public f... | true |
b8b3e6b16cb01ead61069cbdba3c96c50ecb0a03 | PHP | eskinderg/laravelSocial | /app/Interfaces/IDocument.php | UTF-8 | 172 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Social\Interfaces;
interface IDocument
{
public function Id();
public function Title();
public function CurrentTime();
}
?>
| true |
2dfcc79f5abc86de7aae7eb1e99267569f27e4b0 | PHP | ProsWeb/hexlet_code_PHP | /random.php | UTF-8 | 729 | 3.359375 | 3 | [] | no_license | <!-- Измените функцию random из видео так, чтобы можно было обнулять сгенерированную последовательность.
Пример:
$seq = random(3);
$result = $seq(); // 22
$seq(); // 6
$seq(); // 23
$seq("reset");
$result == $seq(); // 22
-->
<?php
function random($seed)
{
$init = $seed;
return function ($reset = null) ... | true |
4389bd70009b69e24a55599c689a4b098bbe2aa4 | PHP | DKvistgaard/dkvistgaard | /includes/backend/theme_core_setup.php | UTF-8 | 3,680 | 2.6875 | 3 | [] | no_license | <?php
/**
* Sets up theme defaults and registers the various WordPress features that
* the HTML24 Theme supports.
*
* @uses register_nav_menu() To add support for navigation menus.
* @uses add_theme_support() To add support for post thumbnails.
*
*/
add_action( 'after_setup_theme', function () {
// This them... | true |
3135e5bd5edeb5c5b5db04f8024f4a5dba3e2ee0 | PHP | damisau/devriks | /lib/model/.svn/text-base/RikssymRegionalHDI.php.svn-base | UTF-8 | 4,552 | 2.65625 | 3 | [] | no_license | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
class RikssymRegionalHDI extends RikssymIndicator {
public $population;
public $hdi;
public $unitSymbol = "";
public $decimals = 4;
public function __construct() {
}
public function pr... | true |
440b6d7f33322f8df39c443fc2fe87b497fcb209 | PHP | donrivera/mySMS | /cd/ep_adding_process.php | UTF-8 | 40,033 | 2.5625 | 3 | [] | no_license | <?php
ob_start();
session_start();
include_once '../includes/class.Main.php';
include("../includes/saudismsNET-API.php");
//Object initialization
$dbf = new User();
if($_REQUEST['action']=='insert')
{
/*
$sms_gateway = $dbf->strRecordID("sms_gateway","*","");
//Current date
$current_date = date('Y-m-d');
//G... | true |
bf63d07554ad2826b1b2a8af9da2d5dff3d5beb2 | PHP | ItsMeDiegie/Blikjes | /controllers/settings.php | UTF-8 | 757 | 2.65625 | 3 | [] | no_license | <?php
function getSettingsData() {
global $conn;
$sql = "SELECT * FROM settings ORDER BY id DESC LIMIT 1;";
$result = mysqli_query($conn, $sql);
$UserSettings = mysqli_fetch_all($result, MYSQLI_ASSOC);
return $UserSettings;
}
if (isset($_POST['saveSe... | true |
e1d83612c5398fa860d90f81f1937da93bd99f13 | PHP | cuongmanh1106/lv_gym | /admin/models/m_feedback.php | UTF-8 | 1,071 | 2.640625 | 3 | [] | no_license | <?php
require_once("database.php");
class M_feedback extends database {
public function read_all_feedback() {
$sql = "select * from feedback where status != 2 order by status asc, id desc ";
$this->setQuery($sql);
return $this->loadAllRows();
}
public function read_feedback_by_id($id) {
$sql = "select * ... | true |
5a40ecc585acae2e37601d4e566d971dd5ad6239 | PHP | zanderdk/htdocs | /henrik/er/tyk/app/Controller/Component/FileComponent.php | UTF-8 | 7,971 | 3.203125 | 3 | [] | no_license | <?php
App::uses('Component', 'Controller');
class FileComponent extends Component
{
// Uploads a file to the server
public function uploadFile($file, $fileName, $fileExtension = 'file', $isImage = false, $path = null)
{
// If a file was given
if(FileComponent::fileGiven($file))
{
// Check if it is an imag... | true |
b6bad93071cb072afa854c0efd66369ff0b155e0 | PHP | alexBluebay/will | /application/modules/admin/models/components/UserModel.php | UTF-8 | 2,303 | 2.59375 | 3 | [] | no_license | <?php
class Admin_Model_Components_UserModel
{
/**
*
* @return array/object with the list of links
*/
public function listUsers()
{
$dbTableAdv = new Admin_Model_DbTable_AdminUsers();
$select = $dbTableAdv->select()
->from(array('u' => 'admin_users'),... | true |
ae5bed7b76299df5452bc40e179a31a262146311 | PHP | marianotbh/Cuatrimestre-III | /Cuatrimestre III/Programacion/Guia/Parte 3/app16.php | UTF-8 | 723 | 4.21875 | 4 | [] | no_license | <?php
echo "<h3>Aplicación Nº 16 (Invertir palabra)</h3>
Realizar el desarrollo de una función que reciba un Array de caracteres y que invierta el orden de las letras del Array.
Ejemplo: Se recibe la palabra “HOLA” y luego queda “ALOH”. <br><br>";
$arr = array('H','O','L','A',' ','M','U','N','D','O','!... | true |
e018125ac31ea6cb4e4d0aa765166ae87b4a66b3 | PHP | crocodile2u/tinyorm | /test/SelectTest.php | UTF-8 | 7,233 | 2.515625 | 3 | [] | no_license | <?php
/**
* Copyright (c) 2004-2015, EMESA BV
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are PROHIBITED without prior written permission from
* the author. This product may NOT be used anywhere and on any computer
* except the server platform of ... | true |
39e9891f812cfe093852b45d47407becc3330723 | PHP | juzna/php-enhancer | /src/Enhancer/Builder/Marker.php | UTF-8 | 815 | 3.203125 | 3 | [] | no_license | <?php
namespace Enhancer\Builder;
use Nette;
use Enhancer\Utils\PhpParser;
/**
* Marks a place in output
*
* @author Jan Dolecek <juzna.cz@gmail.com>
*/
class Marker
{
/** @var string Optional name, for debugging */
public $name;
/** @var int Position of the parser where this marker is placed */
public $par... | true |
632bcb0e94877756a134523fcacf227586d377f7 | PHP | webflo/d8-project-template | /public/drush/cmi.drush.inc | UTF-8 | 1,838 | 2.515625 | 3 | [] | no_license | <?php
/**
* @file
* CMI related drush commands.
*/
/**
* Implementation of hook_drush_command().
*/
function cmi_drush_command() {
$items = array();
$items['config-export'] = array(
'description' => 'Dump active configuration to the export directory.',
'options' => array(),
'examples' => array()... | true |
3fb9b180f33acf2b3ba11be7139b3ea0012e5381 | PHP | Brian-wKicheu/simple-php-crude | /index.php | UTF-8 | 2,431 | 2.875 | 3 | [] | no_license | <?php include('server.php');
//fetch records to be updated
if(isset($_GET['edit'])){
$id = $_GET['edit'];
$edit_state = true;
$rec = mysqli_query($db,"SELECT * FROM info WHERE id = $id" );
$record = mysqli_fetch_array($rec);
$name = $record['name'];
$address = $re... | true |
5f18a46f70f3c6a06259fee509831706dc7c8822 | PHP | AnastasyaChe/neovoxTestProject | /base/Session.php | UTF-8 | 820 | 2.953125 | 3 | [] | no_license | <?php
namespace app\base;
class Session
{
public function __construct()
{
session_start();
}
/**
* get
*
* @param mixed $key
* @return void
*/
public function get($key)
{
return $_SESSION[$key];
}
/**
* set
*
* @p... | true |
72dd737399e8169915d51516739774cb5146fce3 | PHP | awebdesign/opencore | /Framework.php | UTF-8 | 3,298 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/*
* Created on Tue Dec 10 2019 by DaRock
*
* Aweb Design
* https://www.awebdesign.ro
*
*/
namespace OpenCore;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|---------------------------------------------... | true |
f09c1c0038b7d2c7f84ba6e3a37459a2884884c8 | PHP | luigif/WsdlToPhp | /samples/amazon-simpledb/Domain/Result/AmazonSimpleDBTypeDomainMetadataResult.php | UTF-8 | 4,285 | 2.796875 | 3 | [] | no_license | <?php
/**
* Class file for AmazonSimpleDBTypeDomainMetadataResult
* @date 10/07/2012
*/
/**
* Class AmazonSimpleDBTypeDomainMetadataResult
* @date 10/07/2012
*/
class AmazonSimpleDBTypeDomainMetadataResult extends AmazonSimpleDBWsdlClass
{
/**
* The ItemCount
* @var string
*/
public $ItemCount;
/**
* T... | true |
1d585d02902f0e2cf783154aad0bbcd369c4bbfc | PHP | DocKob/PHP-Games-Archives | /Bengine/lib/Recipe/Template/Adapter/Dwoo.php | UTF-8 | 4,752 | 2.6875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | <?php
/**
* Dwoo template adapter.
*
* @package Recipe 1.2
* @author Sebastian Noll
* @copyright Copyright (c) 2009, Sebastian Noll
* @license Proprietary
* @version $Id: Dwoo.php 8 2010-10-17 20:55:04Z secretchampion $
*/
class Recipe_Template_Adapter_Dwoo extends Recipe_Template_Adapter_Abstract
{
/**
* T... | true |
5e47d5dce52d4657e5ea537b7443dd3bd0dc00ca | PHP | focusnic15/barber.loc | /php/db_connect.php | UTF-8 | 469 | 2.6875 | 3 | [] | no_license | <?php
$localhost = "localhost";
$db = "leviafan";
$user = "root";
$password = "root";
$mysqli = new mysqli($localhost, $user, $password, $db);
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if (!$mysqli->set_charset("utf8... | true |
996bf2763c1cbe4e3c6b553a5a934b5d7d0145b5 | PHP | joaquingamboa/house | /clases/classQuery.php | UTF-8 | 3,409 | 2.75 | 3 | [] | no_license | <?php
require_once('Conexion.php');
class Query extends Conexion{
var $sql = NULL;
var $msj_query = NULL;
var $result = NULL;
function __construct(){
parent::__construct();
parent::MET_conectar();
}//end function
function __get... | true |
305e86fe9ebf5abd4e1932e3bba73093d1ebcb10 | PHP | nicoto/CE-2416-FALL-2014 | /class-2/04-variables.php | UTF-8 | 134 | 2.84375 | 3 | [] | no_license | <html>
<head></head>
<body>
<?php
$txt = “Hello World!”;
$number = 16;
echo $txt;
echo “<p>”;
echo $number;
?>
</body>
</html> | true |
adeb03f73c8b325da2a0a36bbedd42efd0385497 | PHP | Qzwini/warith | /documents/logic/uploadcarousel.php | UTF-8 | 1,145 | 2.8125 | 3 | [] | no_license | <?php
ob_start();
?>
<?php
$msg = "";
include('db.php');
// If upload button is clicked ...
if (isset($_POST['submit'])) {
print_r($_POST);
$filename = $_FILES["imgcar"]["name"];
$tempname = $_FILES["imgcar"]["tmp_name"];
$title = $link->real_escape_string(trim($_POST['title']));
$description = $li... | true |
7f058a07139c97be5c9042f1f051b7e03375cddf | PHP | BytePredator/ProgWeb_CalcoloCodiceFiscale | /IO.php | UTF-8 | 888 | 3.78125 | 4 | [] | no_license | <?php
class IO implements IOInterface{
public function getSurname():string{
echo "Surname: ";
return readline();
}
public function getName():string{
echo "Name: ";
return readline();
}
public function getSex():string{
echo "Sex(M/F): ";
return re... | true |
ededf084b5b52216d11fdb040b7a6367d96c1712 | PHP | sashasimkin/php-libs | /lib/ArrayWrapper.php | UTF-8 | 453 | 3.46875 | 3 | [] | no_license | <?php
/**
* Wrap array with useful methods
*
* @author Sasha Simkin <sashasimkin@gmail.com>
*/
class ArrayWrapper {
private $_store;
public function __construct($haystack){
$this->_store = is_array($haystack) ? $haystack : array();
}
public function __get($name) {
return isset($th... | true |
72a90d03f01d5dfe66ee81aa511f5dc8b9c8d8c8 | PHP | PouleR/spotify-login | /src/Entity/SolvedLoginChallenge.php | UTF-8 | 919 | 3.09375 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace PouleR\SpotifyLogin\Entity;
/**
* Class SolvedLoginChallenge
*/
class SolvedLoginChallenge
{
private int $duration;
/**
* @param array $suffix
* @param int $iterations
*/
public function __construct(private readonly array $suffix, private readon... | true |
11102299c95592205b6056d054c8ca0e6a50c9cc | PHP | laddi786/Stationery-Ordering-app-for-ATMC | /admin/add-staff.php | UTF-8 | 4,526 | 2.515625 | 3 | [] | no_license | <?php
include 'header.php';
include 'sidebar.php';
?>
<?php
if (isset($_POST['add-staff']) && !empty($_POST))
{
$username=$_POST['username'];
$email=$_POST['email'];
if (empty($username) || empty($email)|| empty($_POST['password']))
{
$error = "please fi... | true |
fa3812797b899445dfd1e20f940becd7afd28de0 | PHP | borjaguardiola/tubluedoc-test | /src/voice demos/php/4. record names of conference participants/startConference.php | UTF-8 | 2,436 | 2.65625 | 3 | [] | no_license | <?php
if (($stream = fopen('php://input', "r")) !== FALSE){
$bodyContent = stream_get_contents($stream);
}
$state = $_GET['state'];
fwrite($fh2, date(DATE_RFC822) . " startConference.php State " . $state . "\n");
// get event data
$obj = json_decode($bodyContent);
$eventName = $obj->{'eventName'};
$callerId = $o... | true |
8c9fa4d153ad84e0419861784c963069089cc42a | PHP | engotheta/hotel-assistant | /app/Http/Controllers/RoomTypeController.php | UTF-8 | 4,442 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\RoomType;
use App\Branch;
use App\Department;
use Illuminate\Http\Request;
class RoomTypeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index( Branch $branch = ... | true |
38a14dc2c497e7d112c5ad9a03d50995304bd971 | PHP | Elratauru/mvc-template | /src/models/user.php | UTF-8 | 876 | 3 | 3 | [
"MIT"
] | permissive | <?php
class User {
public function __construct() {
}
public function view() {
//Get DB.
$db = new db;
$dbh = $db->connect();
$stmt = $dbh->prepare("SELECT * from users");
$stmt->bindParam(':name', $name);
$stmt->execute();
//Retu... | true |
875d0944a3b46dfb53651b6036d3fdb4f3773166 | PHP | robertosantos/micro-cms | /src/App/Controller/User.php | UTF-8 | 5,032 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Controller;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class User extends \App\Controller\Main
{
/**
*
* Build list user
*
* @param Application $app
* @param Request $request
* @return Respo... | true |
7c0a6a729ad515d3a3becdfe8773ae6718251eb2 | PHP | CTIGuarulhos/SEventosIFSP | /modulos/anais.php | UTF-8 | 1,302 | 2.609375 | 3 | [] | no_license | <?php
$query = "SELECT SEMTEC, NOME FROM edicao ORDER BY NOME DESC";
$result = $DB->Query($query);
?>
<h1>Anais dos eventos<span class="imgH1 geral"></span></h1>
<br/>
<p>
Aqui você encontra todos os anais e trabalhos publicados.
</p>
<?php
while ($x = mysql_fetch_array($result)):
$SEMTEC = $x['SEMTEC'];
... | true |
207985af40c710d6079adb63bf87419db17b5f19 | PHP | cryptobuks/blockchain-explorer-laravel | /app/Infrastructure/ExternalData/ArkClientService.php | UTF-8 | 821 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Infrastructure\ExternalData;
use App\Infrastructure\ExternalData\Exceptions\ArkClientApiException;
use App\Infrastructure\ExternalData\Requests\OperationRequest;
use GuzzleHttp\Exception\TransferException;
class ArkClientService
{
/** @var ArkClientApi */
private $arkClientApi;
fun... | true |
cc4fface11a524360ae6bef2f18ed5980a8c761c | PHP | netgloo/benjamin_core | /src/Support/helpers.php | UTF-8 | 3,785 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
use Netgloo\BenjaminCore\Services\LocaleLinkService;
use Netgloo\BenjaminCore\Services\LocaleService;
/**
* Given the language key $lang, will return a link for switching to $lang
* remaining on the current page path.
*
* The current page path is taken from the LocaleLinkService.
*
* If the multi-langu... | true |
27647b21be5967ba24ed97c2b536e7af74147440 | PHP | alecrabbit/php-console-spinner | /src/Spinner/Core/A/AFloatValue.php | UTF-8 | 1,774 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace AlecRabbit\Spinner\Core\A;
use AlecRabbit\Spinner\Contract\IFloatValue;
use AlecRabbit\Spinner\Exception\InvalidArgumentException;
abstract class AFloatValue implements IFloatValue
{
protected float $value;
/**
* @throws InvalidArgumentException
*/
pub... | true |
35410548bba14f15e4bf02952665120bf7ad1289 | PHP | zanderwar/silverstripe-tmdb | /code/system/Search/Movies.php | UTF-8 | 1,805 | 2.65625 | 3 | [
"ISC"
] | permissive | <?php
namespace TMDB\Search;
use TMDB\Request\StrictPageRequest;
class Movies extends StrictPageRequest
{
/**
* Endpoint
*
* @var string
*/
protected static $endpoint = "search/movie";
/**
* The parameters accepted by this endpoint
*
* @var array
*/
protected ... | true |
0c2a7c45f019200de92b5e2181971296ced7be43 | PHP | dhikanbiya/frengers | /includes/options/library/development/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_File.php | UTF-8 | 2,082 | 2.890625 | 3 | [
"CC0-1.0",
"MIT"
] | permissive | <?php
/**
* Admin Page Framework
*
* http://en.michaeluno.jp/admin-page-framework/
* Copyright (c) 2013-2014 Michael Uno; Licensed MIT
*
*/
/**
* Provides utility methods dealing with files which do not use WordPress functions.
*
* @since 3.4.6
* @extends AdminPageFramework_Utility_URL
* @packag... | true |
b9b0d4448a4665930468af898d40ddb25e978a59 | PHP | jonghoon0421/Piscine_PHP | /d02/ex00/another_world.php | UTF-8 | 258 | 2.90625 | 3 | [] | no_license | #!/usr/bin/php
<?php
if ($argc < 2)
return (0);
$arr = preg_split("/[\s\t]/", $argv[1]);
$arr = array_values(array_filter($arr));
$len = count($arr);
for ($i = 0; $i < $len; $i++)
{
if ($i + 1 == $len)
echo "$arr[$i]\n";
else
echo "$arr[$i] ";
}
?>
| true |
d296ff8f0feb0316604a15b8641bc0977d83bea9 | PHP | chillerlan/php-qrcode | /src/Output/QRImagick.php | UTF-8 | 5,102 | 2.8125 | 3 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-4.0"
] | permissive | <?php
/**
* Class QRImagick
*
* @created 04.07.2018
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/
namespace chillerlan\QRCode\Output;
use chillerlan\QRCode\Data\QRMatrix;
use chillerlan\Settings\Set... | true |
e7328d425e0bf52d4f2d6c2bd721d1bacce22482 | PHP | nikamachi3/shualeduri | /shualeduri/delete.php | UTF-8 | 680 | 2.703125 | 3 | [] | no_license | <?php
include "index.php";
$query = "SELECT ID, Dasaxeleba FROM recipe";
$result = mysqli_query($conn, $query);
if(isset($_GET['remove'])){
// echo $_GET['remove'];
$remove = $_GET['remove'];
$delete_query = "DELETE FROM recipe WHERE ID='$remove'";
mysqli_query($... | true |
31af11e5e903ae7e54b3bba8de4092be3608b70d | PHP | IrvinSanchez14/api-jws | /api/objects/empresa.php | UTF-8 | 4,634 | 2.734375 | 3 | [] | no_license | <?php
class Empresas
{
private $conn;
private $table_name = "empresas";
public $IdEmpresa;
public $Nombre;
public $Razon_Social;
public $Direccion;
public $Telefono;
public $Correo;
public $Estado;
public function __construct($db)
{
$this->conn = $db;
}
function readAll()
{
$query ... | true |