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
2902986c51db62c0c921a5a0f99956fa578f893f
PHP
Heichichi/Site
/Old files/list_members.php
UTF-8
1,152
3.1875
3
[]
no_license
<?php //Delete button for testing echo '<input class="button" type="submit" name="delete" value="delete">'; //List members echo "<div class='table-responsive'><table class='table table-striped'>"; echo "<tr><th>Delete</th><th>Id</th><th>Firstname</th><th>Lastname</th><th>Position</th></tr>"; class TableR...
true
3f143951061a712e3a2952b7731d41769398c42e
PHP
pondooo5800/yeejub
/application/libraries/MY_Parser.php
UTF-8
5,402
2.796875
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Overrides the CI Template Parser to allow for multiple occurrences of the * same variable pair * */ class MY_Parser extends CI_Parser { /** * Parse a template * * Parses pseudo-variables contained in the specified ...
true
7c9a3475a73f2318e54233d288323609c2030eaa
PHP
harry0102/majiang
/Server/Hu.php
UTF-8
6,180
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wen * Date: 2019/4/23 * Time: 10:34 */ namespace Server; class Hu { const PATH_RIGHT =1; const PATH_PAIR = 2; const PATH_PENG = 3; const PATH_GANG = 4; const PATH_INDEPEND = 5; public $pairs = array(); public $pros = array(); public $tiles...
true
42e84f41a4abc1f3422398a8bb7e412fd3409141
PHP
robelsust/mynewtest
/ajax-fr/register.php
UTF-8
3,613
2.53125
3
[]
no_license
<?php error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', 1); $email = $_POST['email']; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $err++; $err_msg .= "Invalid E-Mail address.\r\n"; } $last_name = $_POST['last_name']; if (strlen($last_name) < 2) { $err++; $err_msg .= "Last name too short.\r\n"; } $...
true
7c8d23d8b7f006f538f555bb691beb56b7bbce76
PHP
brzuchal/cqrs-es-workshop
/src/Application/CreateAccount.php
UTF-8
753
2.875
3
[]
no_license
<?php namespace Application; use Prooph\Common\Messaging\Command; class CreateAccount extends Command { private $id; private $currency; /** * CreateAccount constructor. * @param $id * @param $currency */ public function __construct($id, $currency) { $this->init(); ...
true
e107e277e616220f7a7632407dae9079edf3d2e5
PHP
agussudarmanto/sikep2018
/backend/models/TmstCuti.php
UTF-8
1,073
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "tmst_cuti". * * @property int $IdMasterCuti * @property string $TahunMasterCuti * @property int $JatahCutiPerTahun * @property int $JumlahCutiBersama */ class TmstCuti extends \yii\db\ActiveRecord { /** * @inheritdoc *...
true
2ab033d4d84f02563f4295f7a83c7bd2ee2352a4
PHP
Ya-fan/blackTechnology
/models/Category.php
UTF-8
1,140
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "category". * * @property integer $cat_id * @property string $cat_name * @property string $cat_desc * @property integer $p_id * @property integer $sort * @property integer $is_nav * @property integer $is_show */ class Category ext...
true
a028dc8b764cf66494d37294e74a9b507187ae5f
PHP
basantashubhu/futsal-management-system
/app/Repo/BaseRepo.php
UTF-8
7,669
2.53125
3
[]
no_license
<?php namespace App\Repo; use App\Models\Audit; use App\Models\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class BaseRepo implements Repo { use DataTableRepo; protected $model; protected $action = "userc_id"; protected $builder; p...
true
a976a9c3e84e9f3b11e592c06bb61501868124b5
PHP
conjamver/LoginPHP
/account-logout.php
UTF-8
477
2.625
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE html> <html lang="en"> <?php //did the user's browser send a cookie for a session? if (isset($_COOKIE[session_name()])){ //empty the cookie and last for a day setcookie(session_name(),'',time()-86400,'/'); } //clear all session variables session_unset(); //session destroy session_destroy(); include(...
true
8503ca9cac1af1e401c6a435639873b67f7d9d3d
PHP
miily8310s/selfphp
/ch5/array.php
UTF-8
2,011
3.875
4
[]
no_license
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>PHPの基本</title> </head> <body> <?php //count関数は配列の要素数を返す $data = ['山田','掛谷','日尾','本多','矢吹']; print count($data) . '<br />'; //array_merge関数は配列要素を連結する $arr1 = [1,3,5]; $arr2 = [2,3,6]; $result = array_merge($arr...
true
1de7321724a837e337864757cf332b4b5c55a77a
PHP
dlion/LEFW
/core/config.php
UTF-8
967
2.5625
3
[]
no_license
<?php //Init Session session_start(); $INSTALL = "_FALSE_"; if($INSTALL == "_TRUE_") { //Config Class include_once('config.class.php'); //DB Class include_once('db.class.php'); //User Class include_once('user.class.php'); //Link Class include_once('link.class.php'); //Category Class include_once('category.cla...
true
9d30dfc1e7611bff79e81b3a8aa6ace12a491b15
PHP
abiradak/rus-mbbs-api
/class/verify.php
UTF-8
994
3.125
3
[]
no_license
<?php class Verify { // Connection private $conn; // Table private $db_table = "user_verified_collage"; // Columns public $id; public $phone; public $collage_id; // Db connection public function __construct($db){ $this->...
true
e55b7b4f3c772d851714f79f90339ba9fa6f44a3
PHP
matiasq22/courrier
/database/seeds/PostSeeder.php
UTF-8
811
2.78125
3
[]
no_license
<?php use App\Tag; use Illuminate\Database\Seeder; use Illuminate\Support\Carbon; use Illuminate\Support\Str; class PostSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i = 0; $i < 20; $i++) { $post = new App\Po...
true
e9f2bbe003b2f04f46c10b78f9337c834e5ee413
PHP
gsokolowski/laravel-api
/app/Http/Controllers/LessonsController.php
UTF-8
2,564
2.75
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Lesson; use Acme\Transformers\LessonTransformer; use Illuminate\Http\Request; use App\Http\Requests; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Response; class LessonsController extends ApiController { protected $lessonTransformer; f...
true
6eb54470e8bc36addae5bc1f95770b2c89be5c75
PHP
National-Eating-Disorders-Collaboration/nedc-website
/mysite/code/model/SupportAndServicesPage.php
UTF-8
7,387
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Support and Services Page * @author Jem Lopez <jem@blissmedia.com.au> * @date 2017-08-17 * */ class SupportAndServicesPage extends Page { private static $allowed_children = array('SupportHelpPage', 'StandardPage'); private static $db = array( ); private static $has_many = array( 'Organization...
true
c106657fdc12ef6b854f4b3fe84f1b50b88a5efe
PHP
mnvx/zabor
/plugins/mnv/reminder/Plugin.php
UTF-8
2,349
2.578125
3
[ "MIT" ]
permissive
<?php namespace Mnv\Reminder; use Mnv\Reminder\Components\Reminder; use Mnv\Reminder\Models\NewsRead; use RainLab\Blog\Components\Post; use System\Classes\PluginBase; /** * reminder Plugin Information File */ class Plugin extends PluginBase { /** * Returns information about this plugin. * * @retu...
true
482530943f7d5af14a5a4b14246d9c0408e51120
PHP
romanlytkin/MyLaravelAppExample
/database/migrations/2016_05_08_095828_create_purchases_table.php
UTF-8
611
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePurchasesTable extends Migration { public function up() { Schema::create('purchases', function (Blueprint $table) { $table->increments('id'); $table->dateTime('buy_date'); ...
true
21fdf6aaf563279c2ee4308ce275ec45756f3a14
PHP
alexfa2014/myace
/application/libraries/Enc.php
UTF-8
397
2.703125
3
[]
no_license
<?php class Enc { private $CI; private $salt; public function __construct() { $this->CI = & get_instance(); $this->salt = $this->CI->config->item('salt'); } public function encPassword($password) { if(empty($password)) { return ''; } ...
true
81dad6a88e8fdc8dd2bbacd0d9feff379a9b3ba4
PHP
gaabriel/php--cms
/cms_page/cms-search.php
UTF-8
1,108
2.875
3
[]
no_license
<?php $link = mysqli_connect("localhost", "root", "", "generaldata"); if(isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; }; $num_rec_per_page=10; $start_from = ($page-1) * $num_rec_per_page; $sql = "SELECT * FROM pending_users LIMIT $start_from, $num_rec_per_page"; $rs_result = mysql_query ($...
true
531ec8f943c910d05827a5f5d4423f96efd3f0c1
PHP
wangruifangWEB/wangruifang__longlong-agao
/WWW/wrf/admin/cnotroller/cate_add_handle.php
UTF-8
792
2.59375
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); require_once("../../connect.php"); //把传递过来的信息入库,在入库之前对所有的信息进行校验。 if(!(isset($_POST['cate_name'])&&(!empty($_POST['cate_name'])))){ echo "<script>alert('分类名称不能为空');history.go(-1);</script>"; } //$id=$_POST['id']; //$pid = $_POST['pid']; $cate_name = $_POST['ca...
true
b185cb7d2d30044fed7501ca88868450688a03b2
PHP
fitriani1021/elearn
/template/admin/manajemen_file.php
UTF-8
2,718
2.75
3
[]
no_license
<tr> <td width="160px"> <?php // Masukkan Template Panel User include('template/home/panel_user.php'); ?> </td> <td> <?php // URL yang boleh diakses // index.php?module=muser&action=edit // index.php?module=muser&action=tambah // index.php?module=muser&action=hapus $action_...
true
44170db3c90c7801562209e262c32438f6ae13d2
PHP
etozqf/silkroad
/apps/field/lib/fieldEngine.php
UTF-8
2,104
2.84375
3
[]
no_license
<?php abstract class fieldEngine { private static $_instance = array(); private static $_ENV = null; public function __get($key) { return self::$_ENV[$key]; } public static function setEnv(array $env) { self::$_ENV = $env; } public static function getInstance($engine) { if (isset(self::$_instance[$en...
true
7efb270642e19b124aba3e4e3eeade931af0e329
PHP
sellvana/sellvana
/core/FCom/Core/LayoutEditor.php
UTF-8
17,892
2.640625
3
[ "LicenseRef-scancode-generic-cla" ]
no_license
<?php /** * Class FCom_Admin_View_Nav * @property FCom_Admin_Model_Role $FCom_Admin_Model_Role * @property FCom_Admin_Model_User $FCom_Admin_Model_User * @property FCom_Frontend_Main $FCom_Frontend_Main */ class FCom_Core_LayoutEditor extends BClass { /** * Library of all available widget types * ...
true
06453342a39cfb8d607a77e3edf9fcc0fcc0c4dc
PHP
st-universe/core
/src/Orm/Entity/ShipRumpColonizationBuilding.php
UTF-8
1,488
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stu\Orm\Entity; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Id; use Doctrine\ORM\Mapping\Index; use Doctrine\ORM\Mapping\Table; /** * @Entity(repositoryClass="Stu\Orm\Repository\ShipRump...
true
eadc97345da304886eed8e7f175216928ef83713
PHP
Choi-Youngjin/CAMSCON
/app/controllers/CategoriesController.php
UTF-8
7,972
2.53125
3
[ "MIT" ]
permissive
<?php class CategoriesController extends BaseController { public function showDashboard() { $ViewData=array( 'category_tree'=>$this->getTree() ); return View::make('admin.categories.dashboard',$ViewData); }//showDashboard() public function showEditor($category_id) { $ViewData=array( 'category_tree'...
true
5c28065c9501f8438febf305cdf1d753731dd103
PHP
jean-gui/PathfinderCharacterManager
/src/Form/BaseCharacterType.php
UTF-8
1,266
2.609375
3
[]
no_license
<?php namespace App\Form; use App\Entity\Characters\Character; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ColorType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; /** * Class BaseCharacterType * * @package App\F...
true
89336597718e6eec706ebc5ae18d3bb9d1039b0e
PHP
iiiiii1wepfj/Telegram-Bot-PHP-Bootstrap
/f0nct1ons.php
UTF-8
2,926
2.765625
3
[]
no_license
<?php function init_acces() { // Your MySQL/PostGre connection function and return the file descriptor // example : // $acces = mysqli_connect(HOST, USER, PASSWORD, DATABASE, PORT); // $acces->query("set names 'utf8'"); // return $acces; } function exec_curl_request($handle,$url) { $response = curl_ex...
true
06930206d21ad5aec4668b30c7a31ab50dedcb98
PHP
Alohafellas/LearningWebsite
/reg.php
UTF-8
1,693
2.71875
3
[]
no_license
<?php $servername ="localhost" ; $username="root"; $password="12345"; $dbname="website"; $conn = mysqli_connect("localhost", "root", "12345", "website"); // Check connection if($conn === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $id=$_REQUEST['id']; $name = $_REQUEST['...
true
5de4422d54ff3ed04cd250fed39ef226e9512581
PHP
majdhasan/Warteschlange
/class.mysql.php
UTF-8
1,408
2.84375
3
[]
no_license
<?php /** */ class mysql_connector { var $mysqlhost = "127.0.0.1"; var $mysqluser = "root"; var $mysqlpwd = "M301091m"; var $mysqldb = "warteschlange"; var $con = ""; function mysql_select_db() { } function setDB($db) { $this->mysqldb = $db; ...
true
b3ddc712d60ee41fae0aa18b1e48f7cceef2d755
PHP
reliqarts/laravel-logistiq
/src/Tracking/Exceptions/TrackableEventCreationFailed.php
UTF-8
975
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace ReliqArts\Logistiq\Tracking\Exceptions; use ReliqArts\Logistiq\Tracking\Contracts\Trackable; use Throwable; final class TrackableEventCreationFailed extends Exception { protected const CODE = 5100; /** * @var string */ private $eventClassName; /**...
true
d242dab01acc3777216acef6afa2ef04f46646a9
PHP
d2ncoders/handphone
/update.php
UTF-8
2,045
2.859375
3
[]
no_license
<?php include 'functions.php'; $pdo = pdo_connect_mysql(); $msg = ''; //Periksa apakah id kontak ada, misalnya update.php?id=1 akan mendapatkan kontak dengan id 1 if (isset($_GET['id'])) { if (!empty($_POST)) { // Bagian ini mirip dengan create.php, tetapi sebagai gantinya untuk memperbarui catatan dan tida...
true
9200765536d6296497ad060f4ba4178ebc3bc55f
PHP
wellrestedphp/wellrested2
/test/tests/unit/Routes/RegexRouteTest.php
UTF-8
3,875
2.625
3
[ "MIT" ]
permissive
<?php namespace pjdietz\WellRESTed\Test; use pjdietz\WellRESTed\Routes\RegexRoute; use Prophecy\Argument; /** * @covers pjdietz\WellRESTed\Routes\RegexRoute */ class RegexRouteTest extends \PHPUnit_Framework_TestCase { private $handler; private $request; private $response; /** * @dataProvider...
true
6004e6791873cf083e89b307c76523e711fd543b
PHP
SebastianBort/wp-widget-php
/wp-widget-php.php
UTF-8
2,089
2.8125
3
[]
no_license
<?php /* Plugin Name: Widget z kodem PHP Description: Dodaje nowy widget z opcją wykonania w nim kodu PHP. Version: 1.0.0 Author: Sebastian Bort */ class WP_Widget_PHP extends WP_Widget { public function __construct() { parent::__construct( 'widget_php', 'Widget z kodem PHP',...
true
ff78ee61a2dfa3d164310c747be153ea8467c43c
PHP
amitalgo/GCR_5.1
/app/Services/Impl/UploadService.php
UTF-8
1,604
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Services\Impl; class UploadService { public function UploadFile($data,$fileName,$dir){ $data->file($fileName); if($data->hasFile($fileName)){ $file = $data->$fileName->getClientOriginalName(); //Storage::move('old/file1.jpg', 'new/file1.jpg'); ...
true
2e1ec5867b4eff6da8d95741c64e4e4908ecc3d8
PHP
angelov-todor/dictionary
/src/Core/Main/Infrastructure/Domain/Model/Test/DoctrineCognitiveTypeRepository.php
UTF-8
2,358
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Core\Main\Infrastructure\Domain\Model\Test; use Core\Main\Domain\Model\Test\CognitiveType; use Core\Main\Domain\Repository\CognitiveTypeRepositoryInterface; use Doctrine\Common\Collections\Criteria; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\OptimisticLockException; u...
true
2558e79c118baa784276fbcc59d4614bcc2c882d
PHP
FernleafSystems/iControlWP-WordPress-Plugin
/src-legacy/common/icwp-wpupgrades.php
UTF-8
7,562
2.53125
3
[]
no_license
<?php if ( !class_exists( 'ICWP_APP_WpUpgrades', false ) ): class ICWP_APP_WpUpgrades extends ICWP_APP_Foundation { /** * @var ICWP_APP_WpUpgrades */ protected static $oInstance = NULL; /** * @return ICWP_APP_WpUpgrades */ public static function GetInstance() { if ( is_null( self::$oInstance ...
true
d0f6668ef230d384ddd386ea8a900ed207396aa2
PHP
adriencarbonaro/StationMeteoC
/fonctions.php
UTF-8
4,618
3.21875
3
[]
no_license
<?php //*************************************************************** // Fonction permettant la création de la requete HTTP //*************************************************************** // function creerRequete($name) //*************************************************************** // $name : adresse IP du shie...
true
886c4588656945df03e5b440c7056552f4722322
PHP
victoralvarado/conta
/reportpartida.php
UTF-8
4,801
2.546875
3
[]
no_license
<?php if (isset($_POST['datos'])) { //require_once('model/Documento.php'); $datos = $_POST['datos']; if (isset($_POST['fecha'])) { $fecha = $_POST['fecha']; } else { $fecha = ''; } if (isset($_POST['descripcion'])) { $descripcion = $_POST['descripcion']; } else { ...
true
5f9aaff00a9c92a5f0b7776e2eed95f05c856bd7
PHP
Kleonlekkas/LearnelKernel
/FINALGPROJECT/poem.php
UTF-8
2,510
2.765625
3
[]
no_license
<?php $page = "Poem"; include 'assets/inc/header.php'; session_start(); ?> <body> <img class = "toppic" src = "assets/img/alma_mater.png" alt="Learnel Kernel Poem"> <div class = "content"> <p>As you complete quizzes in The Learnel, you will unlock new lines of the Poem!</p> <?php $path = './';...
true
cdd24e251ecd3ba4f7faeed7ecbb3f47de087380
PHP
alipsilv/tcc-web
/client.php
WINDOWS-1252
600
2.609375
3
[]
no_license
<?php require_once "lib/nusoap.php"; $sensorID = $_GET['sensorID']; $date = $_GET['date']; $value = $_GET['value']; $client = new nusoap_client("service.wsdl", true); $error = $client->getError(); if ($error) { echo "<h2>Constructor error</h2><pre>" . $error . "</pre>"; } $result = $client->call("insertMeasure", ...
true
91c11647ae15389aae2ae8b199aba5cf20c70013
PHP
ScriptFUSION/Retry-error-handlers
/src/ErrorHandler/ExponentialBackoffErrorHandler.php
UTF-8
655
2.71875
3
[]
no_license
<?php namespace ScriptFUSION\Retry\ErrorHandler; use ScriptFUSION\Retry\Sequence\PowersOfTwoSequence; /** * Sleeps for an exponentially increasing series of delays. */ class ExponentialBackoffErrorHandler extends MicroSleepErrorHandler { private $microTimeCoefficient; public function __construct($microTime...
true
bdeb186889d163c2fe522f0c9dbcc4cc1a875495
PHP
UNLSiteMaster/site_master
/plugins/auth_google/src/Plugin.php
UTF-8
2,832
2.953125
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace SiteMaster\Plugins\Auth_Google; use SiteMaster\Core\Config; use SiteMaster\Core\Events\GetAuthenticationPlugins; use SiteMaster\Core\Events\RoutesCompile; use SiteMaster\Core\Plugin\AuthenticationInterface; use SiteMaster\Core\Plugin\PluginInterface; class Plugin extends PluginInterface implements Aut...
true
dae5e915402a7fe139018daba0451fb2ee38c785
PHP
dextter1913/practicando-conexion5
/index.php
UTF-8
2,166
2.59375
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>practicando conexion 5</title> </head> <body> <center> <h1>Practicando Conexion 5</h1> <form action="index.ph...
true
c69304185af80cfe4a898e78d3dbbe206d22e1b9
PHP
Minhaj-Khan/day-16
/view.php
UTF-8
172
2.78125
3
[]
no_license
<?php require "./example.php"; $example=new Example(); $example->add(); echo "<br>"; $example->hello(); echo "<br>"; echo $example->name; echo "<br>"; echo $example->city;
true
15fe7ee23e402c8ea8446b52f6e5727d70aaa942
PHP
g4media/admission.g4media.github.io
/connect.php
UTF-8
1,813
2.625
3
[ "Apache-2.0" ]
permissive
<?php $allotno = filter_input(INPUT_POST, 'allotno'); $token_id = filter_input(INPUT_POST, 'token_id'); $name = filter_input(INPUT_POST, 'name'); $address = filter_input(INPUT_POST, 'address'); $contact = filter_input(INPUT_POST, 'contact'); $parent = filter_input(INPUT_POST, 'parent'); $class = filter_input(INPUT_POST...
true
68f4475d7f59fb2f17cdc0d22314d157d2e556e7
PHP
netstar93/my-shop
/app/Model/Attribute.php
UTF-8
1,170
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use App\Model\Attributeset; class Attribute extends Model { protected $table = "product_attribute"; public $timestamps = false; protected $fillable = ['name','type','options','status']; /* * GET ALL OTHER ATTRIBUTES BY ATTRIB...
true
4091dca2635675aad30aeedafc85f46f7d4133fd
PHP
afel-project/ecapi-wordpress
/plugins/ecapi/ecapi.php
UTF-8
12,858
2.578125
3
[]
no_license
<?php /* Plugin Name: MKS Entity-Centric API Management Description: Utilities for accessing, testing and configuring an Entity-Centric API from a WordPress installation Plugin URI: http://github.com/mk-smart/ecapi-wordpress Version: 0.1.1 Author: Alessandro Adamou Author URI: http://kmi.open.ac.uk/people/member...
true
3a790ae7dcd716104930ca46831a3e29b0b1bb0f
PHP
marshallu/mu-hrtraining
/hrregistration.php
UTF-8
6,605
2.734375
3
[]
no_license
<?php /** * Allow users to register for trainings. * * @package HR Training */ /** * MU Registration Shortcode * * @param array $atts The array of attributes accepted with the shortcode. */ function hrregistration( $atts ) { $data = shortcode_atts( array( 'cname' => 'foo', ), $atts ); if ( isset( ...
true
ef607194ed95d7520062d40c87239dc6ae5c0151
PHP
moonawa/projet_sa
/projet4bddAns/Etudiant.php
UTF-8
2,485
3.125
3
[]
no_license
<?php require_once 'Autoloader.php'; Autoloader::register(); Abstract class Etudiant{ //Declaration des variables // protected $matricule; protected $nom; protected $prenom; protected $mail; protected $tel; protected $date_naissance; public function __construct( $nom="", $prenom=""...
true
0e19c02ecb258bd22f3af369a7b99e73682ffae7
PHP
benoitdavidfr/yamldocs
/rpicom/rpimap/igeojfile.inc.php
UTF-8
7,706
2.78125
3
[]
no_license
<?php /*PhpDoc: name: igeojfile.inc.php title: igeojfile.inc.php - gère un index multi-fichiers GeoJSON doc: | Gère un fichier igf qui est constitue un index sur un identifiant dans différents fichiers GeoJSON Appelé comme script, fabrique l'index dans un fichier pser. Inclus dans un script Php fournit une classe...
true
9b184b6394d97f1ba06bb51300c41b45f0d11cd3
PHP
vilela1966/curso-php
/array/ExercicioArray04.php
UTF-8
176
3.53125
4
[]
no_license
<?php $maior = 0; for($i = 1; $i < count($argv); $i++) { if ($argv[$i] > $maior) { $maior = $argv[$i]; } } echo "O maior número da sequência é: $maior" . PHP_EOL;
true
ad75475c2b2b985432b33def56c3e41117b64251
PHP
benbarron/laravel-vue-starter
/app/Http/Services/UserService.php
UTF-8
2,717
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Services; use App\Http\Models\User; use Illuminate\Support\Str; use Illuminate\Support\Facades\Hash; use Exception; class UserService { /** * @param $id * @return User */ public function allButSelf($id) { return User::where('id', '!=', $id)->get()->map->fo...
true
311f84c71ca8c3856512f6b0577cae8db8572567
PHP
ekmungai/eloquent-ifrs
/src/Exceptions/MixedAssignment.php
UTF-8
640
2.828125
3
[ "MIT" ]
permissive
<?php /** * Eloquent IFRS Accounting * * @author Edward Mungai * @copyright Edward Mungai, 2020, Germany * @license MIT */ namespace IFRS\Exceptions; class MixedAssignment extends IFRSException { /** * Mixed Assignment Exception * * @param string $previous * @param string $current ...
true
08507880e74ec4dabc514bada37ce0b8dfa8c727
PHP
RafiIzzatulRizquFaris/kantigniter
/vendor/spipu/html2pdf/src/Parsing/Token.php
UTF-8
1,042
3.1875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "OSL-3.0" ]
permissive
<?php /** * Html2Pdf Library * * HTML => PDF converter * distributed under the OSL-3.0 License * * @package Html2pdf * @author Laurent MINGUET <webmaster@html2pdf.fr> * @copyright 2017 Laurent MINGUET */ namespace Spipu\Html2Pdf\Parsing; /** * Class Token * * Represents a token in the HTML flow */ cl...
true
285cbcb570111dd868bb7a01cde22239a36ca9e6
PHP
qrux/phputils
/inc/FJ/AuthProviderBase.php
UTF-8
603
2.734375
3
[]
no_license
<?php namespace FJ; abstract class AuthProviderBase implements AuthProvider { public function getRole ( $user ) { if ( !array_key_exists(self::USER_ROLE_KEY, $user) ) { if ( !array_key_exists(self::USER_LOGIN_KEY, $user) ) { redulog("No role for inva...
true
fb5e05364183cc19bf812a74e3592255cdf7e3c9
PHP
ginsen/pharma-credits
/src/Infrastructure/Specification/Factory/OrmPointSpecificationFactory.php
UTF-8
2,222
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Infrastructure\Specification\Factory; use App\Domain\Common\Specification\SpecificationInterface; use App\Domain\Entity\Client; use App\Domain\Entity\Pharmacy; use App\Domain\Specification\PointSpecificationFactoryInterface; use App\Domain\ValueObj\AwardedAt; use App\Infr...
true
19c31852b44734523c7aa8ae1f8405958203d98a
PHP
gizmore/gwf3
/core/module/Dog/dog_include/Dog_PrivServer.php
UTF-8
2,438
2.609375
3
[]
no_license
<?php /** * User privileges on a server. * @author gizmore * @version 4.0 */ final class Dog_PrivServer extends GDO { public function getClassName() { return __CLASS__; } public function getTableName() { return GWF_TABLE_PREFIX.'dog_priv_serv'; } public function getColumnDefines() { return array( 'priv_sid...
true
297c8a224195ea94aca9a072a388050a5bba3ca5
PHP
desislavaangelova1994/LibraryManagment
/App/Controllers/LibraryProject/AddUserController.php
UTF-8
2,435
2.53125
3
[]
no_license
<?php use Yee\Yee; use Yee\Managers\Controller\Controller; use Yee\Managers\RoutingCacheManager; use Yee\Managers\CacheManager; use App\Models\Library\AddUserModel; use App\Models\Library\DisplayUserModel; class AddUserController extends Controller { /** * @Route('/adduser') * @Name('add.user') ...
true
91b353f6ef152331d464ac8a5e440263b73b1c73
PHP
VitaliyBelyy/CMS
/myCMS/classes/Book.php
UTF-8
10,356
3
3
[]
no_license
<?php /** * Класс для обработки книг */ class Book { public $id = null; public $name = null; public $description = null; public $excerpt = null; public $sectionId = null; public $specificationsId = null; public $price = null; public $amount = null; public $discount = null; public $im...
true
b93cf10e625910b5c468f023ab94797c2ad127f1
PHP
TechEndeavors/AltInvestmentClub
/application/modules/default/forms/Public/Contact.php
UTF-8
1,490
2.609375
3
[ "Apache-2.0" ]
permissive
<?php class Form_Public_Contact extends Zend_Form { public function init() { parent::init(); $this->setAttrib('id', 'contact-form'); $title = new Zend_Form_Element_Select('title'); $title->setLabel('Title') ->setMultiOptions(array('Mr' =>...
true
a2a0cde7a9fcf2d1915c6e6602389118c3e783ea
PHP
alpacaaa/wadoo
/src/Wadoo/Filters/HTML5.php
UTF-8
1,423
2.9375
3
[ "WTFPL" ]
permissive
<?php namespace Wadoo\Filters; class HTML5 { public function register() { return array( 'compile.after' => 'fixDoctype' ); } // code stolen from the html5_doctype extension from symphony cms // https://github.com/domain7/html5_doctype/ public function fixDoctype($context) { // Parse onl...
true
1799e7d7e58e1f22c2d489755125187df46f8075
PHP
raftx24/cli
/src/app/Writers/PackageWriter.php
UTF-8
3,479
2.65625
3
[ "MIT" ]
permissive
<?php namespace LaravelEnso\Cli\app\Writers; use Carbon\Carbon; use Illuminate\Support\Facades\File; use LaravelEnso\Cli\app\Services\Choices; class PackageWriter { protected $choices; private $root; public function __construct(Choices $choices) { $this->choices = $choices; } public...
true
ece10ec464e66079b40129860ab4124ceb0c91ab
PHP
muzimka/shop_engine
/dao/ProductTransferBuilder.php
UTF-8
2,298
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: MainW8 * Date: 4/24/2017 * Time: 3:06 PM */ namespace dao; class ProductTransferBuilder { private $product; /** * ProductTransferBuilder constructor. * @param ProductTransfer $product */ private function __construct($product) { $...
true
6f0c01401b1ce32822a9532b714d10ab46b40225
PHP
wojtyra/projectdmcs
/backend/vosiv/traits/ErrorContainer.php
UTF-8
638
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * User: kuw */ namespace backend\vosiv\traits; trait ErrorContainer { private $_errors; public function getErrors() { return $this->_errors; } protected function addError($msg, $attribute,$target = '_self') { if (!isset($this->_errors[$target])) { ...
true
93ccf5896695eb0e8ede68297598417a26ab6faf
PHP
chathuras/BoardingCards
/lib/TripSorter/Location.php
UTF-8
262
3
3
[ "MIT" ]
permissive
<?php namespace TripSorter; /** * Class Location * @package TripSorter */ class Location { public $name; /** * Location constructor. * @param $name */ public function __construct($name) { $this->name = $name; } }
true
58e1d4599374fa9a938e73eba87d186d8254c3be
PHP
krypticdestro/alexya_cms
/themes/alexya/handler_files/handler.php
UTF-8
6,621
2.65625
3
[]
no_license
<?php /** * Theme handler * * This file will handle things related to the theme like choosing which page to * load, add eventes to EventController... * * @author Kryptic Destro */ /** * Array pages * * It will contain the page and file name to display * * The array index is the page in url, the value i...
true
fb551c3c7c656b95cfa8f9b7fef821e551a54296
PHP
ddobrokhvalov/phalcon
/apps/backend/controllers/PurchaseController.php
UTF-8
10,794
2.53125
3
[]
no_license
<?php namespace Multiple\Backend\Controllers; use Phalcon\Mvc\Controller; use Multiple\Library\Parser; use Multiple\Backend\Models\Complaint; class PurchaseController extends Controller { public function parsestatusAction(){ $comp = new Complaint(); $complaints = $comp->findForParser(); $...
true
0d1e0b9dd71604bbe4a56d92dcab0388b2e180fa
PHP
ylfs-lfs123/ytbox2314
/channel_settings.php
UTF-8
1,802
2.515625
3
[]
no_license
<?php include ( './includes/header.php' ); $channel = $_GET['c']; $channel_check = mysql_query("SELECT * FROM channels WHERE channel_name='$channel'"); $numrows = mysql_num_rows($channel_check); if ($numrows == 0) { header("Location: index.php"); } else { // The Channel Icon Image Upload Script if (isset...
true
121a68f05fb798d4e70d3a452d5c5834476d7760
PHP
malopezr7/ipfs-filesystem
/app/User.php
UTF-8
1,267
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\Auth; use Laravel\Passport\HasApiTokens; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRol...
true
14afb321cb24c7c2d00bd1d69af216cc882bf413
PHP
joelunmsm2003/ForeverAlone
/app/controllers/PostsController.php
UTF-8
2,304
2.53125
3
[ "MIT" ]
permissive
<?php class PostsController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { } /** * Show the form for creating a new resource. * * @return Response */ public function create() { // } /** * Store a newly created re...
true
69821ee2eb4de93aa85322d09a52e0e03b038b13
PHP
codedaniels/c418_mobilegamefinder
/public/api/post/login.php
UTF-8
1,667
2.765625
3
[]
no_license
<?php session_start(); //print_r($_POST); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $email = $_POST['email']; //print($email); // $password = sha1($_POST['password']); $password = $_POST['password']; $email = mysqli_real_escape...
true
e6c991c99be973ef9342c3ff0c5bee33faed27d1
PHP
arichiardi/maintainers
/src/Lts/Components.php
UTF-8
1,338
2.6875
3
[]
no_license
<?php /** * @see https://github.com/zendframework/maintainers for the canonical source repository * @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com) * @license https://github.com/zendframework/maintainers/blob/master/LICENSE.md New BSD License */ namespace ZF\Maintainer\Lts; ...
true
714cfdd6756e49b7259e3acd7a1bcd6ea3d6a179
PHP
ChickenStorm/asylamba-game
/system/Modules/Demeter/Manager/ColorManager.php
UTF-8
7,403
2.515625
3
[]
no_license
<?php /** * Color Manager * * @author Noé Zufferey * @copyright Expansion - le jeu * * @package Demeter * @update 26.11.13 */ namespace Asylamba\Modules\Demeter\Manager; use Asylamba\Classes\Worker\Manager; use Asylamba\Classes\Library\Utils; use Asylamba\Classes\Database\Database; use Asylamba\Modules\Demete...
true
1a887552269438fc356c502a68b4bb7d4c42e83b
PHP
Raven3419/myautostores
/module/LundSite/src/LundSite/Repository/FaqRepository.php
UTF-8
2,829
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 */ /** * LundSite * * PHP version 5.5 * * @category Zend * @package LundSite * @subpackage Module * @author Raven Sampson <rsampson@thesmartdata.com> * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause * @version GIT: $Id$ * @l...
true
f35d6469107b5823646e7839faff7acd96f86783
PHP
hkt5/dictionaries
/app/Http/Controllers/FindTrashedDictionaryItemController.php
UTF-8
1,226
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Strategies\Query\DictionaryItem\FindTrashedDictionaryItemsStrategy; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class FindTrashedDictionaryItemController extends Controller { private $strategy; public function __construct(FindTrashedDiction...
true
964a4574fc45149470efefef042d1a9261fd6fbb
PHP
hi-noikiy/mini-programe-framework
/addons/longbing_card/core/extend/tencentcloud/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/MultiTransferException.php
UTF-8
1,742
2.6875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Guzzle\Http\Exception; class MultiTransferException extends \Guzzle\Common\Exception\ExceptionCollection { protected $successfulRequests = array( ); protected $failedRequests = array( ); protected $exceptionForRequest = array( ); public function getAllRequests() { return array_merge($this->suc...
true
6f06df6cd554885937003fe93126481a8a2e6d3f
PHP
Michael-Mosher/Segment
/View/view_h.php
UTF-8
685
2.734375
3
[]
no_license
<?php namespace Segment\View; interface SegmentMaker { } interface LinearSegmentMaker extends SegmentMaker { } interface HeirarchicalSegmentMaker extends SegmentMaker { } interface SolitarySegmentMaker extends SegmentMaker { } interface SegmentConstructor { public function segmentConstruct...
true
058f41feecc51f8d2ae6fffb103406ea9b5701b0
PHP
farnav/geo-locator
/tests/ChainLocatorTest.php
UTF-8
1,080
2.625
3
[]
no_license
<?php namespace Farran\Geo\Tests; use PHPUnit\Framework\TestCase; use Farran\Geo\Dto\{Ip, Location}; use Farran\Geo\Locator\{LocatorInterface, ChainLocator}; /** * Class ChainLocatorTest * * @package Farran\Geo\Tests * @author Farukh Narzullaev <faruh.narzullaev@bk.ru> */ class ChainLocatorTest extends TestCas...
true
686a97810909336e9cfa32e85c1d98a8b175a6dc
PHP
YunusOktaviantoIsmail/Pemrograman-Web
/Tugas 6/read.php
UTF-8
565
2.71875
3
[]
no_license
<?php require 'conn.php'; global $conn; global $print; $query = "SELECT * FROM education ORDER BY tahun DESC"; $result = mysqli_query($conn, $query); $read = mysqli_num_rows($result); if ($read > 0) { foreach ($result as $res) { $print .= ' <tr> <td>' . $res["sekolah"] . '</td> <td>' . $res["tahu...
true
92076ccf853f6499730ad5953f85cf527c59c2d5
PHP
kleberlimaGit/UFC_PHP
/index.php
UTF-8
713
2.515625
3
[]
no_license
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php ...
true
49e41f060ff988aee36345c8de52084d21cf8f58
PHP
oxdead/pizza-login
/unrelatedcrap/tutorial_filesystem.php
UTF-8
2,003
3.390625
3
[]
no_license
<?php /* $file_system_tutorial_part1 = false; $file_system_tutorial_part2 = true; if($file_system_tutorial_part1) { //read file: $quotes = ''; $file = 'readme.txt'; if(file_exists($file)) { // read file $quotes = readfile($file)...
true
e55dbc1c345418491e6cbdb56dcb461f75fad5b4
PHP
bungle-suit/framework
/src/Inquiry/Query.php
UTF-8
6,847
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Bungle\Framework\Inquiry; use Aura\SqlQuery\Common\SelectInterface; use Aura\SqlQuery\QueryFactory; use Bungle\Framework\Inquiry\Steps\QuerySteps; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Tools\Pagination\Paginator; use LogicExc...
true
d040492b83acd13ad05eab116c03dbfe00b6dbcf
PHP
almatyartem/rp_contracts
/src/RequestProvider.php
UTF-8
705
2.703125
3
[]
no_license
<?php namespace RpContracts; interface RequestProvider { /** * @param string $url * @param string $method * @param array $data * @param array $addHeaders * @param bool $postAsForm * @param int|null $cacheTtl * @param bool $ignoreCache * @return Response */ public f...
true
f676fe5d858c1cb58fd88f9e05caf7cc45a142b6
PHP
marcoarias99/Online_Website_KMS-Tools
/KMS-Tools-main/phprest/api/orders/read.php
UTF-8
1,795
2.765625
3
[]
no_license
<?php // Required headers header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET"); header("Content-Type: application/json; charset=UTF-8"); // Include config and order files include_once '../config/config.php'; include_once '../objects/orders.php'; ...
true
d279961036d4bbc1a126e7b06565cea60bd94170
PHP
Phil404/RiotAPI
/src/Models/Spectator/GameCustomizationObject.php
UTF-8
939
2.953125
3
[ "MIT" ]
permissive
<?php namespace Phil404\RiotAPI\Models\Spectator; class GameCustomizationObject { private $_category; private $_content; public function __construct(array $args = []) { if (array_key_exists("category", $args)) { $this->_category = $args['category']; } if (array_key...
true
12e347fd79fe210afc4d9d5fee0c972a6c3ff697
PHP
vonvick/morren-xris-hotels
/mail.php
UTF-8
2,866
2.59375
3
[]
no_license
<?php // checks if the form was actually submitted with the submit button if(isset($_POST["submit"])) { $to = "vonvikky@gmail.com"; // this is your Email address $from = test_input($_POST["email"]); // this is the sender's Email address $first_name = test_input($_POST["first_name"]); $last_name = test_input($_...
true
85a072e4fa30c464065b169f0dbf701db7dcd3aa
PHP
fatmaabdelrahman/Fatura-Task
/app/Http/Middleware/ApiAutoCheckPermission.php
UTF-8
916
2.53125
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Spatie\Permission\Models\Permission; class ApiAutoCheckPermission { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ pu...
true
a35af39b53f4211c1217244a0bb6cc614681b74e
PHP
ArrowSphere/catalog-graphql-client
/src/Types/Uom.php
UTF-8
453
2.609375
3
[]
no_license
<?php namespace ArrowSphere\CatalogGraphQLClient\Types; /** * Class Uom * * @method int getQuantity() * @method string getType() * @method Uom setQuantity(int $quantity) * @method Uom setType(string $type) */ class Uom extends AbstractType { public const QUANTITY = 'quantity'; public const TYPE = 'typ...
true
e555a3657606bcec74e6069bf3e20e3e28502e56
PHP
loksland/hiscore-server
/www/getHiScores.php
UTF-8
1,387
2.71875
3
[ "MIT" ]
permissive
<?php include('_init.php'); // SLEEP $sleepDuration = getRequestVar('sleep', $REQUEST_METHOD, $allowNumerals = true, $allowUpperCaseAtoZ = false, $allowLowerCaseAtoZ = false, $minCharLength = 1, $maxCharLength = -1); if (strlen($sleepDuration) > 0 && intval($sle...
true
1c54952c1ad72a3772bf9478ad2ffb536ceee3f5
PHP
Abdallahman-habyarimana/Advanced-Web-Programming
/Lab/Summer_Practice/class_constant.php
UTF-8
334
3.1875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ABDAL * Date: 5/9/2018 * Time: 12:07 AM */ class Clock { public const DAY_IN_SECONDS = 60 *60* 24; public function tomorrow() { return time() + self::DAY_IN_SECONDS; } } echo Clock::DAY_IN_SECONDS ."<br />"; $clock = new Clock(); echo $clock->tomorro...
true
e4a208b3dcc0c930f03431e595d9a52a166405bc
PHP
mdashikul798/CRMsoft-CRM-software-using-Laravel-AJAX
/app/Http/Controllers/User/OperatingController.php
UTF-8
7,462
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\User; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Model\User\OtherExp\Operating; use Session; use DB; class OperatingController extends Controller { /*** * * operatingExp route * * There is some route under the 'operating expenses',...
true
f1c523a506dbfe1e728afe22f0b2cb8bab6fe236
PHP
OlehPetryna/MovieViewer
/src/base/App.php
UTF-8
3,586
2.578125
3
[]
no_license
<?php namespace app\base; class App { private $config; public static $app; public function loadConfig($config) { $this->config = require $config; } public function registerAutoload() { spl_autoload_register(function ($class) { $prefix = 'app\\'; ...
true
74528d545a63269e66cc75942a2d70ede8f2f584
PHP
tenchoo/gitUeliao_gz
/restfulapi/application/modules/v2_1/controllers/CartController.php
UTF-8
2,104
2.578125
3
[]
no_license
<?php /** * 购物车 * @author liang * @version 0.1 * @package Controller */ class CartController extends Controller { public function init() { parent::init(); if( empty( $this->memberId ) ) { $this->message = Yii::t('user','You do not log in or log out'); $this->showJson(); } } /** * 购物车列表 */ pu...
true
cef782a026983628632cf961282a9bd7537f6067
PHP
akshayapte/NoticeBoard
/PHP Scripts/index.php
UTF-8
2,870
2.5625
3
[]
no_license
<?php if (isset($_POST['tag']) && $_POST['tag'] != '') { $tag = $_POST['tag']; require_once 'include/DB_Functions.php'; $db = new DB_Functions(); $response = array("tag" => $tag, "success" => 0, "error" => 0); if ($tag == 'login') { $email = $_POST['email']; $password = $_...
true
d488efd41718f0612f1781d68f3203c357ebfbdd
PHP
zettamax/my_first_framework
/sys/model.php
UTF-8
803
2.84375
3
[]
no_license
<? abstract class Model { protected $link; public static function factory($name) { return new $name; } public function __construct() { $link = mysqli_connect('localhost', 'root', ''); $this->link = $link; if (!mysqli_select_db($this->link, 'illicha')) { mysqli_query($this->link, 'C...
true
8cf33cd9c8fd419e2fcc6171f57db52806f07a4c
PHP
alex-zige/ss-timelinejs
/code/TimePoint.php
UTF-8
2,160
2.875
3
[]
no_license
<?php /** * Single TimePoint objects that contains the specified data for mapping. * * Example and Instanciation: * <code> * </code> * * @author alex li, (<firstname>@novainspire.com) * @package ss-timelinejs */ class TimePoint extends DataObject{ //database fields for timepoint //Note : Meida could be different ...
true
7ffd83bab5d48ff7780b55f17ae60a6eb13c5dac
PHP
dbing/BigLionShop
/frontend/models/Slider.php
UTF-8
1,817
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "{{%slider}}". * * @property integer $sid * @property string $img_path * @property string $excerpt * @property string $jump_url * @property string $big_text * @property integer $sort * @property integer $is_show */ class Slid...
true
b3a3ecdfc9347519a04bd0250a3a63fdf98f210a
PHP
willdanilomc/PHP-7
/ESTUDO/CLASSES PHP/SWITCH/index.php
UTF-8
352
3.46875
3
[]
no_license
<?php $ano = date(Y); // Só usa switch caso for igual, caso nao mude o resultado e não precise tratar switch ($ano){ // Coloca todos em case case 2018: echo "2018"; break; case 2019: echo "2019"; break; //Se nao existir mes ele tras default: ...
true
5be5ac27a28e4db1de86f5e0cf3621cc54da7808
PHP
parazite13/TesTubes
/pages/api/index.php
UTF-8
2,534
2.546875
3
[]
no_license
<!DOCTYPE html> <html> <head> <?php getHead(); ?> <title>TesTubes - API</title> <style type="text/css"> body{ background-color: rgb(65, 65, 65); } .container{ background-color: rgb(242, 242, 242); } .method{ box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); border-radius: 4px; background: #fff; ...
true
f5acbe952eb32dfa8765bc925ac60bd33e5d3578
PHP
mlopez25/escuela
/actividades/clases/table/grupo.php
UTF-8
1,599
3.21875
3
[]
no_license
<?php class Grupo{ private $idGrupo, $nombre, $nivel; function __construct($idGrupo=null, $nombre=null, $nivel=null) { $this->idGrupo = $idGrupo; $this->nombre = $nombre; $this->nivel = $nivel; } function getIdGrupo() { return $this->idGrupo; } fu...
true