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
d4bee6562055830b9cdd61c98792235cdd23130b
PHP
patricknfs/nationalfleetservices
/quote/system/classes/auth_ldap.class.php
UTF-8
1,729
2.734375
3
[]
no_license
<?php /** * LDAP Authentication Class * Copyright Dalegroup Pty Ltd 2012 * support@dalegroup.net * * * @package dgx * @author Michael Dale <mdale@dalegroup.net> */ namespace sts; class auth_ldap { private $config = array(); private $user = array(); function __construct() { $config =...
true
610f1b715f9899b69e3d2cfb09403e3714e208a1
PHP
jhonnyf/task
/app/View/Components/CardUser.php
UTF-8
321
2.546875
3
[]
no_license
<?php namespace App\View\Components; use App\Models\Card; use Illuminate\View\Component; class CardUser extends Component { public $card; public function __construct(Card $card) { $this->card = $card; } public function render() { return view('components.card-user'); } }...
true
6dc7cefb598e05ccb4e4bb97dfcbf1b4f27accf2
PHP
jorgeorisan/YAC
/YAC/system/config/classes/base/venta.auto.class.php
UTF-8
10,268
2.65625
3
[]
no_license
<?php class AutoVenta { // Variables protected $db; protected $id_venta = ""; protected $fecha = ""; protected $total = 0; protected $tipo = ""; protected $factura = ""; protected $cancelado = ""; protected $id_persona = ""; protected $id_tienda = 0; protected $id_user = 0; protected $icre...
true
370b4f8085ce4f6da797de2ab9993463a928d645
PHP
anpoltanov/pizza-backend-api
/tests/Listener/ResponseFactory/JsonResponseFactoryTest.php
UTF-8
621
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Tests\Listener\ResponseFactory; use App\Listener\ResponseFactory\JsonResponseFactory; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\JsonResponse; class JsonResponseFactoryTest extends TestCase { public function testCreate() { $input = '[{"id":1,"name":"Quatt...
true
59b016894b07748ec7b83efefbdf22667a4a06ca
PHP
ullilfahri/belajarphp
/tambah_peminjaman.php
UTF-8
2,586
2.71875
3
[]
no_license
<?php include "index.php" ; ?> <h1>Tambah Data Peminjaman</h1> <form action="" method="post" enctype="multipart/form-data" name="form1"> <p>Tanggal Pinjam <label for="tgl_pinjam"></label> <input type="date" name="tgl_pinjam" id="tgl_pinjam"> </p> <p>Jumlah Pinjam <label for="jumlah_pinjam"></label...
true
482e31f38e65fcb6ad2ff71dd1d89f6a7063d75e
PHP
24eme/declarvins
/project/lib/form/compte/CompteProfilForm.class.php
UTF-8
1,885
2.5625
3
[]
no_license
<?php class CompteProfilForm extends acCouchdbObjectForm { public function configure() { $this->setWidgets(array( 'mdp' => new sfWidgetFormInputPassword(), 'mdp1' => new sfWidgetFormInputPassword(), 'mdp2' => new sfWidgetFormInputPassword(), ...
true
637fe90f2298a540da3d8b14babe2ebd01fa193b
PHP
Charu91/Wowtables1
/app/Http/Models/Frontend/ExperienceModel.php
UTF-8
102,347
2.59375
3
[ "MIT" ]
permissive
<?php namespace WowTables\Http\Models\Frontend; use DB; use Config; use URL; use WowTables\Http\Models\Eloquent\Reservations\ReservAddonVarientDetails; /** * Class User * @package WowTables\Http\Models */ class ExperienceModel { /** * Minimum Price for experiences in the given city. * * @var ...
true
1783eed64eb936bee07dfb9942ae4a426e0d01c1
PHP
rnuernberg/chameleon-shop
/src/ShopBundle/objects/db/TShopPaymentHandler/TShopPaymentHandlerDebitNoSEPA.class.php
UTF-8
3,978
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Chameleon System (https://www.chameleonsystem.com). * * (c) ESONO AG (https://www.esono.de) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * the paymenthandlers are used to handle the dif...
true
cc112c4782eed414f1fcbf2abe534e9843c37185
PHP
ddkq/dedao
/newchengdu/admin/application/common/model/BaseModel.php
UTF-8
865
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\model; use think\Model; use think\Request; /** * 公共模型 */ class BaseModel extends Model{ //数据库id protected static $db_id; //protected $connection = 'db_config1'; protected function initialize(){ //需要调用`Model`的`initialize`方法 parent::initialize(); ...
true
ea2cb5471188c738cd6764c7a04c1b46db136be3
PHP
inabahtrg/KalturaServerCore
/plugins/event_notification/lib/api/types/KalturaEventNotificationParameter.php
UTF-8
1,590
2.6875
3
[]
no_license
<?php /** * @package plugins.eventNotification * @subpackage api.objects */ class KalturaEventNotificationParameter extends KalturaObject { /** * The key in the subject and body to be replaced with the dynamic value * @var string */ public $key; /** * The dynamic value to be placed in the f...
true
74b26d8b04c2b2b540b3762a646e26f6c50b2d83
PHP
p3concept/peppa.one
/module/Application/src/Application/Model/Pizza.php
UTF-8
204
2.921875
3
[]
no_license
<?php namespace Application\Model; class Pizza { public $name; public $zutaten; public function __construct($name, $zutaten) { $this->name = $name; $this->zutaten = $zutaten; } }
true
1eb4f1c7d89bb6a4dba76ba131429fd60a955136
PHP
AdrianoTosetto/Chat
/TextFileMapper.class.php
UTF-8
393
2.796875
3
[]
no_license
<?php class TextFileMapper implements iFileMapper{ private $instance; private function __construct(){} public function getInstance(){ if(self::$instance === null): self::$instance = new TextFileMapper(); endif; return self::$instance; } public function mapAndMoveToDirectory($...
true
b2f659cd25a64d7ea54a72bba89b91ec37e68a9f
PHP
buizcore/BuizCore_Wgt
/src/wgt/panel/WgtPanelTable.php
UTF-8
8,299
2.5625
3
[ "MIT" ]
permissive
<?php /******************************************************************************* * * @author : Dominik Bonsch <d.bonsch@buizcore.com> * @date : * @copyright : BuizCore GmbH * @project : BuizCore - The Business Core * @projectUrl : http://buizcore.net * * @licence : BSD License see: LICENCE...
true
fc11889d4621e6b9146b7b6cd852a315e8509f6a
PHP
ludovskys/maimuta_web
/c_sessions_types_list.php
UTF-8
781
2.53125
3
[]
no_license
<?php //if(isset($_SESSION['role']) && ($_SESSION['role']==1 || $_SESSION['role']==2)){ require('connect.php'); require('m_sessions_types.php'); function getSessionsTypesList() { $res =""; $connexion = connect(); $i = 0; $res.= "<select style='display:block; float:left; margin-left:10px; margin-top:20...
true
27b85d354b41e36fa45ec4fa7bdf98df8354c0af
PHP
algebrateam/phpdev2017
/ipaic/dz3.php
UTF-8
1,692
3.390625
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <body> <?php $faks=array("marko","petar","luka","ivan","bernard","matej","tomislav","maja","iva","lucija"); echo "Studenti s manje od 5 znakova u imenu: <br> "; for($x=0;$x<count($faks);$x++) { if(strlen($faks[$x])<5) { echo $faks[$x]; echo "<br>"; } }...
true
b64d6aeb433c81d656341a06105e36219682187a
PHP
chzplz21/overseas-test
/app/Console/Commands/SendLogEmails.php
UTF-8
1,915
2.625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Models\LogHotelClicks; use App\Models\LogRoomClicks; use Illuminate\Support\Facades\Mail; use App\Mail\LogEmail; use Illuminate\Support\Facades\Log; use DateTime; use Illuminate\Support\Facades\DB; class SendLogEmails extends Command { ...
true
1f0a3750278fdf3694e266cb56f084a0b2e982e4
PHP
keepzero/webpie
/core/config.php
UTF-8
3,901
2.765625
3
[]
no_license
<?php class Webpie_Config_Exception extends Webpie_Exception{} class Webpie_Config { private $name = 'Webpie'; private $author = 'soone'; private $email = 'fengyue15@gmail.com'; private $ver = '0.1'; private $date = '2012-02-20'; private $debug = true; public $custom = array(); public $wpRoot = __DIR__; publi...
true
b9e72746178fddf80dd829f8771a38db9fc92d1e
PHP
chajr/class
/Lib/Core/Render/View/Grid/GridAbstract.php
UTF-8
3,344
2.71875
3
[ "WTFPL" ]
permissive
<?php /** * allow rendering grid * * @package Core * @subpackage Render * @author chajr <chajr@bluetree.pl> * @todo cache usage * @todo external template usage */ namespace Core\Render\View\Grid; use Core\Render\View; use Core\Blue\Model; use Loader; abstract class GridAbstract extends View\ViewAbstra...
true
9d2cb3cef8399aa909b26c870814fe83ffed1eab
PHP
edwin-1/daw
/parcial 3/ejemplo 03.php
UTF-8
297
2.921875
3
[]
no_license
<?php define("ruta") ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>title</title> </head> <body> <?php $valor = 5; echo "el valor es:".$valor."\n<br>"; echo "el valor es: $valor \n"; echo "<pre>"; print_r($_SERVER); echo "</pre>"; ?> </body> </html>
true
ab7121bcc3bbe3490f3afed4d5f292372b43f029
PHP
seanjohn85/Asset-Management-WebSite
/classes/Customer.php
UTF-8
2,427
3.1875
3
[]
no_license
<?php class Customer { //varaibles used in a branch object private $customerNo; private $branchNo; private $fName; private $lName; private $address; private $gender; private $mobileNo; private $email; //private $openDate; ...
true
e69efee587cf2bed40145cbccedf2c1bc690d08a
PHP
esd-projects/process-rpc-plugin
/src/ProcessRPC/GetProcessRpc.php
UTF-8
1,345
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 白猫 * Date: 2019/5/9 * Time: 10:15 */ namespace ESD\Plugins\ProcessRPC; use ESD\Core\Server\Process\Process; use ESD\Core\Server\Server; trait GetProcessRpc { /** * @param Process $process * @param string $className * @param bool $oneway 是否单向 * @p...
true
e23d2df5807909bc396a413b524fbb48ea578fc7
PHP
fritids/compartirofertas
/churchope/classes/Locate/Api/Poi.php
UTF-8
4,329
2.84375
3
[]
no_license
<?php class Locate_Api_Poi extends Locate_Api { var $point = array('lat' => 0, 'lng' => 0), $title = '', $url = null, $body = '', $address = null, $correctedAddress = null, $iconid = null, $viewport = null, // array('sw' => array('lat' => 0, 'lng' => 0), 'ne' => array('lat' => 0, 'lng' => 0)) ...
true
cc35623c21d8e783de95ebd020cac194f8e952fa
PHP
daisuke1101/test
/selfphp_2/6/func_static2.php
UTF-8
183
3.46875
3
[]
no_license
<?php $area = getTriangleArea (8, 10); print "三角形の面積は{$area}です。<br />"; if(TRUE) { function getTriangleArea($base, $height) { return $base * $height / 2; } }
true
e9017ab25c877435b099e094ffe411e860eb349c
PHP
sohenid/c2rd2p10
/wwwroot/application/libraries/antibruteforce.php
UTF-8
1,837
2.84375
3
[]
no_license
<? /* define(DBFILEIP, $_SERVER['DOCUMENT_ROOT'].'/img/cache/ips.ban'); define(NUMTRY, 3); define(SLEEPTIME, 30); // seconds define(CLEANTIME, 10); // minutes */ class Antibruteforce{ protected static $_DBFILEIP = '/cache/ips.ban'; protected static $_NUMTRY = 3; protected static $_SLEEPTIME = 30; // seconds ...
true
9dcb576654650efd27eccb69390bca1577b9e930
PHP
dankert/openrat-webdav
/dav/method/DAV_PUT.class.php
UTF-8
1,841
2.921875
3
[]
no_license
<?php namespace dav\method; use dav\DAV; use dav\Logger; use dav\URIParser; class DAV_PUT extends DAV { /** * Anlegen oder �berschreiben Dateien �ber PUT.<br> * Dateien k�nnen neu angelegt und �berschrieben werden.<br> * <br> * Seiten k�nnen nicht �berschrieben werden. Wird versucht, * eine Seite mit ...
true
41bfe58558a34547e5625a63c6ea6f80581f1379
PHP
khaingzinthant77/health-licence
/database/migrations/2021_01_20_034408_create_clinics_table.php
UTF-8
976
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateClinicsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('clinics', funct...
true
9ae7a91c6243699920a1ccf710f351479f29d473
PHP
pdxjohnny/smartplanter
/dist/api/lib/error_response.php
UTF-8
5,443
3.046875
3
[ "MIT" ]
permissive
<?php class ErrorResponse { public $code; public $message; public function __construct($code, $message) { $this->code = $code; $this->message = $message; $this->render(); } // Reset the error mesasge private function reset_response() { // Defautl is server error...
true
f59d80f8b279c0380c62b65e746422c23b6cc913
PHP
pirhoo/owni-warlogs-irak
/includes/class/Mydb.class.php
UTF-8
3,484
2.78125
3
[]
no_license
<?php class Mydb { // ---------------------------------------- // PUBLIC // ---------------------------------------- public function __construct($host, $database, $user, $password) { $this->host = $host; $this->database = $database; $this-...
true
be0d6858cb940dc562cf04de47a91831424e7f1d
PHP
php-tmdb/api
/lib/Tmdb/Model/Common/Change.php
UTF-8
1,293
2.625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Tmdb PHP API created by Michael Roterman. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package Tmdb * @author Michael Roterman <michael@wtfz.net> * @copyright (c) 2013, Michael Roterman ...
true
548bbe7fefffc2ebdc620b308e55702dd56c49e1
PHP
sebabaillet/tienda-nube-test
/src/TiendaNube/Checkout/Http/Controller/AbstractController.php
UTF-8
2,121
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace TiendaNube\Checkout\Http\Controller; use Psr\Container\ContainerInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use TiendaNube\Checkout\Http\Request\RequestStackInterface; use TiendaNube\Checkout\Http\Response\ResponseBuilderInt...
true
15aa5f8bab757186ca2b43f1e38a83c149e8a3a1
PHP
JHKennedy4/mc911feedwatcher
/web/api/eventapi.php
UTF-8
679
2.71875
3
[]
no_license
<?php require_once("Database.class.php"); require_once("Time.class.php"); $eventtypeid = $_GET['eventtypeid']; $startdate = $_GET['startdate']; $db = new Database(); $time = new Time(); // get the current datetime $todaysDate = date( 'Y-m-d H:i:s' ); // record start time $starttime = $time->StartTime(...
true
32473e6ebd4a49c49eab1bd3dcca913200917753
PHP
SyedArifulIslamEmon/phpfoundation
/loop_&_conditions/forloop.php
UTF-8
147
3.15625
3
[]
no_license
<?php $start=1; $end=25; $sum=0; $counter; for($counter=$start;$counter<=$end;$counter++) { $sum=$sum+$counter; //echo "<br>"; } echo $sum;
true
54c61f0015b23c1d8f5562908c4a942f5d1944c2
PHP
edwardyu/Project-Euler-PHP
/e024.php
UTF-8
1,349
4.1875
4
[]
no_license
<?php /* * A permutation is an ordered arrangement of objects. * For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations * are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are: 012 021 102 120...
true
d07ba73faece8905d6e738193bcd61c6faedab62
PHP
huyduong1589/azure_travelwithus
/web/register.php
UTF-8
1,729
2.609375
3
[ "MIT" ]
permissive
<?php session_start(); if($_SERVER['REQUEST_METHOD']=='POST') { $username=filter($_POST['email']); $password=filter($_POST['password']); $fname=filter($_POST['fname']); $lname=filter($_POST['lname']); $phone=filter($_POST['phone']); $firebase_password=$password; $password=md5($password); $dbc=mysq...
true
ce0d0bdd93966984356153d172dfdecf05c85a82
PHP
superelebe/conmersa
/admin/incluir/class_usuario.php
UTF-8
12,154
2.75
3
[]
no_license
<?php /*//------------- CLASE USUARIO -----------------*/ class Usuario { /*//------------- Inicio función -----------------*/ ////// Atributos de la clase. private $user; private $correo; private $pass_usr; private $email; private $sesion_name; private $longitud; private $dabe; private $data; private ...
true
20102ab96d44dd92bf90c8be874b668fce141313
PHP
KierenRhys/madera-api
/src/routes.php
UTF-8
9,704
2.671875
3
[]
no_license
<?php use Slim\Http\Request; use Slim\Http\Response; // Routes // DEBUT GET ------------------------------------------------------------------------- // Utilisateur $app->get('/login/[{login}/{password}]', function (Request $request, Response $response, array $args) { $sth = $this->db->prepare("SELECT * FROM uti...
true
a4416ab99990d494bf08786308fcbf8591fe550a
PHP
Theilor/firstone
/aula1/ex1/ex1.php
UTF-8
154
3.0625
3
[]
no_license
<?php $num1 = $_POST['valor1']; $num2 = $_POST['valor2']; $soma = $num1 + $num2; echo "O resultado da soma é $soma"; ?>
true
63d9fb578d474c9d86ee8e234b96bf00cc5ea653
PHP
danielfuentes/php-poo-pdo-2019
/clases/BaseJSON.php
UTF-8
3,272
3.234375
3
[]
no_license
<?php class BaseJSON extends BaseDatos{ private $nombreArchivo; public function __construct($nombreArchivo){ $this->nombreArchivo = $nombreArchivo; } public function getNombreArchivo(){ return $this->nombreArchivo; } public function setNombreArchivo($nombreArchivo){ $this...
true
28fa99620df6ead63f01257eac8b578e8a2b2e47
PHP
hhs1995/excel-bulk-sms-notification
/assets/functions.php
UTF-8
2,253
2.640625
3
[]
no_license
<?php function sanitise($input){ $input = stripslashes($input); $input = trim($input); $input = htmlspecialchars($input); $input = htmlentities($input); $input = mysql_real_escape_string($input); $input = strip_tags($input); return $input; } /* CODE TO SEND SMS */ ...
true
dc137a7c5d0827f918621e0e05e7a07f83d85b49
PHP
stupidsing/crude_forum
/rss.php
UTF-8
4,856
2.53125
3
[]
no_license
<?php include 'configuration.php'; include 'misc.php'; include 'rss.lang.big5.php'; // a little configuration // $cfgThreadTotal=10; $lock = getLock (); $index = fopen ($dataDirectory . "index", "r+"); if($index) { $nSubjects = 0; // Limits number of subjects in a page $nThread = 0; // provide initial value t...
true
c9607ce7496fdc394cc36c59ea0d0c0e70e8e2a2
PHP
soroushshalali/Articles-cms
/frontend/models/ArticlesCrud.php
UTF-8
1,732
2.625
3
[]
no_license
<?php namespace frontend\models; use Yii; use common\models\User; /** * This is the model class for table "articles". * * @property int $id * @property string $title * @property string $text * @property string $short_text * @property string $author * @property int $author_id * @property int $created_at * @...
true
52a5059813f50809dded3824a3f26b684de352a0
PHP
rabsanaco/contracts
/UI/Widgets/Checkbox.php
UTF-8
2,020
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bikasoon * Date: 2019-10-01 * Time: 12:25 */ namespace Rabsanaco\Contracts\UI\Widgets; abstract class Checkbox extends Component { protected $name; protected $label; protected $value; protected $description; protected $readOnly = false; protected ...
true
26edd250869fef8d39c5f210c0e7b425e20d293f
PHP
Stelss0007/Callisto
/www/kernel/ErrorHandler.php
UTF-8
18,146
2.890625
3
[]
no_license
<?php class ErrorHandler { static $instance; public $error_array = []; public $notice_array = []; public $warning_array = []; public $user_error_array = []; public $backTrace = []; public $log = []; public static function getInstance() { if (empty(self::$instan...
true
feaa6d9cb9601c8abe9a6ded20f4a85b2c66e55e
PHP
cmooreitrs/monitor-ninja
/modules/reports/vendor/mfchart/LinePointChart.php
UTF-8
15,142
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php class LinePointChart extends Chart { protected $type = NULL; protected $point_style = 'circle'; // diamond / circle -- if point_fill_color is set it will be filled else empty (try it) protected $point_width = 7; // size of points protected $pen_width = 3; // width of the graph lines protected $appro...
true
b197ed37a53ca09bde339a03c315092c3087571f
PHP
Dualse/php-ncanode
/src/XMLVerificationResult.php
UTF-8
1,170
3
3
[ "MIT" ]
permissive
<?php namespace Malikzh\PhpNCANode; /** * Class XMLVerificationResult * * Класс информации о проверки XML-подписи * * @package Malikzh\PhpNCANode */ class XMLVerificationResult { protected $result = null; public function __construct(array $result) { $this->result = $result; } /** ...
true
ad6b8af35e2240ff6ef2d445c9bcf863a31fa0b1
PHP
magicbug/Cloudlog
/application/controllers/Gridsquares.php
UTF-8
10,501
2.53125
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Gridsquares Controller */ class Gridsquares extends CI_Controller { /* * TODO List * - Create index page * - Band page provide a band dropdown list * - Find somewhere in the main menu to add a button to it...
true
ed2b5b749fcd2479c4cd315dc3da40d9c2d2d57f
PHP
dbierer/php-i-jan-2019
/homework/others/DefaultWorkspace/php1/src/ModTheFoundation/arr_mixed_output1.php
UTF-8
220
3.5625
4
[]
no_license
<?php // An astronaut array assignment $astronaut = ['firstName' => 'Mark', 'Watney', 'Botanist']; // Access the specialty value echo $astronaut['firstName'] . '<br>'; // Access the speciality value echo $astronaut[1];
true
818334780083af03fbde6b19aacf062c76f74512
PHP
chiragjindal/php_code
/b.php
UTF-8
303
2.515625
3
[]
no_license
<?php include "sql1.php"; $result = mysqli_query($db,"SELECT * FROM userinfo WHERE name='b'") or die(mysql_error()); echo "<br>"; $person=mysqli_fetch_array($result); echo $person['name'],"<br>"; echo $person['dob'],"<br>"; echo $person['id'],"<br>"; echo $person['grade'],"<br>"; ?>
true
f38cff78ce78165b8417f35862182ee3167e9a0c
PHP
awelm/youtube_channel_ratings
/categories/subcats/naruto.php
UTF-8
432
2.65625
3
[]
no_license
<!doctype html> <html lang="en"> <link rel="stylesheet" href="../../main.css"> <?php require 'mySubcategory.php'; $naruto=new mySubcategory(); $naruto->setMySubcategory("anime", "Anime", "naruto", "Naruto"); $naruto->printBeforeMainCategory(); if(array_key_exists('choice', $_GET)) $naruto->printsubcategoryHTML($_G...
true
67fe1af909d24378b547a22d1b258737ca5431c7
PHP
eaglecrazy/geekbrains-algorithms-architecture-and-patterns
/Homework6/Strategy/Payment.php
UTF-8
575
3.265625
3
[]
no_license
<?php namespace Homework6\Strategy; use Homework6\Strategy\PaymentStrategy\PaymentStrategy; class Payment { private int $amount; private PaymentStrategy $paymentType; public function __construct(int $amount, PaymentStrategy $paymentType) { $this->amount = $amount; $t...
true
5407ae5ef161e8c4ee6ea75bca08ad12362d02db
PHP
evilnapsis/evilnaptic
/core/modules/index/model/PostViewData.php
UTF-8
1,902
2.640625
3
[]
no_license
<?php class PostViewData { public static $tablename = "post_view"; public function getPost(){ return PostData::getById($this->post_id); } public static function getByCode($id){ $sql = "select * from ".self::$tablename." where code=\"$id\""; $query = Executor::doit($sql); return Model::one($query[0],new Po...
true
e66b89a1770b6c9fa79eb358970fcc2dda74389e
PHP
zivanovica/pms
/app/Models/Page.php
UTF-8
516
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\User; use Illuminate\Database\Eloquent\Model; class Page extends Model { public function getUser() { return $this->hasOne(User::class, 'id', 'user'); } /** * @param $id * @return Page */ public static function getActivePageWithId($id) ...
true
e6eb6e1c9e0afe3f0dd535df5a7f088aa20dcb34
PHP
umpirsky/PermissionsHandler
/src/PermissionsHandler/SetfaclPermissionsSetter.php
UTF-8
592
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Umpirsky\PermissionsHandler; use Umpirsky\PermissionsHandler\Exception\PathNotFoundException; class SetfaclPermissionsSetter extends PermissionsSetter { /** * @param $path * @return void */ public function setPermissions($path) { if (!is_di...
true
86930f04bf69bd2fcf6c674d49e93a763f843a32
PHP
DanCassiano/site
/core/app.class.php
UTF-8
1,941
3
3
[]
no_license
<?php /** * App * @autor Jordan Cassiano */ class App { function __construct(){ } private static $rota; private static $pagina; /** * Funcao de inicializacao * @return void */ public static function init() { /** @var string rota controladora */ $tema = Url::getURL(1); if( $tema == "dashboard...
true
13d207c6f6f4c013c1d150e7f2f7fdeacb874aea
PHP
AlexGnatko/EMPS
/4.5/core/categories.class.php
UTF-8
7,379
2.578125
3
[]
no_license
<?php class EMPS_Categories { public $table_items = "ws_items"; public $table_struct = "ws_categories"; public $table_link = "ws_items_categories"; public $dt_item = 0; public $dt_structure = 0; public $p_item = ""; public $p_structure = ""; public $explain_list_nodes = false; pub...
true
69d6ae710f4dfb68e89e53847491bc10c90eecf7
PHP
sh00terGit/examination
/application/forms/Part.php
UTF-8
2,236
2.609375
3
[]
no_license
<?php /* * Форма для пунктов * @author Shipul Andrey * @position Nod-4 ivc * */ class Application_Form_Part extends Application_Form_Ru { private $noAdmin; /** * админ может сохранять в архив */ public function __construct($noAdmin = false, $options = null) { $this->noAdmi...
true
0e985be6b28682251a54806688bcf28ffb937827
PHP
carlospas/ClinicaRamis
/database/seeds/UsersTableSeeder.php
UTF-8
1,454
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\User; use Spatie\Permission\Models\Role; class UsersTableSeeder extends Seeder{ /** * Run the database seeds. * * @return void */ public function run(){ $virginia=new User(array( 'email'=>'virginia.jaque@localhost.com', ...
true
e96e8c82e94e99b58c8caf1e3c6e1d415158075a
PHP
PietroDavideDeSanti/ArtGallery4
/src/CoreBundle/Libraries/K2mailer.php
UTF-8
858
2.671875
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace CoreBundle\Libraries; class K2mailer { public static $headers = array(); public static function setSwitfMessage($title, $from, $to, $body, $attachment = "", $format = "text/html") { $message = \Swift_Message::newInstance() ->setSubject($title) ...
true
9cf7241cadfd79d83e980f8b9f072b91d878c6ea
PHP
ianswenson/mcc-rssslackbot
/class.slackbot.php
UTF-8
3,599
2.96875
3
[]
no_license
<?php defined( 'DS' ) or define( 'DS', DIRECTORY_SEPARATOR ); defined( 'THIS_PATH' ) or define( 'THIS_PATH', dirname(__FILE__) . DS ); include_once( THIS_PATH . 'class.basic.php' ); /** * DO NOT URLENCODE text/attachment * * * Attachment schema * * Should have: * fallback * title * text ...
true
0ad6bca94c787a53d8f86e11f5e2d3861142201c
PHP
uphp/mysql
/src/traits/ActiveRecordFinderMethods.php
UTF-8
2,208
2.71875
3
[]
no_license
<?php namespace UPhp\Model\traits; use Exception; use src\ActiveQuery; trait ActiveRecordFinderMethods { public static function find($where = NULL) { if (empty($where)) return new ActiveQuery(get_class(static::getInstance())); self::getConn(); $pre = self::$db->prepare($where); ...
true
1cfa5b0dbad4c2d9036916682ceaaf8141c76922
PHP
alex19pov31/dc
/src/Mongo/Connection.php
UTF-8
358
2.8125
3
[]
no_license
<?php namespace \DC\Mongo; class Connection extends \DC\Connection { public static function set($host, $user, $pass, $db, $port = false) { self::$_conn = new \MongoDB\Client("mongodb://{$user}:{$pass}@{$host}")->$db; } public static function getCollection($name) { if(!self::$_conn) return false; ...
true
9143c590160ec4d68c49d5d9dfe1de1b23c1eef2
PHP
Lizzay01/interactive_quiz
/quiz_form.php
UTF-8
5,658
2.765625
3
[ "Apache-2.0" ]
permissive
<?php ini_set('display_errors', 1); error_reporting(E_ALL); function creating_quiz() { if ( (! array_key_exists("username", $_POST)) or (! array_key_exists("password", $_POST)) or ($_POST["username"] == "") or ($_POST["password"] == "") or (! isset($_POST["username"]))...
true
43a11b5ebb9af3f8eef8c0b6e0429f2e6d90f3a9
PHP
DavidGoodwin/Propel
/generator/lib/model/Unique.php
UTF-8
1,571
2.65625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ require_once dirname(__FILE__) . '/Index.php'; /** * Information about unique columns of a table. Th...
true
1a7e39c0c8b2c88116c5fe87864d5e1d16e08dcb
PHP
kiranshahi/MCA_Web
/Cookies/index.php
UTF-8
303
2.71875
3
[ "MIT" ]
permissive
<?php if (isset($_COOKIE['visitcount'])) { $count = $_COOKIE['visitcount']; setcookie('visitcount', $count + 1 , time() + 36000); $newCount = $count + 1; echo "You have visited this page $newCount times."; } else { setcookie('visitcount', 0 , time() + 3600); echo "Cookie set bhayo"; } ?>
true
4af5e4a8c4d581d93b5c747c41711e10536568e2
PHP
astechdev/PitchPredict
/Services/Results/Charts/pitchChart.php
UTF-8
4,575
2.625
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT'].'/PitchPredict/DataTypes/StateVariables.php'; include_once $_SERVER['DOCUMENT_ROOT'].'/PitchPredict/DBProxies/PitchesDbProxy.php'; include_once $_SERVER['DOCUMENT_ROOT'].'/PitchPredict/DBProxies/PitchTypesDbProxy.php'; $aStateVariablesObject = new StateVari...
true
beca79c5cad92160366c382b49de4b93fa27f6d9
PHP
sunilhari9/stummy
/sales_pro.php
UTF-8
3,539
2.578125
3
[]
no_license
<?PHP session_start(); class sales_pro { public function populateToken() { $url="https://login.salesforce.com/services/oauth2/token?grant_type=password&client_id=3MVG9ZL0ppGP5UrAslWO7Jdgx_jtpc_92K1MWhmh77qkn1ZJ_Jxac4XlNhvYSVABRSB.3i81ELQ==&client_secret=6167355528564993607&username=crm@stummy.com&password=sfdc@12...
true
1de1a15b66c9b7bdb01f23f354e094b19f3be28e
PHP
Stadly/Http
/tests/Header/Request/IfUnmodifiedSinceTest.php
UTF-8
4,964
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stadly\Http\Header\Request; use DateTime; use PHPUnit\Framework\TestCase; use Stadly\Http\Exception\InvalidHeader; use Stadly\Http\Header\Value\Date; /** * @coversDefaultClass \Stadly\Http\Header\Request\IfUnmodifiedSince * @covers ::<protected> * @covers ::<private> */ ...
true
597695e5c7bd2661ea4dfd85dd19e7f0b50045dd
PHP
KostiaKalinchuk/phpS
/functions_forms_tasks/9/9.php
UTF-8
187
2.734375
3
[]
no_license
<?php function reverse($arg) { $b=''; for ($i = strlen($arg) - 1; $i >= 0; $i--) { $b .= $arg[$i]; } return $b; } require '9.html'; echo reverse($_POST['text1']);
true
581ed4900cbafef3d1b37a062b0b581d97fe3505
PHP
mrprompt/chartmogul-php
/src/Configuration.php
UTF-8
2,558
3.15625
3
[ "MIT" ]
permissive
<?php namespace ChartMogul; const DEFAULT_MAX_RETRIES = 20; /** * * @codeCoverageIgnore */ class Configuration { /** * @var null|Configuration */ private static $defaultConfiguration = null; /** * @var string */ private $accountToken = ''; /** * @var string */ ...
true
b30920ecfc9efdd9694712ab6bb149fdab03eaf0
PHP
msitruk/my_phpmyadmin
/php/models/table_db.php
UTF-8
5,952
2.875
3
[]
no_license
<?php function rename_table($connection, $name_database, $old_table, $new_table) { $sql = "RENAME TABLE $name_database."."$old_table TO $name_database."."$new_table"; try { $req = $connection->query($sql); echo"success .."; } catch (PDOException $e) { echo "Rename failed"; } } ...
true
26051e4dac40054a80c812b21d8d6ddfa81f577b
PHP
mlehner/redqueen
/apps/admin/modules/twitter/actions/actions.class.php
UTF-8
2,515
2.546875
3
[]
no_license
<?php /** * twitter actions. * * @package hs * @subpackage twitter * @author Your name here * @version SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $ */ class twitterActions extends sfActions { /** * Executes index action * * @param sfRequest $request A request obje...
true
aed3621f2477a59c648153262d6bc1de1c80f4b5
PHP
tomjhodge/learning-angular
/server/PDO_db.class.php
UTF-8
895
3.234375
3
[]
no_license
<?php class pdoDB { // private statics to hold the connection private static $dbConnection = null; // make the next 2 functions private to prevent normal // class instantiation private function __construct() { } private function __clone() { } /** * Return DB connection or create initial connection * @re...
true
f8b8a3de508bbba9558a4435ad1989cc1758ef36
PHP
nulldevelopmenthr/nemesis
/src/NullDevelopment/SkeletonSourceCodeExtension/MethodGenerator/BaseMethodGenerator.php
UTF-8
1,668
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace NullDevelopment\SkeletonSourceCodeExtension\MethodGenerator; use Nette\PhpGenerator\ClassType; use Nette\PhpGenerator\Method as NetteMethod; use NullDevelopment\PhpStructure\Behaviour\Method; use NullDevelopment\Skeleton\Core\MethodGenerator; /** @SuppressWarnings("PHPMD.Num...
true
d87b2f76456950a4b99f487ed3b6c401982a5a13
PHP
daniel-ness/ansible-vault
/src/Encrypter.php
UTF-8
1,972
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DanielNess\Ansible\Vault; use DanielNess\Ansible\Vault\Contracts\EncryptionTrait; use DanielNess\Ansible\Vault\Encrypter\Exception\EncryptionException; /** * Class Encrypter * @package DanielNess\Ansible\Vault */ class Encrypter { use EncryptionTrait; const VERSIO...
true
76b9427e5ebeb96cab4f58cc095d064fccdb434f
PHP
JohnSoutar-ColeAD/Soak
/soak-core/class/registration.php
UTF-8
1,632
3.203125
3
[]
no_license
<?php class Registration { var $User; var $success; function Registration($userArray = '') { $User = new User; // Check that an array of user details was actually provided // We might struggle to create a user with no details.. if(is_array($userArray)) { $this->registerUser($userArray); } else { ...
true
1ec71f8ef319b432718e1d309629d9de51aeacfe
PHP
nanthini85/ERP_workouts
/refer/new/getEmployee.php
UTF-8
1,162
2.78125
3
[ "Apache-2.0" ]
permissive
<?php include('../dbcon.php'); if(isset($_POST['employee_id'])) { $sql = "SELECT employee_id, emp_first_name, employee_salary, employee_age FROM employee WHERE employee_id='".$_POST['employee_id']."'"; $result = mysqli_query($conn, $sql) or die("database error:". mysqli_error($conn)); $users_arr = array(); $obj...
true
7bdd5d63d0230f9f438234a39c5b2729ad5b4226
PHP
LeeStewart/obs-php
/src/Client/Core/OutputConsole.class.php
UTF-8
2,898
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Client - Core - Output Console Class * * One of the classes that allows the Core code to output to different devices or other * servers. This class outputs to the console and attempts to color code the Trace data. * *************************************************************...
true
5e33702665f10496d6d74b38cbdb4bb35d04dc4a
PHP
wowjohn/ali-sms
/src/SignatureHelper.php
UTF-8
4,176
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: baofan * Date: 2018/10/22 * Time: 17:48 */ namespace fbao; class SignatureHelper { private $paramArray = [ 'SignatureMethod' => 'HMAC-SHA1', 'SignatureVersion' => '1.0', 'Format' => 'JSON', 'SignatureNonce' => '', '...
true
7acaa9d24a4fd8a4721afbe99674063b431a751c
PHP
MelmanDesigns/Application-System
/inc/functions.php
UTF-8
4,889
2.546875
3
[]
no_license
<?php // Throw Visual Error (Only works after Header is loaded) function throwError($error, $log = false) { // Load Toastr JavaScript and CSS echo ' <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"> <script src="//cdnjs.cloudflare.com/ajax/libs/t...
true
3969993c62a26b88460e21c0b2918f9344b5bd28
PHP
techmagicinc/volsys
/app/controllers/maintenancecontroller.php
UTF-8
1,749
2.71875
3
[ "MIT" ]
permissive
<?php class maintenancecontroller extends \BaseController { public $restful=true; public function __construct(employee $emp) { $this-> Employee = $emp; } /** * Display a listing of the resource. * * @return Response */ public function index() { $emps = $this->Employee->all...
true
da93ccce6ba652aae5248d9cdb9dc9dbebe86ef7
PHP
ceskyDJ/izp-sheet-tests
/classes/Tester.php
UTF-8
13,712
3.15625
3
[]
no_license
<?php declare(strict_types=1); /** * Tester for C scripts * * Tests C scripts by arguments provided in params of public test* methods. * * @author Michal ŠMAHEL <admin@ceskydj.cz> * @author Vojtěch SVĚDIROH * @date October 2020 * @noinspection PhpIllegalPsrClassPathInspection */ class Tester { /** *...
true
1586f0b2db556d3d3d7f9fcf8c8d5a24d6922a22
PHP
warmans/jditest
/library/ModelValidation/Callbacks.php
UTF-8
477
2.75
3
[]
no_license
<?php /** * Description of Callbacks * * @author Stefan */ abstract class ModelValidation_Callbacks { public static function dateGreaterThanField($fieldName){ $callback = function($value, $context = null) use ($fieldName) { if(strtotime($value) >= strtotime($context[$fi...
true
ee4216f04c24cfa0f088138976517931cadb7b64
PHP
asadjamil/CancerHope
/AddDemographicsReponse.php
UTF-8
4,096
2.546875
3
[]
no_license
<?php require('connection.php'); // get values from demographics tab via ajax(index.php) $radioBtnValue = $_POST["radioBtnValue"]; $CallerName = $_POST["CallerName"]; $CallerPhone = $_POST["CallerPhone"]; $RelationName = $_POST["RelationName"]; $ReferralName = $_POST["ReferralName"]; $FirstName = $_P...
true
c757887d25dd30cf6845e9059e0713ccaa28bc07
PHP
JCPP/DBPizz
/app/api/apiIngrediente.php
UTF-8
666
2.59375
3
[]
no_license
<?php //Creare un nuovo ingrediente $app->post('/api/ingredienti/add', function () use($app){ $json = $app->request()->getBody(); $ingrediente = json_decode($json); array_walk_recursive($ingrediente, function(&$value, $key){ $value = utf8_decode($value); }); //Controlli foreach($ingrediente as $k...
true
c19cadfa47b9869e0d547ee6cc556e78fdf94821
PHP
cyberomulus/SiteMapGeneratorBundle
/SiteMapProvidersCollection.php
UTF-8
1,541
2.796875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the CyberomulusSiteMapGeneratorBundle package. * * (c) Brack Romain <http://www.cyberomulus.me> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cyberomulus\SiteMapGeneratorBundle...
true
6b8361e4752103098cebd899976a7c7893404e69
PHP
Berkayayaz/Web-Applications
/Quiz Wizard with Admin Panel/login/index.php
UTF-8
4,346
2.640625
3
[]
no_license
<?php session_start(); include_once('../utils/utils.php'); include_once('../common/globals.php'); require_once('../model/database.php'); $creation_status = 0; $email = filter_input(INPUT_POST, 'email'); $password = filter_input(INPUT_POST, 'password'); if ($email != NULL && $...
true
8a12b4b0340973f0ee70b3b37439c19e5cce8e78
PHP
noahkim/kowop
/protected/models/Rating.php
UTF-8
3,485
2.671875
3
[]
no_license
<?php /** * This is the model class for table "Rating". * * The followings are the available columns in table 'Rating': * @property integer $Rating_ID * @property integer $User_ID * @property integer $Rate_User_ID * @property integer $Experience_ID * @property string $Comment * @property integer $Flagged * @...
true
707bc32384273bc922d7b7c205152afe0866c230
PHP
zitaluk630/INFS3208Project
/INFS3208/application/models/Product_model.php
UTF-8
13,285
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Product_model extends CI_Model{ public function get($product_id){ $this->db->where('id',$product_id); $query = $this->db->get('product'); if($query->num_rows() == 1){ foreach ($query->result() as $row...
true
fecb1731ae1a45f5990c3c552ad41414e7c5ed14
PHP
Zakwilder/mentoring
/protected/migrations/m130412_161958_create_page_table.php
UTF-8
1,039
2.5625
3
[]
no_license
<?php /** * @copyright Copyright (c) Sigma Ukraine * @package Yiitrn */ /** * This migration creates table "Page". * * @package Yiitrn\migrations * @author Eugene Zakursky <Eugene.Zakursky@sigmaukraine.com> */ class m130412_161958_create_page_table extends CDbMigration { /** * Commences migration. * ...
true
1e80efc81f3c2ec412a529ad5d39e9cb91e8b52a
PHP
mzmlhaque/phpexam
/admin/leave_manage_ajax.php
UTF-8
1,798
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: SERAC-Bangladesh * Date: 12/4/2015 * Time: 11:21 AM */ error_reporting(0); session_start(); if(isset($_SESSION['logged_role']) && $_SESSION['logged_role']=='admin'){ if(isset($_REQUEST['e_id'])){ $e_id = $_REQUEST['e_id']; include('../pdo_connection.ph...
true
8843992679b6934d2cad7c7150edd3e5405181a5
PHP
Stolz/php-stubs
/res/php/swf/functions/swf-textwidth.php
UTF-8
172
2.984375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Get the width of a string * * @phpstub * * @param string $str * * @return float Returns the line width, as a float. */ function swf_textwidth($str) { }
true
b049e546dcf4326842c17a472f22a8d2df659e72
PHP
tos1n/Custom-Hotel-WebApp
/echoes/bookings.php
UTF-8
12,618
2.609375
3
[]
no_license
<?php $server = "localhost"; $username = "root"; $password = ""; $database = "Hotel_App"; $connection = mysqli_connect($server, $username, $password, $database); //adding customer to database if(isset($_POST["cSubmit"])){ $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; ...
true
793e04b7de3787518db0d2dbe027b5b4e9640b83
PHP
kor2win/roman
/src/Converter/Converter.php
UTF-8
2,276
3.265625
3
[]
no_license
<?php namespace Roman\Converter; use Roman\Converter\RomanDigitHelper as Roman; class Converter { private RomanNotationValidator $roman_validator; public function __construct() { $this->roman_validator = new RomanNotationValidator(); } /** * @param string $roman_notation * @return int * @throws Invali...
true
84a54df36c60928c9b7a4d772077851849ad4a49
PHP
codersclub/forum
/db_schema/db/2014_05_05_06_42_28.php
UTF-8
541
2.625
3
[ "MIT" ]
permissive
<?php class Migration_2014_05_05_06_42_28 extends MpmMigration { public function up(PDO &$pdo) { $pdo->exec('ALTER TABLE ibf_members DROP COLUMN css_method'); $pdo->exec('ALTER TABLE ibf_skins DROP COLUMN css_method'); } public function down(PDO &$pdo) { $pdo->exec("ALTER TABLE ibf_members ADD COLUMN css_...
true
a8782c41fb100ff1c52e711f4ccae830e6287350
PHP
htlcode/wp_genesis_theme_fred
/lib/My_Posts.php
UTF-8
9,832
2.75
3
[]
no_license
<?php namespace WpGenesisFred; class My_Posts { private $feature_columns; // posts and pages public static $checkbox_post_meta_date = 'checkbox_post_meta_date'; public static $checkbox_post_meta_author = 'checkbox_post_meta_author'; public static $checkbox_post_box_author = 'checkbox_post_box_author'; ...
true
e327a7f6a8a5950fe319d838027cd79eac01f135
PHP
ChoiSojung/AD320-IA2-Choi
/formhandler.php
UTF-8
315
2.578125
3
[]
no_license
<?php $name = $_GET['name']; $email = $_GET['email']; $phone = $_GET['tel']; $state = $_GET['state']; echo "Name: $name<br>"; echo "Email: $email<br>"; if ($phone != "") { echo "Phone: $phone<br>"; } if ($state !="") { echo "State: $state<br>"; } ?>
true
c9190314a29cf1ce7613c009f596fd6d62217278
PHP
fgsouza/rest-api-seminovosbh
/src/Crawler/MessageCrawler.php
UTF-8
367
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Crawler; class MessageCrawler implements MessageCrawlerInterface { /** * @todo Create class to Message data of Request API * * MessageCrawler.php * MessageCrawlerInterface.php * * time exceeded to create * */ public function __construct(Request $...
true
2ade060e80df0e62d59bcbba2a860795668ed47b
PHP
tnbutler/therapybot
/server-api/app/modules/Services/AdminPanel/AnswerButtonService.php
UTF-8
2,211
2.875
3
[]
no_license
<?php /** * The service is responsible for CRUD operations over AnswerButton objects. * * @since Class available since Release 0.1.0 * @deprecated Class is not deprecated */ namespace App\Modules\Services\AdminPanel; use App\Models\AnswerButton; use App\Models\ChatNode; class AnswerButtonService implement...
true
a65daf3f4109ca2c0b7fc9a6f798b39b4f57558f
PHP
christiandimayacyac/php-login-system
/inc/classes/Constant.php
UTF-8
1,387
2.6875
3
[]
no_license
<?php class Constant{ //General Messages public static $generic_ajax_error = "Invalid AJAX request encountered."; public static $generic_db_error = "An error encountered in the database."; public static $generic_missing_parameter_error = "Missing parameter(s)."; public static $db_read_error = "Unable to rea...
true
3f3c4f96ad4525862b870e1be74471ddc69a7bc9
PHP
Jhpirate/CST236-ActivityGuide
/Activity1/SuperHero/PlayGame.php
UTF-8
577
3.703125
4
[]
no_license
<?php // Import Batman & Superman classes require_once "Batman.php"; require_once "Superman.php"; // New batman & superman instances $batman = new Batman(); $superman = new Superman(); $iterationVar = 0; // Play game while characters are not dead while (!$batman->isDead() && !$superman->isDead()) { echo "Round #...
true