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
e707549c995be67f59aece86524d096f214563ec
PHP
arbory/arbory
/src/Repositories/ArboryFilesRepository.php
UTF-8
5,925
2.8125
3
[ "MIT" ]
permissive
<?php namespace Arbory\Base\Repositories; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Support\Facades\Storage; use RuntimeException; use Arbory\Base\Files\ArboryFile; use Illuminate\Http\UploadedFile; use Illuminate\Database\Eloquent\Model; /** * Class ArboryFilesRepository. */ class Arb...
true
30f131fe74a23b38fc81e060ee3e70f18270532d
PHP
Borgesss/SalvaNoix
/funcao.php
UTF-8
788
2.8125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php function upload($tmp,$nome,$largura,$pasta){ $img = imagecreate($tmp); $x = imagesx($img); $y = magesy($img); $altura = ($largura * $y) / ...
true
705f0f325ed2321da31d69a4673cf2453c8d2aba
PHP
Ziarlos/Nerdvana
/class/Chat.php
UTF-8
2,006
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace Nerdvana; /** * @category Social * @package Social * @author Ziarlos <bruce.wopat@gmail.com> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @link https://github.com/Ziarlos */ class Chat { private $_Database; /** * Co...
true
406bb1ffc30d8fdcd291d09b47c2a8a178798b5d
PHP
mygsc/tefl-tv-main
/app/models/Tag.php
UTF-8
269
2.515625
3
[ "MIT" ]
permissive
<?php class Tag extends Eloquent{ protected $table = 'tags'; protected $guarded = array('id'); protected $fillable = ['tags']; public function videos(){ return $this->belongsToMany('Video'); } public function tags(){ return $this->hasMany('TagVideo'); } }
true
a6323adf6689ee6ac80581f67fc02bafa8ed1765
PHP
StefanMacke/dokuwiki-zotero-plugin
/tests/ZoteroEntryTest.php
UTF-8
1,275
2.78125
3
[]
no_license
<?php require_once('..' . DIRECTORY_SEPARATOR . 'ZoteroEntry.php'); class ZoteroEntryTest extends PHPUnit_Framework_TestCase { const ID = "ABC"; const CITE_KEY = "Macke2012"; const TITLE = "Zotero Plugin Documentation"; const AUTHOR = "Stefan Macke"; const DATE = "2012"; /** * @var ZoteroEntry */ private ...
true
904e1dcbb34e59ead62d9edf3712efd7811d8f4c
PHP
sprayjc/projetphp
/www/process-create.php
UTF-8
591
2.96875
3
[]
no_license
<?php //page intermediaire => que du php // importe une database require_once ("database.php"); // instancier une database $database = new Database(); // recuperer les infos du formilaire avec $_POST $nom = $_POST["nom"]; $age = $_POST["age"]; $race = $_POST["race"]; $idMaitre = $_POST["idMaitre"]; // appeler la ...
true
0f91980137ace58f4dab1b792b3d3c3fcce03ab4
PHP
rochamarcelo/TwitterBootstrapCakePHP
/Console/Command/Task/TwitterBootstrapCakePHPTask.php
UTF-8
3,578
2.6875
3
[]
no_license
<?php /** * TwitterBootstrapCakePHPTask file * * MIT License * =========== * * Copyright (c) 2012 Marcelo Rocha <contato@omarcelo.com.br> * * 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 So...
true
072d6703db4fbca948dd9e09219c81a3fa44d488
PHP
ta1s31/DetaShare
/new.php
UTF-8
2,658
2.71875
3
[]
no_license
<?php require_once "./lib/db.php"; require_once "./lib/functions.php"; session_start(); function insertDeta($pdo, $params){ //データ追加 $sql = "INSERT INTO deta (uploadTime, machine, name, memo, path, filetype ) VALUES (:uploadTime, :machine, :name, :memo, :path, :filetype )"; $stmt = $pdo->prepare($sql); ...
true
0813a7a56c0af2d5e8c1fb3e137549af5965e9a0
PHP
monixis/eaditorsearch
/application/controllers/empiresearch.php
UTF-8
14,825
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class empiresearch extends CI_Controller { public function __construct() { parent::__construct(); session_start(); } public function test($val) { $date = date_default_timezone_set('US/Eastern'); echo $val; } public function index() { $date...
true
b7276e87e7cc0510d6ea698cfb5c1742461a1f63
PHP
successdt/postman-tool
/copyandrename.php
UTF-8
367
2.8125
3
[]
no_license
<?php /** * @author successdt * @copyright 2015 */ copyFiles(); function copyFiles($dir = '.'){ $inFiles = scandir($dir); unset($inFiles[0], $inFiles[1]); foreach($inFiles as $inFile){ if(is_dir($inFile)){ copyFiles($dir . '/' . $inFile); } else { $inFile = $dir . '/' . $inFile; copy($inFile,...
true
ebd46d2827210bbae6b583fdddcc821c61ef8772
PHP
valentinFd/php-codelex
/php-basics/classes-and-objects/10_exercise.php
UTF-8
5,456
3.296875
3
[]
no_license
<?php class Video { private string $title; public function getTitle(): string { return $this->title; } private bool $checkedOut; public function isCheckedOut(): bool { return $this->checkedOut; } private array $userRatings; //% of ratings...
true
25fd8767e37228c073c084b7304edbcae19ce841
PHP
duchanhtb/cnan
/admin/CmsTable.php
UTF-8
90,047
2.609375
3
[]
no_license
<?php if (!defined('ALLOW_ACCESS')) exit('No direct script access allowed'); /** * @author duchanh * @copyright 2012 * @desc Core CMS admin */ /* Type: - input:text - input:text:readonly - input:image - input:file - input:multiimages - input:int10 - input:price - input:attribute - input:...
true
0f74321169f532d98483f5f24c64826a0fe5f111
PHP
KICHIRO20/-Myproject_part1-
/OnlineOrderingSystem/avactis-system/core/session.php
UTF-8
11,806
2.640625
3
[]
no_license
<?php /*********************************************************************** | Avactis (TM) Shopping Cart software developed by HBWSL. | http://www.avactis.com | ----------------------------------------------------------------------- | All source codes & content (c) Copyright 2004-2010, HBWSL. | unless specifically n...
true
aec9726dbf4e59c63d6cb3635d2417bac484ed91
PHP
ngadzheva/WebTechnologies-labs-SI19
/Demo 2/src/db.php
UTF-8
4,631
3.453125
3
[]
no_license
<?php //require_once "../config/config.php"; /** * Use this class to work with a database * Only this class will have direct access to the database */ class Database { /** * This is a PDO object, which holds the connection to the DB */ private $connection; ...
true
bab5977c8d9e94c02ce2921702c53fcb76761b81
PHP
esasby/cmsgate-buynow-lib
/src/esas/cmsgate/buynow/dao/ProductBuyNowRepository.php
UTF-8
818
2.671875
3
[ "MIT" ]
permissive
<?php namespace esas\cmsgate\buynow\dao; use esas\cmsgate\dao\Repository; use esas\cmsgate\Registry; abstract class ProductBuyNowRepository extends Repository { /** * @inheritDoc */ public static function fromRegistry() { return Registry::getRegistry()->getService(ProductBuyNowRepository::cl...
true
ea10910a4fa62c818433366b5116fa8ffcc69446
PHP
Faulo/slothsoft-core
/src/IO/Readable/FileReaderInterface.php
UTF-8
288
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Slothsoft\Core\IO\Readable; use SplFileInfo; /** * * @author Daniel Schulz * */ interface FileReaderInterface { public function fromFile(SplFileInfo $sourceFile): void; public function fromString(string $sourceString): void; }
true
0e301c025af3b5f43c3e54b92a1a1ddc4e06ee43
PHP
uk-gov-mirror/ministryofjustice.opg-use-an-lpa
/service-front/app/src/Common/src/Service/Security/UserIdentificationService.php
UTF-8
1,401
2.921875
3
[]
no_license
<?php declare(strict_types=1); namespace Common\Service\Security; use Psr\Log\LoggerInterface; use function hash; class UserIdentificationService { private LoggerInterface $logger; /** * UserIdentificationService constructor. * * @param LoggerInterface $logger */ public function __...
true
da6b1103fe86c55dbe9dce65abc45e31a2e797b9
PHP
dreboard/myapi
/config/functions.php
UTF-8
3,043
2.984375
3
[ "Apache-2.0" ]
permissive
<?php /** * Main functions file * * set_error_handler * set_exception_handler * Dump and die dev tool * * @package MyAPI\Support * @author Andre Board * @version v0.1.0 * @since 0.1.0 * */ if (!function_exists('myErrorHandler')) { /** * Default Error Handler * * @par...
true
e3459a5300f26383f91b457abea1bd819aa67de6
PHP
rrecurse/IntenseCart
/admin/traffic_details_chart.php
UTF-8
7,363
2.53125
3
[]
no_license
<?php require('includes/application_top.php'); require(DIR_FS_CATALOG.'artichow/BarPlot.class.php'); require(DIR_FS_CATALOG.'artichow/LinePlot.class.php'); require(DIR_FS_CATALOG.'artichow/ScatterPlot.class.php'); error_reporting ( E_ALL | E_STRICT); ini_set('error_reporting', E_ALL); ini_set ( "di...
true
fada2feaea6c52fc7be8e20189e938bd1ea33491
PHP
pvdvreede-old/swinestate
/source/website/lib/model/Alert.php
UTF-8
1,141
2.75
3
[]
no_license
<?php /** * Skeleton subclass for representing a row from the 'alert' table. * * * * This class was autogenerated by Propel 1.4.2 on: * * Mon Aug 23 12:32:41 2010 * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it d...
true
ce21161cccf667ee97d40b501c2dfcb071207759
PHP
genj0/bphp-homeworks
/2.2-OOP/2.2.2/classes/users.php
UTF-8
700
2.78125
3
[]
no_license
<?php class Users extends JsonDataArray { function __construct() { parent::__construct(); } public function displaySortedList() { $data = $this->newQuery()->orderBy('name'); $users = $data->getObjs(); $guids = $data->getGuids(); foreach ($users...
true
7327fa6356e6c0c9ae41d9f2684870511d7dc6e7
PHP
sixpathdev/ProjectStarterPHP
/app/views/users.view.php
UTF-8
243
2.5625
3
[]
no_license
<?php foreach ($users as $name) : ?> <li><?= $name->name; ?></li> <?php endforeach; ?> <h2>Submit your name</h2> <form action="/names" method="post"> <input type="text" name="name"> <input type="submit" value="Submit"> </form>
true
71e9ec17bfb84304f801f7c9e1e00544cf9e078d
PHP
nonameptz/stepon-api
/module/User/src/Admin/Adapter/AdminAuthAdapter.php
UTF-8
3,085
2.78125
3
[ "MIT" ]
permissive
<?php namespace User\Admin\Adapter; use User\Entity\User; use Doctrine\ORM\EntityRepository; use User\Enum\UserRole; use Zend\Authentication\Adapter\AdapterInterface; use Zend\Authentication\Result as AuthenticationResult; use Zend\Crypt\Password\Bcrypt; /** * Class AdminAuthAdapter * * @package User\Admin\Adapte...
true
2725c1e36b2e2ddc28c92bccaec1908188885d2a
PHP
jasonlewicki/perfect-build
/Monsters/Gromp.php
UTF-8
570
2.96875
3
[]
no_license
<?php namespace PerfectBuild\Monsters; class Gromp extends \PerfectBuild\Monsters\Monster{ // Constructor public function __construct($level) { parent::__construct(); $this->level = $level; $this->gold = 62; $this->experience = 300; $this->health = 1600 + ($level - 1) *...
true
b4b5000c3be513b7a62faac98cf9dddffff57a7c
PHP
camuthig/laravel-segmentedsyslog
/src/Camuthig/SegmentedSyslog/SegmentedSyslogServiceProvider.php
UTF-8
925
2.515625
3
[]
no_license
<?php namespace Camuthig\SegmentedSyslog; use Camuthig\SegmentedSyslog\SegmentedSyslogWriter; use Illuminate\Log\LogServiceProvider; use Monolog\Logger; class SegmentedSyslogServiceProvider extends LogServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ ...
true
1e7f08df6b28702aba3f0e336e758afb8f7d6bed
PHP
wuvatec/petfinder-php-sdk
/src/Http/Builder.php
UTF-8
2,518
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Petfinder\Http; use Http\Client\Common\Plugin; use Http\Client\Common\PluginClient; use Http\Client\HttpAsyncClient; use Http\Discovery\HttpAsyncClientDiscovery; use Http\Discovery\MessageFactoryDiscovery; use Http\Message\RequestFactory; class Builder { /** * @var ...
true
4fef4e2b2a30ffb1833ebf98e9fde2f68619c3be
PHP
chrishildebrandt/zikula-legacy
/src/system/pnRender/plugins/function.pnusergetlang.php
UTF-8
1,295
2.6875
3
[]
no_license
<?php /** * Zikula Application Framework * * @copyright (c) 2004, Zikula Development Team * @link http://www.zikula.org * @version $Id: function.pnusergetlang.php 27067 2009-10-21 17:20:35Z drak $ * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html * @package Zikula_Template_Plugins * @subpackage Function...
true
c8a049db0742d580ca257f9364ad111b9969ab84
PHP
janice171/webpods
/weddingsite/snippets/getters/getGuestsGUID.php
UTF-8
747
2.625
3
[]
no_license
<?php /** * Wedding site getGuestsGUID * * Copyright 2011 by S. Hamblett <steve.hamblett@linux.com> * * Gets a guests unique guid * * Parameters :- * * $guestId - The id of the guest * */ $guest = $modx->getObject('weddingUserGuest', $guestId); if (!$guest) return "No guest"; $guestArray = $guest->...
true
e9fcaedd8c86efc6fa3dfe6cb29802b569cad567
PHP
FernandoRodriguesDaSilva/logica_php
/function_anonymous.php
UTF-8
901
4.125
4
[]
no_license
<!-- Fazer a variavel receber uma função --> <?php $minha_funcao = function(){ echo "imprindo minha primeira função anonima dentro de uma variavel"; }; $variavel = function($titulo,$corpo,$rodape){ echo "</h1>".$titulo."</h1> <br>"; echo "</h1>".$corpo."</h1> <br>"; echo "</h1>".$rodape."</h1> <br>"; }; // ===...
true
ddde394b71f3602b2406de2a9e3e90374904b473
PHP
veseto/bhapp
/data_manage/calculateseries.php
UTF-8
2,777
2.546875
3
[]
no_license
<?php include("../connection.php"); // $res = $mysqli->query("SELECT * FROM series"); // while ($row = $res->fetch_assoc()) { // $leagueId = $mysqli->query("SELECT leagueId from matches where homeTeam='".$row['team']."' limit 1")->fetch_array()[0]; // $mysqli->query("update series set leagueId=$leagueId where s...
true
4e384e302c305760cf85ec9fe4531a17bd9884e3
PHP
developer-siam/oop-crud
/edit.php
UTF-8
3,551
2.75
3
[]
no_license
<?php require_once('vendor/autoload.php') ?> <?php // class use use App\controllers\Student; /** * class instance */ $student = new Student; /** * id value get from url */ if (isset($_GET['id'])) { $id=$_GET['id']; /** * single student's data */ $single_data=$student -> singleStudent($i...
true
1cb110843b22fed077383fa47ed9d23244a2956b
PHP
emobilis-code-class/mit_php_db_21
/switchcase.php
UTF-8
1,431
3.9375
4
[]
no_license
<?php echo "<h3>Switch Case</h3>"; /** * Switch case * $code ="254" * switch($code){ * * case "254": * echo "Kenya"; * break; * ... * default: * echo "I dont know that country" * break; * * } * * */ $code = "2505"; switch($code){ case '254': # code... echo "Kenya"; ...
true
cbebeecd0153e6e0c476e166ea696081f3cfc8de
PHP
LauBrunette/oyt-website
/src/Entity/Article.php
UTF-8
2,125
2.6875
3
[]
no_license
<?php namespace App\Entity; use App\Repository\ArticleRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=ArticleRepository::class) */ class Article { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column...
true
44b0f69707355ee7f7513f7b0c012ee10cda867e
PHP
thinhnp31/myWIFI
/facebook/my_index.php
UTF-8
363
2.671875
3
[]
no_license
<?php $fbid = $graphObject->getProperty('id'); // To Get Facebook ID $fbfullname = $graphObject->getProperty('name'); // To Get Facebook full name $femail = $graphObject->getProperty('email'); // To Get Facebook email ID echo "Facebook ID: " . $fbid . "<br>"; echo "Fullname: " . $fbfullname . "<br...
true
a7ef78b4f712cd904325d1a07d1131247260575d
PHP
wlivengood/CS50
/pset7/public/funds.php
UTF-8
1,454
3.015625
3
[]
no_license
<?php // configuration require("../includes/config.php"); // if user reached page via GET (as by clicking a link or via redirect) if ($_SERVER["REQUEST_METHOD"] == "GET") { // render form render("funds_view.php", ["title" => "Add Funds"]); } // else if user reached page vi...
true
707173fb3b7e4667da35e55753c195d45adf647f
PHP
sms-js/kipsoen
/app/controllers/PrinciplesController.php
UTF-8
2,494
2.796875
3
[]
no_license
<?php class PrinciplesController extends \BaseController { /** * Display a listing of the resource. * GET /principles * * @return Response */ public function index() { return View::make('principle'); } /** * Show the form for creating a new resource. * GET /principles/create * * @retur...
true
b70b55f466258bb1c53b7b809b3ac93b26035e66
PHP
tachuelota/Sistema-Documentario
/Controllers/PlantillaExpedientePdf.php
UTF-8
4,254
2.640625
3
[]
no_license
<?php require('fpdf/fpdf.php'); class PlantillaExpedientePdf extends FPDF { function encabezadoExpediente() { $this->SetFont('Arial','B',15); $this->SetXY(60, 10); $this->Cell(60,10, utf8_decode('CARGO DEL EXPEDIENTE - INSTITUCIÓN')); //linea $this->Line( 10, 20, 195, 2...
true
d313b6d8e962968c135d73420fc4bb61ec7705af
PHP
emre-edu-tech/larajobboard
/app/Http/Controllers/FavouriteController.php
UTF-8
1,259
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Favourite; use Auth; class FavouriteController extends Controller { // Form button will be added to the jobs index view public function addFavourite(Request $request){ $this->validate($request, [ 'job_id' => 'required|integer'...
true
cf917a158f62facabb3237f14ab59f376e09f70a
PHP
didanurwanda/YiiIgniter
/third_party/YiiIgniter/system/helpers/CJavaScript.php
UTF-8
1,900
3.09375
3
[]
no_license
<?php class CJavaScript { public static function encode($value, $safe = false) { if (is_string($value)) { if (strpos($value, 'js:') === 0 && $safe === false) return substr($value, 3); else return "'" . self::quote($value) . "'"; } els...
true
3a98bb991c65697fbc4f30585f31c05cbaccd49f
PHP
aclopessilva/icombh5
/application/libraries/icomb/Expressao.php
UTF-8
1,141
3.328125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * Classe utilizada pelo IComb para transformar a Expressao (montada pelo usuario) em classe, * e seu metodo avalia se o elemento cumpre com uma determinada condicao */ class Expressao { //put your code here public $atributo; public $pertence = false; public $elementos = array()...
true
5786c1930958bec5261d7aa9932829c9db2f87e2
PHP
seasarorg/s2dao.php5
/test/classes/pdo_sqlite/procedure.php
UTF-8
357
2.921875
3
[ "Apache-2.0" ]
permissive
<?php function sales_tax($sales){ $tax = $sales * 0.2; return (int)$tax; } function sales_tax2($sales){ return (int)$sales * 0.2; } function sales_tax3(&$sales){ $sales = $sales * 0.2; } function sales_tax4($sales, &$tax, &$total){ $tax = $sales * 0.2; $total = $sales * 1.2; } function sal...
true
3579be44eadce0a1dc26e512985c77b430596b1b
PHP
zubairalighafoor/php-project
/signup.php
UTF-8
1,537
2.609375
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>Document</title> </head> <body> <form name="signUpForm" method="POST" action=""> <label>Name</label> ...
true
7981e7ec9aeb4ef8eba8715c7379014102ce845a
PHP
josephldaigle/pl-project
/src/Entity/EntityFactoryInterface.php
UTF-8
539
2.859375
3
[]
no_license
<?php /** * Created by Ewebify, LLC. * Date: 11/5/17 * Time: 11:59 AM */ namespace PapaLocal\Entity; /** * Interface EntityFactoryInterface. */ interface EntityFactoryInterface { /** * Creates an empty instance of $class. * * @param string $class the class name * @return mixed */ ...
true
3fb6e5ab44ceb9a06da626ac19ec728cfa49bb6f
PHP
andrewgs/luminiza
/project/models/feedbackmodel.php
UTF-8
2,228
2.546875
3
[]
no_license
<?php class Feedbackmodel extends CI_Model{ var $fbk_id = 0; var $fbk_fio = ''; var $fbk_note = ''; var $fbk_region = ''; var $fbk_image = ''; function __construct(){ parent::__construct(); } function read_records(){ $this->db->order_by('fbk_id desc'); $query = $this->db->get('feedback'); $da...
true
b3a15718005fac7ed60063d1f2338ed07b637a0b
PHP
suresh-kumar-reddy/self_attendance_project
/mark.php
UTF-8
10,560
2.546875
3
[]
no_license
<?php include"database.php"; session_start(); if(!isset($_SESSION["TID"])) { echo"<script>window.open('teacher_login.php?mes=Access Denied...','_self');</script>"; } if(isset($_GET["rno"])) { $sql="select * from student where RNO='{$_GET["rno"]}'"; $res=$db->query($sql); if($res->num_r...
true
df17e507d4f0fdbaf85d70423662081e61b7c03c
PHP
huertafhm/WTHospMgmt
/Hospital_Management_System/public/DB_RegisterPatient.php
UTF-8
3,736
2.71875
3
[]
no_license
<?php require_once("../private/initialize.php"); //Handle form values sent by signup.php for for signing up $patientName = isset($_POST['name']) ? $_POST['name'] : ""; $patientMobile = isset($_POST['mobile']) ? $_POST['mobile'] : "";; $patientEmail = isset($_POST['email']) ? $_POST['email'] : "";; ...
true
1a5c72ca46bfa26aeaf6aecd7179c29e453e12db
PHP
yuchun0524/Order-Management-System
/update_.php
UTF-8
1,164
2.71875
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>更新訂單</title> </head> <body> <?php ini_set("error_reporting","E_ALL &~E_NOTICE"); //取得資料 $employ_id = $_GET["employ_id"]; $order_id = $_GET["order_id"]; $order_date = $_GET["order_date"]; $arrive_date = $_GET["arrive_date"]; $price = $_GE...
true
4c5f13b184eadb37c62230ea9e958f0b8f71441b
PHP
scriptonius/php-master_blog
/app/Core/Captcha/Captcha.php
UTF-8
1,400
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: igorbulakh * Date: 06.12.2017 * Time: 17:00 */ namespace NTSchool\Phpblog\Core\Captcha; use NTSchool\Phpblog\Core\ServiceContainer; class Captcha implements CaptchaInterface { /** * @var int */ public $symbols = 6; public $img; public $containe...
true
14e40af56a24bbeb62d8cc48c5d64600e058049e
PHP
71AlexKop71/new_project
/admin/classes/GetDate.php
UTF-8
933
3.296875
3
[]
no_license
<?php namespace classes; class GetDate { public function __construct() { $day[0]="воскресение"; $day[1]="понедельник"; $day[2]="вторник"; $day[3]="среда"; $day[4]="четверг"; $day[5]="пятница"; $day[6]="суббота"; $month[0]="Января"; $mon...
true
3ad2977fb4b3ab733a4079542d38c96c984a1648
PHP
KalitaKonrad/flankers
/api/app/Http/Message.php
UTF-8
726
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace App\Http; use Illuminate\Http\Response; class Message { /** * Return ok response with message * * @param string $message * @return \Illuminate\Http\Response */ public static function ok(string $message, $data = []) { return response([ 'message'...
true
9f50282e89395c7586ba550efe85f3e989c9eabf
PHP
koenhoeymans/AnyMark
/src/Plugins/EmailObfuscator/EmailObfuscator.php
UTF-8
1,959
2.96875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace AnyMark\Plugins\EmailObfuscator; use ElementTree\Element; use ElementTree\ElementTree; class EmailObfuscator { public function handleTree(ElementTree $tree): void { $query = $tree->createQuery($tree); $elements = $query->find($query->allElements()); foreach ($elements...
true
8bfa00c5cec2195d98ab67566480c79b1700ce28
PHP
culturesofknowledge/site-portal
/wp-emlo-catalogues/wp-catalogues/wp-content/plugins/json-rest-api/lib/class-wp-json-server.php
UTF-8
19,440
2.65625
3
[ "MIT", "GPL-1.0-or-later", "GPL-2.0-only", "GPL-2.0-or-later" ]
permissive
<?php /** * WordPress JSON API * * Contains the WP_JSON_Server class. * * @package WordPress */ require_once ( ABSPATH . 'wp-admin/includes/admin.php' ); /** * WordPress JSON API server handler * * @package WordPress */ class WP_JSON_Server implements WP_JSON_ResponseHandler { const METHOD_GET = 1; con...
true
6e2facddb1f8ff3fe4784b22422199d25ff6a9be
PHP
yuanlj-tea/CompactTp
/Framework/Data/Model.php
UTF-8
4,888
3.15625
3
[]
no_license
<?php namespace Framework\Data; use Framework\Data\Builder; use Framework\Data\Connector; class Model { // SQL命令构建器, Builder类 protected $builder; // 数据库返回的数据存在这里 protected $data; // 数据库表名, 选填, 默认为类名 protected $table; // 主键, 二选一($unique) protected $identity; // unique key, 二选一($...
true
8b7341151a368106f5173b0d571a5a50e9aa2642
PHP
RAVURISREESAIHARIKRISHNA/php
/basics/array.php
UTF-8
201
3.625
4
[ "MIT" ]
permissive
<?php // Array Creation // $var_name = array(val0,val1,.....); $my_array = array(100,101,102); print_r ($my_array);//Array([0] => 100 , [1] => 101 , [2] => 102) print_r ($my_array[0]);//100 ?>
true
c0921504e242d5cb068a5c3e95b5415fc14dc6a6
PHP
oscardaniel88/Mastering-PHP-7
/Chapter15/B05210_15_22.php
UTF-8
1,688
2.734375
3
[ "MIT" ]
permissive
<?php use Behat\Behat\Tester\Exception\PendingException; use Behat\Behat\Context\Context; use Behat\Gherkin\Node\PyStringNode; use Behat\Gherkin\Node\TableNode; /** * Defines application features from the specific context. */ class FeatureContext implements Context { /** * Initializes context....
true
c7494618b52931196a3cb8049b6d3344ce65b91e
PHP
ThierryLegrosORT/PHP-MySQL
/blog_comment.php
UTF-8
2,092
2.625
3
[]
no_license
<?php session_start(); require_once('header.php'); require_once('menu.php'); require_once('PDOConnect.php'); $req = $bdd->prepare('SELECT id, title, author, content, DATE_FORMAT(date_ajout, "%d/%m/%y %Hh%i") AS create_date FROM blog_billet WHERE id=?'); $req->execute(array($_GET['billet'])); $data = $req->fetch(); $ti...
true
ed5891401967c70439701780b7a73e943393afb8
PHP
WebChemistry/calendar
/src/CalendarMonth.php
UTF-8
1,565
3.09375
3
[]
no_license
<?php declare(strict_types=1); namespace WebChemistry\Calendar; class CalendarMonth { /** @var \DateTime */ private $start; /** @var \DateTime */ private $end; /** @var CalendarEvents */ private $events; public function __construct(\DateTime $start) { $this->start = $start; $this->end = clone $start; ...
true
16c4d6d9f71196d295a1cb945e77bb8ee3564110
PHP
dichanger/yixuncms
/runtime/models/WWW_gongxiang_admin_php/phcolumnmodel.class.php
UTF-8
1,660
2.515625
3
[]
no_license
<?php class PhcolumnModel extends CatModel { function parsetree(){ $option = $this->field('id,pid,title,concat(path,"-",id) as abspath,ord,display,callid')->order("abspath,id asc")->select(); $html = ""; $i = 0; foreach($option as $value){ $class = ($i++%2==0) ? 'light-row' : 'dark-row'; $html .=...
true
740b9a2a8578411d40784a511ebb253b8937829f
PHP
YazidAsykurillah/sb-tech-erp
/database/migrations/2017_05_28_200001_create_time_reports_table.php
UTF-8
671
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTimeReportsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('time_reports', function(Blueprint $table){ ...
true
e3d9fd401d4fccc6265be5bda8566d78b64ddb09
PHP
suuuusan/05_21_toyohitosuzuki
/form/checkform.php
UTF-8
4,602
3.171875
3
[]
no_license
<?php // formが空の場合の処理 if (empty($_POST)) { echo "処理終了"; exit; } // 評価用の数値と文字列の関連付け うまくいかず $ar_rate = array( '5' => 'めちゃ満足', '4' => 'やや満足', '3' => '普通', '2' => 'ちょい不満', '1' => '最低や', ); ?> <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content=...
true
e626e3ec87275df12e50485b59ba6a25ff8fece6
PHP
mikrotik/IcePay
/application/helpers/perfex_func_helper.php
UTF-8
8,662
3.234375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * String starts with * @param string $haystack * @param string $needle * @return boolean */ if (!function_exists('_startsWith')) { function _startsWith($haystack, $needle) { // search backwards starting from hays...
true
f806ce06967ba75aace50554bc294be487936d22
PHP
apache/oodt
/filemgr/src/main/php/ProductPage.class.php
UTF-8
5,470
2.71875
3
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
true
33e56cb5ac764080db02b0813de3201fb59d03e0
PHP
Protoqol/Prequel
/src/Connection/PostgresConnection.php
UTF-8
5,116
2.796875
3
[ "MIT" ]
permissive
<?php namespace Protoqol\Prequel\Connection; use Exception; use Illuminate\Database\Connection; use Illuminate\Database\Query\Grammars\PostgresGrammar; use Illuminate\Database\Query\Processors\PostgresProcessor; use PDO; use Protoqol\Prequel\Database\SequelAdapter; class PostgresConnection extends Connection { p...
true
90cc44dd75408feb9ac481217f40c82533bd02ae
PHP
anders-savill/whiteflybase
/blastsvr/connect_assay.php
UTF-8
1,801
2.609375
3
[]
no_license
<?php //echo 'hello'; //exec("./prerunfile.sh 2>&1", $cmd); move_uploaded_file($_FILES['source']['tmp_name'], 'blastdir/database.fa'); move_uploaded_file($_FILES['query']['tmp_name'], 'blastdir/query.fa'); echo '<br><br>'; exec("./runfile.sh 2>&1", $cmd); exec("./blastrunfile.sh 2>&1", $result); //print_r(get_d...
true
fa14ba24d35d4c320f5f4cebaf6c73a70ebcaefa
PHP
bitmovin/bitmovin-api-sdk-php
/src/Models/EncodingStreamInputDetails.php
UTF-8
1,465
2.640625
3
[ "MIT" ]
permissive
<?php namespace BitmovinApiSdk\Models; use Carbon\Carbon; use BitmovinApiSdk\Common\ObjectMapper; class EncodingStreamInputDetails extends \BitmovinApiSdk\Common\ApiResource { /** @var string */ public $formatName; /** @var float */ public $startTime; /** @var float */ public $duration; ...
true
a91a1810f5bab2c962d1da4f5f0ec7bf5e224be2
PHP
junfengwu/gzfextra
/src/Gzfextra/Filter/File/LowerCaseName.php
UTF-8
698
2.59375
3
[ "MIT" ]
permissive
<?php /** * platform-admin LowerCaseName.php * * @DateTime 13-6-5 上午10:48 */ namespace Gzfextra\Filter\File; use Zend\Filter\StringToLower; /** * Class LowerCaseName * * @package Gzfextra\Filter\File * @author Moln Xie * @version $Id$ */ class LowerCaseName extends StringToLower { public function filt...
true
8c10df2de477b085fceb93853d5843e185077e16
PHP
chadalton/guitar-lesson-website
/login_handler.php
UTF-8
1,308
2.5625
3
[ "MIT" ]
permissive
<?php require_once "Dao.php"; session_start(); if("chadaltonmusic@gmail.com" == $_POST['email'] && "password1" == $_POST['password']){ header("Location: login.php"); } if(isset($_POST["email"]) && $_POST["email"] != ""){ $email = $_POST['email']; $_SESSION["log_email"] = $email; unset($_SESSION['emailNotE...
true
c125d963817cbe2a160f61d3ce3b50ae0178b178
PHP
saifulsaif/onlineApplicationForm
/add_info.php
UTF-8
649
2.625
3
[]
no_license
<?php include 'db.php'; $sql = "INSERT INTO user_info (first_name, last_name,father_name,mother_name,number,email,address,10th_pass,12th_pass,physics,chemistry,biology,college,note,file) VALUES ('$_GET[first_name]','$_GET[last_name]','$_GET[father_name]','$_GET[mother_name]','$_GET[number]','$_GET[email]','$_GET[addres...
true
c3bcc28c0d10aa8d61f7f1d15aef52505a4df524
PHP
joelms90/app-shop
/app/Http/Controllers/Admin/ProductController.php
UTF-8
3,844
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Product; class ProductController extends Controller { public function index(){ $products=Product::paginate(10); return view('admin.products.index')->with(compact('products'));//listado de...
true
fe7bde139ee23fcd404b74be9711385bd824fca1
PHP
YiiLabs/examples_bitrix
/feedback/class.php
UTF-8
3,804
2.625
3
[]
no_license
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); use Bitrix\Main\Loader; class Feedback extends CBitrixComponent { /** * Обрабатываем входящие параметры * @param $arParams * @return array */ public function onPrepareComponentParams($arParams) { if ...
true
53b49849ba8379b1699a2fe1764923000531778d
PHP
inunosinsi/soycms
/cms/soyshop/webapp/src/module/plugins/common_aggregate/logic/AggregateLogic.class.php
UTF-8
2,219
2.640625
3
[]
no_license
<?php class AggregateLogic extends SOY2LogicBase{ private $dao; function __construct(){ SOY2::import("module.plugins.common_aggregate.util.AggregateUtil"); if(!defined("AGGREGATE_WITHOUT_TAX")){ //集計方法 $methods = (isset($_POST["Aggregate"]["method"])) ? $_POST["Aggregate"]["method"] : array(); ...
true
774a945fa3cc9a10e8874fb62e563b403721ba46
PHP
romanblanco/school-projects
/itu/admin/functions.php
UTF-8
6,574
2.546875
3
[]
no_license
<?php abstract class State { const active = 0; const inactive = 1; const waiting = 2; const rejected = 3; const expired = 4; } abstract class EmailType { const pop3 = 0; const imap = 1; const pop3imap = 2; const deactivated = 3; } $EmailTypeDict = array ( 0 => 'POP3', 1 => 'IMAP', 2 => 'POP3 & IMAP', 3 ...
true
eb4fce8ac795171ddf9d9ebc9db8e0a342ca1eae
PHP
axxapy/php_core
/src/Context.php
UTF-8
886
2.671875
3
[ "MIT" ]
permissive
<?php namespace axxapy; use axxapy\Storages\SessionStorage; class Context { private $Config; private $Router; private $Session; private $CacheAdapter; public function __construct(array $config = []) { $this->Config = new Config($config); } public function getConfig() { return $this->Config; } public f...
true
38e185b7819a5b8fed9d0580f45b9eec4aae98bc
PHP
matrix-msu/arcs
/app/Plugin/TwigView/Lib/Twig_Extension_Number.php
UTF-8
2,361
3.03125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php //App::import('Helper', 'Number'); /** * Number Helper Filters * * Use: {{ '3535839525'|size }} //=> 3.29 GB * Use: {{ '0.555'|p(2) }} //=> 0.56 * Use: {{ '5999'|curr }} //=> $5,999.00 * Use: {{ '2.3'|pct }} //=> 2.30% * * * @author Kjell Bublitz <m3nt0r.de@gmail.com> * @package TwigView * @subpackag...
true
6acdb6688b4ee381decd43f28322ab79683b8341
PHP
taherm/nashkw
/database/migrations/2016_03_31_042323_create_branches_table.php
UTF-8
1,056
2.515625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBranchesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('branches', function (Blueprint $table) { ...
true
cdf1d76c484299c88aee4da847bd95cd10432798
PHP
phespro/phespro
/src/Migration/MigrationStateStorage/SQLiteMigrationStateStorage.php
UTF-8
870
2.9375
3
[ "MIT" ]
permissive
<?php namespace Phespro\Phespro\Migration\MigrationStateStorage; use Phespro\Phespro\Migration\MigrationStateStorageInterface; class SQLiteMigrationStateStorage implements MigrationStateStorageInterface { public function __construct(protected \PDO $conn) { $conn->exec(" CRE...
true
160a7567ba15b1fee5dfde20595fb858e5e8faef
PHP
rollerworks/search
/lib/Core/Extension/Core/Type/IntegerType.php
UTF-8
2,671
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the RollerworksSearch package. * * (c) Sebastiaan Stok <s.stok@rollerscapes.net> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Rollerworks\Component\Search\Extension\Core\Typ...
true
9656945d072ace96301ee2dcb01027c16b997a77
PHP
iam-deep/form-tool
/src/Core/InputTypes/FileType.php
UTF-8
11,845
2.53125
3
[ "MIT" ]
permissive
<?php namespace Deep\FormTool\Core\InputTypes; use Deep\FormTool\Core\InputTypes\Common\InputType; use Deep\FormTool\Support\FileManager; use Deep\FormTool\Support\ImageCache; class FileType extends BaseInputType { public int $type = InputType::FILE; public string $typeInString = 'file'; private string ...
true
cbd76203c95ac85d70e06263651119717ed47c64
PHP
julianchaos/ceres-tema-wp
/page-template/dados-content-list.php
UTF-8
1,679
2.515625
3
[]
no_license
<?php $args = array( 'post_type' => 'dado', 'posts_per_page' => -1 ); $query = new WP_Query($args); $lista = array(); while($query->have_posts()) { $query->the_post(); $arquivos = array(); if(have_rows('arquivos_locais')) { while( have_rows('arquivos_locais')) { the_row(); $local = get_sub_fiel...
true
8a86f9b44e47335878ac99154f2798ea8cdfac44
PHP
ToshY/openload-php
/openloadClass.php
UTF-8
4,636
2.71875
3
[ "MIT" ]
permissive
<?php /** * PHP class for Openload/Streamango API * * @author ToishY * @version 1.0.2 */ class OpenloadMain{ private $log; private $key; public $host; function __construct($apiHost, $apiCreds){ $t = json_decode(file_get_contents($apiCreds),true); $this->log = $t['...
true
c0597eb7ef9fc3fee9b29d9f90215e1c528241e5
PHP
pedroluisf/LightCtrl
/www/protected/models/commands/DaliCommand.php
UTF-8
4,593
2.625
3
[]
no_license
<?php class DaliCommand extends Command { const CMD = 'msg'; const ALL = 'all'; private $_data; /** * Gives a readable description of what this command is * @return string */ public function commandDescription() { return 'DALI'; } public function addCommandToQ...
true
c5cb007e10ff53848504290546f30c26330f0344
PHP
Jeriiii/priznani
/public/app/listeners/UploadImageListener.php
UTF-8
1,027
2.515625
3
[]
no_license
<?php /* * @copyright Copyright (c) 2013-2013 Kukral COMPANY s.r.o. */ namespace POS\Listeners; use NetteExt\Session\UserSession; use Nette\Http\Session; /** * Slouží k provedení operací, které se mají uskutečnit pokaždé, když uživatel nahraje nějaký obrázek * * @author Jan Kotalík <jan.kotalik.pro@gmail.com> ...
true
728511ff8d732dbf79064182e90eba461e0e2a36
PHP
sohoUX/ci-api
/common/models/EvaluationArea.php
UTF-8
1,644
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "evaluation_area". * * @property integer $id * @property string $name * @property string $description * @property string $created_at * @property string $updated_at */ class EvaluationArea extends \yii\db\ActiveRecord { /** ...
true
b1a82378c41733240ef91b94ab247f08f70376cf
PHP
atorpos/visa-tracker
/eb5/eb5importer.php
UTF-8
867
2.75
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "va1f4iz0"; $dbname = "sys"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; $...
true
82166bbd2b3fe76137167970d353875db3005b45
PHP
Martineees/DP-2016
/Application/ARQuizServer/web/templates/competitions_tmp.php
UTF-8
1,233
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Martin * Date: 28.2.2017 * Time: 10:20 */ require_once("../../dbConnect.php"); require_once("../../dao/CompetitionsDAO.php"); require_once("../../entities/Competition.php"); use entities\Competition; use dao\CompetitionsDAO; session_start(); //redirect to dashboard if lo...
true
536c2c9293f490283a97cc78aee3ee74c7a0a207
PHP
marcelhoyama/didipedras
/models/cliente.php
UTF-8
799
2.734375
3
[]
no_license
<?php class cliente extends model{ public function cadastrarInteressado($nome,$celular, $email,$mensagem){ try{ $sql="INSERT INTO clientes(nome, celular, email, mensagem, data_cadastro) VALUES(:nome,:celular,:email,:mensagem,:data_cadastro)"; $sql= $this->db->prepare($sql)...
true
d9193759e0d3c02dda9655b47f5dcc3c09930077
PHP
nandymandy1/nuxt-wp-mysql-docker
/wordpress/plugins/wordpress-seo/src/deprecated/frontend/schema/class-schema-article.php
UTF-8
1,178
2.625
3
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft" ]
permissive
<?php /** * WPSEO plugin file. * * @package WPSEO\Frontend\Schema */ use Yoast\WP\SEO\Generators\Schema\Article; /** * Returns schema Article data. * * @deprecated 14.0 * * @since 10.2 */ class WPSEO_Schema_Article extends WPSEO_Deprecated_Graph_Piece { /** * The date helper. * * @var WPSEO_Date_Hel...
true
3c2ac98c3c892099fa131939f65f4d8f72dd1627
PHP
bdefore/bdefore.github.io
/blog/wp-content/themes/squible/builtin/wp_cats_as_tags.php
UTF-8
4,579
2.6875
3
[]
no_license
<?php /* Plugin Name: Cats as Tags Plugin URI: http://www.squible.com/ Description: A complete tagging system built from Wordpress categories Version: 1.0 Author: Theron Parlin Author URI: http://www.squible.org/ */ function popular_tags($smallest=10, $largest=48, $unit="pt", $exclude='', $displaynum=25) { ...
true
bac0365de274fde9276e2d5de846ca5d681ed436
PHP
michaeldouglas/laravel-pagseguro
/src/laravel/pagseguro/Checkout/Metadata/Gamer/GamerInterface.php
UTF-8
517
2.53125
3
[ "MIT" ]
permissive
<?php namespace laravel\pagseguro\Checkout\Metadata\Gamer; /** * Gamer Checkout Interface * * @category Checkout * @package Laravel\PagSeguro\Checkout * * @author Isaque de Souza <isaquesb@gmail.com> * @since 2016-01-12 * * @copyright Laravel\PagSeguro */ interface GamerInterface { /** ...
true
db78e94e316d576c884ff283d69bbc86da607854
PHP
filipefernands/expense-backend
/app/Model/User.php
UTF-8
1,494
2.53125
3
[]
no_license
<?php namespace App\Model; use App\Utils\GenerateSQL as SQL; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Database\Eloquent\Model; class User extends Model { protected $table = "users"; protected $fillable = [ 'id', 'fullname', 'userna...
true
3de89730d18db7bd14f098aee58af6826f2231df
PHP
Karapet94/agat-777
/application/helpers/ak_helper.php
UTF-8
1,914
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! function_exists('akRequired')) { function akRequired() { return '<span class="text-danger">*</span>'; } } if ( ! function_exists('akAddJsFiles')) { function akAddJsFiles($AdditionalJsFiles) { $result = ''; foreach($AdditionalJsFiles as $AdditionalJsFile) { ...
true
78d66dbd87c29cee36b1cdc83eaf660fa6f37dc1
PHP
houdusse/ERP
/Classes/ERP/FonctionaliteManager.class.php
UTF-8
1,733
2.875
3
[]
no_license
<?php namespace shoudusse\ERP; class FonctionaliteManager extends DataManager { private static $instance = null; const TABLE_SQL = 'Fonctionalites'; // Methode pour initalisation Singleton public static function initManager() { if (self::$instance === null) { self::$instance = new FonctionaliteGroupesManager...
true
6ca35f2260dd4bf28a0950359585227e1d6547b8
PHP
tanay28/maxtravel
/maxtravel_bk/application/models/Hotelmanagement.php
UTF-8
3,516
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Hotelmanagement extends CI_Model { public function getHotelList($whereClause,$status=NULL){ $where = ''; if($status==NULL){ $where.= "H.status <> 'DELETED'"; } if(isset($status) && $status!=NULL){ $wh...
true
11dcbf9c059011c4fa28634ea526a0c847d096bb
PHP
adamitchell/Cinew
/website/login.php
UTF-8
514
2.5625
3
[]
no_license
<?php // -------------------------- // Display errors to browser error_reporting(E_ALL ^ E_DEPRECATED); ini_set("display_errors", 1); // -------------------------- //$host=""; //$user="jjl8705"; //$password="dragonboyman55"; //$database="cs4601_jjl8705"; $host=""; $user="groupK"; $password="groupKpass"; $database="c...
true
e1ce9e646237fb9eb40e7b693a39ae6434359d8d
PHP
dadyday/template
/class.templateloopobject.php
ISO-8859-1
2,782
3.21875
3
[]
no_license
<?php abstract class LoopObject implements Iterator { static function getInst($param1, $param2 = null) { return $param1; $type = gettype($param1); switch($type) { case 'array': case 'object': return new LoopEachObject($param1); default: if (is_numeric($param1)) { if (is_null...
true
1571373d77eea6ee20056f14efcff7dca8d36d92
PHP
vinithmt/codes
/TransactionalEmail/Model/Api.php
UTF-8
6,112
2.5625
3
[]
no_license
<?php /** * Listrak Transactional Email Magento Extension * * @category Listrak * @package Listrak_TransactionalEmail * @author MonkeySports Team <vinith.thaithara@monkeysports.com> * @copyright 2017 MonkeySports Inc * #1877 */ class Listrak_TransactionalEmail_Model_Api extends Listrak_Transacti...
true
6ba60eb9c30106caf345af77f2506e62956ec6f4
PHP
tarnawski/mail-app
/src/MailAppBundle/Service/eml/SubscriberEmlGenerator.php
UTF-8
697
2.6875
3
[]
no_license
<?php namespace MailAppBundle\Service\eml; use MailAppBundle\Entity\Subscriber; class SubscriberEmlGenerator { /** * @param $subscribers * * @return string */ public function generateEml($subscribers) { /** @var Subscriber $subscriber */ foreach ($subscribers as $subsc...
true
364a5983be7313d0c621af22111782a7c8806ef8
PHP
SamHennessy/mist
/src/Mist/Cache/_1_0/Pool/Memcached1.php
UTF-8
1,126
2.859375
3
[]
no_license
<?php namespace Mist\Cache\_1_0\Pool; abstract class Memcached1 implements \Mist\Cache\_1_0\Pool { protected $store; public function __construct(\Memcached $memcached) { $this->store = $memcached; } /** * Returns a Cache Item representing the specified key. * * This method ...
true
05f0045cb0835f4fae3fefd97d4d9805ac8002d7
PHP
anaskhafegui/framework
/tests/ApplicationTest.php
UTF-8
893
2.515625
3
[ "MIT" ]
permissive
<?php namespace tests; use Core\Application; use Core\FileSystem\FileSystem; use Core\Hash\Hash; use Core\Http\Request; use Core\Http\Response; use PHPUnit\Framework\Test; use PHPUnit\Framework\TestCase; final class ApplicationTest extends TestCase { /** * hold an application instance. * * @var mi...
true
d75754a58b0cbd2636fc94bd01404deaf7d278b6
PHP
yafetsh/projetweb
/livreur/Entities/livreur.php
UTF-8
792
2.78125
3
[]
permissive
<?php class livreur { private $nom; private $prenom; private $tel; private $email; private $mdp; function __construct($nom,$prenom,$tel,$email,$mdp) { $this->nom=$nom; $this->prenom=$prenom; $this->tel=$tel; $this->email=$email; $this->mdp=$mdp; } function getNom(){ return $this->nom; } functi...
true