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
bfe369036fc3a930672f62320869be38ddc55830
PHP
cbschuld/pegasusphp.org
/includes/smarty3-plugins/block.abtn.php
UTF-8
2,764
2.609375
3
[]
no_license
<?php /* * Smarty plugin * ------------------------------------------------------------- * File: block.btn.php * Type: block * Name: btn * Purpose: * ------------------------------------------------------------- */ function smarty_block_abtn($params, $content, &$smarty, &$repeat) { i...
true
33f26ae4cb4397b9648fa4ca31a948da183fbc24
PHP
risen09/hexlet-php
/phptest/1.php
UTF-8
187
3.15625
3
[]
no_license
<?php $animals = ['cats', 'dog', 'birgs']; echo $animals[0]; echo "\n"; echo count($animals); echo "\n"; $animals[] = 'hores'; print_r($animals); unset($animals[1]); print_r($animals);
true
bf4032bada38ea718ab0c27e55c358a9a5d7d8bd
PHP
fractalzombie/semver
/tests/TestCase.php
UTF-8
966
2.5625
3
[ "MIT" ]
permissive
<?php namespace Fractal\SemVer\Tests; use Fractal\SemVer\Operator; use PHPUnit\Framework\TestCase as BaseTestCase; /** * Class TestCase * * @author Mikhail Shtanko <fractalzombie@gmail.com> */ class TestCase extends BaseTestCase { protected const VALID_TEST_VERSION_ONE = '1.0.1'; protected const VALID_T...
true
1f6a9befb9bd2ba2de155230742cfee597b3c7f5
PHP
vandro/yii2-core
/controllers/DefaultController.php
UTF-8
4,511
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace core\controllers; use Yii; use yii\web\BadRequestHttpException; use core\components\Controller; use core\models\PasswordResetRequestForm; use core\models\ResetPasswordForm; use yii\filters\AccessControl; use core\models\LoginForm; /** * Class DefaultController * @package core\controllers */ class ...
true
0561e7740e6a07e57a37274e7028a915cb62b682
PHP
ClemThierry/GroupImac
/Controller/controllerProfil.php
UTF-8
1,952
2.71875
3
[]
no_license
<?php include_once "./Model/profils.php"; include_once "./Model/comments.php"; include_once "./Model/projets.php"; /* ========== PROFILS ========== */ // récupérer tous les profils function getProfils() { return json_encode(getAllMembers()); } // récupérer un seul projet avec son id function getAProfilBy...
true
0838fdf412d4b5f5903b673b03ea58f0ecf4ec42
PHP
slonenokgobo/dlauncher
/launcher.php
UTF-8
633
2.578125
3
[]
no_license
<?php // php launcher.php id launcher command taskname $process_id = $argv[1]; $remote = $argv[2]; $command = $argv[3]; require_once 'config.php'; chdir($WORK_DIR); $return_var = 0; $op = array(); $output = exec($remote." \"".$command."\"", $op, $return_var); logme("Task output ".$output); logme("Task exit code "....
true
a7f64e098dc0f837d9bf1d4038ca5b7f15946170
PHP
mauro8792/PHPBeer
/Controladora/sucursalControlador.php
UTF-8
4,229
2.640625
3
[]
no_license
<?php namespace Controladora; use Dao\SucursalDAO as SucursalDAO; use Modelo\Sucursal as Sucursal; /** * */ class sucursalControlador { private $sucursal; function __construct() { $this->sucursal= SucursalDAO::getInstance(); } public function ingresarSucursal(){ require_once ROOT . "Vistas/tem...
true
1670bc590aa5dcfc26fd6bf437a49e5dd8d20a43
PHP
sajjad0057/Practice-PHP
/PHP_OOP/constructor_and_destructor/Employee.php
UTF-8
1,509
4.28125
4
[]
no_license
<?php // Practice with constructor : Make Employee Salary . class Employee{ public $id; public $name; public $workingHoursPerDay = 8; public $hourlyRate = 20; public $totalLeaveTaken; public $workingDays; function __construct($id,$name,$totalLeaveTaken){ $this->id = $id; ...
true
02619e0a80ae873a90f602a9d1f610a550ec4d64
PHP
gcruzz/abelalcazar9
/conexion.php
UTF-8
1,363
2.796875
3
[]
no_license
<?php session_start(); //funcion para conectar a la base de datos y verificar la existencia del usuario function conexiones($usuario, $pass) { //conexion con el servidor de base de datos MySQL $conectar = mysql_connect('localhost', 'root', ''); //seleccionar la base de datos para trabajar mys...
true
bb2142ef00575c34fbd31ee906d5b026e98d0fb5
PHP
robtuley/knotwerk
/unit/Unit/Spider.php
UTF-8
3,243
2.984375
3
[]
no_license
<?php /** * Defines the class T_Unit_Spider. * * @package unit * @author Rob Tuley * @version SVN: $Id$ * @license http://knotwerk.com/licence MIT */ /** * HTTP test cases which propagate through a site via spidering. * * @package unit */ class T_Unit_Spider extends T_Unit_Http { /** * Root URL fo...
true
35756a6a583c80e9218404c99d4506e908b4020c
PHP
zhangfangxiong/cms
/cms/app/Model/CricDistrict.php
UTF-8
1,082
2.53125
3
[]
no_license
<?php class Model_CricDistrict extends Model_Base { const DB_NAME = 'cric_xf'; const TABLE_NAME = 'District'; public static function getDistrictByCID($iCityID, $category = 1) { $sSQL = "SELECT d.ID, d.RegionName, d.DistrictName FROM District d, City c WHERE c...
true
16506913bc43a66e81081cdeb7de6f5ffeb92744
PHP
goldoraf/stato
/tests/Stato/Webflow/Forms/FormTest.php
UTF-8
8,249
2.890625
3
[ "MIT" ]
permissive
<?php namespace Stato\Webflow\Forms; use Stato\Webflow\TestCase; require_once __DIR__ . '/../../TestsHelper.php'; class FormTest extends TestCase { public function setup() { if (!function_exists('__')) { eval('function __($key, $options = array()) { return $key; ...
true
bcacbdf25b272a368416c8547aca826b12cf1be1
PHP
lariih1520/Site-TCC
/cms/view/adm_funcoes_view.php
UTF-8
2,396
2.796875
3
[]
no_license
<?php $funcao = null; $setor_id = null; $titulo = "Nova Função"; $modo = "inserir"; if(isset($_GET['modo'])){ if($_GET['modo']='selectid'){ $titulo="Editar Função"; $modo = "editar&id=".$funcao_class->id; $funcao = $funcao_class->nome; $setor_id = $funcao_class->setor; } } ?...
true
da19ac05ab158a3b2be5b398d9249a8f5ffdcec9
PHP
johnatanmarinho/mvc
/app/models/NewsDAO.php
UTF-8
704
2.90625
3
[]
no_license
<?php class NewsModel extends Base{ public function addNew(News $news){ $conn = $this->conn; $stmt_str = 'INSTERT INTO news (title, author, content, date, image, slider_id)'. ' VALUES( ?, ?, ?, ?, ?, ?)'; if(!$stmt = $conn->prepare($stmt_str)) die('error to prepare the...
true
ea6658d3a956906673670842c180a89b4ffc998c
PHP
WebTehnologijeETF/SunCrestFinancial
/services/comment.php
UTF-8
1,475
2.5625
3
[ "MIT" ]
permissive
<?php require("dataAccess.php"); function zag() { header("{$_SERVER['SERVER_PROTOCOL']} 200 OK"); header('Content-Type: text/html'); header('Access-Control-Allow-Origin: *'); } function rest_get($request, $data) { } function rest_post($request, $data) { $contract = json_decode(key($data), true); var_du...
true
b957f59ae648c22f79c264d896ca82b62dd8c8b0
PHP
fracz/refactor-extractor
/results/moodle--moodle/85098089d122aef51b82e7c3c4763c48dc307826/after/lib.php
UTF-8
34,036
2.6875
3
[]
no_license
<? // $Id$ // Library of useful functions $COURSE_MAX_LOG_DISPLAY = 150; // days $COURSE_TEACHER_COLOR = "#990000"; // To hilight certain items that are teacher-only $COURSE_LIVELOG_REFRESH = 60; // Seconds function print_log_selector_form($course, $selecteduser=0, $selecteddate="today") { ...
true
47f721746f7f1754f0cf53b9a4edb48cea48119e
PHP
Dylan102938/dylanfeng.me
/contact_process.php
UTF-8
1,934
2.53125
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require('vendor/phpmailer/phpmailer/src/Exception.php'); require 'vendor/phpmailer/phpmailer/src/PHPMailer.php'; require 'vendor/phpmailer/phpmailer/src/SMTP.php'; $SITE_KEY = "6Ld-PsQZAAAAAJPAnHt-6uHpkkXsFxhDUHA_slqS";...
true
6e51e4a06490c76fecfaddf29f2aa0a3a9d3666f
PHP
jesmar81/sat-ws-descarga-masiva
/tests/Unit/RequestBuilder/Exceptions/PeriodEndInvalidDateFormatExceptionTest.php
UTF-8
993
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace PhpCfdi\SatWsDescargaMasiva\Tests\Unit\RequestBuilder\Exceptions; use PhpCfdi\SatWsDescargaMasiva\RequestBuilder\Exceptions\PeriodEndInvalidDateFormatException; use PhpCfdi\SatWsDescargaMasiva\RequestBuilder\RequestBuilderException; use PhpCfdi\SatWsDescargaMasiva\Tests\TestC...
true
e201fa127efe147b6dca553d2d21a902c313c037
PHP
skj490/sqllogin
/assignment2/backend/sqlaction.php
UTF-8
13,232
2.75
3
[]
no_license
<?php /* Back end database scripts. Validates against SQL database sample username and password testname:testpass Various scripts to insert/delete and query the database tables. written by Samuel Roberts */ $data = json_decode(file_get_contents('php://input'),true); session_start(); $sql=mysqli_connect("s...
true
155db45ac6caae8a3ffa61acd7c75221e216fdf6
PHP
dark-grey/liepa
/app/Parsers/RbcNewsParser.php
UTF-8
1,662
2.671875
3
[]
no_license
<?php namespace App\Parsers; use GuzzleHttp\Client as Guzzle; use Illuminate\Support\Facades\Date; use Symfony\Component\DomCrawler\Crawler; class RbcNewsParser { private const RBC_URL = 'https://rbc.ru/'; public function parse(int $count = 15): array { $mainPageHtml = $this->getContent(self::RB...
true
1af44c1a29ad1eb2026108b2f708b8c2844dfdae
PHP
dhikaheinz/ci-gudang-apps
/phc-win.0.3.1/source/phc-win.0.3.1/wbObjects/wbPrimitive.php
UTF-8
1,662
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-2-Clause" ]
permissive
<?php class wbPrimitive { protected $wbObj; function drawImage ($bitmap, $xpos=0, $ypos=0 , $width=0 , $height=0, $transparentcolor=NOCOLOR) { return wb_draw_image ($this->wbObj, $bitmap, $xpos, $ypos , $width , $height, $transparentcolor); } function drawLine ($x0, $y0, $x1, $y1, $color=...
true
03e6f168e3fd2c4cfe6186cb249be2eab661c7e3
PHP
icoxwebconsulting/Educca-CEEP-en-Icox
/apps/frontend/lib/helper/formulariosHelper.php
UTF-8
540
2.625
3
[]
no_license
<?php function echoSelectwMatch($nombre, $valor, $opciones_select, $parametros) { echo('<select name="'.$nombre.'" id="'.$nombre.'"'); foreach($parametros as $name => $value) { echo(" $name="); echo('"'.$value.'"'); } echo(">\n"); foreach($opciones_select as $value => $description) { ...
true
762bcd248cfd1a5e21921c916e84bc248e832299
PHP
helpfulrobot/adrexia-processmap
/code/admin/ProcessMapAdmin.php
UTF-8
1,434
2.640625
3
[]
no_license
<?php /* * Process Map Admin provides an interface for the creation of process structures to be * used to create diagrams of processes */ class ProcessMapAdmin extends ModelAdmin implements PermissionProvider { public static $managed_models = array('Process', 'ProcessCase', 'ProcessInfo'); public static $url_seg...
true
d2777754a6666e41d62de3b10d0023bbcca1e878
PHP
vinayadahal/ims
/application/controllers/dashboard.php
UTF-8
897
2.546875
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class dashboard extends CI_Controller { public function __construct() { parent:: __construct(); $this->load->database(); $this->load->model('fetch'); $this->load->helper('url'); // Helps to get base url defined ...
true
38164269e0b39169487731dc1af260c1b8387934
PHP
yinglingbryan/International-Security-Foundation-Wordpress-Theme
/pagebuilder/contentblocks/product_catalog.raw.php
UTF-8
4,029
2.703125
3
[]
no_license
<?php // product_catalog :: start // product_catalog :: start // product_catalog :: start //$product_group_label = get_sub_field( 'layout_label' ); $products = array(); if ( have_rows( 'product_catalog_products' ) ) { // if rows are present while ( have_rows( 'product...
true
a4ac8cd82dda4e96f586a7b8cf48e12397fe9aba
PHP
raypulver/phpleon
/tests/leon_test.php
UTF-8
4,819
2.671875
3
[ "MIT" ]
permissive
<?php include_once 'leon.php'; use LEON\Channel; use LEON\RegExp; use LEON\Date; use LEON\Undefined; class Dummy { public $woop = null; public $doop = null; function __construct() { $args = func_get_args(); $val = $args[0]; $do = $args[1]; $this->woop = $val; $this-...
true
851a240d5dd93614b41a663b01cc2cc6b9fec81c
PHP
FoF-Mithril-2-Assist/stopforumspam
/src/StopForumSpam.php
UTF-8
1,457
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of fof/stopforumspam. * * Copyright (c) 2019 FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FoF\StopForumSpam; use Flarum\Settings\SettingsRepositoryInterface; use GuzzleH...
true
cbb3179d7d5168a7b6e5c673d874b063461655f3
PHP
mpiate01/Mix-Projects
/wooc-order-printer-WP_Plugin/classes/CSS.php
UTF-8
2,045
2.90625
3
[]
no_license
<?php class CSS { protected $_db, $_width, $_size; public function __construct() { $this->_db = DB::getInstance(); } public function getCSS() { $sql = 'SELECT * FROM wp_last_order_printed_css_settings'; $val = $this->_db->setQuery($sql); if($val->getAffectedRowQuery()) { ...
true
ec65192adec331953c587060e67777a757860c73
PHP
gromax/misc_ent
/php/class/BDDObject/OffreRendezVous.php
UTF-8
3,300
2.59375
3
[]
no_license
<?php namespace BDDObject; use DB; use ErrorController as EC; use SessionController as SC; use MeekroDBException; final class OffreRendezVous extends Item { protected static $BDDName = "offreRendezVous"; ##################################### METHODES STATIQUES ##################################### protected ...
true
0d94368e0aa836529985bb0a6fb6a304282fdff3
PHP
emmaCIT/DMS
/pat_aside_panel/registerform.php
UTF-8
2,053
2.515625
3
[]
no_license
<form action="" method="post"> <ul> <li>First name*: <br><input type="text" name="first_name" class="reg" value="<?php if(isset($_POST['first_name'])) echo $_POST['first_name']; ?>" /> </li> <li>Last name: <br><input type="text" name="last_name" class="reg" value="<?php if(isset($_POST['last_name'])) ech...
true
dfe05bb8d6ee927f9e6081a98e8fb79dcd7e2cd0
PHP
Rodrigo1495/Exercicios-estagio
/Exercicios - Rodrigo Piati/Exercicio2/cadastra.php
UTF-8
1,809
2.71875
3
[]
no_license
<?php include "conecta.php"; $redirect = "index.php"; $email = $_POST['email']; $nome = $_POST['nome']; $arquivo = "Logs\\cadastroLog.txt"; date_default_timezone_set("America/Sao_Paulo"); $date = date('Y-m-d H:i'); $jaGerado = 0; if($email == null || $nome == null){ echo "Nome ...
true
276ee159415eb846530b212e06471095c8ceea68
PHP
xsystems/wh
/index.php
UTF-8
812
2.65625
3
[]
no_license
<?php # Front Controller # The Front Controller Pattern is a software design pattern. # It provides a centralized entry point for handling requests. session_start(); $sessionID = session_id(); # Error and Exception handling. #require_once("src/php/models/ModelException.php"); #ModelException::getInstance("log/error.l...
true
cef961f55bf73aeef05655070243695a7c94ca03
PHP
abeinoo/Zend
/application/models/User.php
UTF-8
316
2.546875
3
[]
no_license
<?php class Application_Model_User extends Zend_Db_Table_Abstract { protected $_name= 'student' ; public function addUser($user_data) { $row = $this->createRow(); $row->name =$user_data['fullname']; $row->username = $user_data['username']; $row->password =md5($user_data['password']); return $row->save(); } }
true
e0e6934a69ad28c4deb6eeba260f27967bd2bd79
PHP
JeffreyMartinezEiso/lrv
/protected/models/form/FiltroForm.php
UTF-8
1,205
2.640625
3
[]
no_license
<?php /** * LoginForm class. * LoginForm is the data structure for keeping * user login form data. It is used by the 'login' action of 'SiteController'. */ class FiltroForm extends CFormModel { public $proveedor; public $nombre; public $listMarcas; public $listMarcasCheck = array(); public $lis...
true
5eef8a3d064ffaf9c58fcd3364f6bc0cba517026
PHP
mavi257/first
/9.3.2016/insert.php
UTF-8
971
2.515625
3
[ "Apache-2.0" ]
permissive
<?php if(isset($_POST['insert'])) { $email = mysqli_real_escape_string($conn, $_POST['email']); $username = mysqli_real_escape_string($conn, $_POST['username']); $firstname = mysqli_real_escape_string($conn, $_POST['firstname']); $lastname = mysqli_real_escape_string($conn, $_POST['lastname']); $password = md5(...
true
8bbb859863e94faffd07e1d684f4beb3ecba5f70
PHP
hugobaran/OptiLife
/Optilife/html/modifier.php
UTF-8
1,916
2.515625
3
[]
no_license
<?php include("../php/connexionBDD.php"); include("../php/modifierTache.php"); ?> <html> <head> <meta charset="UTF-8"/> </head> <body> <form method="post" action= "../php/passerelle.php" enctype="application/x-www-form-urlencoded" name="modifierTache"> <label>Activité :</label><p id="affichageActivite"></p>...
true
32eecb2959ea2b62c60dd074467b6bfb3461ccca
PHP
28ayushsharma/clinic_management
/app/Http/Controllers/UserController.php
UTF-8
7,872
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Response; use Auth,View,Hash; use App\User; use App\Clinic; use App\ClinicSlot; use App\UserExperience; class UserController extends Controller{ /** * middleware restric...
true
c1040ea3c2c2948d14a6c9bd0508cdeb75973f9c
PHP
ciarand/midterm
/src/Suite.php
UTF-8
1,184
2.90625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Ciarand\Midterm; use Countable; use Ciarand\Midterm\Result\SpecResult; class Suite extends EventEmitter implements Countable { /** * @var string */ public $title; /** * @var array<Spec> */ public $specs = array(); /** * @var SuiteHelper */ public...
true
286943b6d79f97a9611d747c6f357658ae3f3757
PHP
sqids/sqids-php
/src/SqidsInterface.php
UTF-8
829
3.1875
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) Sqids maintainers. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @see https://github.com/sqids/sqids-php */ namespace Sqids; interface SqidsInterface { /** * Encode integers to generate an I...
true
24dbb174d0affcd01bf80b9233f61597bce952ce
PHP
oxidmod/Messages
/project/src/Entity/Country.php
UTF-8
1,546
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace Oxidmod\Messages\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="Oxidmod\Messages\Repository\CountryRepository") * @ORM\Table(name="countries") */ class Country { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(name="cn...
true
3c0d9d14929844085c94f17861a5a4f50296eb93
PHP
manpow/ZillowBundle
/Request/DemographicsRequest.php
UTF-8
4,907
2.640625
3
[]
no_license
<?php /** * This file is part of the KMJZillowBundle * @copyright (c) 2014, Kaelin Jacobson * @category Requests */ namespace KMJ\ZillowBundle\Request; use KMJ\ZillowBundle\Response\DemographicsResponse; use SimpleXMLElement; /** * For a specified region, the GetDemographics API returns a set of market, * aff...
true
880117d4349a858b06b761142d00d8cd1c759c71
PHP
riponghosh/kalien
/app/Http/Middleware/LocaleLanguageMiddleware.php
UTF-8
478
2.75
3
[]
no_license
<?php namespace App\Http\Middleware; use Illuminate\Support\Facades\Cookie; use Closure; class LocaleLanguageMiddleware { public function handle($request, Closure $next) { $lans = ['zh_tw','en', 'jp']; if(in_array($request->cookie('web_language'),$lans)){ app()->setLocale($request-...
true
a031a586a15e14912d61d129d09bfe0eaa28fa8b
PHP
alpody/crm
/database/seeds/RolesSeeder.php
UTF-8
426
2.59375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Spatie\Permission\Models\Role; class RolesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $rolesToCreate = ['editor', 'journalist', 'smm', 'commenter']; foreach ($rolesToCreate ...
true
80038739290333300935d6db4509dd6e3ed18b5a
PHP
shajinzheng/ATA
/sunapeedb.php
UTF-8
12,853
3.078125
3
[]
no_license
<?php session_start();?> <?php class SunapeeDB { const HOST = "sunapee.cs.dartmouth.edu"; const USER = "jaysha"; const PASS = "11111111"; const DB = "jaysha_db"; private $con = NULL; public function connect() { $this->con = mysql_connect(self::HOST, self::USER, self::PASS); ...
true
e50aeeb75f80fe3172f0e895bb895443b2d3e374
PHP
gertvdb/coordinates
/src/Factory/CoordinateFactory.php
UTF-8
763
2.59375
3
[ "MIT" ]
permissive
<?php namespace Drupal\coordinate\Factory; use Drupal\coordinates\Coordinate; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Defines an factory for creating a coordinate. * * @TODO: Create coordinate from address, ... . */ clas...
true
6eaa9eacab5d319db6d7701c49e7b4439f1df616
PHP
szabogergely07/sportbuddy
/app/lib/config.php
UTF-8
443
2.953125
3
[]
no_license
<?php namespace app\lib; class config{ private static $inst = NULL; private $data = []; private function __construct(){} public static function inst(){ if(self::$inst == NULL){ self::$inst = new config; } return self::$inst; } public function __set($key,$value){ $this->data[$key] = $value; ...
true
6cad26a08ed145ef4c3ebcf0cbc89538427d0701
PHP
florent-pallaver/temple
/legacy/temple.web.php/_temple/class/temple/web/html/bootstrap/TableVariant.class.php
UTF-8
580
2.75
3
[ "MIT" ]
permissive
<?php namespace temple\web\html\bootstrap; /** * Description of TableVariant * * @author florent */ final class TableVariant extends \temple\Enumeration { /** * @var NavbarVariant */ public static $STRIPED; /** * @var NavbarVariant */ public static $HOVER; /** * @var NavbarVariant */ public s...
true
f4d0232133f929abf52e0bb4ed3b2806c3bd524e
PHP
LeQuocDung/LapTrinhWeb1
/baitapchuong1.php
UTF-8
1,385
3.0625
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. */ //bai 1 echo 'Bài 1','<br>'; echo "Tomorrow I'll learn PHP global variables <br>"; //bai 2 echo 'Bài 2 <br>'; echo "Twinkle, Tw...
true
fd1f911f2b645c1985f3ea5be804ffa4203adf5c
PHP
iiskhrn139/pw2020_193040139
/praktikum/P5_SELASA07_193040139/Latihan5b/index.php
UTF-8
788
2.765625
3
[]
no_license
<?php require 'php/functions.php'; $alatmusik = query("SELECT * FROM alatmusik") ?> <!DOCTYPE html> <html> <head> <title>Tugas 2</title> <style> img { width: 150px; } .container { width: 500px; } </style> </head> <body> <div class="container"> <table border="1px solid" cellpadding="10" cellsp...
true
78911a50ceaf387f602507e0043f6c38f710cd6d
PHP
caroww/POO-Interfaces
/PedestrianWay.php
UTF-8
470
2.9375
3
[]
no_license
<?php require_once 'HighWay.php'; final class PedestrianWay extends HighWay { public function __construct() { $this->setNbLane(1); $this->setMaxSpeed(10); } public function addVehicle(Vehicle $vehi) { if(($vehi instanceof Bicycle) || ($vehi instanceof Skateboard)) ...
true
e38e973a401edccef4c4ba992e240ba115bdcf67
PHP
stephen31/projetWebL3Fac
/models/Mail.php
UTF-8
1,492
3.109375
3
[]
no_license
<?php require ROOT . '/public/lib/PHPMailer/class.phpmailer.php'; //Librairie d'envoi de mails class Mail{ private $templatesFolder; private $mail; private $actualTemplate; public function __construct($template, $params) { $this->templatesFolder = ROOT . '/public/templates/mails/'; //Répertoire contenant les ...
true
b4c5ad2bc7b81a86f153421ba909d585cc29513b
PHP
deathart/BlogCI4
/application/Models/Admin/CategoriesModel.php
UTF-8
1,961
2.9375
3
[ "MIT" ]
permissive
<?php /* * BlogCI4 - Blog write with Codeigniter v4dev * @author Deathart <contact@deathart.fr> * @copyright Copyright (c) 2018 Deathart * @license https://opensource.org/licenses/MIT MIT License */ namespace App\Models\Admin; use CodeIgniter\Model; use Config\Database; /** * Class CatModel * * @package App...
true
0ab12b8248619733de511ca06b89d0efcae8b9a1
PHP
Dellilah/URL_shortener_PHP
/CMS/lib/inc/templates.inc.php
UTF-8
508
2.65625
3
[]
no_license
<?php /** * Templates * * @package templates.inc.php * @author Alicja Cyganiewicz * @since 05.07.2012 */ /** * Screen site * * @param array $paths array storing paths * @param array $templates array of templates' settings * @param array $site array od dat...
true
fc1d9954e6a66669ffce93d3b85c387101ea095d
PHP
jsblanco/learningPHP
/Language basics/22-File uploads/upload.php
UTF-8
769
2.765625
3
[]
no_license
<?php $uploadedFile = $_FILES['file']; $name = $uploadedFile['name']; $type = $uploadedFile['type']; if ($type == 'image/jpg' || $type == 'image/jpeg' || $type == 'image/png' || $type == 'image/gif') { if (!is_dir('images')) { mkdir('images', 0777); } //$uploadedFile es un array de d...
true
40f725170af05a5736325de25a61b223e62885ae
PHP
phossa/phossa-logger
/src/Phossa/Logger/Formatter/FormatterAwareTrait.php
UTF-8
1,084
2.578125
3
[ "MIT" ]
permissive
<?php /** * Phossa Project * * PHP version 5.4 * * @category Package * @package Phossa\Logger * @author Hong Zhang <phossa@126.com> * @copyright 2015 phossa.com * @license http://mit-license.org/ MIT License * @link http://www.phossa.com/ */ /*# declare(strict_types=1); */ namespace Phossa\Logg...
true
33ffd7bcac658d51859fd11dad7694a3fcf197b1
PHP
tchiron/PHP_CDA_M2I2021
/core/Renderer.php
UTF-8
1,844
3.140625
3
[]
no_license
<?php namespace core; /** * Gestionnaire de rendu * * @author : Thibaut CHIRON */ class Renderer { /** * @var Renderer Contient une instance d'elle-même */ protected static Renderer $instance; /** * @var string Contient le chemin du dossier des vues */ protected string $pathVi...
true
a1ffbf14bbe095dc5fdcc44c9cf08c849b1bf5d6
PHP
carestad/aether
/lib/templating/smarty/libs/sysplugins/method.addpluginsdir.php
UTF-8
665
2.5625
3
[]
no_license
<?php /** * Smarty method addPluginsDir * * Adds directory of plugin files * * @package Smarty * @subpackage SmartyMethod * @author Uwe Tews */ /** * Smarty class addPluginsDir * * Adds directory of plugin files */ class Smarty_Method_AddPluginsDir extends Smarty_Internal_Base { /** * Adds directory of p...
true
de1a7e88c1a5b2ae0da88bc61599b99cfefec44e
PHP
kericktatiana/SSL
/day3/models/usersModel.php
UTF-8
2,446
3.140625
3
[]
no_license
<?php class usersModel { function getExpenses() { $db = new PDO('mysql:hostname=localhost; dbname=ssl1310', 'root', 'root'); $st = $db->prepare('select * from expense_tbl'); $st->execute(); $object = $st->fetchAll(); return $object; //returning everything from the expense table } function cr...
true
aec090f5bebf9f9fdd22ea47b98563e316ae67de
PHP
Tlinus/PPE3
/FileSystem/uploads/d2427a6669299a5f7b6c51935dc8c7ed.php
UTF-8
4,140
2.625
3
[]
no_license
<?php $rand=rand(12, 5745129542475679565216559498455015151654); $path=md5($rand,false); $allowedExtensions=array('odt','doc','docx','rtf','pdf','rtf'); $archiveName=md5($rand,false); $upload_ext = strtolower( substr( strrchr($_FILES['file_cv']['name'], '.') ,1) ); $filePath=$path.'/'.$archiveName.'.'.$upload_ext; i...
true
adb1c135317b5024d22bdf41f6a2986b85f71553
PHP
msalahat88/restaurant
/application/libraries/site/sessions_customer.php
UTF-8
2,645
2.734375
3
[]
no_license
<?php class sessions_customer { private $use; public function __construct() { $this->CI = &get_instance(); $this->use = new class_loader(); $this->use->use_lib('session'); } public function get_login() { return $this->CI->session->userdata('login_custome...
true
a28bd705a6433a74d554a5ea5492c20bf479c080
PHP
alinparaschiv/adm
/modules/wizard/users/adauga_user.php
UTF-8
4,597
2.890625
3
[]
no_license
<?php if(isset($_POST['Adauga'])) { $nume = $_POST['Nume']; $user = $_POST['username']; $acces = $_POST['acces']; $mail = $_POST['mail']; $cnp = $_POST['cnp']; $buletin = $_POST['buletin']; $politia = $_POST['politia']; $telefon = $_POST['telefon']; $access = explode("-", $acces); //Trimite mail function trimite_mai...
true
7ed2f0943c37e14be54d619b904a002f2b3d2cd7
PHP
blitzik/listings
/libs/blitzik/Doctrine/Mysql/Collate.php
UTF-8
927
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace blitzik\Doctrine\MySQL; use Doctrine\ORM\Query\AST\Functions\FunctionNode; use Doctrine\ORM\Query\Lexer; class Collate extends FunctionNode { public $expressionToCollate = null; public $collation = null; public function parse(\Doctrine\ORM\Query\Parser $parser): ...
true
f0651b1ae44fb671af664368a62dd1507ead2482
PHP
raihanorium/php-mvc
/app/service/UserService.php
UTF-8
1,090
2.921875
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: ataul.raihan * Date: 10/17/2016 * Time: 3:29 PM */ namespace services; require_once 'Database.php'; use model\User; class UserService { public function create($user) { if (!($user instanceof User)) { throw new \Exception('User is not an inst...
true
a0f910f3bd6363e61841fac579c308ca348aaf1f
PHP
darkterminal/SMVC-Framework
/app/commands/CreateModel.php
UTF-8
3,476
2.8125
3
[]
no_license
<?php use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Formatter\OutputFormatterStyle ...
true
85b4cc6d6cf6105c4e480767c637f9925ba09d07
PHP
frabahallah/Aitali
/vitrine/php/exo_11.php
UTF-8
1,726
2.8125
3
[]
no_license
<h1>Employes</h1> <?php if (isset ( $_GET ['status'] )) { if ($_GET ['status'] == 'ok') { echo '<div class="alert alert-success">Enregistrement OK</div>'; } elseif ($_GET ['status'] == 'ko') { echo '<div class="alert alert-danger">Enregistrement KO</div>'; } } ?> <table class="table table-striped table-bordered ...
true
535f4ba2d52e1fc3eed98e1c21ea24812d08f3d0
PHP
SellY0urS0ul/php-project-lvl1
/src/Games/Nod.php
UTF-8
928
3.625
4
[]
no_license
<?php namespace Brain\Games\Nod; use function Brain\Engine\playGame; use const Brain\Engine\ROUNDS_COUNT; function playGcd(): void { $exercise = 'Find the greatest common divisor of given numbers.'; $gameData = []; for ($counter = 0; $counter < ROUNDS_COUNT; $counter++) { $firstNumber = rand(1, ...
true
37f5ffa4c3f492d34e44c0e2b930d9a1ede7f92a
PHP
ArthurMialon/wannaride-api
/app/helpers/Upload.php
UTF-8
3,307
3.078125
3
[]
no_license
<?php /** * Upload */ namespace app\helpers; class Upload { function __construct() { $this->f3= \Base::instance(); $this->web=\Web::instance(); } /** * Upload a file in the server * @param $file array the file * @param $path string the directory for the files * @return array code status / path */ pu...
true
010aa1876a5d73d6bc868d400abe6978d387a20a
PHP
j0hnd/laravelvuejs
/app/Console/Commands/LinkMember.php
UTF-8
991
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\User; use App\Member; class LinkMember extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'utility:link-members-to-users'; /** * The consol...
true
672613b02553fe4f4712c1ff84069ef926ab56b9
PHP
adavidbermeo/fb_project
/test/BorradorFuncion.php
UTF-8
5,981
2.546875
3
[]
no_license
<?php namespace metrics\campaign; require_once( $_SERVER['DOCUMENT_ROOT'].'/fb_project/core/Facebook/vendor/autoload.php'); use Facebook\Facebook as FB; Class ByAccountCampaign{ // Properties public $access_token; public $fb; public $request; public $campaign_info; public...
true
8242df1e35a5911e3ae12289196096d06e0d196c
PHP
php-tmdb/api
/lib/Tmdb/Model/Lists/ResultWithListId.php
UTF-8
921
2.578125
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
e22d95b4c4c46054d8fefae13947f225abe75f11
PHP
vagorb/Web-Applications-3semester
/prax3/functions/search.php
UTF-8
6,096
2.6875
3
[]
no_license
<?php include_once("includes/db.php"); if (isset($_POST['search'])) { if(strlen($_POST['town']) == 0 && strlen($_POST['first_name']) == 0 && strlen($_POST['last_name']) == 0) { echo "<script>alert('Write something!')</script>"; exit(); } if (preg_match('/[^A-Za-z]/', $_POST['first_name'])...
true
dbb268310c7e0b6bc341436d5dc3e5ecd2346157
PHP
qiye5757/qiye-study
/base-study/DesignPatternsPHP/creation/FactoryMethod/RectShape.php
UTF-8
268
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/11/3 0003 * Time: 下午 4:44 */ require_once "ShapeInterface.php"; class RectShape implements shapeInterface{ public function draw(){ echo "this is rect shape draw method\n"; } }
true
f3654fd033d5f6237576454bd5aed7e4e58bfda4
PHP
quanghpd/personal_management
/database/seeds/AssetsTypeTableSeeder.php
UTF-8
641
2.703125
3
[]
no_license
<?php use App\AssetsType; use Illuminate\Database\Seeder; /** * Class AssetsTypeTableSeeder */ class AssetsTypeTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(): void { $assettypes = [ 'Cash', 'Real Es...
true
427b6472ea1c1d99e5a96ee63bc012d198ba39bc
PHP
ZayenJS/dw5-ristorante
/src/Models/Order.php
UTF-8
2,108
3.09375
3
[]
no_license
<?php namespace App\Models; use App\Database; use PDO; class Order extends Model { private $user_id; private $status = "reçu"; private $method; private $items; private $totalPrice; public function __construct() { $this->table = "orders"; } public function getUserId() { return $this->user_id...
true
f9e0d4158d4c4f1fcb6410b43e7a8d35907dca88
PHP
APTEMOH/source
/protected/components/PaySol.php
UTF-8
2,771
3.0625
3
[]
no_license
<?php /** * Class Paysol */ class Paysol { /** * Merchant ID * @var string */ private $id; /** * Token to access API * @var string */ private $token; /** * Private key to verify IPN * @var string */ private $privateKey; /** * API base url * @var string */ private $baseUrl = 'https:/...
true
9306addafb854b8e5341d40a92435f85404f34c5
PHP
abrutus/osfi
/src/WePay/Structure/Alt.php
UTF-8
1,184
2.71875
3
[]
no_license
<?php /** * Date: 2/12/15 * Time: 12:22 PM * Andre Brutus */ namespace WePay\Structure; use WePay\Interfaces\Indexable; /** * Class Sdn * @package WePay\Structure */ class Alt extends CsvStructure implements Indexable { public $prefix = "alt"; /** * Column sequence Column name Type Size...
true
0130daccbdd7e129717c8043630eedfa9da84eb6
PHP
organic-papa/corporate-website
/app/controllers/CompanyController.php
UTF-8
1,917
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\MessageBag; class CompanyController extends BaseController { use Traits\Validators\ContactValidator; public function contactInput() { $params = $this->contactParams(); return View::make('company.contact.index', [ 'params' => $params, 'inquiries' => MasterData::contactInqui...
true
a3d7394463b4a556981795866a1f8d3ffd595abe
PHP
saisai/tutorial
/mysql/php/querying-data.php
UTF-8
767
3.25
3
[]
no_license
<?php require_once "dbconfig.php"; try { $pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password); $sql = "SELECT lastName, firstName, jobTitle FROM employees WHERE lastName LIKE :lname OR firstName LIKE :fname;"; // prepare statement for execution $q = $pdo-...
true
0a7ee62d7994f159fc238cc29f872704b81c3a1e
PHP
barinojayson/ph_mock_election
/view/vote.php
UTF-8
2,292
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Philippines Mock Election - Cast Your Vote</title> <link rel="stylesheet" type="text/css" href="style/election_style.css"> </head> <body> <?php require_once("menu.php");?> <div class = "main_container"> <form method="POST" action="controller/vote.php" onsub...
true
a61f9f08eb68897e15e0ec29100f27b6a9cecec2
PHP
umarshafiq9433/gown-project-backend
/app/Http/Controllers/AuthController.php
UTF-8
728
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { public function index() { return view('Auth.login'); } public function check(R...
true
71e146f433fd92f4ad6cca439a0084ed9198c060
PHP
chaiwenjing/subject
/DbService.php
UTF-8
1,648
2.5625
3
[]
no_license
<?php namespace App\Services; use App\Http\Models\Tuan; use App\Http\Models\Shop; use App\User; class DbService{ private $tuan=null; private $shop=null; public function __construct(Tuan $tuan,Shop $shop) { $this->tuan=$tuan; $this->shop=$shop; } public function a...
true
f133dc0fe2b6ad04d23ded60f5256c92f6deebb2
PHP
paypal/merchant-sdk-php
/samples/PaymentSettlements/Refund.php
WINDOWS-1252
3,272
2.59375
3
[ "LicenseRef-scancode-paypal-sdk-2013-2016" ]
permissive
<?php use PayPal\CoreComponentTypes\BasicAmountType; use PayPal\PayPalAPI\RefundTransactionReq; use PayPal\PayPalAPI\RefundTransactionRequestType; use PayPal\Service\PayPalAPIInterfaceServiceService; require_once('../PPBootStrap.php'); /* * The RefundTransaction API operation issues a refund to the PayPal account hol...
true
d0c3e6520c6ee3d2e948a2cf1683779a7983649b
PHP
JmmLDeveloper/cable-unet
/app/Models/Channel.php
UTF-8
1,826
2.734375
3
[]
no_license
<?php namespace App\Models; use App\Models\Programming; use App\Models\TelevisionService; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Channel extends Model { use HasFactory; function programmings() { return $this->hasMany(Programming::cl...
true
7a3d843755508fcdec83812e01e85ac81ef8df24
PHP
deGUR/dev-pro.local
/app/storage/ObjectCollection.php
UTF-8
300
2.90625
3
[]
no_license
<?php namespace app\storage; class ObjectCollection { protected $storage = []; /** * @return array */ public function getStorage(): array { return $this->storage; } /** * @param array $storage */ public function setStorage( array $storage ) { $this->storage = $storage; } }
true
63ff09067569b9d3fd5564e4754459f2b38d56b1
PHP
jinjie/silverstripe-mailchimp
/src/Dev/MailchimpSyncTask.php
UTF-8
2,372
2.625
3
[ "MIT" ]
permissive
<?php /** * MailchimpSyncTask * * @package SwiftDevLabs\SSMailchimp\Dev * @author Kong Jin Jie <jinjie@swiftdev.sg> */ namespace SwiftDevLabs\SSMailchimp\Dev; use GuzzleHttp\Exception\ClientException; use SilverStripe\Control\Director; use SilverStripe\Core\Convert; use SilverStripe\Dev\BuildTask; use SilverStr...
true
fcb41a0e116b2dc52488f38d4caf2f69fd853f97
PHP
octalmage/wib
/php-7.3.0/ext/spl/tests/spl_recursive_iterator_iterator_key_case.phpt
UTF-8
656
3.0625
3
[ "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing", "MIT" ]
permissive
--TEST-- SPL: Test on RecursiveIteratorIterator key function checking switch statements --CREDITS-- Rohan Abraham (rohanabrahams@gmail.com) TestFest London May 2009 --FILE-- <?php $ar = array("one"=>1, "two"=>2, "three"=>array("four"=>4, "five"=>5, "six"=>array("seven"=>7)), "eight"=>8, -100 => 10, NULL => "null"); ...
true
287610c2fdfe4941ae622e88fd7c99fcb4d31fe0
PHP
bishopsmove/autotrader-miner
/application/core/console.class.php
UTF-8
916
3.65625
4
[ "Apache-2.0" ]
permissive
<?php /** * Method library for console / command line interaction */ class Console { /** * Make a string bold using escape characters */ static function bold( $str ){ return self::ansiEscape( $str, 1 ); } /** * Wrap a string in escape chars */ static function an...
true
b6392d89a9c104bba4016d6a2df003cd04a34e5a
PHP
XJIAL88/code
/app/Component/ComponentCzyAuthorize.php
UTF-8
6,123
2.578125
3
[]
no_license
<?php namespace App\Component; use App\Bases\BaseService; /** * 彩之云-授权 * User: Administrator * Date: 2016/7/13 * Time: 16:44 */ class ComponentCzyAuthorize extends ComponentCzy { /** * 获取调用方accessToken * @return array */ static function authmsAuthApp() { // $time = time(); $...
true
054bee793154dbe130cf2a5088452c97a2f68327
PHP
ygout/MVCPhp
/Models/Article.php
UTF-8
1,889
3.21875
3
[]
no_license
<?php class Article { /** * @return mixed */ public function getId() { return $this->_id; } /** * @param mixed $id * @return Article */ public function setId($id) { $id = (int) $id; if($id >0) { $this...
true
617aa42bc17924630b7db7d76ea1c935d448f485
PHP
mawatari/CakePHPApiController
/Controller/Api/ApiRecipesController.php
UTF-8
1,619
2.671875
3
[]
no_license
<?php App::uses('ApiController', 'Controller'); /** * Api Recipes Controller * * @property Recipe $Recipe */ class ApiRecipesController extends ApiController { /** * index method * * @return void */ public function index() { $response = [ [ 'id' => 1, 'title' => 'クッキー', 'des...
true
ef18b48836a5325cfd09fad55f61e245b0d9fe99
PHP
geeksunny/h4xStats
/dl.php
UTF-8
1,444
2.671875
3
[]
no_license
<?php // Error out if no link code is supplied, or if link code is not an integer. // TODO: Fix up the error messaging. if (!isset($_GET['url']) || $_GET['url'] == "") { echo "error - incorrect parameters provided."; return false; } require_once("classes/class.mysql.php"); $dbh = new dbh(); include("config/config.ph...
true
4a191d7575b216bfe9bf7c702bf0396efe1e1c93
PHP
kevin-belellou/Projet_Tutore
/site/recherche_offres.php
UTF-8
9,578
2.515625
3
[]
no_license
<?php /** * Page d'affichage des offres d'emploi et de stage * * @author Kévin Bélellou et Nicolas Dubois */ // Inclusion et appel de la fonction d'en-tête require_once 'fonctions/header.php'; enTete(true); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http...
true
f6f4f03e89d339ced4c2f07f198964a7a2bc4c30
PHP
yiijan/yii-gii
/src/GeneratorInterface.php
UTF-8
868
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Yiisoft\Yii\Gii; use Yiisoft\Validator\ResultSet; interface GeneratorInterface { /** * Returns the name of the generator */ public function getName(): string; /** * Returns the detailed description of the generator */ public function getD...
true
8df07b077752fba6ac427e93f208918df171ed72
PHP
salamandrait/OneStepA
/modelos/Moneda.php
UTF-8
2,109
2.90625
3
[]
no_license
<?php //Incluímos inicialmente la conexión a la base de datos require "../config/Conexion.php"; Class Moneda { //Implementamos nuestro constructor public function _construct() { } //Implementamos un método para insertar registros public function insertar($cod_moneda,$desc_moneda) { $sql="INSERT INTO tbm...
true
e78be96bfacd6eb2dff3e3ed067c9ab04eaffc3b
PHP
wotalim/pemrograman3
/application/helpers/hari_kerja.php
UTF-8
353
2.546875
3
[]
no_license
<?php function hari_kerja($tahun, $bulan) { $minggu = array(0); $count = 0; $counter = mktime(0, 0, 0, $bulan, 1, $tahun); while (date("n", $counter) == $bulan) { if (in_array(date("w", $counter), $minggu) == false) { $count++; } $counter = strtotime("+1 day", $counte...
true
06185dd1a6fff98d49ac0707482580a55e599d1d
PHP
FeelPHP/plugins
/database/test.php
UTF-8
411
2.9375
3
[]
no_license
<?php include "database.php"; $db = new DB(); $db->open('dat'); $startTime = microtime(true); // insert //for ($index = 0; $index < 10; $index++) { //$db->add('key'.$index, 'value'.$index); //} // search for ($index = 0; $index < 10; $index++) { $data = $db->get('key'.$index); echo $data.'<br>'; } $...
true
a72d408050dba2c36da7691934baf3a7e57ffd2c
PHP
boldrebel/online-betaal-platform
/tests/Nimbles/OnlineBetaalPlatform/Manager/MerchantsManagerTest.php
UTF-8
3,427
2.53125
3
[ "MIT" ]
permissive
<?php /* * (c) Nimbles b.v. <wessel@nimbles.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Nimbles\OnlineBetaalPlatform\Manager; use GuzzleHttp\ClientInterface; use Nimbles\OnlineBetaalPlatform\Manager\MerchantsMan...
true
fb7e04a1646546cf72a3226cd2964e8f24d1d412
PHP
bouboumael/hackathon-angry-team
/src/Service/ValidationForm.php
UTF-8
2,455
3.09375
3
[]
no_license
<?php namespace App\Service; class ValidationForm { private array $constraint; private array $dataForm; public function __construct(array $constraint, array $dataForm) { $this->constraint = $constraint; $this->dataForm = $dataForm; } public function validate(): array { ...
true
18d85de7702424644fe1b2876eb9cc7b354152c7
PHP
gizmore/gdo6
/GDO/Net/URL.php
UTF-8
1,244
2.921875
3
[ "MIT" ]
permissive
<?php namespace GDO\Net; use GDO\Util\Common; use GDO\Core\Application; /** * This class holds url parts and the raw url. * It is the return value of GDT_Url->toValue(). * * @author gizmore * @version 6.10 * @sinve 6.02 * * @see GDT_Url */ final class URL { ############## ### Static ### #######...
true
e660fee960986e22d08571bb417d1bd8907dc9a0
PHP
wiusmarques/import-mapas-culturais
/import.php
UTF-8
1,343
2.640625
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require "bootstrap.php"; require "model/User.php"; // Set Variables $currentDir = dirname(__FILE__); $uploaddir = $currentDir . "/public/uploads/"; $data = []; $data['fileToImport'...
true