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
b61cc4286c2b360dcc3400f766fd9167133e79c2
PHP
prabhatojha/gizmos
/model/email/template_generator/gadget.cards.template.php
UTF-8
1,864
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: prabhato * Date: 1/23/2017 * Time: 4:26 PM */ include_once (__DIR__) . "/../../../config/server.details.php"; include_once (__DIR__) . "/../../sql/Tables/CoolGadgetsTable.inc"; include_once (__DIR__) . "/../../util/HashGenerator.inc"; function generateGadgetCards($data, $e...
true
dadc3853e56dad23efd042de35c18d9632a0c8aa
PHP
sapucaia/Farao-System
/app/views/representante/novo.php
UTF-8
1,856
2.6875
3
[]
no_license
<?php //session_start(); /** * View for the insertion of a representative * * @author Caique Araujo Pires * @access public * */ //include '../../controllers/RepresentanteController.class.php'; $_GET['acao'] = 'novo'; require_once '../../controllers/RepresentanteController.class.php'; $controller = new R...
true
2fe4790c18230c1a7634a9ffe97f65537811b261
PHP
Fitasya/dfp50193_latihan_09
/produk.php
UTF-8
1,975
2.765625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Produk</title> </head> <body> <?php require 'menu.php'; ?> <h2>Produk</h2> <?php $produk = ...
true
28553881eeed0c4549ad71d9d6cfbe23e4bff92c
PHP
aquaruiz/PHP-Web-Development-Basics
/Functions, Objects and Classes - Exercises/Number.php
UTF-8
790
4.03125
4
[]
no_license
<?php class Number { private $number; public function __construct(int $number) { $this->number = $number; } public function giveLastDigitName(): string { $lastDigit = $this->number % 10; switch ($lastDigit) { case 0: return "zero"; ...
true
269cad13f6256cb5feeae3201c8d77891673868f
PHP
shupan/SuperPHP
/src/Super/Foundation/Application.php
UTF-8
29,613
2.515625
3
[]
no_license
<?php namespace Super\Foundation; use Closure; use RuntimeException; use Super\Filesystem\LocalFilesystem; use Super\Support\Arr; use Super\Support\Str; use Super\Container\Container; use Super\Filesystem\Filesystem; use Super\Support\ServiceProvider; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\...
true
49300743a4862beadcbf3849403f5c3ed62ec313
PHP
concretecms/concretecms
/concrete/src/Error/ErrorList/Error/ThrowableError.php
UTF-8
1,034
2.890625
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Error\ErrorList\Error; use Concrete\Core\Error\ErrorList\Field\FieldInterface; use Throwable; class ThrowableError extends AbstractError { /** * The associated Throwable. * * @var \Throwable */ protected $throwable; /** * Class constructor. * ...
true
ff683cda24ee69b222623e6041a9d2de5d54980d
PHP
seeschloss/veranda
/inc/time.inc.php
UTF-8
2,699
2.921875
3
[]
no_license
<?php class Time { public static function format_last_updated($last_updated) { $last_updated_string = ""; if ($last_updated > 0) { $seconds = time() - $last_updated; $last_update = new DateTime(); $last_update->setTimestamp($last_updated); $lag = $last_update->diff(new DateTime()); $last_updated...
true
02c2779cacd719b16bf47b5eae3e4c083c1e6a8d
PHP
MorganGonzales/commission-calulator
/tests/Domain/OperationTest.php
UTF-8
1,828
2.84375
3
[]
no_license
<?php namespace Morgy\CommissionTask\Tests\Domain; use Morgy\CommissionTask\Domain\Operation; use PHPUnit\Framework\TestCase; class OperationTest extends TestCase { private array $sampleData = ['2014-12-31', 4, 'private', 'withdraw', '1200.00', 'EUR']; /** * @test */ public function it_should_...
true
9f68f9c44050d6ec7d06902b16bbe6f54d5a1de0
PHP
lucasffgomes/curso-php
/api/ler_arquivo.php
UTF-8
1,074
3.109375
3
[]
no_license
<div class="titulo">Ler Arquivos</div> <?php $arquivo = fopen('teste.txt', 'r'); // r->modo de leitura echo fread($arquivo, 10); // quantidade de bytes a ser lido. echo '<br>'; echo fread($arquivo, 10); fclose($arquivo); echo '<hr>'; $arquivo = fopen('teste.txt', 'r'); $tamanho = fi...
true
3c39b269ed1a0656dac00a436ced039bc08ef31f
PHP
qianfunian/fandian
/library/Msd/Config.php
UTF-8
1,962
2.703125
3
[]
no_license
<?php /** * 配置项解析、加载 * */ require_once 'Zend/Config/Ini.php'; require_once 'Msd/Cache/Local.php'; class Msd_Config { protected static $config = null; protected static $cityConfig = array (); private function __construct() { } public static function getInstance() { if (! self::$config) { ...
true
89545adeb7b9ead30a630e1c87cd814d974d378c
PHP
freaknuts/kriptograph
/laman/rot13/function/CodeC1.php
UTF-8
1,249
3.21875
3
[]
no_license
<?php function encrypt($str, $offset) { $encrypted_text = ""; $offset = $offset % 26; if ($offset < 0) { $offset += 26; } $i = 0; while ($i < strlen($str)) { $c = strtoupper($str { $i}); if (($c >= "A") && ($c <= 'Z')) { if ((ord($c) +...
true
db1f9e184df367ac262736fd68c03d4e93b6d0d4
PHP
robertmain/Treasure-Hunt
/src/core/Migration.php
UTF-8
1,215
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Core; use \CI_Migration; use App\Core\Model; /** * Base Migration * * Abstract base migration to extend into concrete migrations. Useful for specifying base migration behaviour etc. */ abstract class Migration extends CI_Migration { /** * @var String The field name for the created d...
true
1634a0adcd048ac45c870391dd265b0a1cdf8132
PHP
tgshakthi/mailtides
/admin/application/modules/text_icon/models/Text_icon_model.php
UTF-8
12,792
2.640625
3
[]
no_license
<?php /** * Text Icon Models * * @category Model * @package Text Icon * @author Saravana * Created at: 23-Jun-2018 */ if (!defined('BASEPATH')) exit('No direct script access allowed'); class Text_icon_model extends CI_Model { private $table_name = 'text_icon'; private $setting_table = 'setting';...
true
b6393e2fec6dc66023630881cb217472a7f7a3ff
PHP
vkornilyev1988/nekriida
/src/Core/Interfaces/ResponderInterface.php
UTF-8
624
2.984375
3
[]
no_license
<?php namespace Nekrida\Core\Interfaces; use Nekrida\Core\Request; /** * Interface ResponserInterface */ interface ResponderInterface { /** * ResponserInterface constructor. * @param Request $request * @param array $config */ public function __construct(Request $request, array $config); /** * Renders...
true
4621a7e70415b24b38c2bc03f65c36fd26a63681
PHP
whitefinity/Books
/new_author.php
UTF-8
1,791
2.734375
3
[]
no_license
<?php require_once("./includes/validation.php"); include 'includes/config.php'; $title="new author"; include("./includes/header.php"); ?> <?php $errors=array(); if(isset($_POST['search'])){ redirect("index.php"); } if(isset($_POST['author']) && ($_POST['author']!="")){ $author=validate($_POST['author']...
true
a85dc22de25095ce034b1ae3595b2be4eb938e7c
PHP
canhnht/attendance-system
/api/common/helpers/TokenHelper.php
UTF-8
4,377
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\common\helpers; use api\common\models\UserToken; use Yii; class TokenHelper { const TOKEN_ACTION_ACTIVATE_ACCOUNT = 1; const TOKEN_ACTION_RESET_PASSWORD = 2; const TOKEN_ACTION_CHANGE_EMAIL = 3; const TOKEN_ACTION_ACCESS = 4; public static $actions = [ 1 => 'ACTION_AC...
true
e765d5a1e0fc56ff01ff656a911ff1db39069bec
PHP
jiangyong19910326/addressFence
/tests/testAddressFence.php
UTF-8
1,577
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: 82683 * Date: 2018/9/25 0025 * Time: 下午 4:59 */ namespace Jiangyong\AddressFence\tests; use PHPUnit\Framework\TestCase; use Jiangyong\AddressFence\addressFence; use Jiangyong\AddressFence\Exceptions\InvalidArgumentException; class testAddressFence extends TestCase { pu...
true
8346b047cf1c39476c6531eae936708722d8d332
PHP
jbroadway/elefant
/lib/Template.php
UTF-8
25,022
2.828125
3
[ "MIT" ]
permissive
<?php /** * Elefant CMS - http://www.elefantcms.com/ * * Copyright (c) 2011 Johnny Broadway * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
true
855fb9159f4d95c231ac7607fe437e90b2604cdd
PHP
ersatama/reserved-new
/app/Domain/Repositories/Menu/MenuRepositoryEloquent.php
UTF-8
805
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Repositories\Menu; use App\Domain\Contracts\MainContract; use App\Models\Menu; use App\Domain\Contracts\MenuContract; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; class MenuRepositoryEloquent implements MenuRepositoryInterface { public function getByOrganizatio...
true
c534c799522406ecc10f74124101c82cd8fe1d4d
PHP
rcastell85/codresfree
/app/Models/Course.php
UTF-8
2,813
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Course extends Model { use HasFactory; protected $guarded = ['id', 'status']; protected $withCount = ['students', 'reviews']; const BORRADOR = 1; const REVISION = 2; ...
true
88dae31e90b7cd90cd02a64bb1e5bb3e7e849d6c
PHP
ioanachi/php-tests
/resolvedTasks/Array6.php
UTF-8
598
3.421875
3
[]
no_license
<?php /*# Arrays Part 4 # TASK: You have the following array: ``` $numbers = ['a','b','c','asd','mara','x']; ``` You need to show the values of the array, separated by a ```-``` **EXAMPLE OUTPUT:** ``` a,b,c,asd,mara,x``` you will have task7.php available in the resolvedTasks Directory with pre-written code and co...
true
5e3c94c6f04c50a064dec874d33cbc2bdaf11a7b
PHP
kelkel17/skilltest2
/studentmanagement.php
UTF-8
1,858
2.828125
3
[]
no_license
<?php require_once("dbcon.php"); $students = viewAllStudents(); if(isset($_GET['sid'])) { $id = $_GET['sid']; deleteStudent(array($id)); } ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <center><h1>Student Management</h1></center> <br /><br /><br /> ...
true
b5906393175e22a67534a5a4a2c3bb45b5409f75
PHP
osemeke/eventone
/models/PasswordResetRequestForm.php
UTF-8
2,436
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use app\models\User; use yii\base\Model; /** * Password reset request form */ class PasswordResetRequestForm extends Model { public $email; /** * @inheritdoc */ public function rules() { return [ ['email', 'filter', 'filter' => 'tri...
true
df5ccc10d9a79740d1d49a9a6c655b76d6a23788
PHP
marcoscodnet/codnet_mvc
/codnet_social_api_0_1_1/api/TwtAPI.Class.php
ISO-8859-1
9,439
2.765625
3
[]
no_license
<?php /** * API para interactuar con Twitter. * * * @author bernardo * @since 29-08-2011 * */ class TwtAPI implements ISocialAPI{ /** * se obtiene la cuenta de usuario dado el token de acceso. * @param string $oauthToken * @param string $oauthTokenSecret * @return SocialTWTUser $oSocialUser usu...
true
b130b4f9aef756ee718a26a6ca24186095475c3c
PHP
ana-balica/anketa
/src/Poll/PollBundle/Tests/Service/QuestionServiceTest.php
UTF-8
2,493
2.6875
3
[ "MIT" ]
permissive
<?php namespace Poll\PollBundle\Tests\Service; use Poll\PollBundle\Service\ObjectFactory; use Poll\PollBundle\Service\ServiceImpl\LocalObjectFactory; use Poll\PollBundle\Exception\QuestionDoesNotExistException; /** * * @author jirkovoj */ class QuestionServiceTest extends \PHPUnit_Framework_TestCase { protected ...
true
b6a19f8b1c73f357f316d6ab9580824c0d613f09
PHP
loipl/leadvantage
/__fwlite/classes/Model/Notification.php
UTF-8
2,048
2.546875
3
[]
no_license
<?php class Model_Notification extends CrudModel { protected $t_notifications; protected $t_notifications_keyed; public function __construct(DB $db = null) { $db = $db ? $db : DB::$db; $this->setTablePrefix($db->getTablePrefix()); parent::__construct($db, $this->t_notifications); ...
true
26788d0a8e387fe0dcc1c2d02ddb620da178b95b
PHP
amey88m/crud-mvc
/classes/Route.php
UTF-8
695
2.515625
3
[]
no_license
<?php /** * */ class Route{ public static function set_route($url) { if($_GET['url'] == $url): switch($_GET['url']): case "index.php": $user = new Usercontroller; $user->loadview("crud-form"); break; case "create": $cont = new Controller; $cont->loadModel("create"); ...
true
9c22e26ecf5efad36daca514968901464a7d68e9
PHP
rkd0812/php2020
/class/2.php
UTF-8
389
3.75
4
[]
no_license
<? class info{ private $_name; public $_age; public function setName($name){ $this->_name = $name; } public function getName(){ return $this->_name; } } $person = new info(); $person->setName('서기'); $person-...
true
fed1bd6fdc8e9f91af5a1b3643c1fcd2735eff50
PHP
henriqueheemann/acadmia
/src/routesSuplemento.php
UTF-8
2,062
2.515625
3
[]
no_license
<?php use Slim\App; use Slim\Http\Request; use Slim\Http\Response; return function (App $app) { $container = $app->getContainer(); $app->get('/suplemento/', function (Request $request, Response $response, array $args) use ($container) { // Sample log message $container->get('logger')->info("...
true
8a131b2f5610e2877d4c3938eb8d955c64defa08
PHP
the-refinery/Sandstone
/5.0/codebase/lib/rest/translaterestverb.service.php
UTF-8
393
2.640625
3
[]
no_license
<?php class TranslateRestVerb extends BaseService { static function Translate($ServerMethod, $InjectedMethod = null) { if ($ServerMethod == "GET") { $verb = "GET"; } elseif ($InjectedMethod == "PUT") { $verb = "PUT"; } elseif ($InjectedMethod == "DELETE") { $verb = "DELETE"; } elseif ($...
true
01e8e26bb41f477a477fc8472c36d6c0a3d6de9b
PHP
desarrollo-bexandy-rodriguez/dolcecclassifieds-child
/header-ajax.php
UTF-8
2,381
2.640625
3
[]
no_license
<?php if(!defined('error_reporting')) { define('error_reporting', '0'); } ini_set( 'display_errors', error_reporting ); if(error_reporting == '1') { error_reporting( E_ALL ); } if(isdolcetheme !== 1) { die(); } global $taxonomy_ad_category_url, $show_empty_categories, $taxonomy_location_url, $allow_social_login, $allo...
true
19df6b5c9d643f6afea7aab3cbd29baa1f8ac5dc
PHP
DianaMukaliyeva/camagru
/controllers/SearchController.php
UTF-8
1,024
2.609375
3
[ "MIT" ]
permissive
<?php class SearchController extends Controller { private $userModel; private $tagModel; public function __construct() { $this->userModel = $this->getModel('User'); $this->tagModel = $this->getModel('Tag'); } // Like or unlike image public function users() { // Only wor...
true
db7469c111a0e9d4419f84f75a47755707d51e38
PHP
rifardity/admingame
/class/class.soal.php
UTF-8
3,869
2.96875
3
[]
no_license
<?php class Soal { private $db; function __construct() { $database = new Database(); $this->db = $database->Connect(); } public function AddSoal($pertanyaan,$kelas,$bab ,$a,$b,$c,$d,$benar){ try { $sql = $this->db->prepare("INSERT INTO soal(pertanyaan,kelas,bab,a,b,c,d,benar) VALUES(:pertanyaan,:kelas,:b...
true
31d9b8e03a7765896ffc8c2eea47194597d65fa5
PHP
evrinoma/DashBoardBundle
/src/Std/SysInfoStd.php
UTF-8
4,986
2.5625
3
[]
no_license
<?php declare(strict_types=1); /* * This file is part of the package. * * (c) Nikolay Nikolaev <evrinoma@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Evrinoma\DashBoardBundle\Std; use Doctrine\Common\Col...
true
3dccc50b3cb88a250cba28e0fb89d0d038fb9cf1
PHP
kifack/AtypikHouse
/api/src/DataFixtures/DestinationFixtures.php
UTF-8
1,402
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use Faker; use App\Entity\Destination; use Doctrine\Common\DataFixtures\DependentFixtureInterface; class DestinationFixtures extends Fixture implements DependentFixtureInterface { public function...
true
95ea5a94fee15fbf533491469e843d20d3c35922
PHP
Stefan-Musteata/onlinefood-bl
/server/database/seeds/ProductsTableSeeder.php
UTF-8
1,541
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Product; class ProductsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $products = [ [ 'id' => 1, 'type' => 'food', 'name...
true
3ec168fb8004d517316b6b06df497ca5c1c93e82
PHP
coderpick/skiitn-webdev-laravel-batch
/Class-5-16-08-2020/session/Login.php
UTF-8
481
2.640625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php if (isset($_POST['submit'])) { $name = $_POST['name']; $_SESSION['username'] = $name; header("Location:profile.php"); } ?> <form action="" method="pos...
true
8a4e884dab3927c5fba55b4cab352a583ba92cf3
PHP
gry260/DailyExpensive
/passwordValidator.php
UTF-8
8,477
3.078125
3
[]
no_license
<?php /* passwordValidator.php written : 7/12/10 by: John Lin This program checks to make sure the password passes the campus' minimum password complexity standards (https://security.berkeley.edu/MinStds/Passwords.html). It returns an array of error messages (an empty array means there are no errors). This...
true
f7822d43863ac0f753371774108e69c1eac867a3
PHP
risteFront/PHP-Fundamentals
/02.Control flow/Web/WEB/05.SumOfDigits.php
UTF-8
662
3.25
3
[]
no_license
<form action="" method="Get"> <label>Input string:</label> <input type="text" name="string" required> <input type="submit" name="submit" value="Submit"> </form> <?php if (isset($_GET['string']) && !empty(trim($_GET['string']))) { $array = $_GET['string']; $num = explode(', ', $array); echo "<t...
true
26e445dd14cefb3529174a8514169939b4e60852
PHP
neeckeloo/AmChartsPHP
/src/AmCharts/Utils.php
UTF-8
651
3.109375
3
[ "MIT" ]
permissive
<?php /** * AmChartsPHP * * @link http://github.com/neeckeloo/AmChartsPHP * @copyright Copyright (c) 2012 Nicolas Eeckeloo */ namespace AmCharts; class Utils { /** * Generate random key * * @param integer $length * @return string */ public static function generateRandomKey(...
true
8adff159ae0e2722e915446b5727809011a52c7e
PHP
Sofytek/inventarios
/Logica/Tools/RolNames.php
UTF-8
967
2.859375
3
[]
no_license
<?php /** * */ class RolNames { private static $ROL_EMPRESA = "Empresa"; private static $ROL_DEPENDENCIA = "Dependencia"; private static $ROL_SECCION = "Seccion"; private static $ROL_LINEA = "Linea"; private static $ROL_SUBLINEA = "Sublinea"; private static $ROL_MARCA = "Marca"; private static $ROL_ESTADO_A...
true
bbae9b9c509f5d2e2e97a54c3f10fb831ac1c6c8
PHP
YuliaColussi/ALL-1
/Back/POO/10-autoload/A.class.php
UTF-8
110
2.53125
3
[]
no_license
<?php class A { public function __construct() { echo "Instantiation de A<hr>"; } } ?>
true
e9756d881c69100a3ee2449893cd9885d9897d0f
PHP
myurasov/YouTubeToMP3
/src/modules/ToMP3/IpLimiter.php
UTF-8
915
2.6875
3
[]
no_license
<?php namespace ToMP3; use ymF\Helper\MemcachedHelper; class IpLimiter { /** * Add hit * * @param string $clientIp */ public static function addHit($clientIp) { $memcached = MemcachedHelper::getMemcached(Config::get('MemcachedHelper')); $clientIp = ip2long($clientIp); $hits = (int) $me...
true
fde2742c742fd83f6cb7500aad605ada09b1e716
PHP
Silvayn/weneedplayer
/admin/App/PDOFactory.php
UTF-8
681
3
3
[]
no_license
<?php namespace App; use PDO; abstract class PDOFactory{ /** * * @var PDO */ private static $pdo = null; public static function getPDO() { try{ if(self::$pdo === null){ self::$pdo = self::$pdo = new PDO('mysql:host=localhost;dbname=weneedpla...
true
a55ca31af07e305e8b6a70c19b181c4d925d18c9
PHP
uploadcare/uploadcare-php
/src/Interfaces/Api/ConversionApiInterface.php
UTF-8
1,856
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace Uploadcare\Interfaces\Api; use Uploadcare\Interfaces\Conversion\ConversionRequestInterface; use Uploadcare\Interfaces\Conversion\ConversionStatusInterface; use Uploadcare\Interfaces\Conversion\ConvertedItemInterface; use Uploadcare\Interfaces\Conversion\DocumentConversionReque...
true
8a9734ed2bb5bef4df62faed09363b43fce76906
PHP
tgq52298/test
/application/qun/traits/Content.php
UTF-8
2,877
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\qun\traits; trait Content { /** * 同时适用于前台与后台 新增加后做个性拓展 * @param number $id 内容ID * @param number $data 内容数据 */ // protected function end_add($id=0,$data=[]){ // } /** * 同时适用于前台与后台 修改后做个性拓展 * @param number $id 内容ID * @param array...
true
7f97bb239a3d95fe7019bd095b1148debb4eb67a
PHP
LimLipJoo/Degree-FYP
/app/Models/ProductColoursModel.php
UTF-8
374
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class ProductColoursModel extends Model{ protected $table="product_colours"; protected $primaryKey="product_colour_id"; protected $useAutoIncrement=true; protected $useSoftDeletes=false; protected $returnType="array"; protected $allowedField...
true
c48d24fb3bb4fd54eefaf2bc5ab60bab9899c7ac
PHP
ruhulaminarif/php
/assigment_operator.php
UTF-8
258
3.109375
3
[]
no_license
<?php $x=20; $y=10; echo $x+=$y; //$x=$x+$y; echo "<br>"; echo $x-=$y; //$x=$x-+$y; echo "<br>"; echo $x*=$y; //$x=$x*$y; echo "<br>"; echo $x/=$y; //$x=$x/$y; echo "<br>"; echo $x%=$y; //$x=$x%$y; echo "<br>"; echo $x**=$y; //$x=$x**$y; ?>
true
5603a28335f7848dad3f51878120bde4332096c0
PHP
SOCLE15/SemanticPrez
/Zipper.php
UTF-8
10,539
2.65625
3
[]
no_license
<?php require_once('Project.php'); require_once('Recipe.php'); if(isset($_GET['action']) && isset($_GET['project']) && strcmp($_GET['project'], "index") != 0){ $name = $_GET['project']; if(strcmp($_GET['action'], 'show') == 0){ $project = new Project($name); $zip = new Zipper($project); ...
true
6b33027be609c9eaa0c5dd6dc7acd6b79ed9b708
PHP
jczisgood/laravel_eleb
/app/Http/Controllers/AddressController.php
UTF-8
2,999
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Address; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; class AddressController extends Controller { //保存收货地址 public function store(Request $request) { // d...
true
7ac1d8f171cbc7c8efe04ac900d58a31caa9b88b
PHP
arklanq/Type-PHP
/app/Http/Controllers/Hello.php
UTF-8
347
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Http\Controllers; use App\Bootstrap\HTTP\Controller; use App\Bootstrap\HTTP\Request; use App\Bootstrap\HTTP\Response; class Hello implements Controller { public function onRequest(Request $req, Response $res) { return $res->status(200)->plain('He...
true
41cfa732acaeefaeeb1c3ae88d7b0369a6c51acf
PHP
raymondlwhuang/oldwebsite
/backup/PHP/M_strnatcmp.php
UTF-8
561
2.625
3
[]
no_license
<?php echo "string '2Hello world!' is less than: '10Hello world!'"; echo "<br />"; echo strnatcmp("2Hello world!","10Hello world!"); echo "<br />"; echo "string '10Hello world!' is greater than: '2Hello world!'"; echo "<br />"; echo strnatcmp("10Hello world!","2Hello world!"); echo "<br />"; echo "string 'Hello world!'...
true
e52521ec0044ba479b9292a44745ec3c91c39051
PHP
jeoffreydissard/Exo3-php-Les-boucles
/Exo_3.php
UTF-8
116
2.921875
3
[]
no_license
<?php $exo3 = 100; $exo32 = 1; do{ $exo3 *= $exo32; echo $exo3."<br />"; $exo3--; }while($exo3 > 10); ?>
true
13d9c0c1a7c66f2ad1d29d9ce87e191369115aa6
PHP
sylviaxiong123/MRW
/admin/phpscripts/login.php
UTF-8
2,014
2.515625
3
[]
no_license
<?php function logIn($username, $password, $ip) { require_once("connect.php"); $username = mysqli_real_escape_string($link, $username); $password = mysqli_real_escape_string($link, $password); date_default_timezone_set('America/New_York'); $currentdate = date('Y-m-d h:i:s'); //echo $currentdate; ...
true
dbf53bc3dee299be3d51cc727924d49a0a7bf663
PHP
tommyrot/superseriousstats
/parsers/limechat.php
UTF-8
2,283
2.609375
3
[ "ISC" ]
permissive
<?php declare(strict_types=1); /** * Copyright (c) 2012-2023, Jos de Ruijter <jos@dutnie.nl> */ class parser_limechat extends parser { protected function parse_line(string $line): void { $timestamp = '(?<time>\d{2}:\d{2}(:\d{2})?) '; if (preg_match('/^'.$timestamp.'(?<nick>\S+): ?(?<line>.*)$/n', $line, $mat...
true
cbb504031cb0c47ca0cbc06586628f7455cad876
PHP
Vladislav-Pol/Homework_PHP_8
/classes/DB.php
UTF-8
7,189
2.75
3
[]
no_license
<?php class DB { protected $mySqlI; private static $instances = []; /** * @param $table - имя обрабатываемой таблицы * @param null $arSelect - массив возвращаемых полей * @param null $arFilter - массив фильтров состоящий из массивов с элементами [field, operation, value] * @param nul...
true
efdb03e854a276c3c9fa4ad5d30575e2c1febb07
PHP
albertocortesmartinez110/proyecto_hotel
/modelo/manejo_objetos.php
UTF-8
6,358
2.953125
3
[]
no_license
<?php require_once('conectar.php'); require_once('objeto_reservas.php'); require_once('objeto_clientes.php'); require_once('objeto_habitaciones.php'); class manejo_objetos{ ////////----------- funcion que devuelve un arreglo con objetos reserva segun las condiciones que utilizo el usuario en el formulario-------/////...
true
75c4b46238205fe288cbd8e0d91fa817697fb41d
PHP
jitka753/QuickMatchBooking
/app/Http/Controllers/CompanyAdminController.php
UTF-8
1,855
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Auth; namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Company; use DB; class CompanyAdminController extends Controller { public function __construct() { $this->middleware('auth'); } /** * Display a listing of the resource. ...
true
8e7073d4c2cd34ca0a4212a456dd63c6e1921d04
PHP
strimeapp/Slackify
/src/Strime/Slackify/Api/Chat.php
UTF-8
10,271
2.84375
3
[ "MIT" ]
permissive
<?php /* * This file is part of Slackify. * * (c) Strime <contact@strime.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Strime\Slackify\Api; use Strime\Slackify\Exception\RuntimeException; use Strime\Slackify\Exce...
true
5e19744aa1d93e8f999e4dda0f63fe53520d320e
PHP
devAndres/php_beginner
/core/Request.php
UTF-8
807
3.0625
3
[]
no_license
<?php /** * Defino que pertenece al namespace 'Core', dentro de 'App' */ namespace App\Core; //\Services; /** * Clase para gestionar las peticiones de URI que el cliente hace desde el navegador */ class Request{ /** * Método static que devuelve la URI a la que el usuario quiere dirigrise *...
true
d931788a353b6d02bc6044056767d98bfb8ea5c6
PHP
SAEBelgradeWeb/wbd6204-web-application-milosevicmilos
/app/Repositories/FloorRepository.php
UTF-8
1,127
2.6875
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Floor; use Illuminate\Database\Eloquent\Collection; final class FloorRepository extends Repository { /** * FloorRepository constructor. * @param Floor $floor */ public function __construct(Floor $floor) { parent::__construct($floor);...
true
8aee38dc22e27d29a73262f4fcfd8842c8698d56
PHP
tuaki/fksdb
/tests/model/ModelPersonHistory.extrapolate.phpt
UTF-8
2,303
2.703125
3
[]
no_license
<?php $container = require '../bootstrap.php'; use Tester\Assert; use Tester\TestCase; class ModelPersonHistoryTest extends TestCase { /** * @var ServicePersonHistory */ private $service; function __construct(ServicePersonHistory $service) { $this->service = $service; } publi...
true
d23031cea8184b947c30e6ad0e2b1be3904a24fe
PHP
egorch333/php
/session/autorization.php
UTF-8
2,406
2.671875
3
[]
no_license
<?php session_start(); // Начинаем сессию $_SESSION["login"] = trim($_POST['login']); $_SESSION["pass"] = trim($_POST['pass']); // вывод переменных if(!empty($_POST['ok'])) { // регулярные выражения $reg_login = "/^[a-z0-9_-]{3,}$/i"; $reg_pass = "/^[a-z0-9_-]{6,20}$/i"; //$ref = $_POST['ref']; if($_SESSION["login"]...
true
51318da3af49b31cef295fdd895372cbe187a3c2
PHP
qq330496248/sky
/ccs/protected/dao/cpahDAO.php
UTF-8
646
2.71875
3
[]
no_license
<?php /** * @desc 产品部门标示表操作类 * @author Dengshaocong * @date 2016-03-31 */ class cpahDAO extends BaseDAO{ /** * @desc 对象实例重用 * @author Dengshaocong * @date 2016-03-31 * @param string $className * @return cpahDAO */ public static function getInstance($className = __CLASS__){ return parent::createInst...
true
f9670848d8cda5430c1b80ac1f6e1408bb2cf9f3
PHP
ejh38/school
/CS 1520 Web Programming/assig4/handouts/assig4/setGame.php
UTF-8
3,814
3.34375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Initialize Game Assignment DB</title> </head> <body> <?php // CS 1520 Fall 2013 // Script to set up simple game maintenance tables $passlist = file("password.php"); $passwd = rtrim($passlist[1]); $passwd = preg_replace('/#/','',$passwd); $db...
true
5e350859aafab9e9238795d2cfde124b0e79bc26
PHP
Biuce/yii
/common/models/AdminGroup.php
UTF-8
2,410
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%admin_group}}". * * @property integer $id * @property string $group_name * @property integer $create_time * @property integer $is_admin * @property string $create_user * @property string $power * @property integer $state * ...
true
d32ff611fa51725abb4b535029af4f4c06267911
PHP
vjerandubrovic/php_oop
/L6_car.php
UTF-8
487
3.78125
4
[]
no_license
<?php class Car{ public $name = ""; // method get property(name) function getName() : string{ return $this->name; } // method setName function setName($name){ $this->name = $name; } } $car1 = new Car(); $car1->setName("BMW"); echo $car1->getName() . "<br>"; $car...
true
cb17012a6f83aeb8405611a65fa69d4d3598e11a
PHP
finalclass/nbml
/examples/blog/Blog/Table/Table.php
UTF-8
1,585
2.828125
3
[]
no_license
<?php namespace Blog; class Table extends \Nbml\Component { static public $PATH = 'D:\Dokumenty\nbml\strona_projektu\www\vendor\finalclass\nbml\examples\blog\Blog\Table\Table.nbml'; /** * @return \Blog\Table */ static public function create() { return new \Blog\Table(); } protecte...
true
787a7b920a9d5b6b5ed00cb71ceec4d27f423149
PHP
Zics/framework
/framework/views/listUserView.php
UTF-8
328
2.546875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>List users page</title> </head> <body> Ceci est la liste des utilisateurs. <?php messageFlash();?> <?php include ("models/users.php"); foreach (getAllUsers($bdd) as $key => $value){ echo $key.' '.$value; } ?> </body>...
true
e02be8531544ca7e43f5c9e3cb5637c9f071f016
PHP
luc527/opinarte
/classes/ListaDao.class.php
UTF-8
4,658
3.125
3
[]
no_license
<?php require_once('autoload.php'); class ListaDao { /** * INSERT */ public static function Insert(Lista $lista, $autor_id) { $sql = "INSERT INTO lista (id_lista, autor, dtHr, nome, descricao, ordenacao) VALUES (:id, :autor, :datahr, :nome, :descricao, :ordem)"; try { $stmt = Conexao::getI...
true
2cd889dbc92bfa40e6f72d039400bebc409d889c
PHP
MichaelPasquier/php-fw
/includes/libs/core/application/class.Configuration.php
UTF-8
4,060
2.546875
3
[]
no_license
<?php namespace core\application { /** * Class Configuration * Sert de référence pour n'importe quelle propriété nécessaire à la configuration du framework * * @author Arnaud NICOLAS <arno06@gmail.com> * @version 1.0 * @package application */ abstract class Configuration { /** * @var bool */ ...
true
e94b15c9822d697e24babf3462ed46f1c198f616
PHP
dahnny012/New_SASE
/API/tests/news-spec.php
UTF-8
3,551
2.5625
3
[]
no_license
<?php ini_set('display_errors','1'); error_reporting(E_ALL); include "../news.php"; // Tests able to make a Controller and Model // Compare the same data. Should always work function initTest(){ $controller = new News_Controller() or die("Could not instantiate controller"); ...
true
1debe35d14c2d2483da82c68415ba8911a9fa871
PHP
victorliafook/codetoolbox
/PHP/Quicksort-inplace.php
UTF-8
1,052
3.203125
3
[]
no_license
<?php function partition( &$ar, $i_from, $i_to) { $p = $ar[$i_to]; $i_p = $i_to; $min_swaped = $i_from; for($i = $i_from; $i < $i_to; $i++){ if($ar[$i] < $p){ $aux = $ar[$i]; $ar[$i] = $ar[$min_swaped]; $ar[$min_swaped] = $aux; ...
true
0eb9b4c2f2d984e43eb76c69eb8672f2b19ec194
PHP
dantepda/produccion-web-2021-01
/Modelos/CategoryEntity.php
UTF-8
652
2.9375
3
[]
no_license
<?php require_once ('BaseEntity.php'); class CategoryEntity extends BaseEntity { private $nombre; private $padre; private $posts; public function __construct() { parent::__construct(); } /** * Defino los Getters * */ public function getNombre() { ...
true
e88c34ac2627f21bbcab72856dfb4d3919726b10
PHP
zx1222/anniuhuodong
/app/modules/ejiaotiebiaoqian/models/EjiaotiebiaoqianSelflabels.php
UTF-8
1,776
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\ejiaotiebiaoqian\models; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "{{%ejiaotiebiaoqian_selflabels}}". * * @property integer $id * @property string $myself * @property string $labels * @property integer $created_at...
true
a52c43915abe8b20ae6fadba09ad5e7fa4891444
PHP
concretecms/concretecms
/concrete/src/Board/Command/PopulateBoardInstanceDataPoolCommandHandler.php
UTF-8
2,783
2.5625
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Board\Command; use Concrete\Core\Board\Instance\Item\Populator\PopulatorInterface; use Concrete\Core\Entity\Board\InstanceItem; use Concrete\Core\Entity\Board\InstanceItemBatch; use Concrete\Core\Logging\Channels; use Concrete\Core\Logging\LoggerAwareInterface; use Concrete\Core\Logging\...
true
b91f28898bf69a52868b2969a57c6e263c7bd0e1
PHP
DomP2002/SixthFormApp
/sixthadmin/announcements/make.php
UTF-8
2,747
2.796875
3
[]
no_license
<?php require("../shared.php"); // Calls a function from the shared page which prevents non-logged in users from accessing the page // Guests will be redirect to the login page rejectGuest(); $selectGroups = Database::get()->query("SELECT * FROM `groups`"); $options = ""; if($selectGroups == true) { while(...
true
37bc0820401613db84e1e353e1c0d0fccfa73a72
PHP
steverhoades/async-talk-examples
/src/SlideBuilder/Server.php
UTF-8
1,642
2.96875
3
[]
no_license
<?php namespace SlideBuilder; use Ratchet\MessageComponentInterface; use Ratchet\ConnectionInterface; class Server implements MessageComponentInterface { protected $clients; /** * Initialize $clients to SplObjectStorage. This will be used to * store all connections. */ public function __construct() { $t...
true
26c0c016374863c157a912fe1f349f4b9663b7e7
PHP
space77/mwfv3_sp
/core/330_mangos_fn.php
UTF-8
3,288
2.875
3
[]
no_license
<?php class character { var $sqlinfo; var $guid; var $account; var $name; var $race; var $class; var $gender; var $level; var $current_xp; var $next_level_xp; var $xp_perc; var $online; var $money; var $map; var $position_x; var $position_y; var $a...
true
c882d6383840d81d22e6caba0800b06e12ba6d77
PHP
sweetformation/defishit_rev
/damier/index.php
UTF-8
772
2.9375
3
[]
no_license
<?php $nbcase = 9; $classe=""; ?> <!DOCTYPE HTML> <html> <head> <meta charset="utf8" /> <title>DAMIER</title> <meta name="description" content=""> <link rel="stylesheet" href="css/style.css" /> </head> <body> <main id="main" class="container"> <table id="damier"> <tbody> <?php for ($i=0; ...
true
f60be55caf81a5ce381190132d012af0de8c89a9
PHP
bhatnagarswati/wandip
/app/Http/Controllers/Api/v1/Servicer/Drivers/DriverController.php
UTF-8
8,912
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Api\v1\Servicer\Drivers; use App\Http\Controllers\Controller; use App\v1\Drivers\Driver; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class DriverController extends Controller { public $successStatus = 200; public $userId; public $user_type; ...
true
307915d9145607f893957ffe33871b0d16b23a18
PHP
jsetienr/filmaclub_project
/componentes/creacionhistorias/model.php
UTF-8
1,376
2.640625
3
[]
no_license
<?php class modelCreacionHistorias { public static function viewPeliculas() { $db = new database(); $sql = "SELECT * FROM `pelicula` ORDER BY `nombre` ASC"; $db->query($sql); return $db->cargaMatriz(); } public static function newCuriosidad( $clave_pelicula, ...
true
5d8f83bae914f79be4fcdbf0ff858d46ae9c2a49
PHP
bharadhwaj/trainingcodes
/Assign23/pinnacle/controller/setup/dbconfig.php
UTF-8
2,343
2.546875
3
[]
no_license
<?php if( !defined('DB_EXECUTED') ) { define('DB_SERVER', 'localhost'); define('DB_USER', 'localhost'); define('DB_PASSWORD', ''); define('DB_NAME', 'RailwayStations'); $connection = new MySQLi(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME); $usertable = "CREATE TABLE Users ( Username varchar(12) NOT NULL...
true
65bdb7754200a3af9f0e49b0f2372845256e015d
PHP
BogdanPirozhok/laravel-project
/app/Repositories/Sanitizers/VacancyRequestSanitizer.php
UTF-8
1,654
2.640625
3
[]
no_license
<?php namespace App\Repositories\Sanitizers; use App\Exceptions\CustomException; use App\Repositories\BodyBuilder\VacancyBody; use Illuminate\Http\Request; class VacancyRequestSanitizer { /** * @param Request $request * @return mixed * @throws CustomException * @throws \App\Repositories\Bod...
true
1fa9dc08c636f26391086627b7722b2fbcd6ac05
PHP
n2n/n2n-quickstart-composer-skeleton
/app/qs3/view/detail.html.php
UTF-8
1,029
2.578125
3
[]
no_license
<?php use n2n\impl\web\ui\view\html\HtmlView; use n2n\web\ui\view\View; use qs3\bo\BlogArticle; $view = HtmlView::view($this); $html = HtmlView::html($view); // Artikel aus den Parametern einlesen und überprüfen $blogArticle = $view->getParam('blogArticle'); $view->assert($blogArticle instanceof ...
true
b83ac08ae1906da87b869a5c2947eeb8b0a9dc97
PHP
tabyouto/chemin
/options.php
UTF-8
14,403
2.53125
3
[]
no_license
<?php /** * A unique identifier is defined to store the options in the database and reference them from the theme. * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed. * If the identifier changes, it'll appear as if the options have been reset. */ function opti...
true
778d7eea4499b30dada8fefb5088a0b63788f11a
PHP
preslyp/ITtalents
/HomeWork_3/Task_7/task_7.php
UTF-8
1,033
3.46875
3
[]
no_license
<?php $numbers = $_GET['text']; $numbers = str_replace('.', ',', $numbers); $firstArr = explode(',', $numbers); $count = count($firstArr); $secondArr = array(); $isNumber = true; if (isset($numbers)) { foreach ($firstArr as $v) { if (!is_numeric($v)) { $isNumber = false; echo "Моля, въведете правилните да...
true
465b794cde55526fe27acc5a59330c1b76b91f64
PHP
ThiaAlves/Subsubmarino
/admin/buscaValor.php
UTF-8
704
2.703125
3
[]
no_license
<?php session_start(); if ( ! isset ( $_SESSION['submarino']['id'] ) ) exit; $produto = trim ( $_GET['produto'] ?? NULL ); if ( !empty ( $produto ) ) { include "libs/conectar.php"; $sql = "select valor, promo from produto where id = :produto limit 1"; $consulta = $pdo->prepare($sql); $consulta->bindPar...
true
0c554bb1262a4031bfc32e87df0d39ae1a819c17
PHP
quartetcom/haydn
/docs/examples/permutation_test.php
UTF-8
402
3.09375
3
[ "BSD-2-Clause" ]
permissive
<?php require_once __DIR__.'/../../vendor/autoload.php'; $start = microtime(true); $input = range(1,20); $p = new \Haydn\Examples\Permutation(); $ret = $p->generate($input,3); printf("%f sec.\n", microtime(true) - $start); $count = 0; foreach ($ret as $value) { $count++; echo '[', implode(',', $value), ']', "\...
true
68c3e70f324323eccfae48079a69b93e42eccb9c
PHP
quynhhnnguyen/travelAgency
/sqlfunctions.php
UTF-8
6,299
2.859375
3
[]
no_license
<?php /* Author: Quynh Nguyen (Queenie) Date created: Nov - 16 - 2018. Course Module: CPRG-210-OSD - Web Application Development - PHP and MySQL Assignment#: CPRG210 Exercises Day 10 Summary: implement all activities on database. */ // include all neccessary files require_once('modal/Agency.php'); requ...
true
864c995e0375739c3dbe9bf131069dc4218738e0
PHP
tamamuhammad/pelitaresto
/edit.php
UTF-8
1,868
2.59375
3
[]
no_license
<?php require "fungsions.php"; $Id_Makanan = $_GET['Id_Makanan']; $result = querytampil("SELECT * FROM makanan WHERE id_makanan = '$Id_Makanan'"); if ( isset ( $_POST["edit"] ) ){ if( edit ( $_POST ) > 0 ){ echo " <script> alert('data berhasil di edit'); document.location.href='db.p...
true
39501e02176aa3d0d6445f313e54bc4d750bab02
PHP
OGlou7/exercice-php
/variable-condition/conditions.php
UTF-8
4,347
3.359375
3
[]
no_license
<?php /* Ex meteo */ $temperature = 21; if ($temperature > 15) { $vetement_du_jour = "T-shirt"; } else { $vetement_du_jour = "Pull-over"; } echo $vetement_du_jour; ?> <br><br> <?php /* ----- Exercice 0 ----- */ $chambre_est_sale = false; if ($chambre_est_sale == true) { $chamb...
true
c07c1910135b99436c7236b75c59971e73b76b7e
PHP
geozhur/project-lvl1-s336
/src/games/Progression.php
UTF-8
1,021
3.140625
3
[]
no_license
<?php namespace BrainGames\Progression; use function \BrainGames\Common\runTextGame; const LENGTH_PROGRESSION = 10; const MIN_FIRST_ELEM_PROGRESSION = 10; const MAX_FIRST_ELEM_PROGRESSION = 100; const MAX_STEP_PROGRESSION = 10; function getQuestionAndRightAnswerProgression() { $numFirst = rand(MIN_FIRST_ELEM_PR...
true
b68b7f66a6be976942370f5d0f1cbea0496bcf1d
PHP
JefersonMMotta/sispet
/clientepets.php
UTF-8
2,245
2.75
3
[]
no_license
<?php require_once "includes/functions.php"; require_once "includes/header.php"; if (!isset($_GET['cliente_id']) || !filter_var($_GET['cliente_id'], FILTER_VALIDATE_INT) || $_GET['cliente_id'] < 1 ) { header("location:" . base_url('clientes.php')); } $data['id_cliente'] = (int) $_GET['cliente_id']...
true
ae6b30fa0b90a5d992a1057b918e3d559fb83485
PHP
Penguinsushi/penguin-igniter
/classes/Cache.php
UTF-8
4,007
3.203125
3
[]
no_license
<?php // ============================================================================================================= // USAGE EXAMPLE // ============================================================================================================= // $cache = new Cache('file'); // $cache->cacheSet('inf1','info to ca...
true
048de048a0eda1ca5d67319fd64ba297d66da907
PHP
tmorenoz/Examen_php
/ClearPar.php
UTF-8
717
4.09375
4
[]
no_license
<?php // Estado CERO: Esperamos un ( -> UNO // Estado UNO: Esperamos un ) -> CERO y considerar "()" class ClearPar { private $state; static function build($input) { $estado = 0; $salida = ''; for ($i=0; $i<strlen($input); ++$i) { if ($estado == 0 && $input[$i]=='(') { $esta...
true
2678f9e29ed4572e17ce52d55fd4238a167da7e7
PHP
Desch/EmuDevstore
/community/wcf/lib/data/user/UserProfile.class.php
UTF-8
6,188
2.515625
3
[]
no_license
<?php // wcf imports require_once(WCF_DIR.'lib/data/user/User.class.php'); require_once(WCF_DIR.'lib/data/user/rank/UserRank.class.php'); require_once(WCF_DIR.'lib/data/user/avatar/Gravatar.class.php'); require_once(WCF_DIR.'lib/data/user/avatar/Avatar.class.php'); /** * UserProfile extends User by functions for disp...
true
e4063ffebd7e2ce33c06ba4f9111df16f9356294
PHP
noikiy/Bunxious-Website
/Core/Search/Lucene/Search/Query/Fuzzy.php
UTF-8
11,635
2.78125
3
[]
no_license
<?php namespace Core\Search\Lucene\Search\Query; class Fuzzy extends \Core\Search\Lucene\Search\Query { /** * Default minimum similarity */ const DEFAULT_MIN_SIMILARITY = 0.5; /** * Maximum number of matched terms. * Apache Lucene defines this limitation as boolean query maximum number of * clauses: ...
true
41a89c1f1d720e0641b1125aff551a7ae49b18fc
PHP
jonathanfilsaime/cookbook
/index.php
UTF-8
2,170
2.703125
3
[]
no_license
<?php require_once("functions.php");?> <?php $connection = connectDB()?> <?php $query = getIngredient(); $result = mysqli_query($connection, $query); // Test if there was a query error if (!$result) { die("Database query failed."); } ?> <DOCTYPE!> <html> <head></head> <title>CookBook</title> <meta charset="u...
true
35dadad2aad81d09bd7e70e743aef1f5d33014ea
PHP
banksbestrates/BankFx
/news/wp-content/plugins/formidable-signature/models/FrmSigField.php
UTF-8
13,982
2.6875
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * @since 2.0 */ class FrmSigField extends FrmFieldType { /** * @var string * @since 2.0 */ protected $type = 'signature'; /** * @since 2.0 */ protected function field_settings_for_type() { $settings = array(); if ( is_callable( 'FrmProFieldsHelper::fill_default_field_display' ) ) { F...
true