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
f368017f6c413b7aa1c15bf669895d11af09139d
PHP
crimefire/ILIAS_TrainingProgramme
/Modules/TrainingProgramme/test/mocks.php
UTF-8
1,657
2.625
3
[]
no_license
<?php /* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */ /** * Mock classes for tests. * * @author Richard Klees <richard.klees@concepts-and-training.de> * @version 1.0.0 */ require_once("Services/Tracking/classes/class.ilLPStatus.php"); /** * Mock f...
true
38867b1a6ef5d8354dc43bb2790cd88ed7636cda
PHP
digideskio/backckendlara
/src/Darryldecode/Backend/Base/Registrar/ComponentNavigation.php
UTF-8
2,474
3
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: darryl * Date: 2/5/2015 * Time: 9:46 PM */ namespace Darryldecode\Backend\Base\Registrar; use Illuminate\Support\Collection; class ComponentNavigation { /** * the label * * @var */ public $label; /** * the icon * * @var ...
true
902d089501018f8f7a1ef561113eca5c838e2243
PHP
khrsman/bus
/application/modules/user/controllers/User.php
UTF-8
1,300
2.53125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('M_user'); } // view function index(){ $this->load->view('v_login'); } function logout(...
true
795aacfdbfc0b6f971c9a615380379597a3cb309
PHP
williand94/PHP_Udemy
/Aprendiendo-php/23-ejercicios/ejercicio1.php
UTF-8
638
3.59375
4
[]
no_license
<?php /* Ejercicio1. Crear una sesión que aumente el valor o disminuya en uno en función de si el parámetro get counter está a uno o a cero. */ session_start(); if (!isset($_SESSION['numero'])) { $_SESSION['numero'] = 0; } if (isset($_GET['counter']) && $_GET['counter'...
true
2d50d4b5af12abce2ad2971fee101ef9fa0604eb
PHP
maclisicia/project_2
/private/classes/cogs.class.php
UTF-8
854
3.078125
3
[]
no_license
<?php class Cogs extends databaseObject { static protected $table_name = 'cogs'; static protected $db_columns = ['cogsid', 'date', 'cogsAmount']; public $cogsid; public $date; public $cogsAmount; // construct method public function __construct($args=[]) { $this->cogsid = $args['cogsid'] ?? NULL; $this->dat...
true
f5926a80f5fd6447e0037d47c09cb3528494c3b2
PHP
fahmimsh/LVGL_ESP32_SatpamTracker
/WEB_SERVER_PROGRAM/delete-data-tugas.php
UTF-8
833
2.546875
3
[]
no_license
<?php require_once('config.php'); $conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } if(is_array($_GET) && count($_GET) > 0 && isset($_GET['delete'])) { $tugasx = $_GET['delete']; $sql = "DE...
true
02959ab1be57eeeb72af55b2cf5a85e47ac670e2
PHP
techdivision/import-attribute
/src/Repositories/AttributeOptionRepositoryInterface.php
UTF-8
2,695
2.875
3
[ "MIT" ]
permissive
<?php /** * TechDivision\Import\Attribute\Repositories\AttributeOptionRepositoryInterface * * PHP version 7 * * @author Tim Wagner <t.wagner@techdivision.com> * @copyright 2016 TechDivision GmbH <info@techdivision.com> * @license https://opensource.org/licenses/MIT * @link https://github.com/techdivi...
true
09696c5210aed470b1bef61f8a284863ee36f884
PHP
xeons/software-admin-panel
/include/functions.php
UTF-8
4,311
2.59375
3
[]
no_license
<?php function clean($db, $data) { return get_magic_quotes_gpc() ? $data : $db->real_escape_string($data); } function check_login($username, $password) { global $db; if( $result = $db->query("SELECT id FROM `users` WHERE `username` = '$username' AND `password` = MD5('$password');")) { if($row = $result->f...
true
41f5b5551be5e3fb65c2de1742ba3f9ad93935b0
PHP
fayyazblog/fayyaztest
/app/Controller/CountriesController.php
UTF-8
3,107
2.578125
3
[]
no_license
<?php class CountriesController extends AppController { public $recursive = 1; var $name = 'Countries'; var $scaffold; public $paginate = array( 'limit' => 25, 'conditions' => array('status' => '1'), 'order' => array('Country.name' => 'asc' ) ); public function beforeF...
true
6ab95c5385737eeda090361737d90b0cc1bf576b
PHP
Harvie/Programs
/php/skripty/grep.php
UTF-8
544
2.75
3
[]
no_license
<?php //READLINE function readline($prompt="") { echo $prompt; $t = ""; $c = ""; while(1) { $c = fread(STDIN, "1"); if ($c == "\n") { // && ($c == "\r") //May be later on oher systems return $t; } else { $t = ($t.$c); } } return $t; } //READLINE ...
true
df5a213db148ada67c9e507080c6828df719fa55
PHP
pakaufmann/Battleships
/src/kufi/BattleshipBundle/Ai/AiFactory.php
UTF-8
632
3.0625
3
[]
no_license
<?php namespace kufi\BattleshipBundle\Ai; class AiFactory { private $aiStrategies; /** * start the factory with the given strategies * * @param aiStrategies array */ public function __construct($aiStrategies) { $this->aiStrategies = $aiStrategies; } public function getStrategy($difficulty) { fo...
true
47ab2a5f5f235b2483197844310aa70c2eda3852
PHP
phpmichael/0352
/application/controllers/wishlist.php
UTF-8
2,004
2.765625
3
[]
no_license
<?php require_once(APPPATH.'controllers/abstract/front.php'); /** * This is controller for wishlist. * * @package shop * @author Michael Kovalskiy * @version 2011 * @access public */ class Wishlist extends Front { /** * Init required models, helpers, language sections, pages' titles, css files etc...
true
6bac6e7b965e2d12c57311aef5301863e6e93842
PHP
EduinMay12/Plataforma-Gestion-de-Cambio
/AdminLTE/app/Http/Livewire/ModuloCapacitaciones/Grupos/Index.php
UTF-8
2,396
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire\ModuloCapacitaciones\Grupos; use Livewire\Component; use App\Models\ModuloCapacitaciones\Grupo; use App\Models\ModuloCapacitaciones\Categoria; use App\Models\ModuloCapacitaciones\Curso; use Livewire\WithFileUploads; use Livewire\WithPagination; class Index extends Component { us...
true
77fccf65870f48ad3694698e1adf6225d232111e
PHP
CristianaCampos/Gestor-Estagios
/Professor/BD/EntidadesEstagio/registarEntidadesEstagioInserir.php
UTF-8
718
2.59375
3
[]
no_license
<?php $nome = $_GET["nome"]; $morada = $_GET["morada"]; $localidade = $_GET["localidade"]; $email = $_GET["email"]; $contacto = $_GET["contacto"]; $nif = $_GET["nif"]; $servername = "localhost"; $username = "root"; $password = ""; $dbname = "capaEstagiodb"; // Efetua a ligação $conn = mysqli_connect($servername, $us...
true
543a89799eeb29c50ee6c7673a6eff4a50776d58
PHP
zizo877/setfive.github.com
/autocomplete_test/algorithms_hiphop.php
UTF-8
2,612
2.6875
3
[]
no_license
<?php function readMemoryScan($args){ $startsWith = strtoupper($args["startsWith"]); $state = $args["state"]; $results = array(); $dataArray = array(); $data = explode("\n", trim(file_get_contents("schoollist.csv"))); foreach( $data as $line ){ $csvParts = explode(",",...
true
5bc16df088a3d130cf87bf8c48fe27e6af9b51a2
PHP
syed-haider-abbas/openeclass-imscc
/helper.php
UTF-8
8,157
2.953125
3
[]
no_license
<?php class Helper { /* creates a compressed zip file */ static function Zip($source, $destination) { if (!extension_loaded('zip') || !file_exists($source)) { return false; } $zip = new ZipArchive(); if (!$zip->open($destination, ZIPARCHIVE::CREATE)) { return false; } ...
true
c1e858c719d66c29bf7f14691314c6dbc70d5e2e
PHP
juniordrumsrmv/emporium
/module/Application/src/Entity/PollStore.php
UTF-8
1,278
2.5625
3
[]
no_license
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * PollStore * * @ORM\Table(name="poll_store") * @ORM\Entity */ class PollStore { /** * @var integer * * @ORM\Column(name="store_key", type="bigint", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="NON...
true
fa737420c048c1cbc2351ac65ce97d8a943b4f28
PHP
2dotstwice/value-objects
/tests/Integer/Behaviour/IsIntegerTest.php
UTF-8
3,227
2.90625
3
[]
no_license
<?php namespace TwoDotsTwice\ValueObject\Integer\Behaviour; class IsIntegerTest extends \PHPUnit_Framework_TestCase { /** * @test */ public function it_should_accept_and_return_an_integer_value() { $integerValue = 123; $vo = new MockInteger($integerValue); $this->assertEq...
true
67b2a3faec04e3f94f2424891ebba2cadeda7c6a
PHP
napestershine/ZenstruckRedirectBundle
/src/Model/NotFound.php
UTF-8
1,512
2.984375
3
[ "MIT" ]
permissive
<?php namespace Zenstruck\RedirectBundle\Model; /** * @author Kevin Bond <kevinbond@gmail.com> */ abstract class NotFound { /** * @var string */ protected $path; /** * @var string */ protected $fullUrl; /** * @var \DateTime */ protected $timestamp; /** ...
true
0f46698797e46bd51760c78e4913eee1caaf4514
PHP
openmetrics-php/exposition-text
/src/Metrics/Summary/Quantile.php
UTF-8
1,295
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OpenMetricsPhp\Exposition\Text\Metrics\Summary; use OpenMetricsPhp\Exposition\Text\Exceptions\InvalidArgumentException; use OpenMetricsPhp\Exposition\Text\Types\Label; final class Quantile { /** @var Label */ private $quantile; /** @var float */ private $value; /** *...
true
2c037ccf314dbe6175a02d663eae2847c5f1ae12
PHP
johnny94/taiping
/app/Taiping/Repositories/UserRepository.php
UTF-8
856
2.640625
3
[]
no_license
<?php namespace App\Taiping\Repositories; use App\User; use App\ClassSwitching; use Carbon\Carbon; class UserRepository { /*public function getPassedSwitchingLastMonth(User $user) { $switchings = $user->classSwitching ->where('checked_status_id', ClassSwitching::CHECKING_STATUS_PASS) ->filter( ...
true
b2e4955bc40033df52c288967f08d6e334d22075
PHP
epictete/oop
/database/form.php
UTF-8
2,549
3.234375
3
[]
no_license
<?php class Form { private $data; private $select; public $surround = 'p'; public function __construct($data = []) { $this->data = $data; } private function surround($html) { return "<{$this->surround}>$html</{$this->surround}>"; } private function getValue($i...
true
66a39fc4cf3a487494f3a68bdee26a0b4993ad31
PHP
sn01615/GestLibr
/lib/catalog.lib.php
WINDOWS-1252
42,588
2.609375
3
[]
no_license
<?php include "class/book.class.php"; $book = new Book(); include "class/catalog.class.php"; $catalog = new Catalog(); include "class/category.class.php"; $category=New Category(); switch ($a) { case "cr": // Display create header $template->set_filenames(array('catalogCreateHeader' => '...
true
2bb71d9577303a7a94c4e0715fc4842d39a8132c
PHP
ja3ferabdaoui/chat
/src/controllers/ChatController.php
UTF-8
910
2.859375
3
[]
no_license
<?php session_start(); /** * Class ChatController * */ class ChatController { private $model; private $view; public function __construct() { $this->model = new ChatManager(); $this->view = New View('chat'); } public function newMessage($params) { if (iss...
true
0ae54d1982c08ad824bd257d52564b156a44256a
PHP
xuxoxool/xuxo
/system/database/Xuxo_DbContext_Sqlite.php
UTF-8
17,795
2.78125
3
[]
no_license
<?php //namespace Xuxo; /** * XUXO MVC FRAMEWORK * * SITE DBCONTEXT FOR SQLITE CLASS * ----------------------- * * @package XUXO * @subpackage DBCONTEXT * @children SQLITE * @author XUXO SYSTEM MALAYSIA * ---------------------------------------------------------------------- */ class Xuxo_DbContext_Sqlite { ...
true
d24b46c2083c4db5b8cdc6e3dd26c1055c8dcc09
PHP
EscolaSoft/wordpress-corcel
/api/app/Menu.php
UTF-8
3,080
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: mariusz * Date: 17.06.19 * Time: 11:02 */ namespace App; use Corcel\Model\MenuItem as Corcel; use Corcel\Model\Post; use Corcel\Model\Page; class Menu extends Corcel { protected $hidden = ['meta']; protected $appends = [ "title", "name", ...
true
7d6085533c1e1447c8404ebbe982cf4d92257891
PHP
Delgesu2/snowtricks
/src/Domain/Entity/Video.php
UTF-8
1,283
2.765625
3
[]
no_license
<?php namespace App\Domain\Entity; use App\Domain\Entity\Interfaces\VideoInterface; use Doctrine\ORM\Mapping as ORM; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; /** * Video entity */ class Video implements VideoInterface { /** * @var \Ramsey\Uuid\UuidInterface */ private $id; /** * @var stri...
true
a520902a20abee0f4f6e950462f47d39b2c07093
PHP
avshatalov48/bitrix24-core-corp
/modules/market/lib/Application/Versions.php
UTF-8
380
2.859375
3
[]
no_license
<?php namespace Bitrix\Market\Application; class Versions { public static function getTextChanges(array $versions): array { $result = []; if (!empty($versions)) { ksort($versions); } $index = 0; foreach ($versions as $version => $text) { $result[] = [ 'INDEX' => $index++, 'VERSION' => $ver...
true
850ecb299be6b1cd6d70b37f8eb56f93ed3d9565
PHP
markocupic/resource-booking-bundle
/src/Response/AjaxResponse.php
UTF-8
4,476
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of Resource Booking Bundle. * * (c) Marko Cupic 2022 <m.cupic@gmx.ch> * @license MIT * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. * @link https://github.com/markocupic/resource-...
true
df85c44fd90d80de1338c15d8ae19b8c25330769
PHP
purpen/phenix
/src/Sher/Core/Interceptor/ValidToken.php
UTF-8
1,477
2.609375
3
[]
no_license
<?php /** * 验证Token拦截器,适用于App WAPI调用验证(微信小程序) * @author tianshuai */ class Sher_Core_Interceptor_ValidToken extends Doggy_Dispatcher_Interceptor_Abstract { /** * 实现过程 */ public function intercept(Doggy_Dispatcher_ActionInvocation $invocation) { $action = $invocation->getAction(); $request ...
true
b8077312f75b1c745404024b998f5aa29b6b305f
PHP
SophieMoons/oplossingen
/opdracht-CRUD-delete/opdracht-CRUD-delete.php
UTF-8
3,657
2.875
3
[]
no_license
<?php $errorMessage=false; //deel 2 $deleted = false; $IDDeleted = false; try { $database=new PDO('mysql:host=localhost;dbname=bieren','root',''); //connecteer met database if(isset($_POST['confirm-delete'])) //deel 2 { $deleted = true; $IDDeleted = true; } if ( isset( $_POST['delete'] ) ) { $deleteQue...
true
6de8a68992344f3d19c5f6f9e3044e69628982b5
PHP
ThiagoAlvesPHP/multilinguagem_v1
/index.php
UTF-8
3,111
2.65625
3
[]
no_license
<?php session_start(); /*https://github.com/statickidz/php-google-translate-free*/ require 'vendor/vendor/autoload.php'; use \Statickidz\GoogleTranslate; if (isset($_SESSION['lg'])) { if ($_SESSION['lg'] == 'pt') { require 'pt.php'; } else { require 'en.php'; } } else { require 'pt.php'; } ?> <!DOCTYPE html> ...
true
8c3c5f0508d0aa0430da2d0109e5fc12bc6b5b8a
PHP
RomanovSci/interview.ssl-info-bot
/app/Http/Controllers/SubscribersController.php
UTF-8
603
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Subscriber; use Illuminate\Http\Response; class SubscribersController extends Controller { /** * Get list of subscribers * * @return Response */ public function all() { return response()->json( Subscriber::all() ...
true
8351f63ab993b12cfd98ed94666ad50129d7a3d6
PHP
akhanda4/QUIZ_APP_AMAN_LUMEN
/app/Http/Controllers/SubCategoriesController.php
UTF-8
1,706
2.5625
3
[ "MIT" ]
permissive
<?php /** * This is a controller class * * @author Aman Kumar * @since 04-02-2020 */ namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use App\SubCategoriesModel; use DB; class SubCategoriesController extends Controller{ public function __construct() { ...
true
3cdc09ab40b1324bff21573a9d4c0817f7832764
PHP
zekeriya054/e-fatura
/vendor/2amigos/yii2-exportable-widget/src/iterators/DataProviderIterator.php
UTF-8
5,133
2.734375
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of the 2amigos/yii2-exportable-widget project. * (c) 2amigOS! <http://2amigos.us/> * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace dosamigos\exportable\iterators; use Countable; use dosamigos\e...
true
48dd3521fc6b1d12969f4deb7ff9137f70c15c2e
PHP
Jokerius/wgt
/index.php
UTF-8
7,204
2.65625
3
[]
no_license
<?php define('IMAGE_WIDTH', 1850); define('IMAGE_HEIGHT', 750); define('SHOW_MEDIAN_AVERAGE', 0); define('SHOW_MEDIAN_LAST5', TRUE); $orig_width = IMAGE_WIDTH; $orig_height = IMAGE_HEIGHT; if($_GET['wid'] > 500 && $_GET['wid'] < 10915){ $orig_width = $_GET['wid']; } global $width, $height, $offset_w...
true
9d8d5e06d5b32cbb9f0c66a11f76f2bc0401b376
PHP
Slurp/sheepmusic
/src/LastFm/Entity/Embeddable/LastFmUser.php
UTF-8
1,492
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the BlackSheep Music. * * (c) Stephan Langeweg <slurpie@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace BlackSheep\LastFm\Entity\Embeddable; /** * Interface for the LastFm U...
true
698a957609e0fcb274fc1657765ac5d2031e7fdf
PHP
lerre/GreenPHP
/core/library/Database.php
UTF-8
728
2.953125
3
[]
no_license
<?php /** * 数据库CRUD类 * * 如果不想使用CRUD可以使用 $db->getPdo(); 方法获取PDO对象 */ require_once 'fluentPDO/FluentPDO.php'; class Database { static protected $ars = array(); static function connect($dsn,$pconn=false){ $key = md5(json_encode($dsn).$pconn); if(!isset(self::$ars[$key])){ $pdo = new PDO($dsn['dsn...
true
2db7a0b963413119c08375e0123e031dd849abcd
PHP
khalilrehman36/transaction_api
/app/Http/Controllers/TransactionController.php
UTF-8
1,756
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Maatwebsite\Excel\Facades\Excel; class TransactionController extends Controller { public function __construct() { } /* * Function to get data from csv file. */ public function ...
true
8e7e39d23549db44772473c3f5b9fcbd594a0cfd
PHP
bryant1410/StartupsCampfire
/app/Events/MentionUsers.php
UTF-8
729
2.53125
3
[]
no_license
<?php namespace StartupsCampfire\Events; use Illuminate\Database\Eloquent\Model; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class MentionUsers extends Event { use SerializesModels; public $mentioned_users; public $related_model; /** * Create ...
true
d0f972888dc1f983480f8c59ac21485031a3a2d2
PHP
SantasHelper/Program-O
/gui/plain/index.php
UTF-8
1,593
2.609375
3
[]
no_license
<?php if($_REQUEST) { include("../../chatbot/conversation_start.php"); } else { session_start(); $display = ""; } if(isset($_REQUEST['bot_id'])){ $bot_id = $_REQUEST['bot_id']; }else{ $bot_id = 1; } if(isset($_REQUEST['convo_id'])){ $convo_id = $_REQUEST['convo_id']; }else{ $convo_id = session_id(); } if(iss...
true
6d53773a5f313511af5cc6e459cdd5c3ae211051
PHP
jekt/blog-php
/controllers/PostController.php
UTF-8
1,960
2.765625
3
[]
no_license
<?php class PostController extends Controller { static function getHomePage() { $posts = Post::fetchAll(); echo self::render('homePage', array('posts' => $posts)); } static function getPostPage() { $post = new Post(Router::get('ids')[0]); echo self::render('postPage', array('post' => $post)); } ...
true
9e551242d466409f7b4981a3d9c71db37917ef48
PHP
AndreiMariusSili/AirportApp
/app/Http/Controllers/ScheduleController.php
UTF-8
4,354
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Flight; use App\Airport; use App\Schedule; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Database\Eloquent\ModelNotFoundException; class ScheduleController extends Controller { /** * Set the number of lanes an...
true
1943684cdde50467444f50d49d56cbc294cdda74
PHP
Grosloup/shop_3
/src/Lib/CQRS/CommandHandlerAbstract.php
UTF-8
1,125
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: nicolas * Date: 10/01/17 * Time: 23:18 */ namespace Lib\CQRS; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; abstract class CommandHandlerAbstract implements CommandHandlerInterface, LoggerAwareInterface { /** * @var EventStoreInterface ...
true
5d766ffaa006fe222a127bc66890dc99cbaaaad0
PHP
sahibalejandro/share-markdown
/app/Http/Controllers/DocumentsController.php
UTF-8
2,968
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Document; use Flash; use Illuminate\Http\Request; class DocumentsController extends Controller { /** * Get a new documents controller instance. */ public function __construct() { $this->middleware('auth', ['except' => 'show']); } /*...
true
95f96ecc6fcc9523799138f115f91eef1ca329e3
PHP
asurcodes/codersparaphernalia
/app/Product.php
UTF-8
996
2.703125
3
[]
no_license
<?php namespace App; use Laravel\Scout\Searchable; use Illuminate\Database\Eloquent\Model; class Product extends Model { use Searchable; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'tags' => 'array', ]; public func...
true
95cd8a6922e944ed56f68d66811206fd0aa2511c
PHP
kamansoft/klorchid
/src/Notificator/Notificator.php
UTF-8
1,650
2.828125
3
[]
no_license
<?php namespace Kamansoft\Klorchid\Notificator; use Illuminate\Support\Facades\Log; use Orchid\Alert\Alert; use Orchid\Support\Facades\Alert as AlertFacade; use Orchid\Support\Facades\Toast as ToastFacade; class Notificator implements NotificaterInterface { const DEFAULT_MODE = 'alert'; private string $mo...
true
4e92a18e3c6f1d05bc47dd07e8326f638500afb8
PHP
dvn75/dmpublic
/index.php
UTF-8
4,257
2.6875
3
[]
no_license
<?php session_start(); require_once 'bdd_connexion/database.php'; if(isset($_POST['inscription_btn'])){ extract($_POST); $prenom = trim(htmlentities($_POST['prenom'])); $nom = trim(htmlentities($_POST['nom'])); $postnom = trim(htmlentities($_POST['postnom'])); ...
true
01a1ff1f366b09d3f28adac5b440b26195aba5a1
PHP
falodunos/eqa
/module/Application/src/Application/Service/Contract/RoleServiceInterface.php
UTF-8
463
2.578125
3
[]
no_license
<?php namespace Application\Service\Contract; use Application\Entity\Contract\RoleInterface; use Base\Service\Contract\BaseServiceInterface; interface RoleServiceInterface extends BaseServiceInterface { public function findAllRoles(); /** * * @param unknown $id */ public funct...
true
df786b3dbfe79ae1b420eef0c50b2be571727787
PHP
victor-frag/sample-php-app
/app-code/upload.php
UTF-8
2,015
2.71875
3
[]
no_license
<?php include "config.php"; if(isset($_POST["submit"])) { if($_FILES['file']['name']) { $filename = explode(".", $_FILES['file']['name']); if($filename[1] == 'csv') { $handle = fopen($_FILES['file']['tmp_name'], "r"); while($data = fgetcsv($handle)) { $item1 = mysqli_real_escape_string(...
true
64416e7b6d0bf4b9392cc0cd27a2f025bbd3ee60
PHP
qlsove/Tumblr_api_app
/application/classes/Model/Gallery.php
UTF-8
843
2.640625
3
[]
no_license
<?php class Model_Gallery extends Model{ protected $table = 'gallery'; public function addPhoto($login, $post_id, $path) { $query = DB::insert($this->table, array('login', 'post_id', 'path')) ->values(array($login, $post_id, $path)) ->execute(); } public f...
true
93b4ef93468e4de9034c7e1607bec0d4d6251233
PHP
ytavares/Working-with-PHP-OO
/Curriculos/src/Models/Entity/Cidade.php
UTF-8
350
2.734375
3
[]
no_license
<?php namespace YuriTavares\Models\Entity; class Cidade { private $id; private $estado; private $nome; public function getId() { return $this->id; } public function getEstadoId() { return $this->estado; } public function getNome() { return...
true
4270d2946fce04f4dccf3f8a6d3e8fcd6dc1b67e
PHP
vluismx/xgp303ls
/application/core/Options.php
UTF-8
3,444
3.0625
3
[]
no_license
<?php /** * Options * * PHP Version 5.5+ * * @category Core * @package Application * @author XG Proyect Team * @license http://www.xgproyect.org XG Proyect * @link http://www.xgproyect.org * @version 3.0.0 */ namespace application\core; /** * Options Class * * @category Classes * @package App...
true
01f34aa1f40026ef30b163bcaaf492f988962414
PHP
robmat/samplebator
/dartliga_php/LVP/ORM/fedastat.php
UTF-8
2,114
2.828125
3
[]
no_license
<?php class cFedaStat{ // properties var $numRoundsScore=0; var $numRoundsCheck=0; var $scoreLeft=0; var $LegStart=501; var $checkZone=159; var $errMSG=''; function cFedaStat($rScore,$rCheck,$iLeft){ // constructor if ($rCheck<$rScore) return -1; if ($this->LegStart==501 && $rCheck<3) retur...
true
a57d72a1a11db0c1edf6926a0c3e42cbdfb2715d
PHP
DenilsonDesigns/PHP_TD_P4
/classes/Phrase.php
UTF-8
1,415
3.390625
3
[]
no_license
<?php class Phrase { public $current_phrase; public $selected; function __construct($current_phrase, $selected = array()) { $this->current_phrase = $current_phrase; $this->selected = $selected; } public function addPhraseToDisplay($guessed_letters = []) { // echo ...
true
123833a6adeda248d3c62223b407d203c6a32d02
PHP
Dinuka-Dilshan/Samadhi_Childerns_Home
/addchild.php
UTF-8
6,550
2.671875
3
[]
no_license
<?php session_start(); // Check if the user is logged in, if not then redirect him to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ header("location: index.php"); exit; } include("sql.php"); $isAdded = false; $isFailed = false; if (!empty($_SESSION['success'])) { $isAd...
true
9c62f0b1885ad8d8d7284af10cf4d81448efe10f
PHP
larcz94/ecotrail
/appengine/questions/android/Question_Android.php
UTF-8
1,044
2.703125
3
[]
no_license
<?php namespace lk\gdgsrilanka\io18; include_once 'Question.php'; include_once 'Answer.php'; require 'vendor/autoload.php'; class Question_Android implements Question { public function getClueContent($email, $key) { $answer = new Answer(); $answer->answerHeader = "text/html"; $answer->answerContent = "<h2>Fi...
true
9f3061f643b440b01fed3747210e2abc8b3b0d36
PHP
danemmanuel/99moteis
/php/class/user.class.php
UTF-8
962
3.140625
3
[]
no_license
<?php require_once 'database.class.php'; class tests { private $id; private $site; private $data; private $ip; public function getId(){ return $this->id; } public function setId($id){ $this->id=$id; } public function getSite(){ return $this->site; } public function setSite($site){ $this->site=$...
true
a3979e813617cf999ecb7cce2dca1c0a63936438
PHP
sshambar/jinzora3
/lib/classes.php
UTF-8
15,201
2.703125
3
[]
no_license
<?php if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.'); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * JINZORA | Web-based Media Streamer * * Jinzora is a Web-based media streamer, primarily desgined to stream MP3s * (but can be used for any media file that can stream fro...
true
1c4ac8af4aa5c21470838331e8faf6aea0c1530a
PHP
igruliuli/game_admin
/libraries/games/Fortune.php
UTF-8
6,786
3.296875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\libraries\games; use app\models\BetOperation; abstract class Fortune extends Game { protected function processBet($bet, $result) { // simple match if ($bet <= 36) { if ($bet == $result) { return 36; } } // row #1 ...
true
6bcdbf136fd3bcb81a28452b684859cd25d403e1
PHP
lihq1403/gadget
/DesignPattern/Creational/Builder.php
UTF-8
3,118
3.703125
4
[]
no_license
<?php /** * 建造者模式 * 建造者模式也称生成器模式,核心思想是将一个复杂对象的构造与它的表示分离,使同样的构建过程可以创建不同的表示,这样的设计模式被称为建造者模式。 * 例如:汽车,他的发动机引擎有好多品牌,轮胎也有各种材质,内饰更是千奇百怪;鸟,他的头、翅膀以及脚有各种颜色和形状,在创建这种复杂对象的时候,我们建议使用建造者模式。 * 建造者模式一般认为有四个角色: 1.产品角色,产品角色定义自身的组成属性 2.抽象建造者,抽象建造者定义了产品的创建过程以及如何返回一个产品 3.具体建造者,具体建造者实现了抽象建造者创建产品过程的方法,给产品的具体属性进行赋值定义 4.指挥者,指挥者负责与调用客户...
true
77fdada06dc6ed962f8ded05c349d57f73748257
PHP
manniR/freiestheater
/public/content/themes/freiestheater/tourdateListing.php
UTF-8
5,627
2.546875
3
[]
no_license
<?php /* Template Name: Tourdates Listing */ ?> <?php get_header(); ?> <div id="content" class="clearfix row"> <div id="sidebar1" class="col-sm-3" role="complementary"> <!--SIDE BAR--> <?php wp_nav_menu(array('theme_location'=>'hp_side_menu', 'walker'=> new MR_Child_Only_Walker(), 'depth'=>2)) ...
true
e14c1e97f25d7384c85f3c59d390b4327ab72930
PHP
damyanpazvanski/DMPFramework
/DMP/Router.php
UTF-8
2,588
2.828125
3
[ "MIT" ]
permissive
<?php namespace DMP; class Router { const ROUTER_PATH = __DIR__ . '/../config/router.php'; private $router; private $params = []; public function __construct() { $this->load(); } private function load() { $route = require self::ROUTER_PATH; $this->router = $r...
true
74c0a0fd6a21fdab3a4048cc05c3098b5f9e44cc
PHP
PeppeJerry/Multishop
/Multishop/website/assets/php/get_setting.php
UTF-8
462
2.671875
3
[]
no_license
<?php function get_setting(){ require 'database.php'; try{ $path = 'mysql:host=localhost;dbname='.$db_name; $user = 'root'; $pwd = ''; $get_setting = "SELECT * FROM settings"; $con = new PDO($path,$user,$pwd); $link = $con->prepare($get_setting); $link->execute(); $setting = $link->fetch(); ...
true
0b2b882d0f93536dff5ae04c0f258e8b257cf3fe
PHP
WatanabeHiroki0903/watanabe
/keijiban-html/util.php
UTF-8
501
2.96875
3
[]
no_license
<?php // エスケープhtmlspecialchars)の関数とエンコードチェックの関数の定義 function es($data, $charset="UTF-8"){ if(is_array($data)){ return array_map(__METHOD__, $data); }else{ return htmlspecialchars($data, ENT_QUOTES, $charset); }; }; function cken(array $data){ $result=true; foreach($data as $key => $value){ if(is_array($value...
true
30ab90990c1f7f07589cafc6a624bc70992f334e
PHP
Andrewsas/opinar
/dao/AvaliaItemDAO.php
UTF-8
3,754
3.09375
3
[]
no_license
<?php require_once("../bd/conexaobd.php"); class AvaliaItemDAO{ public $conn; function AvaliaItemDAO(){ $this->conn = conexao::conectar(); } // Função carrega comentario item ******************************************* function carregaCarregaComentario($item){ try{ $sql = "call sp_carregacomentario(?);...
true
cbe2c24817d1c08554432d64af923ed6b1bc8eae
PHP
spidgorny/energy-monitor
/src/EnergyMonitor/CheckTraining.php
UTF-8
1,709
2.75
3
[ "Unlicense" ]
permissive
<?php /** * Created by PhpStorm. * User: DEPIDSVY * Date: 22.05.2017 * Time: 16:03 */ namespace EnergyMonitor; use EnergyMonitor\OpenCV\Matrix; use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Yaml; class CheckTraining extends AppController { function render() { $content = []...
true
966c093a34dc155ff32800cf4064014fef6ddf7d
PHP
WokerJJ/PokeApi
/Pokemon/api/config/conbd.php
UTF-8
419
2.59375
3
[]
no_license
<?php $host = "localhost"; $dbase = "pokeapi"; $user = "root"; $pss = "12345"; try{ $conn=new PDO("mysql:host=$host;dbname=$dbase",$user,$pss); }catch(Exception $exce){ echo $exce->getMessage(); } $SSQL = $conn->prepare("SELECT DISTINCT id, nombre, imagen, hab...
true
305db975fe22ec489e69f24deed59bb0e5f21631
PHP
sedinson/obci
/Models/IHHModel.php
UTF-8
752
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of IHHModel * * @author edinson */ class IHHModel extends ModelBase { //put your code here public...
true
d23aee24063d41f57dd8491d6827dd12a5cc25c6
PHP
curtiskelsey/interviewquestions
/php_video_rental_statement/tests/Model/CustomerTest.php
UTF-8
1,335
2.578125
3
[]
no_license
<?php namespace AxisCareTest\Model; use AxisCare\Model\Customer; use AxisCare\Model\Movie; use AxisCare\Model\MovieClassification; use AxisCare\Model\PointsProfile; use AxisCare\Model\RateProfile; use AxisCare\Model\Rental; use PHPUnit\Framework\TestCase; /** * Class Customer * @package AxisCareTest */ class Cus...
true
3aa8db7f14f54e0f461e572f494b79c1f8212d60
PHP
Er1cYang/yiiliteforzswidget
/framework/validators/CNumberValidator.php
UTF-8
2,460
2.640625
3
[]
no_license
<?php class CNumberValidator extends CValidator { public $integerOnly=false; public $allowEmpty=true; public $max; public $min; public $tooBig; public $tooSmall; public $integerPattern='/^\s*[+-]?\d+\s*$/'; public $numberPattern='/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/'; protected function validateAttribute($o...
true
6d5fc81574a51a7fdb9ccbfb6282b3b0e38226f8
PHP
bedstvie/ek_simulpub
/plugins/content_types/simulpub_serie_preview.inc
UTF-8
1,015
2.515625
3
[]
no_license
<?php /** * @file * Plugin to handle the 'page_logo' content type which allows the * logo of the site to be embedded into a panel. */ /** * Plugins are described by creating a $plugin array which will be used * by the system that includes this file. */ $plugin = array( 'title' => t('Simulpub serie prev...
true
c4a0d9cae29a75b3f287882e3edede0463d0ca3e
PHP
adrianacapata/blog-mvc
/src/Command/NewsletterCommand.php
UTF-8
1,290
2.78125
3
[]
no_license
<?php namespace Blog\Command; use ArrayObject; use Blog\DependencyInjection\Container; use Blog\Model\Entity\BlogEntity; use Blog\Model\Entity\NewsletterEntity; use Blog\Model\Repository\BlogRepository; use Blog\Model\Repository\NewsletterRepository; use Blog\Router\Exception\InvalidTemplateException; class Newslett...
true
f989934f24ad18fdf558e89396a221db62e0bc06
PHP
sxunt520/axes
/api/models/Shield.php
UTF-8
527
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\models; use Yii; /** * This is the model class for table "{{%shield}}". * * @property string $id * @property string $shield_from_uid * @property string $shield_to_uid * @property string $created_at * @property integer $status */ class Shield extends \common\models\Shield {...
true
117e2d6e982dccf31d9d2ce3ca913a654385b15d
PHP
oscardaniel88/Mastering-PHP-7
/Chapter09/B05210_09_6.php
UTF-8
1,225
2.875
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/vendor/autoload.php'; use \Rx\Observable; use \Rx\Observer\CallbackObserver; use \React\EventLoop\Factory; use \Rx\Scheduler; $loop = Factory::create(); Scheduler::setDefaultFactory(function () use ($loop) { return new Scheduler\EventLoopScheduler($loop); }); // Ge...
true
fd073ada7c96ab57718dbce1cb27ff52b256ec84
PHP
jitendersinghwp/wp-yak
/classes/Deploy.php
UTF-8
7,787
2.875
3
[]
no_license
<?php /** * Contains class that loads configuration * * @package WP-Yak * * @author Saurabh Shukla <saurabh@yapapaya.com> * * @since 0.1.0 */ namespace Yapapaya\DevOps\WPD { /** * Main deployment functionality * * Deploys code for WP related workflows * * @since 0.1 */ class Deploy { /**...
true
1a7a8909dd85aa59a4a6c9aacf00838939be5ad3
PHP
lindicell/CadastroFornecedores
/exemplos/learquivo.php
UTF-8
254
3.0625
3
[]
no_license
<?php $arquivo = fopen("teste.txt", "r"); if ($arquivo == false) echo ('Nao foi possivel abrir o arquivo'); while (true) { $linha = fgets($arquivo); if(linha == null) break; echo $linha. '<br>'; } fclose($arquivo); ?>
true
74241e5e9aa65c6d4109382497748ef67bbf9418
PHP
rizqiphard/Bayar.In
/bayarin/buatVoucher.php
UTF-8
3,360
2.53125
3
[ "MIT" ]
permissive
<?php $servername = "localhost"; $database = "db_bayarin"; $username = "root"; $password = ""; // untuk tulisan bercetak tebal silakan sesuaikan dengan detail database Anda // membuat koneksi $conn = mysqli_connect($servername, $username, $password, $database); if(isset($_POST['buatVoucher'])){ $id = $_POST['id'];...
true
c5af954971f117d0c321e1cffc67bc0829286382
PHP
CodeGymC1019i1/Number_One_Module_2
/ss_2/cuong-s2/try-catch/index.php
UTF-8
875
2.9375
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>Document</title> </head> <body> <form method="POST"> <input type="number" name="x"> <in...
true
b76187dd2d14bed3f4f0e0d14c23a7471d282250
PHP
ricardotec/tutorial
/app/models/Comentarios.php
UTF-8
4,543
2.75
3
[]
no_license
<?php class Comentarios extends \Phalcon\Mvc\Model { /** * * @var integer * @Primary * @Identity * @Column(type="integer", length=11, nullable=false) */ protected $id_comentario; /** * * @var string * @Column(type="string", nullable=false) */ protecte...
true
030813e19ae72d8ff72360684dda0506d782134c
PHP
thl13-uakron/DBM-sp2020
/ezChat-test/PHP/getRoomInfoUpdates.php
UTF-8
5,783
2.671875
3
[]
no_license
<?php # this script returns any changes to the name or description of the room as well as any changes made # to the user's permissions and any channels that have been added, edited, or deleted # initialize result array $ajaxResult = array(); # get connection to mysql database include "dbAccess.php"; $db = get_db_conn...
true
fc9d5b21f4dda046a6bacff1cb9501fb02dd9ad2
PHP
RotaTour/backend
/app/Http/Controllers/Api/AuthenticateController.php
UTF-8
11,023
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Validator; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; use Socialite; use App\Models\User; class AuthenticateController extends Controller { /** * get a JWT ...
true
c42562db38ca414c8c89bb039f270081dc82ffa2
PHP
extralagence/extra-framework
/includes/extra-metabox/AbstractField.php
UTF-8
2,589
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: vincent * Date: 27/02/2014 * Time: 11:01 */ namespace ExtraMetabox; abstract class AbstractField { protected $mb; protected $name; protected $name_suffix = ''; protected $label; protected $description; protected $icon; protected $css_class; pro...
true
c7e2e175a8585ec0d02b43af385d908662419cdd
PHP
AlissonDiniz/university
/function/Enum.php
UTF-8
15,787
2.8125
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Enum * * @author Alisson */ class Enum { public function enumStatus($value) { switch ($value) { case "1": echo "Ativo"; ...
true
429ce6b09b6611087651f31e08d9559cf5c8eb3e
PHP
RobertJGabriel/Final-Year-Project
/models/login_model.php
UTF-8
1,867
2.75
3
[]
no_license
<?php class Login_Model extends Model { public function __construct() { parent::__construct(); //echo 1; } public function run() { $pass = $_POST['password']; $username = $_POST['username']; $sth = $this->db->prepare("SELECT * FROM users WHERE username = :username "); $sth->execute(array( ...
true
f8ec65383473c0997490a43f2b6c8e22b5c6da90
PHP
hipogea/zega3
/protected/extensions/behaviors/ParametrosBehavior.php
UTF-8
2,664
2.515625
3
[]
no_license
<?php /** * Behavior que gestiona los parametros del sisitema * * * @author Julian Ramirez neotegnia@gmail.com * @version 1.0.0 * */ class ParametrosBehavior extends CActiveRecordBehavior { public $nombrecampodocu=null; public $nombrecampocentro=null; private $_centro=null; private $_documento=null; publ...
true
626cf87d90d932e2ad7e7997550dee7d5034b4e7
PHP
Kmont19/Projet-Jeux-Video
/Base_de_donnees/BD/Models/ModelJeux.php
UTF-8
5,568
3.015625
3
[]
no_license
<?php require_once (__DIR__.'/../Connexion.php'); class ModelJeux { private $connexion; /** * ModelJeux constructor. */ public function __construct() { $class = new Connexion(); $this->connexion = $class->getConnexion(); } /** * @param string $id_jeu * @par...
true
73150105c767edb00196546dfac44e0df69c69ed
PHP
SelimAtasever/php-unittest
/IntegrationTests/ProcedureManagement/ProcedureApplicationServiceDbTest.php
UTF-8
2,756
2.578125
3
[]
no_license
<?php use \model\ProcedureManagement\application\ProcedureApplicationService; use \model\ProcedureManagement\infrastructure\ContainerRepository; use \model\ProcedureManagement\infrastructure\ProcedureRepository; use \model\ProcedureManagement\infrastructure\ApplicationRepository; use \model\ProcedureManagement\infras...
true
5bd1ec7ed25b63cbb1cdad49bd43c56328fbb7a9
PHP
youssefe85/iCal
/tests/Eluceo/iCal/PropertyTest.php
UTF-8
2,922
2.96875
3
[ "MIT" ]
permissive
<?php namespace Eluceo\iCal; class PropertyTest extends \PHPUnit_Framework_TestCase { public function testEscapeParamValue() { $propertyObject = new Property('', ''); $this->assertEquals( 'test string', $propertyObject->escapeParamValue('test string'), 'No ...
true
bc81d099c44c1a8094798acc838470658eba9c0b
PHP
brandonlamb/harp
/tests/src/TestModel/Post.php
UTF-8
1,360
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Harp\Harp\Test\TestModel; use Harp\Harp\AbstractModel; use Harp\Harp\Model\InheritedTrait; use Harp\Harp\Rel; use Harp\Validate\Assert; /** * @author Ivan Kerin <ikerin@gmail.com> * @copyright (c) 2014 Clippings Ltd. * @license http://spdx.org/licenses/BSD-3-Clause */ class Post extends A...
true
0e2f0391545fb2e55d4fc7c33afc932c0a57b5f3
PHP
alexeytokun/php
/1_11.php
UTF-8
393
3.6875
4
[]
no_license
<?php function findNumbers($n) { $result = array(); for($i = 0; $i < count($n); $i++) { $temp = $n[$i]; $sum = 0; while($temp >= 1) { $sum += $temp % 10; $temp /= 10; } if ($n[$i] % $sum == 0) { $result[] = $n[$i]; } } return $result; } for($m = 1; $m < 1...
true
db3a7e72a9aee1e8d049f53ac3611ad39d429a54
PHP
such0322/larcache
/app/Http/Controllers/ContainerController.php
UTF-8
3,017
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Container; use App\Superman; use App\XPower; use App\UltraBomb; use ReflectionClass; class ContainerController extends Controller { /** * Display a listing of the resource....
true
83971e3d7adc1ef28ea3b5642ff9a3be4f7cd3f5
PHP
OpenHaus/podlove
/lib/modules/podcast_de/podcast_de.php
UTF-8
823
2.53125
3
[ "MIT" ]
permissive
<?php namespace Podlove\Modules\PodcastDe; use \Podlove\Model; class Podcast_De extends \Podlove\Modules\Base { protected $module_name = 'podcast.de Integration'; protected $module_description = 'Adds .'; public function load() { add_action( 'wp', array( $this, 'register_hooks' ) ); } /** * Register...
true
2edd3fdd215dc0047991f88892906397ae1cc907
PHP
nilarrus/AWS2-Calendari
/pizza/index.php
UTF-8
1,607
2.828125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>pizza</title> </head> <body> <div> <h2>Pizza Seleccion:</h2> <form action="" method="post" id="myform" name="myForm"> <label>Seleciona una Massa la </label> <select name="Massa" id=""> <optgroup label="Massas"> <option value="Pa...
true
dd3ba152a8b1554e4a6aee20f0c2d5cda76e5525
PHP
yzhlove/TestProjects
/Test_80/main.php
UTF-8
703
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: love * Date: 2019-03-05 * Time: 19:49 */ $arr = [ ["1", "a"], ["1.1", "b"], ["1.1.1", "ab"], ["1.2", "c"], ["1.2.1", "ac"], ["1.2.1.1", "ac1"], ["1.2.1.2", "ac2"], ["2", "b"], ["2.1", "b"], ["2.1.1", "bb"] ]; function show(array $a...
true
2fb39d1f7a151a824f349739fc2e7009f59f34ca
PHP
ariyDezmond/travelshop.local
/www/getimage.php
UTF-8
1,599
2.578125
3
[]
no_license
<?php function getExtension($filename) { return end(explode(".", $filename)); } function getImage($link, $type) { $filename = $link; $percent = 0.5; if (getExtension($filename) == 'jpg' || getExtension($filename) == 'jpeg') { header('Content-type: image/jpeg'); } if (getExtension($file...
true
9dfe845c92acadf1ba55b622ac4cff9cb9544789
PHP
satahippy/PhpExamples
/protected/views/pages/spl/functions/class_parents.php
UTF-8
2,346
2.671875
3
[]
no_license
<?php $view->extend('layouts/default.php'); $view['slots']->set('title', 'class_parents.'); $view['slots']->set( 'breadcrumbs', array( array('title' => 'SPL', 'url' => '/spl/'), array('title' => 'Функции', 'url' => '/spl/functions/'), array('title' => 'class_parents') ) ); echo $view...
true
f532116ca6b53c06640de1d263e2759f39cb20dc
PHP
php4dev/LeetCode-in-Php
/src/Algorithms/0137.single-number-ii/single-number-ii.php
UTF-8
838
3.6875
4
[]
no_license
class Solution { /** * @param Integer[] $nums * @return Integer */ function singleNumber($nums) { sort($nums); $result = -1; $found = false; $i = 0; while($found == false){ $found = false; if($i == count($n...
true
08702227ef9724a9c38a0db5bca6971193561393
PHP
piershaw/FireCG
/pixeltac/saveTextFile.php
UTF-8
418
2.65625
3
[]
no_license
<?php if (isset($_POST['filename']) && isset($_POST['textcontent'])) { $fh = fopen($_POST['filename'], 'w') or die('result=false' ); fwrite($fh, $_POST['textcontent']); fclose($fh); $page = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $page = substr($page,0,strrpos($page,'/')); //print 'result=true&path='.urlenco...
true
9f36af1366a73e847a7dd0bee83fcdb15f596bc1
PHP
Mozicxx/kohana-bs-admin
/modules/redis/classes/Kohana/Redis/Client.php
UTF-8
2,114
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /* * @package Redis Module * @author Pap Tamas * @copyright (c) 2011-2013 Pap Tamas * @website https://bitbucket.org/paptamas/kohana-redis * @license http://www.opensource.org/licenses/isc-license.txt * */ class Kohana_Redis_Client...
true