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
65bf03d50032cb7df9173dfa6c0b9121a5be6f4f
PHP
bibop-qu/rush00_PHP
/modif_cart.php
UTF-8
3,083
2.5625
3
[]
no_license
<?PHP include 'dir_install/login_information.php'; //print_r($_POST); #session_start(); if ($_SESSION['admin'] === 0) header('Location: index.php'); $conn = mysqli_connect($server_name, $user_name, $password, $db_name, $db_port); if (mysqli_connect_errno()) die("Connection failed: " . mysqli_connect_error()); $pr...
true
79c6b5500a13223d6964e6ccea0768cadf6b16a0
PHP
alifahfathonah/stmik-php-native
/report/exportexcel.php
UTF-8
654
2.65625
3
[]
no_license
<?php require '../config/functions.php'; $mahasiswa = query("SELECT * FROM tb_mahasiswa"); $fileName = "mahasiswaexcel". date('d-m-Y') . ".xls"; header("Content-type: application/vnd-ms-excel"); header("Content-Disposition: attachment; filename=$fileName"); ?> <table border="1" cellpadding="10" cellspacing="0"> <...
true
13ec81103ecbf7743ee82e0dc17602091349f69d
PHP
MPPL14-KELOMPOK005/webukmv3
/config/class_paging.php
UTF-8
23,280
3
3
[]
no_license
<?php // class paging untuk halaman administrator class Paging{ // Fungsi untuk mencek halaman dan posisi data function cariPosisi($batas){ if(empty($_GET['halaman'])){ $posisi=0; $_GET['halaman']=1; } else{ $posisi = ($_GET['halaman']-1) * $batas; } return $posisi; } // Fungsi untuk menghitung total halaman funct...
true
800149b14e657dcb1a4eaf7d1cd6a19641b322c8
PHP
glauberportella/omie-php-sdk
/src/Base/Servicos/OsTrocarEtapaRequest.php
UTF-8
1,155
2.765625
3
[ "MIT" ]
permissive
<?php namespace Omie\Base\Servicos; /** * Solicitação de troca de etapa da Ordem de Serviço. * * @pw_element integer $nCodOS Código da Ordem de Serviço * @pw_element string $cCodIntOS Código de Integração da OS * @pw_element string $cNumOS Número da Ordem de Serviço<BR>(Conforme visualizada em tela pelo cliente...
true
4d18c83f1560a650d54083813f77ddb94c8624d6
PHP
douglas-otix/php-sigep
/src/PhpSigep/Services/Real/LogisticaReversaCriarPedido.php
UTF-8
2,931
2.625
3
[ "MIT" ]
permissive
<?php namespace PhpSigep\Services\Real; use PhpSigep\Model\AbstractModel; use PhpSigep\Model\LogisticaReversaPedido; use PhpSigep\Model\LogisticaReversaPedidoResposta; use PhpSigep\Services\Exception; use PhpSigep\Services\InvalidArgument; use PhpSigep\Services\Result; /** * @author: rodrigojob */ class LogisticaRe...
true
5f316e151da90371d04f2dc38047521fb9c505f9
PHP
xiaopz2019/erp_opensource
/render/form/input/email.php
UTF-8
303
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace render\form\input; class Email extends \Render\Form\Base { public $validPattern = '^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$'; function __toString(){ return "<input type='email' name='{$this->name}' ".$this->getClass()." ".$this->event->bind()." pattern='{$this->validPattern}' />"; } }
true
1fa6414e7e16edfaa500f1e66808929f99c97831
PHP
erinb90/SOEN344
/includes/Class/Models/LoanContract.php
UTF-8
1,206
3.0625
3
[]
no_license
<?php namespace Stark\Models { use Stark\Interfaces\DomainObject; /** * Class LoanContract * @package Stark\Models */ class LoanContract implements DomainObject { /** * @var int */ private $_LoanContractiD; /** * @var int */...
true
d338808db18c44ce505d74cf088ea3f5bc0ac229
PHP
Juhanson/t09tervikveeb
/taimevaatlusmärkmik/page/observers.php
UTF-8
713
2.828125
3
[]
no_license
<?php require("../functions.php"); require("../class/Event.class.php"); $Event = new Event($mysqli); $obs = $Event->observerList(); ?> <?php require("../header.php"); ?> <h5><a href="data.php"> Back</a></h5> <h2>Observers</h2> <?php $html = "<table class='table table-striped table-condensed'>"; $...
true
bbf8988fd5275956726674c12cfc041287a8d418
PHP
5ctechforgood/projectcaring
/piwik/plugins/CoreConsole/Commands/GenerateSettings.php
UTF-8
3,533
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "GPL-3.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Plugins\CoreConsole\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Com...
true
ec182014f794021ffa6336c2a351cd9843e302a9
PHP
rameshchander242/iframe
/app/Http/Middleware/HttpsProtocol.php
UTF-8
511
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; class HttpsProtocol { public function handle($request, Closure $next) { // if ( !$request->secure() ) { // return redirect()->secure($request->getRequestUri()); // } $response = $next($request); return $respo...
true
2ddd69a5c0a6b3a0300e47d32a2fc7f6b523842f
PHP
mariamnef/picsine_php-1337
/day09/ex04/delete.php
UTF-8
1,210
2.6875
3
[]
no_license
<?php header('Content-type: application/json'); function get_csv($fileName, $delimiter) { $data = []; if(file_exists($fileName) && ($content = file_get_contents($fileName))) { $content = array_filter(explode("\n", $content)); $keys = explode($delimiter,$content[0]); array_shift($co...
true
f5c42204c74516d0620b8fe762bb2b2428fb77d9
PHP
henriques4nti4go/jwt-token-php
/www/index.php
UTF-8
2,071
3.015625
3
[]
no_license
<?php date_default_timezone_set('America/Sao_Paulo'); class JWT { private $secret_key; function __construct($secret_key){ $this->secret_key = $secret_key; } public function generate($payload) { $header = [ 'typ' => 'JWT', 'alg' => 'HS256' ]; ...
true
6b2a622fbdcef17d0784a94a3664b128de483bc8
PHP
seabix/seabix.github.io
/waiverfiles-2/buildCodeQuestions.php
UTF-8
3,749
2.65625
3
[ "MIT" ]
permissive
<?php // load configuration data from waiver_config.ini $ini_array = parse_ini_file("waiver_config.ini"); $studentFileToWrite = $ini_array["studentAnswers"]; $questionFolder = $ini_array["questionFolder"]; $totalNoOfQuestions = $ini_array["totalNoOfQuestions"]; $totalNoOfCodeQuestions = $ini_array["totalNoOfCodeQuest...
true
d95f5c1d92b667ba1d18e87c41f5295d05099a9a
PHP
si2san/design-patterns
/creational/AbstractFactory/ReportFactory.php
UTF-8
229
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace SiThuSan\Creational\AbstractFactory; abstract class ReportFactory { public abstract function createHeader(): ReportHeader; public abstract function createBody(): ReportBody; }
true
5e93d4592447a97de31022720365947403e42562
PHP
Tas-sos/gocdb
/lib/Doctrine/deploy/AddTiers.php
UTF-8
362
2.671875
3
[ "Apache-2.0" ]
permissive
<?php require_once __DIR__."/../bootstrap.php"; require_once __DIR__."/AddUtils.php"; /* AddTiers.php: Manually inserts a list of tiers into * the doctrine prototype. */ $tierArray = array ("0", "1", "2"); foreach($tierArray as $tierName) { $tier = new Tier(); $tier->setName($tierName); $entityManager->p...
true
3fa4c46700b74ca92c56b331a0d44c83cc0330d5
PHP
Jmiy/lumen-doc
/app/Models/Region.php
UTF-8
1,389
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\BaseModel as Model; use App\Database\Eloquent\SoftDeletes; use Carbon\Carbon; use Illuminate\Support\Arr; class Region extends Model { //use SoftDeletes; //可插入表单字段 // protected $fillable = [ // 'user_id', 'status', 'department_id', 'domain', 'logo', 'tit...
true
48a034778b598032149424506f1b497d8089c0a2
PHP
malp16/ramverk1pack
/src/IP/IPGeo.php
UTF-8
3,988
3.25
3
[]
no_license
<?php namespace malp16\IP; //require_once './data/ipStackKey.php'; /** * Test validity of IP-adress */ class IPGeo { // @var int $ip IP-number to test. // @var bool $ipv4 valid according to ipv4 standard. // @var bool $ipv6 valid according to ipv6 standard. // @var string $w...
true
b6b609e24656645917dc56cbe3bdbfdea8fb5f42
PHP
geertvangent/ects
/Application/Atlantis/UserGroup/Storage/DataClass/Context.php
UTF-8
3,836
2.828125
3
[]
no_license
<?php namespace Ehb\Application\Atlantis\UserGroup\Storage\DataClass; use Chamilo\Libraries\Storage\DataClass\DataClass; use Ehb\Application\Atlantis\UserGroup\Storage\DataManager; /** * application.atlantis.context. * * @author GillardMagali */ class Context extends DataClass { /** * Context prope...
true
e6738c9da0779a7d8da25fb6592682d4401a890d
PHP
NeWutyteSZoxanom/car_rental_laravel
/app/Booking.php
UTF-8
513
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Booking extends Model { protected $fillable = array( 'book_from', 'book_to' ); public static $rules = array( 'car_id'=>'required|integer', 'pick_up_date'=>'required|date|date_format:"Y-m-d"|start_time', 'drop_off_date'=...
true
1a7d85ffae9522a30cbe726fa104d635b4eb2a13
PHP
mdlulim/eis
/catalog/model/replogic/order_quotes.php
UTF-8
2,190
2.546875
3
[]
no_license
<?php class ModelReplogicOrderQuotes extends Model { public function deleteOrder($quote_id) { $this->db->query("DELETE FROM `" . DB_PREFIX . "replogic_order_quote` WHERE quote_id = '" . (int)$quote_id . "'"); } public function getOrderquote($quote_id) { $sql = "SELECT * FROM " . DB_PREFIX . "replogic_ord...
true
f41e721e22ad60bd83869d61ef8dc24853313bd3
PHP
Urmis-co/laravel-verifies
/src/Generators/SimpleSecretGenerator.php
UTF-8
548
2.921875
3
[ "MIT" ]
permissive
<?php namespace Urmis\Verifies\Generators; use Urmis\Verifies\Contracts\SecretGenerator; class SimpleSecretGenerator implements SecretGenerator { public $chars = '0123456789abcdefghijklmnopqrstuvyxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; public $chars_count = 62; public function generate(): string { $...
true
94e248c316569e371d01945d56be822643fb4266
PHP
syoooooooooyu/Purin
/src/SSC/Form/ShopForm/SellSelectForm.php
UTF-8
1,539
3.03125
3
[]
no_license
<?php namespace SSC\Form\ShopForm; use pocketmine\form\Form; use pocketmine\form\FormValidationException; use pocketmine\item\Item; use pocketmine\Player; class SellSelectForm implements Form { /** * @var mixed */ private $money; /** * @var Player */ private $player; private $data; /** * SellSele...
true
712b537e4f041a1ac04d671d7894723a454f4222
PHP
dzulfikar68/simali-1
/modul/evaluasi/index.php
UTF-8
4,589
2.546875
3
[]
no_license
<?php session_start(); error_reporting(0); if (isset($_SESSION['id'])) { include('header.php'); ?> <!DOCTYPE html> <html> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1>Evaluasi</h1> <ol class="breadcrumb"> <li><a href="../../admin.php"><i class="fa ...
true
a856df4bdce280349e8d0b988cd6ebb5824a3dd8
PHP
geekgirljoy/PHP
/Loose Code/GeneratePrimeNumbers.php
UTF-8
2,039
3.671875
4
[]
no_license
<?php set_time_limit ( 3600 ); // max run time 1 hour (adjust as needed) // No Limit to memory, unless computing a huge number // of primes this won't be an issue as this is mainly // a CPU intensive process but to be safe I am giving // the code an "unlimited" work space. ini_set('memory_limit', '-1'); function isp...
true
413bba3105f2ab59185c36b58b2ff93cc2173c11
PHP
domainvalidity/php-sdk
/src/Host.php
UTF-8
943
2.890625
3
[]
no_license
<?php namespace Domainvalidity\Sdk; class Host { public function __construct( public bool $valid, public string $original, public ?string $host = null, public ?string $domain = null, public ?string $tld = null, ) { } public function isValid(): bool { ...
true
f079c20b89754ea4a59631bdda0aaeb0ab6269b1
PHP
JiriFurda/IIS-proj
/app/Supplier.php
UTF-8
525
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Supplier extends Model { // --- Laravel settings --- public $timestamps = false; public $guarded = ['id']; // --- Eloquent relationships --- public function medicines() { return $this->belongsToMany(Medicine::class)...
true
a62aafdc42b1f1cd053e54143b7360450f63fac7
PHP
Salomondiei08/Gestion-Inscriptions
/enregistrer.php
UTF-8
3,549
2.703125
3
[]
no_license
<?php //­­­­­­­­­­­­­­­­­ // inscrit.php //­­­­­­­­­­­­­­­­­ $name=isset($_GET['name'])?$_GET['name']:''; $firstname=isset($_GET['firstname'])?$_GET['firstname']:''; $email=isset($_GET['email'])?$_GET['email']:''; $cuser=isset($_GET['cuser'])?$_GET['cuser']:''; $ERROR=utf8_decode(isset($_GET['ERROR'])?$_GET['...
true
e1deb5c390138c1d93c369e24eac8cb49c5faa79
PHP
lonsade/web
/adder/edit.php
UTF-8
1,716
2.78125
3
[]
no_license
<?php if($_SERVER['REQUEST_METHOD'] == 'POST'){ header('Content-Type: text/html; charset=utf-8'); require_once 'simple_html_dom.php'; require_once 'names_and_party_and_type_heroes.php'; function make_good($string){ return preg_replace("/ +/"," ",mysql_real_escape_string(trim(strip_tags($string)))); } define...
true
b454d39d0985974a21d48ccf16cab062fa830e26
PHP
linox/retornobanco
/src/retornoBanco/RetornoBanco.php
UTF-8
9,300
3.0625
3
[]
no_license
<?php /**Classe que implementa o design pattern Strategy, * para leitura de arquivos de retorno de cobranças dos bancos brasileiros, * vincular uma classe para processamento de uma carteira específica * de arquivo de retorno, e criando uma interface única * para a execução do processamento do arquivo.<br/> */ namespa...
true
2b514a9168c816b81848f0f9244ab4cf30c58470
PHP
snu1743/yii2-flcms
/src/repositories/CmsAccess.php
UTF-8
2,766
2.703125
3
[]
no_license
<?php namespace fl\cms\repositories; use yii; use yii\base\Exception; use fl\cms\helpers\page\PageConstants; use fl\cms\helpers\cms\CmsConstants; class CmsAccess { /** * Запрос на создание прав * @param array $rules * @throws yii\db\Exception */ public function setRules(array $rules) ...
true
f9e9742c01f9b34b8d8f4a5f5587545c7cdec729
PHP
kubrakovd/social
/common/models/Friends.php
UTF-8
1,768
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "friends". * * @property integer $user_id * @property string $accepted * @property string $income_requests * @property string $outcome_requests */ class Friends extends \yii\db\ActiveRecord { /** * @inheritdoc */ ...
true
33bf0c5a0b3293857f9bcce609b5908666b9101d
PHP
vilkoz/camagru
/application/controllers/controller_register.php
UTF-8
3,332
2.734375
3
[]
no_license
<?php /** * */ class Controller_register extends Controller { function __construct() { parent::__construct(); $this->model = new Model_register(); } function check_session() { session_start(); if (isset($_SESSION['user']) && !empty($_SESSION['user'])) { $host = $_SERVER['REQUEST_...
true
4a1159d4fae04b1999336386eb63117805922f6f
PHP
fibeesoft/FibeeEdu
/Fibee Edu/Assets/phpScripts/addtexttask.php
UTF-8
420
2.609375
3
[]
no_license
<?php include_once 'dbconn.php'; $question_p = $_POST["question"]; $answer_p = $_POST["answer"]; $class_p = $_POST["class"]; $solution_p = $_POST["solution"]; $stmt = $conn->prepare("INSERT INTO MathTasks (question, answer, class, solution) VALUES (?, ?, ?, ?)"); $stmt->bind_param("ssss", $question_p, $answer_p, $cl...
true
317434eb1a3549ce6ebcd16586077d9b5419cf8c
PHP
imtheman/pyrocms-members
/models/members_m.php
UTF-8
1,060
2.671875
3
[]
no_license
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Members_m extends MY_Model { function count() { return $this->db->count_all('members'); } function getMembers($params = array()) { if(isset($params['limit'])){ $lim = $params['limit'][0]; $off = $params['limit'][1]; } ...
true
3d1ac4d63e27ee4997dad3a43986887ee7fa6bbd
PHP
kuzovkov/test1
/src/AppBundle/Entity/BlogPost.php
UTF-8
4,096
2.578125
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use AppBundle\Libs\ImgUpload; /** * BlogPost * * @ORM\Table(name="blog_post") * @ORM\Entity(repositoryClass="AppBundle\Repository\BlogPostRepository") */ class BlogPost { /** * @var int * * @ORM\Column(name="id", type="inte...
true
61f88a628d18f5e7a0af7c7f8ac10bb57fa97af2
PHP
marcinekY/Y
/war/y.system/lib/Template.php
UTF-8
1,155
2.640625
3
[]
no_license
<?php class_exists('Item'); class Template extends Item { //nadpisane zmienne klasy Item protected static $table = 'templates'; public static $confType = 'template'; protected static $className = 'Template'; /* protected static $instances = array();*/ protected static $instancesBy = arr...
true
5ecaaaba65e9689367aa3ddf662843fa9611f72f
PHP
avillucas/programacion3
/comandatp/core/Dao/SectorEntidadDao.php
UTF-8
1,248
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Lucas-notebook * Date: 25/11/2018 * Time: 6:02 PM */ namespace Core\Dao; use Core\Entidad; use Core\Sector; class SectorEntidadDao extends EntidadDao { /** @var string $nombre */ public $nombre; public static function insertar(Entidad $entidad) { ...
true
f335a734f5e54b3dce18dac2d1305065e58b1d1c
PHP
SumitQuad/topcontroller
/php/email.php
UTF-8
6,608
2.578125
3
[]
no_license
<?php require_once 'PHPMailer.php'; require_once 'Exception.php'; require_once 'SMTP.php'; $link = mysqli_connect("localhost", "root", "", "samples"); if (mysqli_connect_error()){ die("<script>console.log('There is a problem with mysql connection')</script>"); } $email=""; $from_ip = $_SERVER['REMOTE_ADDR']; $...
true
4e4b8e3485d4c5229ebf9b108b2f2d6b6794ed2f
PHP
dimabdc/laravel-box
/src/LaravelBox/Commands/Folders/GetFolderItemsCommand.php
UTF-8
1,367
2.65625
3
[ "MIT" ]
permissive
<?php namespace LaravelBox\Commands\Folders; use GuzzleHttp\Client; use LaravelBox\Factories\ApiResponseFactory; use LaravelBox\LaravelBox; class GetFolderItemsCommand extends AbstractFolderCommand { private $offset; private $limit; private $fields; public function __construct(LaravelBox $app, $path...
true
384e20a85cabfee607aceb47c8b96b796a7f264e
PHP
LoraMS/TechModule
/ArraysAdvancedLab/array-of-products.php
UTF-8
214
3.375
3
[ "MIT" ]
permissive
<?php $n = intval(readline()); $arr = []; for ($i = 0; $i < $n; $i++) { $product = readline(); $arr[] = $product; } sort($arr); for ($j = 0; $j < count($arr); $j++) { echo ($j + 1).".$arr[$j]\n"; }
true
78f89c2cd68e2c36c01eca3d2a5def1467e79a53
PHP
gangaoh/lop-opensdk-php
/src/Request.php
UTF-8
2,060
2.734375
3
[]
no_license
<?php namespace Lop\LopOpensdkPhp; interface Request { /** * @return string */ function getDomain(); /** * @param string $domain * @return void */ function setDomain($domain); /** * @return string */ function getPath(); /** * @param string $path ...
true
b4341b4fc7da1d69d2926586d47254660b204594
PHP
msantanagonzalez/fractumIU
/www/Model/iteracion.php
UTF-8
5,034
2.578125
3
[]
no_license
<?php class Iteracion{ private $idIncid; private $nIteracion; private $fechaIter; private $hInicio; private $hFin; private $estadoItera; private $descripIter; private $costeIter; private $dniUsu; public function __construct($idIncid = NULL, $nIteracion = NULL, $fechaIter = NULL, $hInicio = NULL, ...
true
be3990e23cb80dc4901713df9ef2b0eaf1e9a843
PHP
gabewei/VCS
/projects/DBinternet/phpPages/read.php
UTF-8
1,435
2.59375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Read</title> <link href="https://fonts.googleapis.com/css?family=Abril+Fatface|Open+Sans" rel="stylesheet...
true
e8618b837f1f0d8801c8dd7ab44eedfd6213d870
PHP
ZoomAppsMobile/ifs
/common/models/Country.php
UTF-8
1,076
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; class Country extends \yii\db\ActiveRecord { public static function tableName() { return 'country'; } public function rules() { return [ [['name', 'status', 'sort'], 'required'], [['status', 'sort'], 'integer'], ...
true
1f47e8c848cbcef5317072df9f92b0de31b1bd5b
PHP
zhacary/PHP-dasar
/db.php
UTF-8
2,026
2.90625
3
[]
no_license
<?php /*clas ini berfungsi untuk memudahkan transaksi dengan mysql terdiri dari fungsi; menghubungkan database, eksekusi data, membaca data, dan menutup koneksi yang terhubung */ class DB{ protected $connection; protected $query; // cukup ubah di sini saja jika berpindah server var $dbhost = "...
true
70248ce3f629bd967912ceaa549810eb1c1b7076
PHP
quarkmarino/multinomina
/multinomina/get_Trabajador_Sucursal.php
UTF-8
2,280
2.546875
3
[]
no_license
<?php //This page is called by an AJAX function at entities.js and gets some values from table Sucursal include_once('connection.php'); if(!isset($_SESSION)) session_start(); $conn = new Connection(); $values = explode(',',$_POST['values']);//values is set at javascript function get_options() at entities.js ...
true
27189e86b096839e50e4900975d2c057b8f41afa
PHP
massipasquesi/symfony-filmstarsevaluation
/src/AppBundle/Exception/EventListenerException.php
UTF-8
827
2.78125
3
[]
no_license
<?php namespace AppBundle\Exception; class EventListenerException extends AppBundleException { protected static $predifinedMessages = array( 1 => 'badClassEventParameterMsg' ); public static function getPredifinedMessages($key, $args = array()) { $message_call = $this->predifinedMessa...
true
6b013cbca6e4a913d02aa958c9d004a561e32596
PHP
lwj1435/eat_admin
/api/protected/models/ProGoodsModel.php
UTF-8
1,941
2.640625
3
[]
no_license
<?php class ProGoodsModel extends BaseModel { private $sTableKey; public function __construct(){ $this->sTableKey = "pro_goods"; parent::__construct($this->sTableKey); } public function getTableKey(){ return $this->sTableKey; } /** * 添加关系 * @param unknown $goods_id * @param unknown $pro_id * @ret...
true
337f9e74ab0d1abe5bcafeacf018c489adcedaf5
PHP
Burhh/MOVIE
/Watch Movie 2/checkCookie.php
UTF-8
777
2.515625
3
[]
no_license
<?php include("class/mysql_adapter.php"); $dbadapter = new Mysql_adapter(); if($_COOKIE['user']!="") { $username = $_COOKIE['user']; $select_favor = "SELECT movNum FROM favor WHERE userName='$username' "; $res_favor = mysql_query($select_favor) or die(mysql_error()); while($arr_favor = mysql_fetch_array($...
true
2ecb119a7b4f520a67955dc5a6788bb3f0daa035
PHP
kristidamayanti/newklink
/application/models/ratings_model.php
UTF-8
1,199
2.625
3
[]
no_license
<?php class ratings_model extends CI_Model{ private $table = "ratings"; private $key = array("KEY_ID"); public function add(){ $data = array( 'id' => $this->input->post('id'), 'total' => $this->input->post('total'), 'updatedt' => $this->input->post('updatedt'), 'pid' => $this->input->post('pid'), ); $this->db->inse...
true
bbedadb923b55664c5aa400eae64a263eb441638
PHP
Kevin-Bridonneau/Formation-Dev-GO
/pool_php_02/ex_04/ex_04.php
UTF-8
541
3.09375
3
[]
no_license
<?php //creation random d'un salt function createSalt() { $text = uniqid(Rand(), TRUE); return substr($text, 0, 5); } // hashage du password + renvoi du tableau avec pasword hash + salt function my_password_hash($password) { $salt = createSalt(); $hash = md5($salt.$password); return array("hash...
true
b332a2b6623bf8da946533de58fd7e2c3f0d6c14
PHP
sichkarev/all-different-directions
/src/Commands/TurnCommand.php
UTF-8
454
2.828125
3
[]
no_license
<?php namespace Sichkarev\Task\Commands; use Sichkarev\Task\Enums\RouteTypeEnum; use Sichkarev\Task\Models\Route; /** * Class TurnCommand * * @package Sichkarev\Task\Commands */ class TurnCommand extends BaseCommand { public static function getCommandName(): string { return RouteTypeEnum::TURN; ...
true
32fbf3e27d47592bb400a72b2f38df7f3a1b5378
PHP
mattgulick91/takeheartlifestyle
/php/uploadUser.php
UTF-8
807
2.765625
3
[]
no_license
<?php include_once "dbConn.php"; //Add user email to database $firstName = mysqli_real_escape_string($conn, $_POST['first-name-input']); $lastName = mysqli_real_escape_string($conn, $_POST['last-name-input']); $userEmail = mysqli_real_escape_string($conn, $_POST['email-input']); $sql = "INSERT INTO users (FirstName,...
true
7f5a8a47e551f78a9c23eff7d9b6eb575426341d
PHP
josecleiton/help-desk-uneb-backend
/src/model/prioridade.php
UTF-8
744
2.921875
3
[ "MIT" ]
permissive
<?php require_once("prioridade_dao.php"); class Prioridade { private $id; private $descricao; function __construct($id = 0) { $this->id = $id; } public function getID() { return $this->id; } public function getDescricao() { return $this->descricao; } public function getJSON() {...
true
fc5eca81c86e93ccaaa2daae554b77f6c4b488c4
PHP
kevinyan815/tizi_api
/application/controllers/tiku/user.php
UTF-8
39,141
2.625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* * 移动题库 用户控制器 */ class User extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('study/tiku_model'); $this->load->model('study/pet_model'); $this->load->mode...
true
f3a52b035a39ef90d7ba83d4adedecbffc5bcdf1
PHP
stepupdream/spread-sheet-converter
/src/DefinitionDocument/Console/DefinitionDocumentCommand.php
UTF-8
3,253
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace StepUpDream\SpreadSheetConverter\DefinitionDocument\Console; use LogicException; use StepUpDream\DreamAbilitySupport\Console\BaseCommand; use StepUpDream\SpreadSheetConverter\DefinitionDocument\Creators\MultiGroup; use StepUpDream\SpreadSheetConverter\DefinitionDocument\Creat...
true
60101e4412e3e1465062b82fcc7f3535a3d0e8e8
PHP
yarri/Atk14Net
/app/forms/fields/boolean_field_form.php
UTF-8
394
2.671875
3
[]
no_license
<?php class BooleanFieldForm extends ApplicationForm{ function set_up(){ $this->set_method("get"); $this->add_field("bool",new BooleanField(array( "required" => false, ))); $this->add_field("another_bool",new BooleanField(array( "required" => false, "widget" => new Select(array( "choices" => arr...
true
f52a8477149b4d073bab226afaaa7bc3dd274ac4
PHP
guilhermednt/api-client-generator
/src/Output/Copy/Serializer/ContentType/XmlContentTypeSerializer.php
UTF-8
13,793
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DoclerLabs\ApiClientGenerator\Output\Copy\Serializer\ContentType; use DoclerLabs\ApiClientGenerator\Output\Copy\Schema\SerializableInterface; use DOMDocument; use DOMElement; use DOMNode; use Psr\Http\Message\StreamInterface; class XmlContentTypeSerializer implements Content...
true
6bff22ae5707c54dc7ee1533fa03b5b02da218a8
PHP
liwenbin88/guansj
/guansjcms/dayrui/models/Sysrole_model.php
UTF-8
2,000
2.625
3
[ "MIT" ]
permissive
<?php /** * 角色模型基类 * * @author billy * @version 1.0 * @datetime 2018-11-30 */ class Sysrole_model extends M_Model { public $prefix; public $cache_file; public function __construct($module) { parent::__construct(); $this->prefix = $this->db->dbprefix('sysrole'); } // ...
true
6fc29f33ae14bea684250cbf6f917ab565df626b
PHP
razmathegreat/GameTracker
/project/gameView.php
UTF-8
4,147
2.6875
3
[]
no_license
<?php session_start(); $userName = $_SESSION['userName']; if (!isset($_SESSION['gameID'])){ $_SESSION['gameID'] = $_POST["gameID"]; } try { $pdo = new PDO('mysql:host=localhost;dbname=gmtracker', 'userName', 'password'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->exec('SET NAMES "...
true
03860966b6dce31d72c957e3225dffd17b5c9803
PHP
illichov11/homeworks
/dz23/recursion.php
UTF-8
277
3.578125
4
[]
no_license
<?php function sum($arr, $index=0){ if ($arr[$index] % 2 == 0){ $arr[$index]; } else $arr[$index] = 0; if (count($arr) === $index +1){ return $arr[$index]; } return $arr[$index] +sum($arr, ++$index); } echo sum([1,9, 6, 5, 2]) . PHP_EOL;
true
d40dda5fdbe1d5ab3a2d5629262935e34ef1babf
PHP
wangguangzhao/-
/tree.php
UTF-8
5,779
3.375
3
[]
no_license
<?php header("content-type:text/html;charset=utf8"); /* 树节点类 构造树数据结构 */ class Tree{ protected $parentNode = null; //父节点 protected $currentNode = null; //当前节点 protected $childNode = array(); //子节点 public function __construct(Tree $currentNode){ $this->currentNode = $currentNode; } //添加子节点 public function a...
true
a2a6afd3cf25e3560c55425e018ab960fd7e2a9b
PHP
ztbcms/ztbcms-Devtool
/Service/ServicePreviewService.class.php
UTF-8
4,272
2.8125
3
[]
no_license
<?php /** * author: Jayin <tonjayin@gmail.com> */ namespace Devtool\Service; use PhpParser\Error; use PhpParser\Node\Stmt\Class_; use PhpParser\ParserFactory; class ServicePreviewService extends DevtoolService { /** * 解析 类文件 * * @param $class_file * @return array */ static functi...
true
f680252d548533846dddb321bc38d713f04d09b2
PHP
fastsitephp/fastsitephp
/scripts/testing-i18n.php
UTF-8
2,749
2.53125
3
[ "MIT", "CC-BY-4.0" ]
permissive
<?php // Test Script for manually testing the I18N class. // In the future this code can be used as a starting point // when creating the full unit tests. In the meantime this // manually helps confirm the class works as expected. // Autoloader and Setup App require __DIR__ . '/../autoload.php'; $app = new \FastSitePH...
true
ed82294c33c48c7fdeed3a45337a41abe9ab8c51
PHP
ahundiak/zayso2010
/osso2012/model/Proxies/OSSOPhyTeamItemProxy.php
UTF-8
1,669
2.53125
3
[]
no_license
<?php namespace Proxies; /** * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. */ class OSSOPhyTeamItemProxy extends \OSSO\PhyTeamItem implements \Doctrine\ORM\Proxy\Proxy { private $_entityPersister; private $_identifier; public $__isInitialized__ = false; public function __con...
true
0fb4bd366f7657766b7262f416ea7ac50be602b0
PHP
eacevedof/prj_phptests
/vendor/theframework/helpers/helper_button_basic.php
UTF-8
2,715
2.671875
3
[]
no_license
<?php /** * @author Eduardo Acevedo Farje. * @link www.eduardoaf.com * @version 1.1.1 * @name HelperButtonBasic * @file helper_button_basic.php * @date 24-12-2016 11:28 * @observations */ namespace TheFramework\Helpers; use TheFramework\Helpers\TheFrameworkHelper; class HelperButtonBasic extends TheFrameworkH...
true
fbb4b0e23ad945bd8e5c114be955510cdb8ea486
PHP
opitz/iDaisy
/functions/attendance_functions.php
UTF-8
6,969
2.578125
3
[]
no_license
<?php //================================================================================================== // // module attendance functions // Last changes: Matthias Opitz --- 2012-11-13 // //================================================================================================== //------------------------...
true
093a197fa623c5a38f7617a971997f7f29a30352
PHP
dhwanitank99/amyweb
/app/Entities/Applications.php
UTF-8
3,065
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: TechnopleSolutions * Date: 06/03/20 * Time: 4:32 PM */ namespace App\Entities; use Doctrine\ORM\Mapping as ORM; /** * Class Applications * @package App\Entities * * @ORM\Entity * @ORM\Table(name="job_applications") */ class Applications{ /** * @var * ...
true
53afd467ed18159078b8d497c7dc6724cf695f2e
PHP
wjxcodes/201706
/tk/Manage/Model/DynamicToModel.class.php
UTF-8
420
2.625
3
[]
no_license
<?php /** * @author demo * @date 2015年6月26日 */ /** * DynamicTo班级动态日志model */ namespace Manage\Model; use Common\Model\BaseModel; class DynamicToModel extends BaseModel{ /** * 批量插入数据; * @param array $data 插入数据表字段数组 * @return bool * @author demo */ public function addDynamicTo($data)...
true
e8e4e81ef1447f7501c5ca35548cded1d955d334
PHP
demijohn/matrice
/src/Matrice/src/Domain/Model/Skillmatrix/Reviewer.php
UTF-8
898
2.8125
3
[]
permissive
<?php declare(strict_types=1); namespace Matrice\Domain\Model\Skillmatrix; use Assert\Assertion; use JsonSerializable; final class Reviewer implements JsonSerializable { private ReviewerId $id; private string $name; public static function fromArray(array $data): self { return new self( ...
true
1d9cfeeb11d66951f945a0ae27fc4ef875960f24
PHP
almunc/ip-checker
/examples/geo-location.php
UTF-8
927
2.640625
3
[]
no_license
<html> <head> <title>Geo Location example</title> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> </head> <body> <center> <?php require("../ip.php")...
true
86f4f4cd71ecf7ceb2581267693ea56c6846b097
PHP
selik44/afflicto
/app/Http/Controllers/Admin/VariantsController.php
UTF-8
3,031
2.5625
3
[]
no_license
<?php namespace Friluft\Http\Controllers\Admin; use Former; use Friluft\Http\Requests; use Friluft\Http\Controllers\Controller; use Friluft\Product; use Friluft\Variant; use Illuminate\Http\Request; use Input; use Laratable; use Redirect; class VariantsController extends Controller { /** * Display a listing of t...
true
f190a582a12e2987fae5eda789acaf6b71549425
PHP
daoudsleiman/CSC4996_TODO_LIST
/classes/database.php
UTF-8
838
3.15625
3
[]
no_license
<?php /* Database class: Connect/close mariaDB. */ Class Database { protected $connection;//connection string private $host = "127.0.0.1";//host private $user = "root";//username private $password = "";//password private $db = "TODO_APP";//database public function open_connection()//opens databa...
true
bdc8c5cfd100fd91a16c95959ed5ccd7e342b09b
PHP
MComScience/que-ud-municipality-h
/common/components/AutoQueNumber.php
UTF-8
1,143
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Tanakorn * Date: 14/11/2561 * Time: 22:27 */ namespace common\components; use yii\base\Component; class AutoQueNumber extends Component { public $prefix = 1; public $number = 1; public $digit = 6; public function init() { parent::init(); ...
true
19056939d16821e4edfc7f7276854767517cfc69
PHP
nguyenvietmanhit/PHP0920E_SKDA
/Day20_PHP_Session_Cookie/Codes_demo/Draft/demo_cookie.php
UTF-8
1,337
2.90625
3
[]
no_license
<?php /** * demo_cookie.php * Cơ bản về cookie * + Cookie lưu thông tin ngay trên trình duyệt * của bạn, trong khi session lưu trên server -> * có thể biết đc các trang web khi mà truy cập * đang lưu cookie gì trên trình duyệt của bạn, * trong khi session thì ko thể biết * + Cookie thường dùng cho mục đích quả...
true
db2e545e8a2484baf2cb452256eaf268315b905e
PHP
tunicorpora/nexthammer_lumen
/app/Libraries/Utilities.php
UTF-8
1,277
3.0625
3
[]
no_license
<?php class Utilities { public static function open_connection($db_name) { $user = env("DB_USERNAME", true); $password = env("DB_PASSWORD", true); $dbconn = pg_connect("dbname=$db_name user=$user password=$password host=localhost") or die('Could not connect: ' . pg_last_error()); ...
true
665e9cf0bad2e0966532ea565181f8930da87bb2
PHP
catchup-forks/rakkocrm-0415
/app/Modules/core/Database/Seeds/SitesSeeder.php
UTF-8
2,056
2.640625
3
[]
no_license
<?php namespace App\Modules\Core\Database\Seeds; use Illuminate\Database\Seeder; Use DB; use Schema; class SitesSeeder extends Seeder { public function run() { DB::table('sites')->delete(); $statement = "ALTER TABLE sites AUTO_INCREMENT = 1;"; DB::unprepared($statement); $csv = dirname(__FILE__) . ...
true
f84c09d8ebb026e488b4dfd4dee5a5e82e610c1c
PHP
dzhdmitry/cw
/php/break-the-pieces.php
UTF-8
8,886
3.890625
4
[ "BSD-2-Clause-Views", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // Break the pieces // https://www.codewars.com/kata/break-the-pieces class Point { const UP = 'up'; const RIGHT = 'right'; const DOWN = 'down'; const LEFT = 'left'; /** * @var int */ public $y; /** * @var int */ public $x; public function __construct(i...
true
0a6181574db9f7dffd120e66e7d294de49fb9dd3
PHP
E31190286-Prisca-Dewi-Anggita/A_E31190286_Prisca-Dewi-Anggita_Web
/Minggu5/Circle.php
UTF-8
415
3.703125
4
[]
no_license
<?php include 'Shape.php'; /** * Author Naufal Sulthonul Aziz */ class Circle implements Shape { private $radius; private $pi; public function __construct($radius) { $this -> radius = $radius; } public function pi() { return $this -> pi = 3.14; } public function calArea() { re...
true
b6397eb8c4ed0a4e513cf3a92f5e375fcdf725b5
PHP
535977672/test
/php/cache/xcache.php
UTF-8
2,467
3.09375
3
[]
no_license
<?php //xcache /* mixed xcache_get(string name) bool xcache_set(string name, mixed value [, int ttl]) bool xcache_isset(string name) bool xcache_unset(string name) bool xcache_unset_by_prefix(string prefix) int xcache_inc(string name [, int value [, int ttl]]) int xcache_dec(string n...
true
e9b060a74e0e6f7a4f38de8931ac0f11f71cfca9
PHP
tautvydascoding/2018-05-14
/dirbame_cia/diena_17/DESTYTOJAS/2-php-klases-objektai/zmogus.php
UTF-8
172
2.828125
3
[]
no_license
<?php class Zmogus { public $vardas = "nevarde"; // string public $ugis = -999; public function einu() { echo "einu einu <br />"; } } // //
true
986b3b4b8ea436b8e7e9e29dd6065725d1d45035
PHP
kevupton/timetables
/src/Kevupton/Timetables/Helpers/helpers.php
UTF-8
2,370
3.265625
3
[]
no_license
<?php if (!function_exists('to_time')) { /** * Converts a datetime to its time equivalent only. * @param string $datetime converts a string datetime, or any string date, to a time string. * @return string */ function to_time($datetime) { return date('H:i:s', strtotime($datetime)...
true
5934970a6d5c243f9da712f98a83be585269ba7a
PHP
getgrav/grav-plugin-taxonomylist
/classes/taxonomylist.php
UTF-8
2,606
2.640625
3
[ "MIT" ]
permissive
<?php namespace Grav\Plugin; use Grav\Common\Cache; use Grav\Common\Grav; use Grav\Common\Page\Interfaces\PageInterface; class Taxonomylist { /** * @var array */ protected $taxonomylist; /** * Get taxonomy list with all tags of the site. * * @return array */ public func...
true
15eb8fd1da430d0b044995f5895ff92a53fff869
PHP
adaoex/curso-poo
/public/cliente-detalhe.php
UTF-8
1,697
2.78125
3
[]
no_license
<?php if ( ! key_exists('idx', $_GET) ){ echo 'Indice inválido'; } $idx = $_GET['idx']; $tipo = $_GET['tipo']; $db = new \PDO("sqlite:".__DIR__."/../cursopoo.db"); if ($tipo == 'pf'){ $pfDB = new Poo\PDO\ClientePF($db); $cliente = $pfDB->find($idx); }elseif ($tipo == 'pj'){ $pjDB = new Poo\PDO\Cliente...
true
cad5bbd1facd29b094040d80f993f6cf7b8db38f
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/View/Config.php
UTF-8
2,141
2.515625
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\View; use Magento\Framework\View\Asset\Repository; use Magento\Framework\Config\ViewFactory; /** * Handles theme view.xml files */ class Config implements \Magento\Framework\View\Confi...
true
506a4f19f743b3b1fef61cc4934a3ed2887fa565
PHP
cashis2903/designPatterns
/Strategy/TaxGB.php
UTF-8
115
2.703125
3
[]
no_license
<?php class TaxGB implements ITax { public function count($netto) { return $netto * 0.23; } }
true
8a2f684b6f3888c671a5689421a6e6fc987d7b79
PHP
jschwarzenberger/php-exercises
/03-forms/3.1/3.1.php
UTF-8
1,166
3.359375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>3.1</title> </head> <body> <?php /* In the next PHP exercise, you will request input from the user, then move the user's response from one file to another and do something with it. Create two separate files. The first will contain a form with one input field ...
true
2aeca3cfbcae75c034f67a99d287894861e5d532
PHP
sarnado/laravel-processing-core-sample
/app/Core/CardChecker.php
UTF-8
218
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Core; use App\Models\Currency; class CardChecker { public function checked(string $card, Currency $currency): bool { // TODO: check cards in future return true; } }
true
7e41244ca5f80af37e623e61804b4265f82c5d1a
PHP
Joycezhangw/laravelCMS
/app/Services/Models/System/AlbumModel.php
UTF-8
832
2.71875
3
[]
no_license
<?php declare (strict_types=1); namespace App\Services\Models\System; use Illuminate\Database\Eloquent\Model; /** * 相册附件 * Class AlbumModel * @package App\Services\Models\System */ class AlbumModel extends Model { /** * 表名 * @var string */ protected $table = 'sys_album'; /** * 主...
true
db86ff384586e4b4434c78d261752161c9d05f60
PHP
hoaqtruong/CCSF-CS130b-PHP_OO
/Exercises/itunes_controller.php
UTF-8
3,246
2.765625
3
[]
no_license
<?php class ItunesController extends ApplicationController { public $playlist = 'TheClash.xml'; public $sort_by = 'Name'; public $sort_direction = 'up'; public $songs = array(); static $xmlDir = ''; function __construct($request) { sel...
true
4e5b1e60c4528099d951364fde2c6263c79d67aa
PHP
meng-zhu/booking
/models/act.php
UTF-8
2,215
2.75
3
[]
no_license
<?php session_start(); header("Content-Type:text/html; charset=utf-8"); class act { /* 活動列表 */ public function act_list($db){ $result = $db->prepare("SELECT * FROM `act`"); $result->execute(array()); return $result; } /* 建立活動 */ public function create_act($db,$uId,$name,$body,$num,$...
true
c0d079b3cbf943f233b2834fb723e19f5545998b
PHP
aud1ence/phpunit_absolute_number_calculator
/src/AbsoluteNumberCalculator.php
UTF-8
234
3.1875
3
[]
no_license
<?php class AbsoluteNumberCalculator { public function findAbsolute($number) { // throw new RuntimeException('Error'); if ($number < 0) { return -$number; } return $number; } }
true
5a289333cc1b6b0f597af0af0f99d0fd8ccd05d5
PHP
jessicacastro/calculadora-php
/classes/Calculadora.php
UTF-8
714
4.21875
4
[]
no_license
<?php class Calculadora { private $total; private $n1; private $n2; function __construct(){ $this->total = 0; $this->n1 = 0; $this->n2 = 0; } //Getters and Setters public function setNum1($pNum1) { $this->n1 = $pNum1; } public function setNum2($pNum2){ $this->n2 = $pNum2; }...
true
a0c677389d2cf4ea017b9de556ca14d23d0c97ec
PHP
saif-ahmed14/Web-dev-coding-Udemy
/PHP Code/10- Switch.php
UTF-8
364
3.8125
4
[]
no_license
<!DOCTYPE html> <html lang = "en"> <head> <title> Homepage </title> </head> <body> <?php $number1 = 10; $number2 = $number1%2; switch ($number2) { case 0: echo "$number1 is a Even Number"; break; case 1: echo "$number1 is an Odd Number"; break; }?> <pre> You must entered posit...
true
7421c5dd255910b52615ca067c863b87116af75c
PHP
Maurospinosi/php-badwords
/index.php
UTF-8
692
2.671875
3
[]
no_license
<?php $badword = $_GET["censura"]; $title = "Verso Divina Commedia"; $verso = ' "…VIDI UNO CON LA TESTA COSÌ SPORCA DI MERDA CHE NON CAPIVO SE FOSSE UN LAICO O UN ECCLESIASTICO…" '; $lunghezzaStringa = strlen($verso); $autore = "[cit.] Dante, canto XVIII"; $versoCens = str_replace($badword, "*****", $vers...
true
4e8b0f1799cbd88d49d0106e7d2ead840f0126ae
PHP
pankaj-php/Hypleystaging
/wp-content/plugins/wp-graphql/src/Data/MediaItemMutation.php
UTF-8
5,982
2.65625
3
[ "GPL-3.0-only", "LicenseRef-scancode-free-unknown", "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only" ]
permissive
<?php namespace WPGraphQL\Data; use GraphQL\Type\Definition\ResolveInfo; use GraphQLRelay\Relay; use WP_Post_Type; use WPGraphQL\AppContext; /** * Class MediaItemMutation * * @package WPGraphQL\Type\MediaItem */ class MediaItemMutation { /** * This prepares the media item for insertion * * @param array ...
true
95a65024b854f66d8e600b516891810f36dae872
PHP
enalamin/sms_send
/index.php
UTF-8
1,315
2.828125
3
[]
no_license
<?php require_once("sms.php"); if(isset($_POST['btnSubmit']) && $_POST['btnSubmit']=='Send'){ $mobileNumber = $_POST['receiverNumber']; $smsBody = $_POST['textSms']; $sms = new SMS(); $sms->sendSMS($mobileNumber,$smsBody); } ?> <div> <form name="frmSms" method="post" action="index.php" onsubmit="return validateFo...
true
65043743e4bebb7f38ddf8622df1ce5e68dbe3f0
PHP
vmanamino/phpQueryString
/registration.php
UTF-8
1,730
2.953125
3
[]
no_license
<?php $email_string = $_GET['email']; if (!preg_match("/^\w+\@\w+\.\w+/", $email_string)) { //check string against basic email pattern $email_string = "Email invalid"; // declare variable with assignment } if (!($_GET['name'] && $_GET['email']) || $email_string == "Email invalid") { //include possible invalid...
true
75f9961e4b3f14adb7659f55ea46bb2a28b27b3a
PHP
codisart/nightwatch
/src/Service/Package/Update.php
UTF-8
2,307
2.65625
3
[]
no_license
<?php namespace NightWatch\Service\Package; use NightWatch\Client\Gitlab; use NightWatch\Container\Instance; use NightWatch\Container\Manager as ContainerManager; class Update { private $containerManager; private $gitlabClient; public function __construct(ContainerManager $containerManager,Gitlab $gitl...
true
9294fd8bc803d36468564b422d5aa36848574da9
PHP
AlexEvesDeveloper/hl-stuff
/hl-framework/models/managers/Referencing/DataEntry/MissingInformation/ReferenceSubject.php
UTF-8
2,441
3.046875
3
[]
no_license
<?php /** * Class used to identify missing reference subject information. */ class Manager_Referencing_DataEntry_MissingInformation_ReferenceSubject { /** * Identifies the missing information in the reference subject data entry flow. * * @param string $enquiryId * The unique external Enquiry...
true