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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
92084c694d9fce6647271f94cf103e665a54e9fa | PHP | Hiroo-Miyata/laravel-tana | /app/Models/Department.php | UTF-8 | 763 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Department extends Model
{
public function furniture()
{
return $this->hasMany('App\Models\Furniture');
}
public function createDepartment($id)
{
// $array = [];
// $furniture = Department::find($id)->furniture()->shel... | true |
f0e421f1f12394d90c8df6e18b15067e1cfeca92 | PHP | Andrew-Ansu/vibbie-web-project | /index.php | UTF-8 | 2,849 | 2.671875 | 3 | [] | no_license | <?php
include("database.php");
include("functions.php");
session_start();
if (!isset($_SESSION['loggedIn'])) {
header("location: login.php");
}
if(isset($_GET["delete"]) && $_GET["delete"] == true && isset($_GET["medicine_id"]))
{
$medicine_id =intval($_GET["medicine_id"]);
$query = "DELETE FROM medici... | true |
d8f07af171d4ccb5096305703885b97c3f9d335d | PHP | Grapheme/infinity | /app/database/migrations/2014_07_14_124747_create_channels_tables.php | UTF-8 | 1,782 | 2.59375 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateChannelsTables extends Migration {
public function up(){
if (!Schema::hasTable('channel_category')) {
Schema::create('channel_category', function(Blueprint $table) {
$tab... | true |
f54ed34827c0e8fca4cc96f7c7b97b761899531a | PHP | seftomsk/brackets | /src/ResearchInterface.php | UTF-8 | 878 | 3.265625 | 3 | [] | permissive | <?php
namespace Seftomsk\Brackets;
/**
* Interface ResearchInterface
* @package Seftomsk\Brackets
*/
interface ResearchInterface
{
/**
* @param string $openBracket
* @throws \LengthException if length open bracket < or > 1
*/
public function setOpenBracket(string $openBracket): void;
/*... | true |
3c2299db6dc32213677d5ced28deffaf69b6a8e8 | PHP | pbarrag5/battleship | /class/strategy.class.php | UTF-8 | 357 | 3 | 3 | [] | no_license | <?php
class Strategy{
public $strategy;
function __construct($strategy){
$this->strategy = $strategy;
}
function getStrategy(){
return $this->strategy;
}
function smartStrategy(){
//create a smartstraegy
}
function randomStrategy(){
//create a smartstraegy
}
function sweepStrategy(){
... | true |
4bfd2fcc615ee029d0bd6ddcf6edffb4ab420e95 | PHP | gongchengra/arithmetic-php | /package/Other/PokerGames.php | UTF-8 | 5,222 | 3.21875 | 3 | [
"MIT"
] | permissive | <?php
/**
* 扑克牌游戏
*
* @author Pu ShaoWei <marco0727@gamil.com>
* @date 2017/9/18
* @license MIT
* -------------------------------------------------------------
* 随机玩法
*/
// +--------------------------------------------------------------------------
// | 解题方式 | 这儿,可能有用的解决方案
// +---------------------... | true |
9bc57cc1c9dcbaf0f77c158d686c033809bb4165 | PHP | Zelo15/emag | /Models/register.php | UTF-8 | 1,781 | 2.875 | 3 | [] | no_license | <?php
require_once root . "/DB/db.php";
class register
{
private static $table = "users";
public $name;
public $email;
public $password;
public $joined;
public function __construct($name, $email, $password, $joined,$status)
{
$this->name = $name;
$this->... | true |
68c54c7b93eb9f591936807f1849b4d3fd991597 | PHP | phmLabs/Crawler | /PageContainer/PatternAnalyzer.php | UTF-8 | 2,140 | 3.25 | 3 | [] | no_license | <?php
namespace whm\Crawler\PageContainer;
use Psr\Http\Message\UriInterface;
class PatternAnalyzer
{
/**
* The uri that will be analyzed
*
* @var Uri
*/
private $uri;
/**
* Hand over the uri that has to be analyzed
*
* @param Uri $uri
*/
public function __con... | true |
2952b3468512d24d65dc6c35196aee5ddbb635c6 | PHP | fwhat/password | /src/pass/components/FileUtil.php | UTF-8 | 2,008 | 3.078125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Password - A command-line tool to help you manage your password
*
* @author admin@dowte.com
* @link https://github.com/dowte/password
* @license https://opensource.org/licenses/MIT
*/
namespace Dowte\Password\pass\components;
class FileUtil
{
public static function createFile($path, $mode =... | true |
25b3005ff50c532cf399af64862153cc67578c44 | PHP | sk0pa/PHP_shop | /models/OrderRowModel.php | UTF-8 | 1,406 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "order_row".
*
* @property integer $Id_Order_Row
* @property integer $Id_Order
* @property integer $Id_Goods
* @property integer $Number
* @property string $Price
*
* @property Goods $idGoods
* @property Order $idOrder
*/
class O... | true |
37638cf89e45660bc440b93adcbc814cda139b49 | PHP | BlueSolutionsPh/Ascon | /sigdemo_dev/db/getProgDb.php | UTF-8 | 13,338 | 2.609375 | 3 | [] | no_license | <?php
require_once(dirname(__FILE__) . '/signageDb.php');
class GetProgDb extends SignageDb{
/**
* Get an active program guide
*
* @param String $now Run time date and time
* @param String $devId Device ID
* @param array $rows Acquisition record
* @return bool true = get, false = do not ... | true |
f6d6a9884be816d3ba9ac3fea8562591d37dac46 | PHP | lorafbm/easyphp.loc1 | /zakaz.php | UTF-8 | 5,284 | 3.515625 | 4 | [] | no_license | <?php
function wtf($array, $stop = false)
{
echo '<pre>' . htmlspecialchars(print_r($array, 1)) . '</pre>';
if (!$stop) {
exit();
}
}
Class myDate
{
public $holidays = array('04-12-2017', '02-12-2017', '05-12-2017');//массив праздников из дат
public $months_name = array(1 => 'Января', 'Фе... | true |
2952e26290e86c509cdff56a8e95cf7aa703512b | PHP | TomSoucy123/TP1WEB2 | /Vue/accueil.php | UTF-8 | 2,786 | 2.65625 | 3 | [] | no_license | <?php
include ('..\Modèle\voitures.php');
sort($tab_marques);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Concessionnaire Sam et Tom</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="sty... | true |
f02a6784e9bc876ab3dcbfe7f458cf2c4b2cef97 | PHP | qinyudian/web629 | /4.2ajax/1.ajax/1.demo.php | UTF-8 | 272 | 3.078125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
$num = 1234;
echo '<h1>world</h1>';
echo '我的编号是:'.$num.'';
echo "<br>我的编号是:$num";
?>
</body>
</html> | true |
15a78b442db8840b6642d72a94e50448611bc71a | PHP | Athenaovo/MinionBummer | /project2/lib/Bummer/Deck.php | UTF-8 | 2,604 | 3.515625 | 4 | [] | no_license | <?php
// namespace Card;
namespace Bummer;
class Deck {
public function __construct() {
$this->resetDeck();
}
// moved body of construct so we can reset the deck when a new game is started!
public function resetDeck(){
$this->startCard = new Card(14);
for ($i = 1; $i <= 13... | true |
8fd070952b689f0398abf94e40baac75346718d4 | PHP | MichaelJamesParsons/Data-Importer | /src/Helpers/EntityMapper.php | UTF-8 | 5,431 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
namespace michaeljamesparsons\DataImporter\Helpers;
/**
* Class EntityMapper
* @package michaeljamesparsons\DataImporter\Helpers
*/
class EntityMapper
{
/** @var string */
protected $entity;
/** @var string */
protected $primaryKey;
/** @var bool */
protected $importablePrimaryKey... | true |
a702e78142074ce2a745966f2c8a15ad5ef10ff2 | PHP | deborasegui/chocolate | /cliente/ClienteDao.php | UTF-8 | 4,727 | 2.671875 | 3 | [] | no_license | <?php
include_once '../topo.php';
include_once 'Cliente.php';
class ClienteDao{
public function debo(Cliente $cliente){
$connection;
try {
$connection = new PDO('mysql:host=127.0.0.1;dbname=deborachocolateriayreposteria', 'root', '');
$connection->beginTransac... | true |
6694e42f9c49c2eff1830fd74d9e4d4660de8cf5 | PHP | artemeon/image | /src/Plugins/ImageRectangle.php | UTF-8 | 1,684 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Artemeon Core - Web Application Framework.
*
* (c) Artemeon <www.artemeon.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Artemeon\Image\Plugins;
use Artemeon\Image\Image;
/**
*... | true |
c29cfab22c3dba74ea6af21047cd13ac653a3b80 | PHP | afsys/ICMGR | /ohd_v2/mojavi-ohd-classes.php | UTF-8 | 954 | 2.734375 | 3 | [] | no_license | <?php
require_once 'PEAR/JSON.php';
class AjaxAction extends Action
{
function & AjaxAction ()
{
$this->db =& sxDb::instance();
$this->json = new Services_JSON;
$this->res = array (
'errorCode' => 0,
'errorMessage' => 'Ok!'
);
header("Content-type: text/javascript");
}
function execu... | true |
180f23cb6aa0786197e705f9ab1d4faba2faac34 | PHP | marccomia/gracefulcare | /mysite/code/Form/MyForm.php | UTF-8 | 1,794 | 2.78125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Custom Form
*/
class MyForm extends Form
{
public function __construct($controller, $name) {
$fields = new FieldList(
TextField::create("Name")
->setAttribute('placeholder', 'Name*')
->addExtraClass('form-control'),
EmailField::create('Email')
... | true |
169be977ab47798dc09543c1b43e1092d59ce988 | PHP | peterkariukimutuura/SearchDataFromDatabaseUsingAjaxPHPandMysqli | /search.php | UTF-8 | 460 | 2.625 | 3 | [] | no_license | <?php
include 'connect.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name= sanitizeUserInput($_POST['name']);
$query =mysqli_query($conn,"SELECT * FROM users WHERE name ='$name'");
if ($query) {
# code...
if (mysqli_num_rows($query)>0) {
# code...
$row=mysqli_fetch_assoc($query);
$json=json_enco... | true |
6c0f83b9f8688cb4c5ca542dff34a180442ba9b5 | PHP | adandgrp/chainrespo | /class.php | UTF-8 | 1,265 | 3.125 | 3 | [] | no_license | <?php
abstract class objetos
{
protected $_next;
abstract public function makeHtml($message);
public function setNext($next)
{
$this->_next = $next;
}
public function getNext()
{
return $this->_next;
}
}
class header extends objetos
{
/**
* @param mixed $mess... | true |
3309fd82777d1c4789e0b32aea9108be0e7d7fe7 | PHP | gabrielsalazar8486/laravel-ddd-skeleton | /src/ERP/Clients/Application/Response/ClientCatalogsResponse.php | UTF-8 | 798 | 2.625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Medine\ERP\Clients\Application\Response;
use Medine\ERP\ClientCategories\Application\Response\ClientCategoryResponse;
use Medine\ERP\ClientTypes\Application\Response\ClientTypeResponse;
final class ClientCatalogsResponse
{
private $clientCategory = [];
private $cli... | true |
30c1a2b9792ff14364cece240d593f290436a1f3 | PHP | ferd9/asumaretv | /protected/components/WebUser.php | UTF-8 | 1,347 | 2.53125 | 3 | [] | no_license | <?php
/**
* Description of WebUser
*
* @author Elaprendiz - asumaretv http://www.youtube.com/user/JleoD7
*/
class WebUser extends CWebUser {
private $_model;
public function getNombre()
{
$user = $this->loadUser(Yii::app()->user->id);
return is_null($user->nombre)?"Invitado":... | true |
48fbdcc78ca5fa57821eac9a62ab5664a3256f4d | PHP | amphp/postgres | /src/Internal/PgsqlType.php | UTF-8 | 438 | 2.59375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php declare(strict_types=1);
namespace Amp\Postgres\Internal;
/** @internal */
final class PgsqlType
{
private static ?self $default = null;
public function __construct(
public readonly string $type,
public readonly string $delimiter,
public readonly int $element,
) {
}
... | true |
b196628048affd4032ba2cc3551b2b8ea5c47626 | PHP | dixanta/momoengine | /application/helpers/MY_file_helper.php | UTF-8 | 1,237 | 3.046875 | 3 | [] | no_license | <?php
/*
file size
ex: file_size('toto.jpg') -> '3.3 MB'
*/
if ( ! function_exists('file_size'))
{
function file_size($path)
{
$num = filesize($path);
// code from byte_format()
$CI =& get_instance();
$CI->lang->load('number');
$decimals = 2;
if ($num >= 1000000000000)
{
... | true |
25b9a59e1cc230dc8da6673345457aca569326f4 | PHP | Pacotreflip/sao.grupohi.mx | /app/Domain/Core/Repositories/Subcontratos/EloquentAsignacionesRepository.php | UTF-8 | 1,226 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
namespace Ghi\Domain\Core\Repositories\Subcontratos;
use Ghi\Domain\Core\Contracts\Subcontratos\AsignacionesRepository;
use Ghi\Domain\Core\Models\Subcontratos\Asignaciones;
/**
* Class EloquentAsignacionesRepository
* @package Ghi\Domain\Core\Repositories\Subcontratos
*/
class EloquentAsignacionesReposito... | true |
8fbe5fb39ab8b5f790956af038c89bf1ea346968 | PHP | kidkang/mini-program | /src/Command/Command.php | UTF-8 | 683 | 2.625 | 3 | [] | no_license | <?php
namespace Kd\MiniProgram\Command;
use Kd\MiniProgram\XcxException;
use Kd\MiniProgram\Utils;
abstract class Command
{
protected $appid;
protected $appsecret;
protected $url;
abstract protected function getContext($options);
protected function request(){
return Utils::https_request($thi... | true |
60f7ccbee9f35a91153570c311f0a859a759fb81 | PHP | NottingHack/hms2 | /app/HMS/Factories/Tools/ToolFactory.php | UTF-8 | 1,571 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace HMS\Factories\Tools;
use HMS\Entities\Tools\Tool;
use HMS\Entities\Tools\ToolState;
class ToolFactory
{
/**
* Function to instantiate a new Tool from given params.
*
* @param string $name Tool name (as used in mqtt topic and permisions)
* @param string $name ... | true |
8d1fc4bd9bc6d868d1547ce19af3d559b44b7910 | PHP | IoTcat/archive | /Web_Site/Steel15/game/game_dajimu.php | UTF-8 | 26,085 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php //验证是否登录
header("content-type:text/html;charset=utf-8"); ///规定php字符集为utf-8
if(!isset($_COOKIE['login']))///从cookie读取login值,判断是否存在
{
echo "<script>setTimeout(function(){top.location='../index/logout.php';},0)</script>";
}
if($_COOKIE["login"]==15){}//判断login是否为15,否则服务器中断网页加载并提示500错误
//提取cookie中用户特征信息
$code=$_CO... | true |
37a801ce095fa4964bbac7fd65e477e0a7d84400 | PHP | jew977/phpcrawl | /library/exception/RequestException.php | UTF-8 | 403 | 2.734375 | 3 | [] | no_license | <?php
/**
* RequestException.php.
* @author keepeye <carlton.cheng@foxmail.com>
* @license http://www.opensource.org/licenses/mit-license.php MIT
*/
namespace library\exception;
class RequestException extends \Exception
{
public function __construct($message, $code=0, Exception $previous=null)
{
... | true |
a944e94e03be0538285a4f5e594c64693cab7af4 | PHP | FiorelaCiroku/XDTesting-Configurator | /server/tests/Unit/PreflightTest.php | UTF-8 | 1,223 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Tests\Unit;
use Slim\Exception\HttpMethodNotAllowedException;
use Tests\TestCase;
class PreflightTest extends TestCase
{
public function testShouldSendCorsHeadersInDevMode() {
$app = $this->getAppInstance(function() {
$_ENV['ENV'] = 'dev';
});
$request = $this... | true |
9794823c127a48177c32ed54cab856ff07bb264b | PHP | judachury/brexit-tweets | /index.php | UTF-8 | 1,427 | 2.828125 | 3 | [] | no_license | <?php
//Includes require globally
require 'vendor/autoload.php';
require 'config/config.php';
//Connect to the database
try {
$conn = new PDO(
'mysql:host='. $config['database']['host'] .';dbname='. $config['database']['dbname'],
$config['database']['username'],
... | true |
dccd2992a24f8c0f212cc06072f5e0b2748c70e5 | PHP | Gormagrim/POO | /character.php | UTF-8 | 813 | 3.109375 | 3 | [] | no_license | <?php
require_once 'stuff.php';
/**
* class character
*
*/
class character
{
/** Aggregations: */
/** Compositions: */
/*** Attributes: ***/
/**
*
* @access public
*/
public $health = 500;
/**
*
* @access public
*/
public $mana = 1000;
/**
*
* @access public
*/... | true |
7bdb90101fe39a91afe6179769cf8697d9f6b448 | PHP | leonmagee/Simple-Google-Map | /simple-google-map.php | UTF-8 | 2,514 | 2.984375 | 3 | [] | no_license | <?php
/**
* Class simple_google_map
* Google Maps API script in enqueued through 'output_map' method - url includes reference
* to callback function 'initMap' - https://maps.googleapis.com/maps/api/js?callback=initMap
*/
class simple_google_map {
public $lat;
public $lng;
public $title;
public $address;
publ... | true |
cac295ce3f4e9ec8b11d66e958e98157c878e87a | PHP | shauno/sesh | /tests/Unit/MswSurfAreaModelTest.php | UTF-8 | 735 | 2.53125 | 3 | [] | no_license | <?php
namespace Tests\Unit;
use App\MswSurfArea;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase;
class MswSurfAreaModelTest extends TestCase
{
use DatabaseMigrations;
public function setUp(): void
{
parent::setUp();
$this->artisan('db:seed');
}
public f... | true |
00a4797a165d45995771a774c39079c02bca619e | PHP | Dharmendratij/appflower_engine | /lib/parser/static/widgetCategoriesParser.class.php | UTF-8 | 514 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
class widgetCategoriesParser extends XmlBaseElementParser {
public static function parse($node,$parent,$key = null) {
$nodes = self::$parser->fetch("./i:category",$node);
foreach($nodes as $node) {
self::add("categories/".self::$parser->get($node,"catid")."/id",self::$parser->get($node,"catid"))... | true |
67155f826bd7515190da58a90b8c76acb5acc046 | PHP | Luispfa/php-factory-composer | /src/Controller/UserController.php | UTF-8 | 205 | 2.671875 | 3 | [] | no_license | <?php
namespace php\Controller;
abstract class UserController
{
public static function getNickName()
{
return isset($_SERVER['HTTP_X_UNAME']) ? $_SERVER['HTTP_X_UNAME'] : false;
}
}
| true |
6b5ca686e76125746a81683389e22e4a5dc89438 | PHP | smasty/Neevo | /src/Neevo/Cache/MemcacheStorage.php | UTF-8 | 820 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Neevo - Tiny database layer for PHP. (http://neevo.smasty.net)
*
* This source file is subject to the MIT license that is bundled
* with this package in the file license.txt.
*
* Copyright (c) 2013 Smasty (http://smasty.net)
*
*/
namespace Neevo\Cache;
use Memcache;
/**
* Memcache cache storage... | true |
e99f356aa4162ea79fe9b77f52b8c5d66ded08b6 | PHP | riosuga/TestApp | /percobaan/loopingkota.php | UTF-8 | 646 | 3.4375 | 3 | [
"MIT"
] | permissive | <?php
// $a = 'a';
// for($i = 1 ;$i<= 14; $i++){
// echo $i;
// if($i%3 ==0){
// echo '<br>';
// }
// }
// $a = 'a';
// $a++;
// echo $a;
if(0>0){
echo "yey";
}else{
echo "fuck";
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<style type="text/css">
table,tr,td{
b... | true |
8ba0d90f35849c4904fe90fd3e7ea41364ed24ba | PHP | pavelnedved/spurlock | /search/dashboardTile.class.php | UTF-8 | 3,341 | 3.359375 | 3 | [] | no_license | <?php
/**
* Class dashboardTile
*
* Represents a dashboard tile that can be displayed. Holds the necessary information to display a tile of artifacts
*
* @package CollectionsSearch
* @author Michael Robinson
* @author Yang Lu
*/
class dashboardTile
{
/**
* @var array
*/
priv... | true |
8efdeb119345e9af53339d8bb63f1237b76622eb | PHP | Daniil-Trukhan/octo-bundle | /src/Action/Prepare/PrepareRequest.php | UTF-8 | 2,002 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Daniil\OctoBundle\Action\Prepare;
use Daniil\OctoBundle\Enum\Currency;
use Daniil\OctoBundle\Enum\Language;
/**
* Class PrepareRequest
*
* @package Daniil\OctoBundle\Request
*/
final readonly class PrepareRequest
{
public function __construct(
private string ... | true |
3608dec0bf1765e86d351c2c48ac0716e9989afb | PHP | asshurimrepo/telfazi | /app/libraries/Util.php | UTF-8 | 5,853 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
use Aws\S3\S3Client;
class Util{
public function Util(){
}
/**
* Display arrays and objects properly.
*
* @return arrays and objects.
*/
public static function trace($ar, $color = "F00"){
//display objects, array, strings properly.
echo '<pre style="z-inde... | true |
52e79d3d642c0c8e97200bf14261d54c9ccde45e | PHP | Joseuno23/Icetex | /application/models/Parameters/Serie/M_Serie.php | UTF-8 | 2,037 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_Serie extends VS_Model {
public function __construct() {
parent::__construct();
foreach ($_POST as $clave => $valor):
$this->$clave = $valor;
endforeach;
}
function ListSerieAll($id... | true |
88a0f59e2f037adba620d13151b4e00354d88a55 | PHP | OWeb/OWeb-Framework | /OWeb/manage/Events.php | UTF-8 | 1,825 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* @author Oliver de Cramer (oliverde8 at gmail.com)
* @copyright GNU GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* PHP version 5.3 and above
*
* LICENSE: This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pub... | true |
4c354a3af59d8634f41351cfee74eb3f71a265fd | PHP | spotman/kohana-simple-api | /classes/Spotman/Api/ApiResourceProxyInterface.php | UTF-8 | 530 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Spotman\Api;
use BetaKiller\Model\UserInterface;
interface ApiResourceProxyInterface
{
public const INTERNAL = 1;
public const EXTERNAL = 2;
/**
* @param string $methodName
* @param array $arguments
*
* @param \BetaKiller\Model\... | true |
f0eab0f976307e14c5336e5f2a26d2216b9d6bb7 | PHP | zhangjiquan1/phpsourcecode | /youwen21/exwechat/api/account/shortUrl.php | UTF-8 | 936 | 2.59375 | 3 | [] | no_license | <?php
namespace youwen\exwechat\api\account;
use youwen\exwechat\api\BaseApi;
use youwen\exwechat\api\http;
/**
* 获取微信用户
* @author baiyouwen <youwen21@yeah.net>
*/
class shortUrl extends BaseApi
{
private $url = 'https://api.weixin.qq.com/cgi-bin/shorturl?access_token=%s';
private $token;
public funct... | true |
e5da4f37d581e1632d5c5f3d5f0cb9dcc147c3dd | PHP | nanaaikinson/scim-chms | /app/Http/Requests/ValidatePrayerRequest.php | UTF-8 | 911 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidatePrayerRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validatio... | true |
a8a9f561c9a071e772e0d6c8a3aacab50a7c6ec2 | PHP | nilBora/PHP_Store_Framework | /app/Store/Fields/Password.php | UTF-8 | 247 | 2.515625 | 3 | [] | no_license | <?php
namespace Jtrw\Store\Fields;
class Password extends AbstractFieldType
{
public function getValue(): string
{
$value = parent::getValue();
return strlen($value) !== 32 ? md5($value) : $value;
} // end getValue
}
| true |
ea0708006595bb6af66ac2f7c150b1aedd54506a | PHP | gogomor/WebStore | /public_html/model/korisnik.php | UTF-8 | 2,345 | 3.1875 | 3 | [] | no_license | <?php
class Korisnik implements DomenskiObjekat
{
public $id;
public $username;
public $password;
public $email;
public $telefon;
public $uslov;
public function __construct()
{
//namestanje konstruktora da poziva ostale konstruktore u zavisnosti od broja argumenata
//... | true |
454ea0b1f6d5acadcf615d79f1ad21e869c230c8 | PHP | loveqzhi/Pyramid | /Component/Entity/Cache/MemCache.php | UTF-8 | 1,450 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
/**
* @file
*
* Memcached
*/
namespace Pyramid\Component\Entity\Cache;
class MemCache {
protected $cachePrefix = '';
public function __construct($entityType) {
$this->cachePrefix = 'entity:' . $entityType . ':';
}
public function resetCache($ids = null) {
if (... | true |
e778d88ad2fac4a13a70620d8330be97f6ccc552 | PHP | lozynskyi/php-rule-engine | /Traits/RuleEngineResponseTrait.php | UTF-8 | 864 | 2.71875 | 3 | [] | no_license | <?php
/**
* Project_Name: Rule Engine in PHP
* Created_By: Abbas Afsharfarnia (28/06/2019 19:50)
* Project_Address: https://github.com/afsharfarnia/ruleEngine
*/
namespace RuleEngine\Traits;
/**
* Trait RuleEngineResponseTrait
* Description: This a trait to handle rule engine response
*/
trait RuleEngineRespo... | true |
27101f3a44da7de58188adfdc671986100b2d9cb | PHP | chenchuanping/test-swoole | /tcp_server.php | UTF-8 | 756 | 2.828125 | 3 | [] | no_license | <?php
//创建Server对象,监听 127.0.0.1:9501端口
$serv = new swoole_server("127.0.0.1", 9501, SWOOLE_SOCK_TCP);
$serv->set(array(
'worker_num' => 2,
'daemonize' => false,
'max_request' => 10000,
'dispatch_model' => 2,
));
//监听连接进入事件
$serv->on('connect', function ($serv, $fd) {
echo "Client {$fd}: Connect.\... | true |
569536334ce272925443688038ce3f6136bc3a38 | PHP | anuragakg/transport | /application/app/Queries/UserQuery.php | UTF-8 | 2,249 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Queries;
use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use DB;
class UserQuery extends BaseQuery
{
/**
* MO get states query in proposed location
* @param string $id Resource ID
* @return Vdvk
*/
public function viewAllQuery($request=null)
{
... | true |
31a53fa5db7fb6f577dad247f9f49faccb272551 | PHP | miukoba/process-timeline-visualizer | /index.php | UTF-8 | 3,172 | 3 | 3 | [] | no_license | <?php
$date = new DateTime();
$dateParam = $_GET['date'];
if ($dateParam) {
$date = DateTime::createFromFormat('Ymd', $dateParam);
}
$logFileName = $date->format('Ymd') . '.log';
$fp = fopen('./log/' . $logFileName, 'r');
$previousDate = clone $date;
$previousDate->modify('-1 day');
$previousDateParam = http_buil... | true |
cf99d7999f9442da8e11f32b7e2169730ead83af | PHP | commerceleague/api-client-activecampaign | /src/Exception/UnprocessableEntityHttpException.php | UTF-8 | 621 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
*/
namespace CommerceLeague\ActiveCampaignApi\Exception;
/**
* Class UnprocessableEntityHttpException
*/
class UnprocessableEntityHttpException extends ClientErrorHttpException
{
/**
* Returns the errors of the response if there are any
*/
public function getRes... | true |
783f9233f12b22e5ec0f1d1f844e24ec17266174 | PHP | weimingtom/cms_mobile | /lib/classes/model/page.class.php | UTF-8 | 7,859 | 2.703125 | 3 | [] | no_license | <?php
namespace classes\model;
use \MyPDO as MyPDO;
class Page extends Common {
const URL_MAPPING = '[[ID]]-page-[[SLUG]]';
const HEADER_ID = 1;
const FOOTER_ID = 2;
const IS_HEADER = 1;
const ISNOT_HEADER = 0;
const IS_FOOTER = 1;
const ISNOT_FOOTER = 0;
public static function getIncludeTitle($id)... | true |
57abc75d6a1b6b637bca0e39e51e234341385000 | PHP | vikas5singh/mvcphp | /mvc1/not-good.php | UTF-8 | 1,317 | 3.0625 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html>
<head>
<title>Not really a good design</title>
</head>
<body>
<!-- (A) SEARCH FORM -->
<form method="post">
<input type="text" name="search" required/>
<input type="submit" value="Search"/>
</form>
<!-- (B) SEARCH + SHOW RESULTS -->
<div id="results"... | true |
b725b51c4259470d86746a86914aeb8a20fb52b9 | PHP | tickleman/game-of-trust | /strategies/Cheater.php | UTF-8 | 225 | 2.796875 | 3 | [] | no_license | <?php
/**
* Cheater ne donne jamais de pièce, quoi qu'il se soit passé durant le match en cours
*/
class Cheater extends Player
{
/**
* @return boolean
*/
public function decides() : bool
{
return false;
}
}
| true |
80f0821a6af33df5b8e98c0c6fa3347c04837189 | PHP | buzzingpixel/corbomite-http | /src/interfaces/RequestHelperInterface.php | UTF-8 | 2,685 | 2.890625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace corbomite\http\interfaces;
use Psr\Http\Message\ServerRequestInterface;
interface RequestHelperInterface
{
/**
* Gets the Server Request
*/
public function request() : ServerRequestInterface;
/**
* Gets the URI with no leading or trailing slashes
... | true |
48526890c4bb0f89032212fdba5c2be49698987f | PHP | wenjingn/zhanhd-game | /zhanhd/ReqRes/Rank/PlayerRankInfo.php | UTF-8 | 874 | 2.8125 | 3 | [] | no_license | <?php
/**
* $Id$
*/
/**
*
*/
namespace Zhanhd\ReqRes\Rank;
/**
*
*/
use System\ReqRes\Box,
System\ReqRes\Str,
System\ReqRes\Int\U16,
System\ReqRes\Int\U32;
/**
*
*/
use Zhanhd\Object\Player;
/**
*
*/
class PlayerRankInfo extends Box
{
/**
*
* @param Player $p
* @param int... | true |
1bee638d329e50ed40b174e33c97d42a596a7e36 | PHP | xghell/DesignPatterns | /Creational/AbstractFactory/TextFactory.php | UTF-8 | 376 | 2.890625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: wangxiguang
* Date: 11/4/18
* Time: 3:07 AM
*/
namespace DesignPatterns\Creational\AbstractFactory;
class TextFactory
{
public function createHtmlText(string $text): Text
{
return new HtmlText($text);
}
public function createJsonText(string $text)... | true |
13e8e9bd0662089ced2cef7a19da56e1ca846f95 | PHP | jadertao/ECUPear | /class/user.php | UTF-8 | 4,338 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
define('TABLE_USER','user');//用户表名称
define('IS_CHECK',false);//是否进行正确性检查以确保sql符合预期
define('EXP_TIME',4096);//用户会话过期时间(s)
class user{
public $userName;//用户名
public $userIO;//该用户输入输出类
public $data=array();//可存储数据 status状态 menu当前菜单 word用户输入文字(文本内容不加入菜单)
public $menu;//菜单类
public $db;
/**********************... | true |
86430783a165a4213405261c74e96ac94afee523 | PHP | TavoGM/electiva | /header.php | UTF-8 | 1,023 | 2.53125 | 3 | [] | no_license | <?php
/**
* Gustavo Granados
* code is poetry
*/
require_once ('app/Startup.php');
$db = DB::getInstance();
$data = $db->getData("content('{key}')", array('key'=>'name'), true);
$name = $data['content'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran... | true |
a8f52cb88c34fb98d46d73a2525144dbb0389a90 | PHP | heartshare/yiiwiki.com | /protected/views/doc/index.php | UTF-8 | 925 | 2.53125 | 3 | [] | no_license | <?php
$this->pageTitle = '快速查看'.$this->titleSeparator.Yii::app()->name;
?>
<h1>快速查看</h1>
<p>
快速查看方式可以帮助你快速的查看网站的内容。
</p>
<p>
如果您希望使用离线查看请点击下载chm文件:
</p>
<dl>
<?php foreach($models as $model):?>
<dt>
<?php echo $model->name?>
</dt>
<?
if(!empty($model->description))
echo... | true |
27e95436fe9b90238261466e91b782d8cf08302a | PHP | Afinogen/zf2-docs | /module/Application/src/Application/Mapper/AbstractMapper.php | UTF-8 | 10,471 | 2.546875 | 3 | [] | no_license | <?php
namespace Application\Mapper;
use Zend\Db\ResultSet\HydratingResultSet;
use Zend\Db\TableGateway\Feature\GlobalAdapterFeature;
use Zend\EventManager\EventManagerAwareInterface;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcBase\Mapper\AbstractDbMa... | true |
b906b73f2ee7ae6dfbb10284cb40f54de679b38f | PHP | ivancli/ozspy | /app/Contracts/Models/Auth/UserContract.php | UTF-8 | 581 | 2.640625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Ivan
* Date: 15/01/2018
* Time: 11:24 PM
*/
namespace OzSpy\Contracts\Models\Auth;
use Illuminate\Support\Collection;
use OzSpy\Contracts\Models\BaseContract;
use OzSpy\Models\Auth\User;
abstract class UserContract extends BaseContract
{
public function __construct(... | true |
b6681c54d3e33d06bebd321033a2b5aa9e47c0aa | PHP | MAJA-Lin/PHP-Exercise | /core/database/QueryBuilder.php | UTF-8 | 868 | 3.046875 | 3 | [] | no_license | <?php
namespace App\Core\Database;
class QueryBuilder
{
protected $pdo;
public function __construct (\PDO $pdo)
{
$this->pdo = $pdo;
}
public function selectAll($table)
{
$sql = $this->pdo->prepare("select * from {$table}");
$sql->execute();
return $... | true |
47a94a8e217a7452eb674f2cefba3b4b080c1c9e | PHP | hellhandsfiverr/php-unit-test3 | /src/Response/EgiftCatalogProductResponse.php | UTF-8 | 2,887 | 2.65625 | 3 | [] | no_license | <?php
namespace AllDigitalRewards\Omni\Response;
use AllDigitalRewards\Omni\AbstractEntity;
class EgiftCatalogProductResponse extends AbstractEntity
{
private $code;
private $name;
private $min_denomination;
private $max_denomination;
private $denominations;
private $templates;
private $d... | true |
17b822d8b5a9511706264b171dace1799055fab2 | PHP | t-web/doeqs_new | /errors.php | UTF-8 | 2,287 | 2.9375 | 3 | [] | no_license | <?php
class InputException extends Exception{}
class EmailException extends Exception{}
class PasswordException extends Exception{}
class errorHandler{
//Should use InputException.
/*public function err_user($description){//Just a mistake from the user.
//alert(htmlentities($description),-1);
throw new UserExcep... | true |
21a62125eeed3bed0bb499973b83bda26b99a705 | PHP | igor-kuznetsov/php-academy | /Advanced/Patterns/AbstractFactory/HtmlFactory.php | UTF-8 | 280 | 2.6875 | 3 | [] | no_license | <?php
namespace Advanced\Patterns\AbstractFactory;
/**
* Class HtmlFactory
* @package Advanced\Patterns\AbstractFactory
*/
class HtmlFactory extends AbstractFactory
{
public function createText($content): AbstractText
{
return new HtmlText($content);
}
}
| true |
9e7563718b519599b5418314666a7d3b1ceb2808 | PHP | Algatux/wallet-project | /src/AppBundle/Command/AbstractCommand.php | UTF-8 | 858 | 2.75 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class AbstractCommand.
*/
abstract class AbstractCommand extends ContainerAwa... | true |
a1a5f0f8c456ba8ac646a834521de7b1013616f3 | PHP | rntrkmkw/jelly | /codeigniter/application/core/MY_Model.php | UTF-8 | 6,154 | 2.875 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* 親モデルクラス
* @author kamikawa
*
*/
class MY_Model extends CI_Model{
public $CI; // CIオブジェクト
/**
* コンストラクタ
*/
function __construct(){
parent::__construct();
$this->CI =& get_insta... | true |
8d01889edc0ec3d864f5e8b36ac4ed99c552b792 | PHP | rafalx89/pasciak | /zawodnik.php | UTF-8 | 9,500 | 2.640625 | 3 | [] | no_license | <?php
include('strona.inc');
class Zawodnik extends Baza
{
public function setZawodnik($sql_result, $druzyna)
{
$zawartosc = "";
for($i=0;$i<mysql_num_rows($sql_result); $i++)
{
$zawartosc .= '<div class="wyswietl">';
$zawartosc .= '<h3><span id="nazwa">Nazwisko:</span> '.mysq... | true |
a8f552fd3a8df4df3f762cd51d3eae73a4b1131f | PHP | samuraimasa/WebPush | /admin/module/Push/src/Push/Model/Dao/UserTable.php | UTF-8 | 3,365 | 2.640625 | 3 | [] | no_license | <?php
namespace Push\Model\Dao;
use Zend\Db\TableGateway\TableGateway;
class UserTable
{
protected $tableGateway;
public function __construct(TableGateway $tableGateway)
{
$this->tableGateway = $tableGateway;
}
/**
* 全ての行を返す
*
* @return \Zend\Db\ResultSet\ResultSet
*/... | true |
d4cbd1cb9f41f379259d68175d001b2eba9fd03f | PHP | RoySegall/dc | /includes/DrupalConnectReader.inc | UTF-8 | 3,668 | 2.953125 | 3 | [] | no_license | <?php
class DrupalConnect {
/**
* @var
* Holds the key of the app.
*/
private $key;
/**
* @var
* Holds the secret key of the app.
*/
private $secret;
/**
* @var
* The URL of the oAuth output.
*/
private $url;
/**
* @var OAuthSignatureMethod
* A unique oAuth signature ... | true |
ffb87d4c39ccabd357d1ed64877ec6ae4eedc140 | PHP | web100ry/phpEducation | /level3/labs/Решения лабораторных работ/xml/sax.php | UTF-8 | 1,476 | 3.078125 | 3 | [] | no_license | <?php
// Создание парсера
$xml = xml_parser_create("UTF-8"); // Windows-1251 не поддерживается
// Назначение обработчиков начальных и конечных тегов
xml_set_element_handler($xml, "start_tag_handler", "end_tag_handler");
// Назначение обработчика текстового содержимого
xml_set_character_data_handler($xml, "ch... | true |
75bc35662a97ff1f22df41f86218ee75aa220433 | PHP | bobroadway/learning_projects | /php/php_course_work/project_3/remove_post.php | UTF-8 | 3,577 | 2.625 | 3 | [] | no_license | <?php require_once('authorize.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
... | true |
0ca0caa7ff5cd00b056bc54e9b042051bb97e2a4 | PHP | mekjr1/ucmestoque | /administrador-faculdade/FuncoesPhp/EditarPerfil.php | UTF-8 | 1,516 | 2.515625 | 3 | [] | no_license | <?php
session_start();
include_once 'conexao.php';
$id = filter_input(INPUT_POST,'id', FILTER_SANITIZE_NUMBER_INT);
$senha =md5( filter_input(INPUT_POST,'palavra-passe', FILTER_SANITIZE_STRING));
$email= filter_input(INPUT_POST,'email', FILTER_SANITIZE_STRING);
$cell= filter_input(INPUT_POST,'telefone', FILTER_SANITIZ... | true |
68406e52f84dda85e3bba2b1a442718d1a3d7e30 | PHP | vuchkov/datatables-bundle | /tests/Fixtures/AppBundle/Entity/Company.php | UTF-8 | 1,514 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
/*
* Symfony DataTables Bundle
* (c) Omines Internetbureau B.V. - https://omines.nl/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Tests\Fixtures\AppBundle\Entity;
use Doctrine\Common\C... | true |
fe37d32c7ee3292215019cd859f4d2a93784491e | PHP | EstevanTn/clident | /module/Application/src/Model/Entity/Odontograma.php | UTF-8 | 1,143 | 2.59375 | 3 | [] | no_license | <?php
namespace Application\Model\Entity;
class Odontograma extends IEntity {
var $ID_PACIENTE;
var $ID_ODONTOGRAMA;
var $FECHA_CREACION;
var $FECHA_MODIFICACION;
var $USUARIO_CREACION;
var $USUARIO_MODIFICACION;
public function exchangeArray(array $data) {
$this->ID_ODONTOGRAMA =... | true |
65f061536ece3b262e3fef8515a7ea19a35e14c4 | PHP | thinkphps/FruitMall_Server | /app/Lib/Action/ShippingAction.class.php | UTF-8 | 4,223 | 2.640625 | 3 | [] | no_license | <?php
/**
* 配送地址Action
*
* @author Zonkee
* @version 1.0.0
* @since 1.0.0
*/
class ShippingAction extends AdminAction {
/**
* 添加配送地址
*/
public function add() {
if ($this->isAjax()) {
$province = isset($_POST['province']) ? trim($_POST['province']) : $this->redirect('/');
... | true |
47f5c479f7606395b97042dc782317d37f312afd | PHP | erikjohnmoreno/board_exercises | /app/views/user/register.php | UTF-8 | 3,875 | 2.625 | 3 | [] | no_license | <h1>Register</h1>
<?php if ($user->hasError()): ?>
<div class="alert alert-block">
<h4 class="alert-heading">FAILED!</h4>
<?php if (!empty($user->validation_errors['username']['length'])): ?>
<div><em>Username </em>must be between
<?php html_encode($user->validation['username'][... | true |
b87a323ca649f82214508010763f228d8752856e | PHP | TommyCTran/School-Projects | /Advising Application/StudentInsertDB.php | UTF-8 | 2,195 | 2.875 | 3 | [] | no_license | <?php
/*
Name: Nathaniel Baylon, Tommy Tran, Kyle Fritz
Date: 03/29/2015
Class: CMSC331
Project: Project 2
File: StudentInsertDB.php
File Description: This page inserts information into Student_Info2 and Advising_Appointments2. This will only come up if the last
page was 'StudentAreYouSure.php' and was created.
*/
/... | true |
719c8c03d13b205dd1ea4acb118f9c4b4112bf3c | PHP | ttomilson/is436 | /addservices.php | UTF-8 | 2,800 | 2.703125 | 3 | [] | no_license | <?php
session_start();
if(isset($_SESSION['login_user'])){
$username = $_SESSION['login_user'];
}
?>
<!-- Written by Theresa Tomilson. Displays all messages sent to the user-->
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title> A... | true |
56a35b5da008c489831033c97e0c4a5fda6117e9 | PHP | stepabi/Visur | /app/Services/Thisweek.php | UTF-8 | 322 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace App\Services;
use Carbon\Carbon;
class Thisweek extends BaseEvent
{
public function __construct()
{
$this->min_date =Carbon::now()->startOfWeek()->format('Y-m-d'). " 00:00:00";
$this->max_date =Carbon::now()->format('Y-m-d'). " 23:59:00";
}
... | true |
1dfd64113cba2bf562935945f05e42b3afacd9f6 | PHP | joubertredrat-tests/appprova-dev-test | /src/AppProva/Domain/Builder/InstitutionBuilder.php | UTF-8 | 1,136 | 3.046875 | 3 | [] | no_license | <?php
/**
* @author Joubert RedRat <me+github@redrat.com.br>
*/
namespace AppProva\Domain\Builder;
use AppProva\Domain\Entity\Institution;
/**
* Institution Builder
*
* @package AppProva\Domain\Builder
*/
class InstitutionBuilder
{
/**
* @var Institution
*/
private $institution;
/**
... | true |
725308675040d2d7a62f4b127fa542e44b054ca3 | PHP | ChadTiffin/ChrisAPI | /app/Diagnosis.php | UTF-8 | 564 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Diagnosis extends Chrismodel
{
public $table = 'diagnoses';
public $label = "Diagnoses";
public $label_single = "Diagnosis";
public $table_fields = [
["label" => "Diagnosis", "key" => "diagnosis"],
["label" => "Description", "key" => "diagno... | true |
0702a5d4eda6d66ab2f73c996664e21ce11d3758 | PHP | berni2288/php-gitlab-api | /lib/Gitlab/Api/Users.php | UTF-8 | 1,841 | 2.609375 | 3 | [] | no_license | <?php
namespace Gitlab\Api;
class Users extends AbstractApi
{
public function all($active = null, $page = 1, $per_page = self::PER_PAGE)
{
return $this->get('users', array(
'active' => $active,
'page' => $page,
'per_page' => $per_page
));
}
public f... | true |
322f16f6c667cc354f5c529c77ca6087637bdd60 | PHP | manu-lopez/daw | /DWES/Tema_2/Ejercicios/Tanda 1 (T1)/09-2.php | UTF-8 | 680 | 3.5 | 4 | [] | no_license | <!-- Escribe un programa que calcule el volumen de un cono mediante la fórmula V = 1/3 πr 2 h. -->
<!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>Ejercicio 9</titl... | true |
5b1c55dca12e9dc45efa4e486e69adf6ebb88c40 | PHP | hcyAndroid/MyPHP | /base/表单处理.php | UTF-8 | 1,228 | 2.78125 | 3 | [] | no_license | <?php
var_dump($_POST);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单处理</title>
</head>
<body>
<form action="formresult.php" method="get">
用户名 <input type="text" name="username"> <br>
密码 <input type="password" name="password"> <br>
<input type="submit" value="... | true |
85f42ea60ec9f668bd3a044659616d88523a80eb | PHP | madeleinebourdon/php-webforce-3 | /10 - Inclusions/contact.php | UTF-8 | 3,290 | 2.8125 | 3 | [] | no_license | <?php
include_once(__DIR__."/partials/header.php");
?>
<div class="container mt-5">
<h1>Contact</h1>
<form method="POST">
<!-- email -->
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="email">Email</span>
</div>
<input type="text" class="... | true |
fa83831b6e31be67dbfb747e2df816070c687cfe | PHP | arif-mohammad786/Python-Tutorials-Website | /pyclasses/corepython/multipleinput.php | UTF-8 | 3,603 | 2.71875 | 3 | [] | no_license | <?php
define("TITLE",'multiple inputs');
define("DESCRIPTION",'taking multiple inputs from user in single line');
define("KEYWORD",'multiple inputs');
include("header.php");
include("sidebar.php");
?>
<div class="col-xl-7 mt-5 offset-1 scroller position-relative shadow-lg" id="print">
<div>
... | true |
8de9b124db23bf53b7c93e0154774840874430b9 | PHP | Heidra/Heidradata | /test.php | UTF-8 | 3,803 | 2.625 | 3 | [] | no_license |
<?php
session_start();
$inputErr="";
if(strlen($_GET['input']) > 20){
$inputErr= "<span style='color:red;'> Article name or number cannot be longer than 20 characters</span>";
}
if(strlen($_GET['input']) == 0) {
$inputErr="<span style='color:#3d5c5c;'> Please gi... | true |
6ef94ecca2791a3e22d9bdbf7da0bbf5d2ead6b4 | PHP | chanhduypq/intraportal | /protected/models/Role_management.php | UTF-8 | 3,167 | 2.6875 | 3 | [] | no_license | <?php
/**
* This is the model class for table "role_management".
*
* The followings are the available columns in table 'role_management':
* @property string $id
* @property integer $role_id
* @property integer $function_id
* @property integer $baserole_id
* @property string $created_date
* @property string $l... | true |
a4848ca58fff6aa853d435b204dcfd3c1be75594 | PHP | zircote/Jazsl | /library/Jazsl/Cluster/AddServer.php | UTF-8 | 3,613 | 2.625 | 3 | [] | no_license | <?php
/**
*
* @author zircote
*
*/
class Jazsl_Cluster_AddServer extends Jazsl_RequestAbstract
{
/**
*
* @var string
*/
protected $_httpPath = '/Api/clusterAddServer';
protected $_serverName;
protected $_serverUrl;
protected $_guiPassword;
protected $_propagateSettings = self... | true |
467bb5dcf63e591f97dfbf6473217dae3dfcf80a | PHP | repat/Bitlet | /lib/file.php | UTF-8 | 3,867 | 2.984375 | 3 | [] | no_license | <?
// check for valid email/pass, return true on successful authentication
// add a new file under input user uid
// file type: enum('generic','photo','music','digiart','document','video')
function NewFile($uid, $filename, $type='generic', $fsize=0)
{
$filename = mysql_real_escape_string($filename);
// generate a di... | true |
3d45a4890c1909bdcd1aeaf5c8797de18a825693 | PHP | slx618/php-learning | /demo/Comparisons.php | UTF-8 | 370 | 2.703125 | 3 | [] | no_license | <?php
//http://php.net/manual/zh/types.comparisons.php#types.comparisions-loose
var_dump('php' == 0); // true
var_dump('php' == 1); // false
var_dump('php' == '0'); // false
var_dump('php' == ''); // false
echo '<hr>';
var_dump([] == 0); // false
var_dump([] == '0'); // false
var_dump([] == false); // true
var_dump([]... | true |
be1d1a1a527e2fd895f3ecaaf4074985342a2135 | PHP | kwiess/PeerEvaluationSystem | /ProfessorCreateSurveyVerification_form.php | UTF-8 | 967 | 2.546875 | 3 | [] | no_license | <?php
$localhost = "localhost";
$username = "root";
$password = "";
$database = "PeerEvaluation";
$conn = mysqli_connect($localhost, $username, $password, $database);
if (!$conn) {
echo "<p>Connection failed " . mysqli_connect_error() . "</p>";
} else {
//echo "<p>Connectio... | true |
217d9381444b070beba1d78a8b6544dc0160a1c0 | PHP | F00barInfo/F00bar | /library/constant.php | UTF-8 | 2,082 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
################################################################################
# FORMATTING #
################################################################################
/** @var string Directory separator short h... | true |