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
e0b15f6d96bff504ddbbee862d2013142efbe835
PHP
esraa-hassan8097/HospitalProject
/hms/receptionist/controller/appointments-controller.php
UTF-8
1,803
2.53125
3
[]
no_license
<?php session_start(); //include('include/config.php'); include_once "../model/appointments-model.php"; if(isset($_POST['submit'])) { if ($_POST['appdate']<date("Y-m-d H:i:s")) { echo "<script>alert('Oops! Date has been passed.');</script>"; echo "<script>window.location.href ='../view...
true
90c55d0e9aa6a9f390e2ebe0beeb3e6a7e5894e0
PHP
senviet/337_Plugin_Custom_SyntaxHighlighter_Evolved_theme
/inc/SHT_Theme.php
UTF-8
1,350
2.703125
3
[]
no_license
<?php /** * Project : 337_Plugin_Custom_SyntaxHighlighter_Evolved_theme * User: thuytien * Date: 8/26/2014 * Time: 8:23 AM */ class SHT_Theme { private $themes; private static $instance; public static function instance() { if (!self::$instance) { self::$instance = new self();...
true
0f837b783b2f50ece5b8e30cbd2912fd24546ca8
PHP
brandshopru/online-receipt-api-client
/src/Contracts/ClientInterface.php
UTF-8
1,106
2.609375
3
[ "MIT" ]
permissive
<?php /** * This file is part of OnlineReceipt package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Brandshopru\OnlineReceiptApiClient\Contracts; /** * Interface ClientInterface. */ interface C...
true
836302214410b47349b3dec2a073ee20a0693750
PHP
media-line/perspectiva-decor
/bitrix/modules/main/lib/grid/options.php
UTF-8
3,693
2.546875
3
[]
no_license
<? namespace Bitrix\Main\Grid; /** * Class Options of main.ui.grid * @package Bitrix\Main\Grid */ class Options extends \CGridOptions { /** * Sets width of grid columns * @param number $expand * @param array $sizes */ public function setColumnsSizes($expand, $sizes) { $columns = array(); foreach (...
true
2102d2b586a65e961185bc2c49bf64e09b73356c
PHP
Flumuffel/Gta-V
/publicOld/test/index.php
UTF-8
528
2.6875
3
[]
permissive
<?php if(isset($_POST["ausfuehren"])) { $zitate = file("zitate.txt"); for($i=0;$i < count($zitate); $i++){ echo $i.": ".$zitate[$i]."<br><br>"; } } > <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <met...
true
7d07b920c9fac4379a1ea90ba9d2ff14cc05a25f
PHP
turbine-kreuzberg/mutov-slingr
/src/app/classes/Views/ViewXml.php
UTF-8
1,147
2.796875
3
[]
no_license
<?php namespace MutovSlingr\Views; use Ospinto\dBug; /** * Class ViewXml * * @package MutovSlingr\Views */ class ViewXml extends View { const CONTENT_TYPE = 'application/xml'; protected $headers = array( 'Content-Type' => self::CONTENT_TYPE ); /** * @param array $content * @r...
true
7f3a121bda03bc3073fb033f31a45aedf99c7160
PHP
legionth/igdb-reactphp-client
/src/IgdbClient.php
UTF-8
12,537
2.53125
3
[ "MIT" ]
permissive
<?php namespace Legionth\React\IGDB; use Legionth\React\Http\Client; use React\Promise\Promise; use React\Stream\ReadableStreamInterface; use RingCentral\Psr7\Response; use RingCentral\Psr7\ServerRequest; class IgdbClient { /** * @var string */ private $apiKey; /** * @var Client */ ...
true
3407655bd2fbbb25fa1051bf1b64e1c34331781a
PHP
IvanSantos100/corktech2
/app/Repositories/ClientesRepositoryEloquent.php
UTF-8
820
2.5625
3
[ "MIT" ]
permissive
<?php namespace CorkTech\Repositories; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Criteria\RequestCriteria; use CorkTech\Models\Cliente; /** * Class ProductRepositoryEloquent * @package namespace CorkTech\Repositories; */ class ClientesRepositoryEloquent extends BaseRepository implemen...
true
d51f07544aa529a0f61dd10062cea69a525b9f8a
PHP
adityaruplaha/adityaruplaha-school-website
/assignments/index.php
UTF-8
6,342
2.640625
3
[ "MIT" ]
permissive
<?php require_once "../login.php"; use \ScA\Student\TGLogin\TGLogin; $s = TGLogin::from_cookie(); $is_logged_in = ($s != NULL); Deprecate\disable_page(); if ($s != NULL) { $s = (new \ScA\Student\Student(NULL, $s->id)); $s->report_url_visit($_SERVER['PHP_SELF']); } if (!$is_logged_in) { header("Loca...
true
564f867ca9b6f38376045d6a6766f365800a6617
PHP
SamuelLozanoMartin/SYMFONY
/firstsf/src/AppBundle/Controller/LuckyController.php
UTF-8
822
2.640625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php // src/AppBundle/Controller/LuckyController.php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; //session_start(); class LuckyController extends Controller { /** * @Route("/lucky/number") */ p...
true
e218679eb88982b1a18ba8b12df9b0aeee81f35e
PHP
zacharyhu/game_monitor
/wx_forward/weixin.class.php
UTF-8
8,924
2.578125
3
[]
no_license
<?php //微信调用类 class weixin { private $token = "atokenswhs2013"; public $fromUsername; public $toUsername; public $keyword; private $MO_URL ='http://10.48.179.115:88/'; //构造函数 public function __construct($postStr) { $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA); ...
true
cd82f3e323bcecf5c14e0092d5e26f47aa9caca7
PHP
metonel/projadmin
/database/migrations/2018_04_26_143720_create_files_table.php
UTF-8
1,017
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFilesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('files', function ...
true
b93617204cadb258b1e1db09b0b24ffe4f1ae936
PHP
gennei/oop-exercises
/src/Money/CashBox.php
UTF-8
459
3.21875
3
[]
no_license
<?php namespace App\Money; class CashBox { private $coins = []; public function add(Coin $coin) { $this->coins[] = $coin; } public function doesNotHaveChange(): bool { return count($this->coins) < 4; } public function takeOutChange(): Change { $change = new Change()...
true
8210ac5486768b6acc96e4637c568699ffa6fde7
PHP
uzairlive/hcp-engagement-portal
/app/Http/Requests/Auth/ProfileUpdateRequest.php
UTF-8
2,972
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Auth; use Illuminate\Foundation\Http\FormRequest; use App\Rules\MatchOldPassword; class ProfileUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
true
808476ef929da5df283978d883b035b1a82d9e1e
PHP
DimaMinka/oi-forms
/includes/rest-api.php
UTF-8
1,328
2.703125
3
[]
no_license
<?php /** * Date: 2019-02-25 * @author Alex Isaenko <info@sh14.ru> */ namespace forms; use WP_REST_Request; /** * Регистрация эндпоинта для работы с формами */ function rest_api_endpoints() { // список эндпоинтов $endpoints = apply_filters( 'forms_endpoints_filter', [] ); // перебор эндпоинтов foreach ( $...
true
13bcb527497320bb62882bd21d255356ac686a3a
PHP
ParivallalB/Wowacademics
/mailsent.php
UTF-8
959
2.625
3
[]
no_license
<?php // $to = "wowacademics@gmail.com"; // this is your Email address $first_name = $_POST['first_name']; $contactno = $_POST['contactno']; $email = $_POST['email']; $enquiry = $_POST['enquiry']; $subject = "Form submission"; $headers = "From:" . $email; $message = "Name:".$first_name."\n"...
true
edd7b2b2e7fe1f164a1750226b574cef0baa6edf
PHP
faparicior/ddd-symfony4-boilerplate
/src/Users/User/Application/Specifications/UserEmailIsUnique.php
UTF-8
914
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Users\User\Application\Specifications; use App\Users\User\Domain\User; use App\Users\User\Domain\UserRepositoryInterface; class UserEmailIsUnique implements UserSpecificationInterface { public const SPECIFICATION_FAIL_MESSAGE = 'User email is in use'; private Us...
true
5ef426c0e422b0d20255ab78c3be8eff50490f90
PHP
ghanover/mailman-sync
/src/MailmanGatewayMock.php
UTF-8
2,133
2.671875
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: gavin * Date: 9/3/2018 * Time: 8:27 PM */ namespace MailmanSync; use Illuminate\Support\Facades\Storage; class MailmanGatewayMock implements MailmanGatewayInterface { /** * @var array */ private static $mockCache = []; /** * @param $list ...
true
0b8eb1a2f67e1496edb7fb8d4de58c5c1cd05f3e
PHP
CodingBeard/devtools
/src/Generator/DevtoolTemplateGenerator.php
UTF-8
2,808
2.75
3
[ "MIT" ]
permissive
<?php namespace Codingbeard\Devtools\Generator; use ParaTest\Parser\Parser; use PhpParser\NodeTraverser; use PhpParser\ParserFactory; use PhpParser\PrettyPrinter\Standard; use Codingbeard\Devtools\Generator\Printer\CodingbeardPrinter; use Codingbeard\Devtools\Generator\Template\DevtoolTemplateEngine; use Codingbeard\...
true
7ef84a7eff863fce21c5a4ad884991e56282dab5
PHP
cchesta/PersonAAL_RemoteAssistant
/ajax_request.php
UTF-8
19,104
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include 'miscLib.php'; include 'DButils.php'; //TODO check if user is logged in session_start(); //*************************...
true
90d89c412fb0a08c40af7f798dcd84c93776edde
PHP
cdcchen/psr7
/src/HeaderCollection.php
UTF-8
6,229
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: chendong * Date: 16/7/28 * Time: 10:52 */ namespace cdcchen\psr7; use ArrayIterator; /** * Class HeaderCollection * @package cdcchen\psr7 */ class HeaderCollection implements \ArrayAccess, \Countable, \IteratorAggregate { /** * @var array */ privat...
true
b0e99fb29a7455f8255019c04d469546c29dbc7f
PHP
Amaliamelo/atividades
/20210112/form_disciplina.php
UTF-8
1,148
2.625
3
[]
no_license
<?php include "conf.php"; session_start(); $select = "SELECT prontuario,nome FROM professor ORDER BY nome"; $resultado = mysqli_query($conexao,$select) or die(mysqli_error($conexao)); cabecalho(); if(isset($_SESSION["permissao"])){ if($_SESSION["permissao"]=="2"||$_SESSION["permissao"]=="1"){ echo "<sc...
true
64cb8d0dfd3a7d0496c39800fb403c2d1704bad4
PHP
XellleX/Programmering
/PHP/Guestbook/index.php
UTF-8
3,309
3.109375
3
[]
no_license
<?php $post_error = ""; $user_name_error = ""; // värden för pdo $host = "localhost"; $dbname = "guestbook"; $username = "guestbook"; $password = "123456"; // göra pdo $dsn = "mysql:host=$host;dbname=$dbname"; $attr = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC); $pdo = new PDO($dsn, $username, $passwor...
true
09d113f87591f17d6b813951fb5ca825fca6f01f
PHP
lalbuque/Academici
/loginconexaoadm.php
UTF-8
1,683
2.546875
3
[]
no_license
<?php if(!isset($_SESSION)){ session_start();} //usuario de Usários if(isset($_POST['usuario'])){ include('class/conexao.php'); $erro = array(); // Captação de dados $senha =@$_POST['senha']; $_SESSION['usuario'] = $conexao->escape_string($_POST['usuario']); // Validação de d...
true
8f41079c77bdfd410b6e9bfb0765fde281e77a5a
PHP
MariaDinova/PHP
/Lesson 3/Problem 09.php
UTF-8
1,398
3.25
3
[]
no_license
<?php /*Да се прочетат 2 числа от клавиатурата А и В. Да се изведат всички числа от А до В на степен 2(разделени с запетая).Ако някое число е кратно на 3, да се изведе съобщение че числото се пропуска „skip 3“.Ако сумата от всички изведени числа (без пропуснатите) стане по-голяма от 200, да се прекрати извеждането...
true
55dd25e6159ab8c90e54ed39a2e2b626765a56db
PHP
Scorpion011195/ilearn
/app/Http/Controllers/MyConstant.php
UTF-8
1,951
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; // This is a file to define some objests // Do not remove it! class MyConstant { // Table languages in database const LANGUAGES_TABLE = ['1'=>'english','2'=>'vietnamese','3'=>'japanese']; const TYPE_OF_WORD_ENGLISH = ['1'=>'Noun', '2...
true
93ed48374dd8f4c2182140cb113ac0ec2bb1c275
PHP
Pandamine/ESORaidplanner
/app/Telegram/Api/TelegramAPI.php
UTF-8
8,009
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Telegram\Api; use App\Character; use Illuminate\Support\Facades\DB; class TelegramAPI { /** Properties retrieved from telegram user**/ public static $chatId; public static $chatType; public static $username; public static $message; /** * @param $updates */ p...
true
b6ef33c93349e2297d9935cbb7ba3daaa122d08a
PHP
edusouza96/novobichoensaboado
/app/Enums/PaymentMethodsType.php
UTF-8
498
2.90625
3
[ "MIT" ]
permissive
<?php namespace BichoEnsaboado\Enums; use BenSampo\Enum\Enum; final class PaymentMethodsType extends Enum { const CASH = 1; const CREDIT_CARD = 2; const DEBIT_CARD = 3; public static function getName($id) { switch ($id) { case self::CASH: return 'Dinheiro'; ...
true
8002a8fe31e06e4c5dafcd331894f58a2478863c
PHP
mashcom/aculyse
/app/logic/billing/Billing.php
UTF-8
2,683
2.6875
3
[ "MIT" ]
permissive
<?php /** * Manage Billing and subscription management * @author Blessing Mashoko <projects@bmashoko.com> * @package Billing */ namespace Aculyse\Billing; use Carbon\Carbon; use Aculyse\Models\Licenses; use Aculyse\Models\School; use Aculyse\Models\AccountTypes; use Aculyse\Traits\Eloquent; use Aculyse\Traits\DB...
true
558ad4117d4d545ea00e529b187fd503e6c2677f
PHP
Desch/EmuDevstore
/community/wcf/lib/acp/action/AbstractCronjobsAction.class.php
UTF-8
1,006
2.609375
3
[]
no_license
<?php // wcf imports require_once(WCF_DIR.'lib/action/AbstractAction.class.php'); require_once(WCF_DIR.'lib/data/cronjobs/CronjobEditor.class.php'); /** * Abstract cronjob action. * * @author Marcel Werk * @copyright 2001-2009 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licens...
true
7ec5e832559a6220b8bcd272d257cc99da3ace52
PHP
heisbabz/farm
/models/RegisterForm.php
UTF-8
1,313
2.71875
3
[ "MIT" ]
permissive
<?php namespace app\models; use yii\base\Model; /** * Class RegisterForm * @package app\models * @author Oladejo Babatunde <tundeoladejo@outlook.com> */ class RegisterForm extends Model { const SESSION_KEY_REGISTER_FORM = 'register_form'; public $first_name; public $last_name; public $email; ...
true
0dcb8b77b968d6a2935f784b4647bbf0f747f48e
PHP
gusviaja/provisorio
/testhcore/Fmk/Class/Usuarios/Cadastro.class.php
UTF-8
146
2.59375
3
[]
no_license
<?php namespace Usuarios; class Cadastro extends \Cadastro{ public function getNomeUsuario(){ return $this->nome. "sou um usuario"; } }
true
c3cdd6417b526e956ebd36c30f4f623d06142046
PHP
QvQ-Code/Mobile-English
/classes/mailer.php
UTF-8
1,395
2.8125
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; // Include librari phpmailer include('phpmailer/Exception.php'); include('phpmailer/PHPMailer.php'); include('phpmailer/SMTP.php'); class Mailer { function send($email_penerima,$subjek,$content){ require "config/init.php"; $...
true
3cc838c4a590d13d1e6bf39f826ea71edafee47a
PHP
benits/crypto
/painel/pags/addPlano.php
UTF-8
3,289
2.65625
3
[ "MIT" ]
permissive
<?php include '../php/funcoes.php'; include '../php/constantes.php'; session_start(); $idCliente = $_GET["idUser"]; $idPlano = $_GET["idPlano"]; $idDel = $_GET["id"]; atribuiValoresDaSessao($idCliente); atribuiValoresDaSessaoPlano($idPlano); $idCliente = $_SESSION["idCliente"]; $idPlano = $_SESSION["idPlano"]; $nom...
true
9b2098f5602ba4deb572945549f10b496a044130
PHP
tuamonyet70/yii
/skripsi2/common/models/SiswaDetail.php
UTF-8
1,703
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "siswa_detail". * * @property string $first_name * @property string $last_name * @property string $tanggal_lahir * @property string $jenis_kelamin * @property string $tempat_tinggal * @property integer $id * @property string $ay...
true
3ccdd39c8af21a92e6a90623b702be430b6f096d
PHP
tmen/dhl
/src/Tmende/Dhl/Api/Shipping/Business/AuthentificationType.php
UTF-8
818
3.015625
3
[]
no_license
<?php class AuthentificationType { /** * @var user $user * @access public */ public $user = null; /** * @var signature $signature * @access public */ public $signature = null; /** * @var accountNumber $accountNumber * @access public */ public $acc...
true
9ab7c309aa28bf5046f692a60896ef9b7f7841e7
PHP
concretecms/concretecms
/concrete/src/Filesystem/TemplateLocator.php
UTF-8
3,312
2.875
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Filesystem; use Concrete\Core\Foundation\Environment; class TemplateLocator { protected $template; protected function createTemplateFromInput($input) { $template = null; if (!($input instanceof Template)) { if (is_array($input)) { ...
true
0f04f85fc5ffbb99917b1eff4ad34c340caa6085
PHP
ProjectPeriode2/TwitterBoom
/api.php
UTF-8
1,202
2.65625
3
[]
no_license
<?php require_once 'config.php'; require_once LIB_DIR . 'twitterApi.php'; require_once LIB_DIR . 'twitterUser.php'; /* try { $db = new PDO( 'mysql:host=' . $config['db']['host'] . ';dbname=' . $config['db']['name'], $config['db']['user'], $config['db']['passw'], $options); } c...
true
e9c08572b81e5f28993ff713e29bb0cec3ae675d
PHP
PhilippeGremmel/eatme
/app/View/Pictures/add.ctp
UTF-8
660
2.515625
3
[]
no_license
<!-- <table> <tr> <th>Image</th> <th>Nom</th> <th>Action</th> </tr> <?php foreach ($pictures as $k => $v) : $v = current($v); ?> <tr> <td><?php echo $this->Html->image($v['url'],array('style'=>'max-width:250px')); ?></td> <td><?php echo $v['legend']; ?></td> <td></td> </tr> <?php endf...
true
cabfa916e9f3946eceb87b652ac6fe73092ecc87
PHP
declspec/brewski
/app/modules/brewski.api/services/recipe.php
UTF-8
4,601
2.953125
3
[]
no_license
<?php class RecipeService { private $_db; public function __construct($Database) { $this->_db = $Database; } public function find($id) { $recipe = $this->findRecipe($id); if (!$recipe) return null; $recipe['ingre...
true
cb989f6ba4f59361724d7c8a6e56804e7bc0a65e
PHP
tisuchi/laracfc
/app/Models/User.php
UTF-8
821
2.640625
3
[ "MIT" ]
permissive
<?php namespace Cfc\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { protected $table = 'Users'; protected $fillable = [ 'uName', 'uEmail', 'uPassword', 'uActivationCode', 'uFlag', 'uType' ]; ...
true
b00c7779676d34b6cc1483d54bff71268f86ee8b
PHP
ArteMarch/book_new
/processing_file.php
UTF-8
1,878
3.03125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Гостевая книга</title> </head> <body> <?php $name = $_PO...
true
cc531d224e58ddd07d6cb80499e1fa674b446baa
PHP
ecourseCH/ecourseSlimApi
/routes.php
UTF-8
19,956
2.625
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; //// USER // add user $app->post('/user', function (Request $request, Response $response, array $args) { $data = $request->getParsedBody(); $repository = new UserRepository($this->db); $ins...
true
24e8d7617eb6f33ad74289e3471778e22f271047
PHP
nathanczachur/natepad
/api.php
UTF-8
367
2.71875
3
[]
no_license
<?php include('Note.php'); $response = []; try { $post = new Note( $_POST['noteTitle'], $_POST['noteText'] ); file_put_contents('notes/' . $post->title() . '.txt', $post->text()); $response = ['message' => 'file created']; } catch (Exception $e) { $response = ['message' => 'error']; } header('Content-Type: a...
true
dccdc5ceffc6f6741124714a182aab7dd5f2bd7c
PHP
portableant/britishMuseumMMGapi
/module/MmgApi/src/MmgApi/Controller/VisitController.php
UTF-8
1,785
2.640625
3
[]
no_license
<?php namespace MmgApi\Api\Controller; use MmgApi\Controller\AbstractRestfulController; use Zend\View\Model\JsonModel; class VisitController extends AbstractRestfulJsonController { /** List all resources, no ID called. * Access Method GET * @access public */ public function getList() { ...
true
567dbaeb025267ef6d57fa9aaca312a56884ab5a
PHP
IsoLennox/Arbytes
/create_file_comment.php
UTF-8
3,920
2.625
3
[]
no_license
<?php include("inc/header.php"); $file_id=$_GET['file_id']; // Process the form // validations $required_fields = array("content"); validate_presences($required_fields); if (empty($errors) ) { // Perform Create $content_raw = mysql_prep($_POST["content"]); $content= strip_tags($cont...
true
4b2ba7b5383cb0272fc2a317383734d624ffb43f
PHP
stylemix/laravel-listing
/src/Attribute/Text.php
UTF-8
808
2.65625
3
[]
no_license
<?php namespace Stylemix\Listing\Attribute; use Stylemix\Listing\Contracts\Searchable; use Stylemix\Listing\Contracts\Sortable; class Text extends Base implements Sortable, Searchable { /** * Adds attribute mappings for elastic search * * @param \Illuminate\Support\Collection $mapping Mapping to modify */ ...
true
99ecd106eb08eaf96c2c1e2791036509c82dac42
PHP
phpshko/example-forms
/src/Helpers/HtmlHelper.php
UTF-8
470
2.921875
3
[]
no_license
<?php namespace Phpshko\Test\Helpers; class HtmlHelper { /** * Return string with html attributes and values * @param array[] ...$data * @return string */ public static function formatOptions(array ...$data): string { $htmlOptions = []; foreach (array_merge(...$data) a...
true
695b9b4098266e2f7d519570555babbc634c7ace
PHP
ferceperez/Registro-de-proyectos
/login.php
UTF-8
1,417
2.765625
3
[]
no_license
<?php include('conexion.php'); $mensaje=''; if(isset($_POST['loguearse'])) { $usuario_log=$_POST['usuario_log'];// CONTENER EN UNA VARIABLE LO ESCRITO EN EL INPUT USUARIO_LOG $contraseña_log=$_POST['contraseña_log'];//CONTENER EN UNA VARIABLE LO ESCRITO EN EL INPUT CONTRASEÑA_LOG $loginUsuario=$conexion->p...
true
4d34ef56540e2d4050bcf636813477c5bb1c0214
PHP
nwebs9/Team-18-v2
/version 1/inc_nav.php
UTF-8
805
2.578125
3
[]
no_license
<ul> <?php function createNavigationItem($fileName, $pageName) { $urlString = $_SERVER["SCRIPT_FILENAME"]; $urlArray = explode("/", $urlString); foreach ($urlArray as $str){ $lastString = $str; } if ($lastString != $fileName){ echo "<li><a href=\"$fileNam...
true
83de9b96390988e75c29a6f4d711f8bed4327d75
PHP
Rishabhvirani/EPBROWSER
/app/Http/Livewire/Forms/Settings/Conversion.php
UTF-8
2,060
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire\Forms\Settings; use App\Models\SettingsModel; use Livewire\Component; class Conversion extends Component { public $isConversionEnabled = false; public $ConversionRate = 0; public $MinConversion = 0; public $label = 'conversion'; public $points; public $dolla...
true
c9c3c6beaab2640163c7cf2877aef370e1ac702b
PHP
ovzer/pakkeliste
/savelist.php
UTF-8
2,385
2.859375
3
[ "MIT" ]
permissive
<?php $data = $_POST['data']; $file = "lists.xml"; $xmldoc = new DomDocument( '1.0' ); $xmldoc->preserveWhiteSpace = false; $xmldoc->formatOutput = true; if( $xml = file_get_contents($file) ) { $xmldoc->loadXML( $xml, LIBXML_NOBLANKS ); /*if ($data["id"] > 0) { //If the element exists already, delete it and...
true
7262acbdaa82706c9e91b38e6a740320ba8b5096
PHP
Aab988/wifimap
/app/model/WifiSecurity.php
UTF-8
1,047
2.84375
3
[]
no_license
<?php namespace App\Model; use Nette; /** * User: Roman * Date: 08.09.2015 * Time: 16:14 */ class WifiSecurity extends Nette\Object { /** @var int id */ private $id; /** @var string $label */ private $label; /** @var array $colors */ public static $colors = array( 1 => "dd4b39", ...
true
c44f588c1727f729b064ca0655acfaef3ebe1f47
PHP
Luvslo/textlike
/roomdesccreator.php
UTF-8
5,821
2.6875
3
[ "MIT" ]
permissive
<?php if(!defined('INCLUDE_CHECK')) die('You are not allowed to execute this file directly'); function load_intro_statement() { $what = rand(0,3); if ($what == 0) { $intro = "You woke up. For a second you forgot why you were here, or where here even was, but then you remembered and a calmness washed over you.";} if (...
true
76d4a7901aeb627ae736c54e6ecb27a2a9771860
PHP
magenda-E4/magenda
/View/company/info.php
UTF-8
1,152
2.609375
3
[]
no_license
<?php use Magenda\Model\Company; use Magenda\Model\Profession; $indicerandphoto = rand(1,3); $photopath = "include/img/devanture_0".$indicerandphoto.".jpg"; $professionString = ""; /** @var Company $company */ /** @var Profession $profession */ foreach ($company->getProfession() AS $profession){ $professionStri...
true
cfb213748474dbdac39c6b7ae13d5fca7a707265
PHP
lucleroy/php-strings
/src/AbstractUnicodeString.php
UTF-8
12,635
2.84375
3
[]
no_license
<?php namespace LucLeroy\Strings; use LucLeroy\Regex\Regex; use LucLeroy\Regex\Unicode; use LucLeroy\Strings\SubstringList\SubstringListInterface; use function mb_strlen; use function mb_strtolower; use function mb_strtoupper; use function mb_substr; abstract class AbstractUnicodeString extends AbstractString implem...
true
e91fcaa4cdbe3fb94657ecf3489672ced0675a2b
PHP
aydinyagizz/PAFF
/database.php
UTF-8
1,183
3.140625
3
[]
no_license
<?php class Database { private $_HOST = "localhost"; private $_USERNAME = "root"; private $_PASSWORD = ""; private $_DATABASE_NAME = "jeweldb"; protected $db; function __construct() { $MYSQL_CONNECTION_STRING = "mysql:host=$this->_HOST;dbname=$this->_DATABASE_NAME;charset=utf...
true
47bcc1f5a80fd5644398f230afe29fe7da656f54
PHP
andresfranco/Laravel-Tools
/app/Models/Article.php
UTF-8
407
2.5625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Article */ class Article extends Model { protected $table = 'articles'; public $timestamps = true; protected $fillable = [ 'name','description' ]; protected $guarded = []; public static $rules = arra...
true
54e555dbc123e2dab5b70a6183a933e6cf47026d
PHP
bennyxqg/idfe-leda-server
/app/Model/Phone.php
UTF-8
1,162
2.609375
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * Code Model * */ class Phone extends AppModel { /** * Use table * * @var mixed False or table name */ public $useTable = 'phone'; /** * 获取一个code * @param $app_id * @param $code_id * @return array * */ fun...
true
a069c14e6dcf4ab1397075831c5af470f1ed996c
PHP
mikewrather/athletez
/modules/facebookauth/classes/Kohana/FacebookAuth.php
UTF-8
4,995
2.78125
3
[]
no_license
<?php /** * Facebook Authentication module for Kohana 3.2 * * @package Kohana_FacebookAuth * @author Molnár Balázs * @copyright (c)2012 Molnár Balázs * @website http://github.com/mobal/kohana-facebookauth-module * @license http://www.opensource.org/licenses/isc-license.txt */ class Kohana_FacebookAuth { ...
true
31e77c266354c0ad5e9bc1fa9113eed4a6141205
PHP
juliangiraldo/sistemaInfoPI
/protected/models/Barrio.php
UTF-8
2,839
2.875
3
[]
no_license
<?php /** * Esta es la clase de modelo para la tabla "barrios". * * Las siguientes son las columnas disponibles en la tabla 'barrios': * @property integer $id_barrio * @property integer $id_ciudad * @property string $descripcion * @property integer $estado * * Las siguientes son las relaciones de modelos disp...
true
9c617ef9035026f1772d3c6eb040b76f69946094
PHP
jamesdube/mps-server
/app/Http/Controllers/Api.php
UTF-8
7,828
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\OrderDetail; use App\OrderDetailsModel; use App\OrderModel; use App\User; use Exception; use Faker\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; ...
true
0b7c3710b4b19b16b3461099d5672d00884090a4
PHP
newphper0703/360InterviewCourses
/quote/q.php
UTF-8
288
2.625
3
[]
no_license
<?php /** * File q.php * Created by PhpStorm. * User: liuzhi1107 * Date: 2019/1/24 * Time: 16:07 */ $data = ['a', 'b', 'c']; foreach ($data as $key => $val) { echo $key . "\n"; echo $data[$key] . "\n"; $val = &$data[$key]; echo $val . "\n"; print_r($data); }
true
008e4100b357e802a7e3dd943e5f199df5f244ca
PHP
WarlockZi/test
/app/view/Unit/UnitFormView.php
UTF-8
3,968
2.515625
3
[]
no_license
<?php namespace app\view\Unit; use app\model\Unit; use app\view\components\Builders\ItemBuilder\ItemBuilder; use app\view\components\Builders\ItemBuilder\ItemFieldBuilder; use app\view\components\Builders\ItemBuilder\ItemTabBuilder; use app\view\components\Builders\ListBuilder\ListColumnBuilder; use app\view\compon...
true
ba82d0e05cc1aeb3b86ba3df8b4c33f9f3ac8207
PHP
Paulo-Crisci/admescola
/salvanota.php
UTF-8
1,017
2.90625
3
[ "Apache-2.0" ]
permissive
<?php // Incluir arquivo de configuração require_once "conexao.php"; // Definir variáveis ​​e inicializar com valores vazios $NOME = $_POST['nome']; $DISCIPLINA = $_POST['disciplina']; $AV1 = $_POST['av1']; $AV2 = $_POST['av2']; $AV3 = $_POST['av3']; $CONCEITO = ''; $MEDIA = ($AV1 + $AV2 + $AV3 ) /...
true
0bd26566ed2132dbcf12a86f05a67f3ad2b9eddc
PHP
mohamedbin3bdallah/eng
/1.php
WINDOWS-1256
536
2.90625
3
[ "CC-BY-3.0" ]
permissive
<?php /*$x = 0; while ($x <= 999) { $numZero = 3 - strlen($x); echo 'CHN'.str_repeat('0', $numZero).$x; $x++; } */ //$x = '999'; //$numZero = 3 - strlen($x+1); //echo str_repeat('0', 3-strlen($x+1)).($x+1); //$kinds = array(''=>'B', ''=>'R', ''=>'E', ''=>'S', ' '=>'I'); //$g['fff'] = ''; //echo $kinds[$g['f...
true
44f4bddde4437c90b24a38a14e94f072e9eb613d
PHP
pekand/snippets
/reference/php/keywords/condition.php
UTF-8
340
3.109375
3
[]
no_license
<?php if(true) { } elseif(true) { } else { } if(true): elseif(true): else: endif; $i = 0; switch ($i) { case 0: break; case 1: case 2: break; default: // not mandatory break; } $i = 0; switch ($i): case 0: break; case 1: case 2: break; ...
true
82b0840ca227956581ba9b855f9d84aa8701ac0b
PHP
yiyulianzhou/prepare-lessons
/php5/3.php
UTF-8
623
3.28125
3
[]
no_license
<?php header("Content-type:text/html;charset=utf-8"); /* 如何声明函数 function 函数名(形参列表) { 函数体/代码块 return 返回值 } {} 函数体/返回值 函数体:任何有效的PHP代码 返回值: 1.用return关键字,用来将函数调用执行的结果返回到调用处。 2.如果函数,没有返回值,那么调用这个函数后,返回null 3.return 之后的代码,都不会被执行。 */ echo sum(99); echo sum(100); function sum($a,$b=5) { return $a +...
true
2eef883274c188227e04d15fe888329a814751a4
PHP
vanessaherreraburgos/sistema-agencia-viajes
/app/Models/vehiculos/TarifasVehiculo.php
UTF-8
2,301
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models\vehiculos; use Illuminate\Database\Eloquent\Model; use App\Models\traits\FormatsDates; use Carbon\Carbon; use App\Models\vehiculos\Vehiculo; class TarifasVehiculo extends Model { use FormatsDates; protected $primaryKey = 'codigo'; protected $table='tarifas_vehiculo'; prot...
true
c070f6ad8a1f4bb5a10083486d2e3554ca119ef8
PHP
bleehu/bleehu.com
/nerf/echoteam/agent.php
UTF-8
4,278
2.578125
3
[]
no_license
<!DOCTYPE HTML> <HTML> <head> <?php $agent = "unknown"; if(isset($_GET["agent"])) { $agent = $_GET["agent"]; } if(file_exists($agent . "/info.txt")) { list($name, $number, $bio1, $bio2) = file($agent . "/info.txt"); } else { list($name, $number, $bio1, $bio2) = file("unknown/info.txt"); } ?> <...
true
94b7da23d605a4c6685fe0dd7d016c1129aee1f2
PHP
adamagueye/mon_projet
/infopersonne.php
UTF-8
1,135
2.5625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body> <div class="jumbotron text-center jumbotron-fluid""> <h3>Profil : <?php include"connexion.php";?></h3> <a href="deconnection.php">D...
true
d2ad45e87f2be867907386f288a42122baa40c5d
PHP
CleitonLopes/apibwps
/app/Services/SetDatabase.php
UTF-8
1,274
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: cleiton * Date: 08/11/2016 * Time: 09:57 */ namespace App\Services; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\DB; use Prettus\Validator\Exceptions\ValidatorException; class SetDatabase { public static function setDatabase($host, $dbname, ...
true
e5676b8ba0c6262047b09cfeb0399574ecdb3ecf
PHP
sabbelasichon/typo3-rector
/stubs/TYPO3/CMS/Core/Resource/Rendering/FileRendererInterface.php
UTF-8
800
2.703125
3
[ "MIT" ]
permissive
<?php namespace TYPO3\CMS\Core\Resource\Rendering; if (interface_exists('TYPO3\CMS\Core\Resource\Rendering\FileRendererInterface')) { return; } use TYPO3\CMS\Core\Resource\FileInterface; /** * Class FileRendererInterface */ interface FileRendererInterface { /** * Render for given File(Reference) HTML...
true
fee997d0611826e689ec41d318a0d59f53397854
PHP
nen155/Programacion-Web
/funciones/funciones.php
UTF-8
9,030
2.90625
3
[ "MIT" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: Emilio Chica Jiménez * Date: 08/05/2017 * Time: 19:37 */ function validarCorreo($correo){ return preg_match("/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|...
true
6211a2c36445052d8af5c6cedd0d46e545cd6448
PHP
nurimateos6/soa_test
/vistas/alumno/borrar.php
UTF-8
1,634
2.5625
3
[]
no_license
<?php //--------------------------------------------------------------------------- //Vista de BORRADO de clientes... //--------------------------------------------------------------------------- // Datos que recibe: // $modelo --> Instancia con un modelo "Cliente" a visualizar o "null" si // hubo err...
true
769a453f6cc7c1a71a0e3f837440f7ee9f306790
PHP
doomcontrol/dev
/app/project_manager/views/documentation/library/output_view.php
UTF-8
1,322
2.765625
3
[]
no_license
<div class="clr docpage"> <h1>Library::Output <a href="<?=site_url('documentation/library')?>">Library</a></h1> <div class="leftside"> <?=$navigation?> </div> <div class="rightside"> <h3>Output JSON</h3> <?php $array = array("title"=>"My Title","summary"=>"this is my summary","id...
true
dcbcdf9d9ab2ff271aef11fc73ee223ded03be5d
PHP
datngovan/isys2099
/php-mongodb/index.php
UTF-8
1,222
2.796875
3
[]
no_license
<?php require_once 'vendor/autoload.php'; $client = new MongoDB\Client('mongodb://localhost:27017'); $collection = $client->db_test->test; $document = $collection->find([]); foreach ($document as $one) { echo 'ID : ' . $one['_id'] . '<br>'; echo 'Name : ' . $one['name'] . '<br>'; foreach ($one['hobbies'] as ...
true
951916c7de34eb136296c5726884ae4b2d6beb0b
PHP
aripmuu/aripmuu.github.io
/form-edit.php
UTF-8
1,883
2.640625
3
[]
no_license
<?php include("mysql.php"); if( !isset($_GET['id_art']) ){ // kalau tidak ada id di query string header('Location: list.php'); } //ambil id dari query string $id = $_GET['id_art']; // buat query untuk ambil data dari database $sql = "SELECT * FROM artikel_baru WHERE id_art=$id"; $query = mysqli_query($mysqli, $s...
true
0ca104ab08cf4888b77a4e439c95b1af3db141a5
PHP
alekciy/php-ofd-sdk
/src/interfaces/CashDeskInterface.php
UTF-8
686
2.84375
3
[ "MIT" ]
permissive
<?php namespace alekciy\ofd\interfaces; /** * Общий интерфейс кассы. */ interface CashDeskInterface { /** * Номер фискального регистратора (ФН). * * @return string */ public function getFnFactoryNumber(): string; /** * Серийный (заводской) номер кассы. * * @return string */ public function getK...
true
6937aaad3e46075bef223c3bf8d1bb816f055935
PHP
echo718/HTML-CSS-playground
/www/source/_sys/_funs/View/template.php
UTF-8
1,383
3.203125
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. */ function showListedTemplate($templateName, $output, $tableName, $id) { switch ($templateName) { case "default": ...
true
73e049dec603bc1b4d6f0a3cbee4867c58beec03
PHP
vaiosyndicates/GlitzNHitz
/application/models/CategoryServicesM.php
UTF-8
2,840
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // extends class Model class CategoryServicesM extends CI_Model{ // response jika field ada yang kosong public function empty_response(){ $response['status']=502; $response['error']=true; $response['message']='Field tidak boleh kosong!'; return $response; } // function untuk insert data...
true
3edf4334dd5b31bf2e64a3ce57b8ff7e2dde7213
PHP
Taran0/php-learning
/math_functions/basic-math-functions.php
UTF-8
587
3.6875
4
[]
no_license
<?php //abszolútérték $a = -5; echo abs($a) . "<br>"; //kerekítés $b = 7.28; echo round($b) . "<br>"; //lefelé kerekítés $c = 5.5; echo floor($c) . "<br>"; //felfelé kerekítés $d = 5.5; echo ceil($d) . "<br>"; //gyök $e = 25; echo sqrt($e) . "<br>"; //hatványozó $f = 2; //pow(alap, kitevő) echo pow($f, 3) . "<br>"...
true
76399c8aaa577cbbbab76e0c5118566f694277bc
PHP
edde-framework/edde-framework
/src/Edde/Common/Cache/CacheTrait.php
UTF-8
562
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Edde\Common\Cache; use Edde\Api\Cache\ICache; use Edde\Api\Cache\LazyCacheManagerTrait; /** * This trait is shorthand for creating cache to a supported class (it must be created through container). */ trait CacheTrait { use LazyCacheManagerTrait; /** * @var I...
true
05631e57ef7becd5e34491655275dda183824e39
PHP
Capstone-Team-E/water-reuse-app
/app/Http/Controllers/DataControllers/AllowedTypesController.php
UTF-8
3,147
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\DataControllers; use App\Allowed; use App\CityMerge; use App\CountyMerge; use App\ReuseNode; use App\StateMerge; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class AllowedTypesController extends Controller { public function allAllowedTypes() { $t...
true
e62faef60b97a71dd8d413842ee260953984f724
PHP
fariha1741/WT_MidProject
/project/profile.php
UTF-8
1,206
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Profile</title> </head> <body> <?php session_start(); require('db.php'); $val = ""; if (isset($_POST['Update'])) { $name = $_POST['name']; $email = $_POST['email']; $id = $_SESSION['id']; if (empty($name) || empty($email)) { $val ...
true
51fa85a89fd7a37e540b88d76f3f371bbc7849ec
PHP
jreynolds4/Slizzatrism
/web/sitecake/2.4.7/src/Sitecake/Services/ServiceRegistry.php
UTF-8
1,004
2.671875
3
[]
no_license
<?php namespace Sitecake\Services; use ReflectionClass; use Silex\Application; class ServiceRegistry { protected static $namespace = '\Sitecake\Services'; /** * @var Application Contains references to loaded services */ protected static $context; public static function initialize($context...
true
de4e8bb3e4e640bcc7ec15dedf38e42429b9f2b4
PHP
Gman98ish/sdk-php
/examples/ecloud/vmCreateAppliance.php
UTF-8
934
2.671875
3
[ "MIT" ]
permissive
<?php // example of creating an eCloud Public Appliance // // php examples/ecloud/vmCreateAppliance.php require_once dirname(__FILE__) . '/../../vendor/autoload.php'; $ecloud = (new \UKFast\SDK\eCloud\Client)->auth( getenv('UKFAST_API_KEY') ); $virtualMachine = new \UKFast\SDK\eCloud\Entities\VirtualMachine; $v...
true
f86838dc18ffe187b98c9e00bf452aedcedcd8ad
PHP
yaoxf/waterCup
/xhxtbgxt_A5/xinhu_utf8_1.5.7/webmain/model/goodsModel.php
UTF-8
1,437
2.53125
3
[ "MIT" ]
permissive
<?php class goodsClassModel extends Model { public function setstock($id='', $lsx='1') { $where = ''; if($id!='')$where=' and `aid` in('.$id.')'; $sql = 'SELECT sum(count)stock,aid FROM `[Q]goodss` where `status` in('.$lsx.') '.$where.' GROUP BY aid'; if($id=='')$this->update('stock=stockcs','id>0'); $rows=...
true
9ee7032371b11a875bd4ee5136d3b40a8d60374d
PHP
squarecandy/squarecandy-acf-events
/inc/shortcodes.php
UTF-8
10,096
2.703125
3
[]
no_license
<?php /** function to generate the shortcode [squarecandy_events] * * @param array $atts { * Shortcode attributes. Optional. * * $style Display style. values: 'compact' * $cat Filter by category. * $not_in Filter by id. * $posts_per_page * $only_featured * $featured_at_top ...
true
e46b14715215316a7d3410a4456756e9cf6c1fee
PHP
jmaxl/JML_Website
/src/Module/GenericValueObject/Datetime.php
UTF-8
1,570
3.109375
3
[]
no_license
<?php declare (strict_types=1); namespace JML\Module\GenericValueObject; /** * Class Datetime * @package JML\Module\GenericValueObject */ class Datetime extends AbstractDatetime { const DATETIME_FORMAT = 'Y-m-d H:i'; const DATE_FORMAT = 'Y-m-d'; const DATETIME_OUTPUT_FORMAT = 'd.m.Y H:i'; const ...
true
c6db6e66fa65d2afd37a592052d23668a1f3252f
PHP
nvbach91/4IZ278-2020-2021-LS
/www/nguv03/cv02b/includes/cities-class.php
UTF-8
598
3.234375
3
[ "MIT" ]
permissive
<?php require './classes/City.php'; ?> <?php $cities2 = [ new City('Amsterdam', 500000, 5500), new City('Pariz', 4500000, 5560), new City('Oslo', 6500000, 7800), new City('Madrid', 12500000, 8900), ]; ?> <ul> <!-- for loop --> <?php foreach($cities2 as $city2): ?> <li> <div><?php ...
true
fff47aa90b2796a6d7e50947bb9f3257cefe1767
PHP
imakado/emacs-symfony
/t/askeet/lib/model/UserPeer.php
UTF-8
2,198
2.890625
3
[ "MIT" ]
permissive
<?php // include base peer class require_once 'lib/model/om/BaseUserPeer.php'; // include object class include_once 'lib/model/User.php'; /** * Skeleton subclass for performing query and update operations on the 'ask_user' table. * * * * You should add additional methods to this class to meet the *...
true
313860cf96940f56dfbea10582dadbc2d2e84745
PHP
MaxTorbeev/ads-core
/packages/ads/logger/src/Http/Middleware/ApiLoggerMiddleware.php
UTF-8
1,467
2.5625
3
[]
no_license
<?php namespace Ads\Logger\Http\Middleware; use Ads\Logger\Contracts\Logging\HttpLogger; use Ads\Logger\Enums\LogTypes; use Ads\Logger\Services\Logger\LoggerParametersDto; use Closure; use Illuminate\Http\Request; class ApiLoggerMiddleware { protected HttpLogger $logger; public function __construct(HttpLogg...
true
bff031f31d7a4a697209f0c4f48415416fa8323f
PHP
aktanb/brainer
/Brainer/Playground/games/basic_math/MathTask.php
UTF-8
3,438
3.5
4
[]
no_license
<?php abstract class MathTask { # Уровень. public $level; # Тип. public $type; # Правильный ответ. public $rightAnswer; # Математическое действие. public $action; # Знак «равно». public $equalsSign = "="; # Первый оператор. private $a; # ...
true
56a138ec67f3ffabcbbc20aa8cc5e8da4d306995
PHP
ddekroon/PMotion
/web-app/controllers/propertiescontroller.php
UTF-8
1,231
2.921875
3
[]
no_license
<?php class Controllers_PropertiesController extends Controllers_Controller { public function getProperty($key) { $sql = "SELECT * FROM " . Includes_DBTableNames::propertiesTable . " WHERE `key` = ?"; $stmt = $this->db->prepare($sql); if($stmt->execute(array($key))) { if(($row = $stmt->fetch())...
true
b07fa38e1ea36a25bea3bedfa3e3b37905cde220
PHP
run417/sbwms
/src/Model/Inventory/Item/ItemRepository.php
UTF-8
1,184
2.703125
3
[ "MIT" ]
permissive
<?php namespace sbwms\Model\Inventory\Item; use sbwms\Model\Inventory\Item\Item; use sbwms\Model\Inventory\Item\ItemMapper; class ItemRepository { private $itemMapper; public function __construct(ItemMapper $_im) { $this->itemMapper = $_im; } public function findAll() { ...
true
82b2251a46db0ce603aa93ee00b2f68663bd16c3
PHP
heroeskq3/bayisland
/class/models/array/class_arrayfilter.php
UTF-8
2,058
2.921875
3
[]
no_license
<?php /* Filtra un Array $surveyzoneslist = class_arrayFilter($surveyzoneslist, 'Status', '1', '='); */ function class_arrayFilter($array, $field, $value, $condition) { //equal if ($condition == '=') { $condition_1 = true; $condition_2 = false; $condition_3 = false; $condition_4...
true
c8b603935af4da008164ab0d5d36df4681483d64
PHP
astrotars/magento-io
/shipments.php
UTF-8
2,778
2.96875
3
[ "MIT" ]
permissive
<?php require_once 'common.php'; class Shipments { // filepaths for ftp and local directory const LOCAL = '/tmp/shipments.txt'; const REMOTE = '/Input/shipments.txt'; public static function sync() { // download from remote and save to specified directory try { self::download(__DIR__ . self::LOC...
true
c7a770a379a2ab2e76660188eba21f7c0ef02d83
PHP
tboqi/tbqapps2
/php/del/khn/khn2/yuqiblog/system/vendor/swift/Swift/Connection/Rotator.php
UTF-8
5,251
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Swift Mailer Multiple Redundant Cycling Connection component. * Please read the LICENSE file * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Connection * @license GNU Lesser General Public License */ require_once dirname ( __FILE__ ) . "/../ClassLoader.php"; Swift_ClassLoader::load ( "...
true
6aa0909cb5719c9474f2777c2db553bb642bf563
PHP
thtg88/mmcms
/database/seeds/ContentValidationRulesTableSeeder.php
UTF-8
1,015
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Thtg88\MmCms\Models\ContentValidationRule; class ContentValidationRulesTableSeeder extends Seeder { /** * Auto generated seed file. */ public function run() { $data = [ ['name' => 'required'], ['name' => 'nullable'], ...
true