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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2edd4b4f4ff9a0fe24cb741081ab38c850c5b68f | PHP | tzyganu/7-wonders-score-v2 | /src/Entity/User.php | UTF-8 | 1,556 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class User
{
/**
* @var int
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var string
* @ORM\Column(type="string", unique=true, nullable=false, leng... | true |
dad7547ae4998c33fed5220c9c70bc0e825c03a0 | PHP | tanyudii/laravel-exception | /src/Facades/LaravelException.php | UTF-8 | 538 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace tanyudii\LaravelException\Facades;
use Illuminate\Support\Facades\Facade;
use Throwable;
/**
* @method static string buildNotificationMessage(Throwable $e)
* @method static void sendNotificationMessage(Throwable $e)
*
* @see \tanyudii\LaravelException\LaravelException
*/
class LaravelException e... | true |
d1e3aef914aff102af6c640e4915749280e2db45 | PHP | pklink/ValidatorChain | /src/Validator/Rule/AbstractLengthImpl.php | UTF-8 | 517 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Validator\Rule;
use Validator\Rule;
/**
* @author Pierre Klink <dev@klinks.info>
* @license MIT See LICENSE file for more information
*/
abstract class AbstractLengthImpl extends AbstractImpl
{
/**
* @var integer
*/
protected $length = 0;
/**
* @param integer $lengt... | true |
a3420047c4991852c684e6631bebafb440c065bb | PHP | baileyherbert/horizon | /src/Exception/ErrorHandlerInterface.php | UTF-8 | 1,222 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Horizon\Exception;
use Horizon\Http\Exception\HttpResponseException;
interface ErrorHandlerInterface {
/**
* Called automatically by the framework when the exception kernel is booted. Useful for initializing a global
* error reporting service.
*/
public function init();
/**
* Handles an ... | true |
45dea1de4c0c85db7d94aa33b8944da3e7f356ff | PHP | adolfhoathyla/Gravadora | /mostra_detalhes.php | UTF-8 | 1,449 | 3.03125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Gravadora Siqueira</title>
</head>
<?php
$local = 'mysql:host=localhost;port=3306;dbname=db_gravadora';
$usuario = 'root';
$senha = 'senha do bd';
$opcoes = array(
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_CASE => PDO::CASE_LOWER
);
try {
$pdo ... | true |
0bb8a2ef20e0c6c89e1e1bd8880a232891d536cd | PHP | hiepknor/demo-lacoviet | /app/helpers.php | UTF-8 | 85 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
function formatPrice($input) {
return number_format($input, 0, '', '.');
} | true |
8cc75c09a160f2ebf871ee5c59b43ddcf25e9b2d | PHP | hiandy168/ERP-1 | /Erp/protected/services/FacilityServices.php | UTF-8 | 5,375 | 2.859375 | 3 | [] | no_license | <?php
/**
* 库存服务
*/
class FacilityServices
{
private static $_containerList; // has cache
private static $_facilityTypeList; // has cache
private static $_facilityList; // has cache
/**
* 清空缓存
*/
public static function clearCache()
{
if(($cache=Yii::app()->... | true |
542f7472af3209d8292dbc141086740816f60507 | PHP | dudulacerdadl/Curso-PHP | /Introdutório/aula05/funcoes.php | UTF-8 | 846 | 3.34375 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Funções Aritméticas</title>
<link rel="stylesheet" href="../Estilo/estilo.css">
</head>
<body>
<div>
<?php
$v1 = $_GET["x"];
$v2 = $... | true |
cf181e4b13c1a2221f3ca12a765b10ca52e4f2c4 | PHP | Yushma/practice_projects | /dbconnection.php | UTF-8 | 4,651 | 2.828125 | 3 | [] | no_license | <?php
session_start();
$server ='localhost';
$userName ='root';
$password = '';
$db = 'practice';
$table = 'person';
$conn = new mysqli($server,$userName,$password,$db);
if($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Insert post data in to db
if(isset($_POST['first_name']) && $... | true |
1eab28c148382ca7561608df7b181df24e59d12f | PHP | darkwebdesign/symfony-addon-pack | /symfony-addon-constraints/src/Collection.php | UTF-8 | 2,972 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright (c) 2017 DarkWeb Design
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | true |
bd6b93583c529dad704da175ba3d78fc55f40830 | PHP | adellantado/bot-rule-engine | /src/Actions/HasVariableAction.php | UTF-8 | 1,456 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace BotRuleEngine\Actions;
class HasVariableAction extends AbstractAction {
public $variable;
public $operator;
public $value;
public $userId;
public static function create($userId, $variable, $operator, $value) {
$instance = new HasVariableAction();
$instance->v... | true |
b8dcb4cae1744b088d96fc9abd900676e617e5e1 | PHP | Areej-Alzarqa/Blog_project | /app/Http/Controllers/Admin/PostController.php | UTF-8 | 4,170 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Post;
use App\tag;
use App\category;
class PostController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public func... | true |
c64d65267251ea559b0d6f891157eb835b430605 | PHP | ramirouvalle/materialshop | /php/materiales.php | UTF-8 | 697 | 2.65625 | 3 | [] | no_license | <?php
include("connection.php");
$query = "SELECT * FROM materiales";
$result = $conn->query($query);
while($row = $result->fetch_assoc()){
echo "<tr class='element'>";
echo "<td>".$row['nombre']."</td>";
echo "<td>".$row['modulo_elastico']."</td>";
echo "<td>".$row['coeficiente_poisson']."</td>";
ec... | true |
4e0b4878bc67954b255285cda08848ea4838fece | PHP | gmtorres/MIEIC_19_20_LTW | /etc/get_places.php | UTF-8 | 317 | 2.796875 | 3 | [] | no_license | <?php
include_once ('../includes/database.php');
$db = Database::instance()->db();
$stmt = $db->prepare('SELECT * FROM User');
$stmt->execute();
$users = $stmt->fetchAll();
foreach( $users as $user) {
echo '<h1>' . $user['userName'] . '</h1>';
echo '<p>' . $user['email'] . '</p>';
}
?> | true |
f467313dc02eda973124ccdd04e6cdaf26bb1f1e | PHP | inquick/MyWebTest | /file3.php | UTF-8 | 442 | 2.796875 | 3 | [] | no_license | <?php
$filename = 'user.php';
date_default_timezone_set('Asia/Shanghai');
if (file_exists($filename)) {
echo "$filename" . '文件的上次访问时间是:' . date("Y-m-d H:i:s", fileatime($filename)) . '<br />';
echo "$filename" . '文件的创建时间是: ' . date("Y-m-d H:i:s", filectime($filename)) . '<br />';
echo "$filename" . '文件的修... | true |
97d1eec3a94ded8723a2b550b519931b98535a0a | PHP | kamisaberi/portal-cms-php | /Classes/ProjectPost.inc | UTF-8 | 2,321 | 3.015625 | 3 | [] | no_license | <?php
require_once 'DataAccess.inc';
class ProjectPost {
public $PostId;
public $Title;
public $Description;
function __construct() {
$this->PostId = 0;
$this->Title = "";
$this->Description = "";
}
}
class ProjectPosts extends ArrayObject {
function __construct() {
... | true |
5ba2bfdc9619ad62fe1c8f8ab229e4d1fc66ca40 | PHP | gerasart/developer-helper | /inc/classes/CloneMetaBox.php | UTF-8 | 3,440 | 2.546875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: skipin
* Date: 06.11.18
* Time: 14:49
*/
namespace DeveloperHelper;
use DeveloperHelper\helpers\AjaxHelper;
use DeveloperHelper\helpers\DomCreator;
use DeveloperHelper\helpers\MultiLanguages;
use DeveloperHelper\helpers\PostTypes;
class CloneMetaBox extends AjaxHelper {... | true |
f210480bc8bdbbc314cafadc330501361f799e2d | PHP | monmonika21/-spe-skill-test-qa | /bilangan_fibonacci.php | UTF-8 | 973 | 3.65625 | 4 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Menentukan angka fibonaci</title>
</head>
<body>
<h2>Deret Fibonacci Dinamis Dengan PHP</h2>
<hr>
<form action="" method="get">
Nilai Ke-n <input type="number" name="n" placeholder="Max 100" required>
Cek fibonacci <input type="number" name="m" required>
<input type="submit" value... | true |
db935e03788a00a3fd4823d4e3165b601e577f0b | PHP | cristian1990/PHP | /14. Estructura Repetitiva FOR/index.php | UTF-8 | 370 | 4.0625 | 4 | [] | no_license | <?php
//Tablas de multiplicar
for ($i=0; $i < 10; $i++) {
for ($j=0; $j < 10; $j++) {
$producto = $i * $j;
echo $i . "x" . $j . " = " . $producto . "<br>";
}
echo "<hr>";
}
//Imprimimos nombres
$arreglo = array("jose", "carlos", "pedro", "cesar");
for ($i=0; $i < count($arreglo) - ... | true |
33e6fde298de98ca47cbe455e2bbe6ff78ed0a71 | PHP | Josholeary/LibraryWebsite | /Code/unreserveprocess.php | UTF-8 | 1,089 | 2.6875 | 3 | [] | no_license | <!DOCTYPE HTML>
<html>
<body>
<?php
//connects to index where unreserve button is
require_once ("index.php");
//connects to database
require_once ("db.php");
if ($_GET || ISBN['reserved']) {
$ISBN = mysqli_real_escape_string($db, $_GET['ISBN']);//stores the isbn from table row we clicked
}
else //if the data... | true |
f7359248767355fd9454bca9e62c7335554b8e6e | PHP | Sersid/pannerns | /Example1/Repositories/BaseRepository.php | UTF-8 | 363 | 2.65625 | 3 | [] | no_license | <?php
namespace Example1\Repositories;
use Main\Query;
/**
* Class BaseDbRepository
*/
abstract class BaseRepository
{
/**
* @return Query
*/
public function query(): Query
{
$table = $this->table();
return $table::query();
}
/**
* @return string
*/
abst... | true |
a2c07e62258de84d411802bd66682be647138bd9 | PHP | monster3d/Agency | /src/Entities/ArrayContract.php | UTF-8 | 193 | 2.703125 | 3 | [] | no_license | <?php namespace Monster3D\Agency\Entities;
interface ArrayContract
{
/**
*
* Convert object to array
*
* @return array
*
*/
public function toArray();
}
| true |
adc1711362e4508b41a33d1f886f2ed2148b04ed | PHP | lizlove/blanton_database | /edit_results.php | UTF-8 | 2,443 | 2.671875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<?php
// Have to include this as first line of each page that
// you want to use session
session_start();
include "header.php";
include "mysql_connect.php"; //provides mysqli conneciton $con
if (isset($_POST['submitted'])) {
$full_path_to_image = "img/" . $_... | true |
64bc12e1a0d26bee1c5cbe84e0adc87d5a49ac67 | PHP | ltimsit/PHPpisc | /d09/ex03/select.php | UTF-8 | 309 | 2.625 | 3 | [] | no_license | <?php
if (file_exists('todo.csv'))
$fd = fopen('todo.csv', 'r');
else
$fd = fopen('todo.csv', 'w');
if ($fd == NULL)
exit();
$csvTab = array();
$header = array('id', 'value');
while ($line = fgetcsv($fd, 1000, ';'))
{
$csvTab[] = array_combine($header, $line);
}
echo json_encode($csvTab);
?>
| true |
20ba3984daed3c6088a2ef12150382537e352c33 | PHP | telerik/ui-for-aspnet-mvc-examples | /grid/GridBatchEditingWithDDLRemotePHPServer/lib/Kendo/Dataviz/UI/StockChartNavigatorSelect.php | UTF-8 | 617 | 2.515625 | 3 | [] | no_license | <?php
namespace Kendo\Dataviz\UI;
class StockChartNavigatorSelect extends \Kendo\SerializableObject {
//>> Properties
/**
* The lower boundary of the selected range.
* @param date $value
* @return \Kendo\Dataviz\UI\StockChartNavigatorSelect
*/
public function from($value) {
return $th... | true |
2860632273a441961eb2003aae3ce76b2435a627 | PHP | Chace233/myTest01 | /book/lookup.php | UTF-8 | 421 | 2.578125 | 3 | [] | no_license | <h1></h1>
<?php
$symbol = "AMZN";
$url = "http://finance.yahoo.com/d/quotes.csv".'?s='.$symbol."&e=.csv&f=sl1d1t1c1ohgv";
if(!($contencts = file_get_contents($url))){
die("failure to open ".$url);
}
list($symbol,$quote,$date,$time) = explode(",",$contencts);
$date = trim($date,'"');
$time = trim($time,' " ');
echo $... | true |
eed2c56a7057c3594ea0c107cb0a7325c8d0fe17 | PHP | jstar88/Config-Manager | /examples/real_implementations/xgpProyect/2.10.4/libs/Config-Manager/ConfigManager/Managers/PhpManager.php | UTF-8 | 562 | 2.671875 | 3 | [] | no_license | <?php
namespace ConfigManager\Managers;
use \ConfigManager\Exceptions\FileNotExistException as FileNotExistException;
class PhpManager extends Manager
{
protected function onlyOpenConfig($path)
{
if (!file_exists($path))
throw new FileNotExistException($path);
$config = require $pa... | true |
3148fbcad541f316b1e639bd810a619d33e81ee3 | PHP | RexSkz-zz/course | /coursetableteacher.php | UTF-8 | 1,795 | 2.59375 | 3 | [] | no_license | <?php
require "sessionstart.php";
require "constants.php";
?>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="css/common.css" />
<div id="main" style="line-height:28px;width:95%;">
<h3>上课课表</h3>
<table style="border:1px solid #99F;width:100%;">
<tr style="background-color:#CCC;">
<td styl... | true |
60fbfd25cb62fe76dca1120c849599b66a21d96a | PHP | paradoxengine/genetic-deshredder | /Deshredder/deshredder.php | UTF-8 | 4,084 | 2.953125 | 3 | [] | no_license | <?php
/**
* The deshredder main testing class
* @author Claudio Criscione.
* **/
require_once('PHPGeneLIB/GeneLIB.php');
require_once('FitnessCalculator_Deshred.php');
require_once('OCR.php');
require_once('Image_Manipulator.php');
require_once('Individual_Deshred.php');
function pipposort($a, $b)
{
if (intval($a->... | true |
6a28134e42667cfd85acd2aba2f7349da5823603 | PHP | BETINHOREBOUCAS/galeria_redes | /src/handlers/ProdutoHandler.php | UTF-8 | 3,147 | 2.671875 | 3 | [] | no_license | <?php
namespace src\handlers;
use PDO;
use src\models\Conection;
class ProdutoHandler {
public function AddProduto($dados = array(), $imgs = array())
{
$id_usuario_principal = $dados['id_usuario'];
$id_usuario_secundario = $dados['id_usuario_cadastrou'];
$pdo = Conection::sqlSelect(... | true |
dcab903926386e22d6046ae343a7c76076a9bd8f | PHP | vurghus-minar/wp_plugin_boilerplate | /lib/class-plugin.php | UTF-8 | 2,286 | 2.65625 | 3 | [] | no_license | <?php
/**
* The plugin class
*
* @package AM_Boilerplate_Plugin
* @since 1.0.0
* @link https://github.com/vurghus-minar
*/
namespace AM;
/**
* Prevent direct access to file.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* The plugin class
*/
class Plugin extends Base_Pl... | true |
2cd2a9bc76ac16f1a71bfee8e0a8cd24600f0bdc | PHP | art785/ipasa | /lib/entidad/Propiedad_Usuario.php | UTF-8 | 1,009 | 2.765625 | 3 | [] | no_license | <?php
class Propiedad_Usuarios {
//********** Atributos **********//
private $id_propiedad;
private $id_usuario;
private $id_propiedad_usuario;
//******************* inician set y get de Propiedad_Usuarios *****************//
//************************ set y get de Id_Propiedad *********************... | true |
0a828b07158bb3906a2d79dcffd02c7b6105661c | PHP | tomtuner/app | /vendor/AppMail/Mail/iEmailMessage.php | UTF-8 | 4,536 | 2.96875 | 3 | [] | no_license | <?php
/**
* Description of iEmailMessage
*
* @author Nikesh Hajari
*/
namespace AppMail;
interface iEmailMessage
{
/**
* Get E-mail Message Body
*
* @return string
*/
public function getMessage();
/**
* Set E-mail Message Body
*
* @param string $message E-mail M... | true |
0497b9ab184ef685fccbb96ad551feef6b9f2864 | PHP | larasoutoa/Imeda | /Views/Usuarios/Usuario_ADD.php | UTF-8 | 5,629 | 2.625 | 3 | [] | no_license | <?php
/**
* Vista que nos permite añadir un usuario
* Autor: Lara -Grupo Imeda
* Fecha inicio: 29/11/2017
* Fecha fin:29/11/2017
*/
//Archivo php donde se muestra el apartado Añadir Usuario: yn8idg, Fecha: 11/11/2017
class USUARIOS_ADD {
function __construct(){
$this->pinta();
... | true |
57b8208b0e858479cb3714a540a8a28177fad9ef | PHP | yoooong/LaravelForLive | /vendor/phpseclib/phpseclib/tests/Functional/Net/SSH2Test.php | UTF-8 | 2,267 | 2.5625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <?php
/**
* @author Andreas Fischer <bantu@phpbb.com>
* @copyright 2014 Andreas Fischer
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
{
public function testConstructor()
{
$ssh = new Net_SSH2($t... | true |
672924644570de1f553db07a67507c5a01b3b9d8 | PHP | E41180658muhammadjamalludin/tugas5_jamalludin | /tugas5/whileloop/example2.php | UTF-8 | 230 | 3.46875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<body>
<?php
$x = 1;
// do nilai yang akan dikerjakan terlebih dahulu. Meskipun kondisi while false.
do {
echo "The number is: $x <br>";
$x++;
} while ($x <= 5);
?>
</body>
</html>
| true |
9dfbc1ab3cad32c30861fc1328099f7cb484eb67 | PHP | felipedeaguiar/full-stack-challenge | /app/Src/Parser/Csv/CsvParser.php | UTF-8 | 1,822 | 3.046875 | 3 | [] | no_license | <?php
namespace App\Src\Parser\Csv;
use App\Src\Parser\Parser;
class CsvParser implements Parser{
protected $csv;
protected $limit = 0;
protected $delimiter;
protected $valid_delimiters = array( ',', ';', "\t", '|', ':' );
protected $data = array();
protected $headers = array();
protected $... | true |
1ce2d93d0e596094910d27396d33edc85d067299 | PHP | fedecarg/zf-packages | /Orm/Collection.php | UTF-8 | 5,130 | 2.859375 | 3 | [] | no_license | <?php
/**
* Copyright (c) 2010, Federico Cargnelutti. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this... | true |
ec88b573653805a435c29b0745d9aa71a7ac175c | PHP | AnonZebra/bth-mvc-game | /app/Models/Dice/GraphicalDice.php | UTF-8 | 665 | 3.234375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Models\Dice;
/**
* Class for representing dice.
*/
class GraphicalDice extends Dice
{
/**
* Constructor
*/
public function __construct()
{
parent::__construct(6);
}
/**
* Updates the number of die faces.
*/
public function s... | true |
8a9e9ef3e0080803ab3523499c64154406f1471d | PHP | Alexander3891/register_form.github.io | /signup.php | UTF-8 | 2,650 | 2.6875 | 3 | [] | no_license | <?php
// РЕГИСТРАЦИЯ
/*
require_once
require
include
include_once
*/
session_start(); // сессии для вывода на странице register - Пароли не совподают
require_once 'connect.php'; // делаем обращение к БД
$full_name = $_POST['full_name'];
$login = $_POST['login'];
$email = $_POST['email'];
$password = $_... | true |
8f5b2f243f395e54175d78ca6b4c9beb0a6e83bb | PHP | ILopesjr/apisalvustest | /app/Http/Requests/PatientRequest.php | UTF-8 | 1,942 | 2.625 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use App\Rules\FullName;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class PatientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()... | true |
7898dc5056e9cfae593da4c1e1d8e14ced3fb775 | PHP | Kevin423/BasDeM | /www/class/user.class.php | UTF-8 | 15,535 | 2.609375 | 3 | [] | no_license | <?php
/****************************************************************************************
* Copyright (c) 2012 Justus Wingert <justus_wingert@web.de> *
* *
* This file is part of BasDeM. ... | true |
1a0b6870b89e8455726626474c2290f0f945322e | PHP | ads04r/bus-finder | /docs/bus-routes-mobile.php | UTF-8 | 3,092 | 2.625 | 3 | [] | no_license | <?php
function routeSort($a, $b)
{
$op = strcmp($a['operator'], $b['operator']);
if($op != 0)
{
return($op);
}
$not = strnatcmp($a['notation'], $b['notation']);
if($not != 0)
{
return($not);
}
$desc = strnatcmp($a['label'], $b['label']);
if($desc != 0)
{
return($desc);
}
if($a['stop_count'] < $b['st... | true |
48d5e13154a5b3a709dbdd1b62a1a06d8eee19e7 | PHP | wwevo/guildhome | /public/modules/gw2api/accounts/guilds/members/Gw2Api_Members_Model.php | UTF-8 | 6,271 | 2.75 | 3 | [] | no_license | <?php
class Gw2Api_Members_Model extends Gw2Api_Abstract {
private $id = null;
private $account_name = null;
private $guild_rank = null;
private $joined = null;
private $api_key = null;
private $guild_id = null;
function __construct() {
$_SESSION['dbconfig']['Gw2Api_Members_Mo... | true |
2f851485fb07fa3d033b40b51e23d930dc78cedb | PHP | dbierer/php-iii-jan-2019 | /expressive.2019/src/FlyingElephantService/src/PropulsionSystems/PropulsionSystemsResourceFactory.php | UTF-8 | 1,005 | 2.578125 | 3 | [] | no_license | <?php
/**
* Propulsion Systems Resource Factory
* This is the class responsible for initializing the resource by injecting the mapper instance.
*/
namespace FlyingElephantService\PropulsionSystems;
use Interop\Container\ContainerInterface;
class PropulsionSystemsResourceFactory
{
/**
* @param ContainerInte... | true |
c59786bd44875143a041295c21171d59ad76a780 | PHP | MartianLee/sccc_homepage | /view_score.php | UTF-8 | 1,580 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
header("Content-Type: text/html; charset=UTF-8") //UTF-8 설정
?>
BadFriend Ranking!
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
//db연결
$con=mysqli_connect("127.0.0.1","root","sccc2016!","db");
// 연결 오류 발생 시 스크립트 종료
if (mysqli_connect_errno($con)){
echo "Failed to connect to MySQL... | true |
22e2e5ee41e87c40e3a19bb09278caf3d7fadacf | PHP | alexjdm/cognitivo | /models/Entrada_DAO.php | UTF-8 | 4,501 | 2.671875 | 3 | [] | no_license | <?php
class Entrada_DAO
{
public function getAll(){
$pdo = Database::connect();
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sql = $pdo->prepare("SELECT * FROM entrada WHERE HABILITADO='1' order by FECHA desc");
$sql->execute();
return $sql->fetchAll();
... | true |
1f0cb0a2ec18ea072b742ed400b22f4be5240bc8 | PHP | Porkts/agendex | /Modules/Call/Entities/Schedules.php | UTF-8 | 1,290 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Modules\Call\Entities;
use Carbon\Carbon;
use Modules\Call\Entities\CallConfig;
use Illuminate\Database\Eloquent\Model;
class Schedules extends Model
{
protected $fillable = ["user_id","date_hour","status","processing_time","finished_time","window_id"];
public function availableTimes($day)... | true |
cd1742a811395e3c3de51f577e472f93b527db12 | PHP | bonetino/Basic-CMS | /php/lib/nav.php | UTF-8 | 680 | 2.6875 | 3 | [] | no_license | <?php
class Navigacija{
public function __construct($broj){
if(!empty($_SESSION['id'])){
if($broj === 1)
$put = '../';
else if($broj === 2)
$put = '../../';
else if($broj === 3)
$put = '../../../';
else
$put = '';
$this->prikaz($put);
}
... | true |
7ea823ef9f2f755f63c4bd57f634086cdbd34bf4 | PHP | kamrul-suhel/grassroots | /api/app/Http/Controllers/StatementController.php | UTF-8 | 17,784 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Account;
use App\InvoiceLine;
use App\RelClubPackage;
use App\TransactionCode;
use App\TransactionLine;
use App\TransactionType;
use Illuminate\Http\Request;
use App\Transaction;
use Carbon\Carbon;
use App\Invoice;
use App\User;
use Auth;
use DB;
class StatementControlle... | true |
7685aab8199ec6fbede2d41fbd29cebfe101709a | PHP | max36895/universal_bot | /demo/skills/UserApp/UserTemplate/Components/UserCard.php | UTF-8 | 2,531 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
use MM\bot\components\button\Buttons;
use MM\bot\components\card\types\TemplateCardTypes;
require_once __DIR__ . '/UserButton.php';
class UserCard extends TemplateCardTypes
{
/**
* Получение массива для отображения карточки/изображения
*
* @param bool $isOne True, если отобразить только 1 ка... | true |
eabe3a1c8b8c172c0f48e45ae1732d6e8e5fe7ca | PHP | gromdron/fucli | /src/command/ShowLicenseKey.php | UTF-8 | 894 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Fusion\Command;
use Symfony\Component\Console\Input;
use Symfony\Component\Console\Output;
use Symfony\Component\Console\Style;
class ShowLicenseKey extends Base
{
protected function configure()
{
$this
->setName('show:license')
->setDescription('Display bitrix license key')
... | true |
f1596422f9b3fd0a81a6ab11a6f9b651d4886f97 | PHP | Stolz/php-stubs | /res/php/ps/functions/ps-setcolor.php | UTF-8 | 305 | 2.59375 | 3 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | <?php
/**
* Sets current color
*
* @phpstub
*
* @param resource $psdoc
* @param string $type
* @param string $colorspace
* @param float $c1
* @param float $c2
* @param float $c3
* @param float $c4
*
* @return bool
*/
function ps_setcolor($psdoc, $type, $colorspace, $c1, $c2, $c3, $c4)
{
} | true |
8fb2e6df879d62ea2f09daa56b3b18bcf393e75c | PHP | datagutten/wordfeud | /mail.php | UTF-8 | 2,091 | 2.546875 | 3 | [] | no_license | <?Php
//Script som henter bilder av spill fra en gmailadresse og analyserer de
require 'tools/dependcheck.php';
$dependcheck=new dependcheck;
if($dependcheck->depend('munpack')!==true)
die("munpack er nødvendig for å hente vedlegg fra mailer\n");
require "PHPMailer/class.phpmailer.php";
$mail = new PHPMailer(... | true |
4d80a03225f17f76994af44de7f24f27a5778eab | PHP | forzi/core | /Redirector.php | UTF-8 | 483 | 2.765625 | 3 | [] | no_license | <?
namespace stradivari\core {
abstract class Redirector extends Director {
public static $defaultRedirect = 301;
protected static function execute($redirect, $redirectType) {
static::redirect($redirect, $redirectType);
}
public static function redirect($redirect, $redirectType = null) {
... | true |
338190dc9e162ba40b3a5716a068c621e942f77b | PHP | A-Kija/id_auth | /server/index.php | UTF-8 | 929 | 2.75 | 3 | [] | no_license | <?php
session_start();
function request(string $url, string $fields = '', int $isPost = 0)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, $isPost);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
if ($isPost)... | true |
b3845793528657a3f0b9351c13ea6addffc6f1c0 | PHP | jjechev/phpBrowserFingerprint | /BrowserFingerprint.php | UTF-8 | 1,292 | 2.71875 | 3 | [] | no_license | <?php
/**
* Creates the unique browser fingerprint
*
* @return string
*/
function getBrowserFingerprint() {
logEvent('getBrowserFingerprint');
$client_ip = getClientIp();
$useragent = $_SERVER['HTTP_USER_AGENT'];
$accept = $_SERVER['HTTP_ACCEPT'];
$charset = $... | true |
351d17d6d7953498365d5efeeb094036b40b430d | PHP | foursking/Setsuna | /Setsuna/Router/Router.php | UTF-8 | 3,530 | 3.03125 | 3 | [] | no_license | <?php
namespace Setsuna\Router;
class Router{
private $rules = array();
private $segment;
public function __construct() {
}
public function setDefaultSegmentRouter($num = 2) {
$this->segment = $num;
}
/**
* 分发函数
* 调用此函数时执行 action 方法
* default indexController::indexAction()
*/
public function... | true |
ab32123604a5e5ad565284b4dbc191ae7522e0a5 | PHP | kushwahaswati41/-library2 | /library/searchbook2.php | UTF-8 | 3,761 | 2.84375 | 3 | [] | no_license | <?php
$bName = $_POST['bName'];
$Author = $_POST['Author'];
$Publication = $_POST['Publication'];
$Subject = $_POST['Subject'];
$con = mysqli_connect('localhost','root','','library');
function showdata1()
{
global $con;
global $bName; global $Author;global $Publication;global $Subject;
$query1 = "SELECT * ... | true |
e795813e18ec288ce03bcda68e05a5409b3d433e | PHP | KayevonAzuca/VarsitysEatery | /project/private_html/VarsitysEatery/php/classes/ContactForm/FormsModel.class.php | UTF-8 | 5,971 | 3.171875 | 3 | [] | no_license | <?php
// ==========================================================================
// file: FormsModel.class.php
// ==========================================================================
// Developer: Kayevon Azuca
// Date: 1/4/2021
// Description: This is the Model of the ContactForm MVC pattern.
//... | true |
d35f80a2605ee22d0a9e7e2cefab3f48f28cc4f3 | PHP | MrRegisB/ProjetKeysoft | /consulter.php | UTF-8 | 1,884 | 2.546875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
</head>
<?php
include 'database.php';
$idPdt == null;
if ( !empty($_GET['idPdt'])){
$idPdt = $_REQUEST['idPdt'];
}
if ( null=... | true |
cb9b178572c0914be1752a26f3d5bd0e3c320d4a | PHP | xp-framework/xp-framework | /core/src/test/php/net/xp_framework/unittest/util/CurrencyTest.class.php | UTF-8 | 723 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php namespace net\xp_framework\unittest\util;
use unittest\TestCase;
use util\Currency;
/**
* TestCase
*
* @see xp://util.Currency
*/
class CurrencyTest extends TestCase {
/**
* Test getInstance() method
*/
#[@test]
public function get_instance_usd() {
$this->assertEquals(Currency::$USD, ... | true |
8a0ae02b1c1b7f928f246e9cc256d649637076a5 | PHP | jasiellp/front | /app/Models/FormasPagamento.php | UTF-8 | 769 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Models;
use Eloquent as Model;
/**
* Class FormasPagamento
* @package App\Models
* @version September 4, 2019, 6:16 pm UTC
*
* @property string descricao
* @property string icone
* @property string observacao
*/
class FormasPagamento extends Model
{
public $table = 'formas-pagamento'... | true |
f52bba8225a8d93b7db19276842221d7c540e8f2 | PHP | rubinju/Todolist | /app/controllers/project_controller.php | UTF-8 | 2,303 | 2.671875 | 3 | [
"CC-BY-4.0"
] | permissive | <?php
class ProjectController extends BaseController {
public static function index() {
self::check_logged_in();
$projects = Project::all();
View::make('project/index.html', array('projects' => $projects));
}
public static function create() {
self::check_logged_in();
View::make('pro... | true |
9d07a01f9a165064c9c789519de9289d3c34f6d0 | PHP | QuintenvL/Educom_Webshop | /views/aboutDoc.php | UTF-8 | 890 | 2.65625 | 3 | [] | no_license | <?php
require_once 'baseDoc.php';
class AboutDoc extends BaseDoc{
public function __construct($model){
parent::__construct($model);
}
/**
* Show all personal details for the about page.
*/
protected function middleMainContent(){
... | true |
96e7973adf7475e85faa58295f02bbd65a00016d | PHP | thepsion5/specification | /src/AssertableSpec.php | UTF-8 | 1,271 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
namespace Thepsion5\Spec;
use Thepsion5\Spec\Exceptions\BaseSpecUnsatisfiedException;
/**
* Class AssertableSpec
* @package Thepsion5\Spec
*/
abstract class AssertableSpec
{
/**
* Checks to see if a specified object meets the specification
* @param mixed $subject The object or value being exa... | true |
accb52e3a90c0966eaa8eaf04a009ac89c43ee49 | PHP | N3XT191/olz-website | /src/tasks/LogForAnHourTask.php | UTF-8 | 693 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
require_once __DIR__.'/common.php';
class LogForAnHourTask extends BackgroundTask {
protected static function get_ident() {
return "LogForAnHour";
}
protected function run_specific_task() {
$success = set_time_limit(4000);
if ($success) {
$this->logger->info("Suc... | true |
4e0b723e1d98904843092717e7b1b72ea53d9a38 | PHP | ryssbowh/pingu-info-module | /Support/InfoProvider.php | UTF-8 | 1,143 | 2.984375 | 3 | [] | no_license | <?php
namespace Pingu\Info\Support;
abstract class InfoProvider
{
/**
* Unique slug for this provider
*
* @return string
*/
abstract public static function slug(): string;
/**
* Infos as array
*
* @return array
*/
abstract public function infos(): array;
... | true |
463fddcdf8d62455a74d41c29b8d15cf31612591 | PHP | longxinH/explain | /tests/004.phpt | UTF-8 | 632 | 2.515625 | 3 | [] | no_license | --TEST--
Check class map
--SKIPIF--
<?php if (!extension_loaded("explain")) print "skip"; ?>
--FILE--
<?php
var_dump(count(explain(<<<HERE
error_reporting(E_ALL);
include ("vendor/autoload.php");
\$app = new Silex\Application();
\$app->register(new Silex\Provider\TwigServiceProvider(), array(
"twig.path" => spr... | true |
7ee751bba4800b140b509c55d366fc003bd4fb8b | PHP | Drestor/Account-manager | /search_infile.php | UTF-8 | 911 | 2.671875 | 3 | [] | no_license | <?php
if(isset($_POST['keres'])){
$search_file = $_POST['edit_file'];
$search = $_POST['search'];
$lines = file("files/".$search_file);
$found = false;
echo "<form action='' method='post'>";
echo "<input type='hidden' name='sr_file' value='" . $search_file . "'>";
echo "<div align='center'>";
echo "<textarea name='... | true |
527bfb11736623294a046843821eb09f6302ee70 | PHP | keneseu14/Database | /edituser.php | UTF-8 | 2,746 | 2.796875 | 3 | [] | no_license | <?php
require ('config/config.php');
require ('config/dbconnection.php');
$id = mysqli_real_escape_string ($conn, $_GET['id']);
#create a query
$query = 'SELECT * FROM users where id='.$id;
#get query
$result = mysqli_query($conn, $query);
$user = mysqli_fetch_assoc($result);
#free result
mysqli_free_result... | true |
678dc947583cd8b211aa2058d939cdafcd73592d | PHP | muut/wordpress-plugin | /lib/admin/admin-settings.class.php | UTF-8 | 15,562 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* The class that is responsible for all functionality regarding the Muut settings.
*
* @package Muut
* @copyright 2014 Muut Inc
*/
// Don't load directly
if ( !defined( 'ABSPATH' ) ) {
die( '-1' );
}
if ( !class_exists( 'Muut_Admin_Settings' ) ) {
/**
* Muut Admin Settings class.
*
* @packag... | true |
907523c3159b6b8f546533b4fbc6c0b4d89b5c02 | PHP | gtlug/wedding | /lib/Wedding/Db/Table/Guests.php | UTF-8 | 1,179 | 2.609375 | 3 | [] | no_license | <?php
class Wedding_Db_Table_Guests extends Zend_Db_Table_Abstract
{
protected $_name = 'guests';
protected $_primary = 'guestId';
protected $_sequence = true;
protected $_dependentTables = array();
protected $_referenceMap = array(
'Wedding_Db_Table_Invites' => array(
'columns' =... | true |
0f4f2e5720204fb4d8cd89dad35d2df280cb8663 | PHP | williamtome/projeto_comentarios | /conexao.php | UTF-8 | 503 | 2.703125 | 3 | [] | no_license | <?php
try{
$pdo = new PDO("mysql:dbname=projeto_comentarios;host=localhost", "will", "will");
}catch(PDOException $e){
echo "ERRO: ".$e->getMessage();
exit;
}
if (isset($_POST['nome']) && !empty($_POST['nome'])) {
$nome = $_POST['nome'];
$msg = $_POST['mensagem'];
$sql = $pdo->prepare("INSERT INTO me... | true |
8847be1a6a6f4c39a7d658022c0810226190e8f2 | PHP | kai-xx/laravel-rewrite-logger | /Logger.php | UTF-8 | 5,297 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Providers;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
class Logger extends \Monolog\Logger
{
protected static $uri_info = null;
protected static $startTime = null;
protected static $appName = null;
protected static $parentRequestId = null;
// 设置日... | true |
a8e45860390c79a5ce42d828cbdaa139ad2264ff | PHP | sirdawidd/UpFront-Tasks-Backend | /test/Unit/Entity/TaxRateTest.php | UTF-8 | 577 | 2.625 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace Taxation\Test\Unit\Entity;
use PHPUnit\Framework\TestCase;
use Taxation\Entity\TaxRate;
class TaxRateTest extends TestCase
{
public function testEntityDataIsCorrect()
{
$taxRateEntity = new TaxRate(['id' => 2, 'code' => 'test2', 'rate' =>33, 'taxAmount' => 1])... | true |
52e76e9aa7d79135c0ecec19cee9c02bea2f5d3f | PHP | francescfores/School | /Person/Person.php | UTF-8 | 1,765 | 3.046875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: francesc
* Date: 12/10/15
* Time: 22:18
*/
class Person
{
public $nom;
public $cognoms;
public $dni;
public $edad;
public $ubicacio;
/**
* Person constructor.
* @param $cognom
* @param $dni
* @param $edad
* @param $nom
... | true |
0321f8f457a27df474b4ba743f1ae7737359d383 | PHP | harryang29/SanMeron.to | /mylogin.php | UTF-8 | 4,074 | 2.640625 | 3 | [] | no_license | <?php
$username = $loginresult = "";
// LOGIN
if (isset($_POST['login'])) {
$username = $_POST['username'];
$password = MD5($_POST['password']);
//if pass validation
include "db_connection.php";
// successful connection
$sql = "SELECT *
FROM tbl_users
... | true |
844f954db646f6f134d62615322f273e75dd48a9 | PHP | RafaelFerreiraTVD/ProjetoWeb | /framework/ViewDispatcher.php | UTF-8 | 1,688 | 2.734375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: smendes
* Date: 09-05-2016
* Time: 11:52
*/
class ViewDispatcher
{
protected $_viewBaseFolder;
protected $_viewExtension;
public $dataComposer;
public function __construct($viewBaseFolder, $viewExtension){
$this->_viewBaseFolder = $viewBaseFolder;
... | true |
d9b5a483ffbbf495730cbe4c35b42d888534358a | PHP | pockemon/Student-Teacher-Interaction-Portal | /user/upload_ass_form.php | UTF-8 | 13,393 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
session_start();
include('../dbconfig.php');
$user= $_SESSION['user'];
if($user=="")
{header('location:../home2.php');}
$sql=mysqli_query($conn,"select * from user where email='$user' ");
$users=mysqli_fetch_assoc($sql);
//print_r($users);
?>
<?php
if(isset($_POST["submit"]))
{
$error_types = array(
1... | true |
5cc9b4900041df838817148049b6fec38aaafd43 | PHP | Yopajoe/api-test | /mysql.php | UTF-8 | 1,451 | 3.203125 | 3 | [] | no_license | <?php
interface iMySqlQuery {
// Returns row as array of fields corespodent to studnet id if exists otherwise returns false
public function getStudent(int $id, string $table);
}
class MySqlApi implements iMySqlQuery {
protected $mysqli;
function __construct(){
$this->mysqli = new mysqli(HOS... | true |
f59d1454503133df7aa45cf73a5eb959df0ee209 | PHP | ravi-gill/tcp | /server.php | UTF-8 | 1,421 | 2.71875 | 3 | [] | no_license | <?php
echo PHP_EOL;
define( 'HOST', '127.0.0.1' );
define( 'PORT', 9999 );
define( 'MAX_BYTES', 1024 );
define( 'BACKLOG_CONNS', 3 );
set_time_limit( 0 );
ob_implicit_flush();
$socket = socket_create( AF_INET, SOCK_STREAM, SOL_TCP ) or die( "Unable to create socket" . PHP_EOL );
socket_set_option( $socket, SOL... | true |
36d47649b86f32035da3dfbb4fa6b9bac9575414 | PHP | peiyuou/Career960_website | /php/postcard_frontStyle.php | UTF-8 | 519 | 2.640625 | 3 | [] | no_license | <?php
try {
require_once "./connectMySql.php";
$outlineSql = "select * from postcard_material where POS_MAT_PIC like '%outline%' and POS_MAT_USE =1
limit 3;";
$outline = $pdo->query($outlineSql);
if ($outline->rowCount() == 0) { //找不到
//傳回空的JSON字串
echo "{}";
} else { //找得到
//取回一筆資料
$outlin... | true |
605dc818c69e78ae73a66611f70f126da1041d11 | PHP | clarence-b/h5wabao | /app/main/controller/ApiController.php | UTF-8 | 4,008 | 2.53125 | 3 | [] | no_license | <?php
// index.php?r=main/api/***
namespace app\main\controller;
class ApiController extends \app\base\controller\BaseController {
public function __construct() {
parent::__construct();
}
/**
* 创建新用户GUID
* @return [type] [description]
*/
public function apiCteateNewUser(){
... | true |
363d615f877331290bdf962c182d2a09b040773b | PHP | baselaly/online-doctors | /app/Feedback.php | UTF-8 | 864 | 2.546875 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Feedback extends Model
{
public $table = 'feedbacks';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'feedback', 'patient_id', 'doctor_id', 'appointment_id',
];
... | true |
5288ce037243363cc6263548ae85938acd48774d | PHP | JamesFitzpatrick-Coursework/Web-API | /scripts/v1/auth/database/backend/TokenBackend.php | UTF-8 | 1,425 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace meteor\database\backend;
use common\data\Token;
use meteor\database\Database;
class TokenBackend
{
public static function clear_tokens(Token $clientid, Token $userid, $tokenType)
{
$query = Database::generate_query("token_clear", [$tokenType, $clientid->toString(), $userid->toString()... | true |
ec8b6f15c262d28f593a25dd06d29805b90e7c5a | PHP | jamu1570/Student2020Placement | /admin/php/addtraining.inc.php | UTF-8 | 1,327 | 2.53125 | 3 | [] | no_license | <?php
include_once '../../includes/db.inc.php';
if (isset($_POST['add'])) {
$course = $_POST['course'];
$lecturer = $_POST['lecturer'];
$sql1 = "INSERT INTO `training` (`course`, `lecturer`) VALUES ('$course', '$lecturer');";
$res1 = mysqli_query($conn, $sql1);
if (!$res1) {
?>
<... | true |
93690ee64de58ee93eae4ebbdcaf5c90ed82164a | PHP | banqkandar/web_perpustakaan | /laporan/laporan_kartu_anggota_pdf.php | UTF-8 | 1,210 | 2.546875 | 3 | [] | no_license | <?php
$koneksi = new mysqli("localhost","root","","perpus");
$content = '
<style type="text/css">
.tabel{border-collapse: collapse;}
.tabel th{padding: 10px 8px;}
.tabel td{padding: 10px 8px;}
</style>
';
$no_anggota = $_GET['no_anggota'];
$sql = $koneksi ->query("select * from anggota where no_anggota='$... | true |
f182f87ee904fcfd123ab66a21c2361b6ac54334 | PHP | nameless999/STU | /Vista/Horario/mostrarHorario.php | UTF-8 | 646 | 2.546875 | 3 | [] | no_license | <table cellspacing='0'>
<tr>
<th>Nombre</th>
<th>Carrera</th>
<th>Correo Electrónico</th>
<th>Teléfono</th>
<th>Talla polera</th>
<th>Seleccionado en</th>
<th> Editar Talla </th>
</tr>";
<!--foreach ($seleccionados as $seleccionado) {
$carrera = $car->obtenerCarrerasPorID($seleccionado[2]... | true |
18fe51881fcce124784d753ea36453fecf22825e | PHP | ptlis/semantic-version | /src/Parse/VersionParser.php | UTF-8 | 3,442 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
/**
* @copyright (c) 2014-2017 brian ridley
* @author brian ridley <ptlis@ptlis.net>
* @license http://opensource.org/licenses/MIT MIT
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ptlis\SemanticVersi... | true |
4b38db2fa74ff43fffe10377c00a4c47f430570c | PHP | Xerxescodes/upload-downloadphp | /update.php | UTF-8 | 464 | 2.546875 | 3 | [] | no_license | <?php
include("conn.php");
$id;
if(isset($_POST['updt']))
{
$id = $_POST['id'];
$food_name = $_POST['food_name'];
$source_name = $_POST['source_name'];
$price = $_POST['price'];
$sql = "Update menu SET Food_name='$food_name',Source_name='$source_name',price='$price' WHERE
id=$id";
if(mysqli_query($mysqli, $sql))
{
ec... | true |
53bdc5272918f87278c00d215e52f46ec52ceace | PHP | bbalet/Students-Database | /www/component/selection/service/exam/save_center.php | UTF-8 | 12,830 | 2.734375 | 3 | [] | no_license | <?php
class service_exam_save_center extends Service {
public function getRequiredRights() { return array("manage_exam_center"); }
public function documentation() { echo "Save all information related to an exam center"; }
public function inputDocumentation() {
echo "<ul>";
echo "<li><code>center</code>: Ex... | true |
465f7bf772f5a5128657aa524d59d77dc5eb5fa2 | PHP | takakc/portfolio | /app/Repositories/ContactRepository.php | UTF-8 | 744 | 3.078125 | 3 | [] | no_license | <?php
namespace App\Repositories;
use App\Models\Contact;
use App\Repositories\ContactRepositoryInterface;
/**
* Class ContactRepository
*/
class ContactRepository implements ContactRepositoryInterface
{
private $contact;
public function __construct(Contact $contact)
{
$this->contact = $contac... | true |
5cf4f2de1a8b70b24ed3bd51c8f7633077c19a8b | PHP | avosun/proxy-server | /src/ProxyServer.php | UTF-8 | 3,359 | 2.71875 | 3 | [
"Fair"
] | permissive | <?php
/**
* @license see LICENSE
*/
namespace Serps\ProxyServer;
use Psr\Http\Message\ServerRequestInterface;
use React\EventLoop\LoopInterface;
use React\EventLoop\Factory as LoopFactory;
use Clue\React\Socks\Server as SocksServer;
use React\Http\Request;
use React\Http\Response;
use React\Socket\Server as SocketS... | true |
f164a8681d832b2a21cefbc3fc2aa3af87730d0d | PHP | froilanbuelo/skedme | /app/Http/Controllers/ServiceController.php | UTF-8 | 3,949 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Service;
use App\User;
use Carbon\Carbon;
use Illuminate\Http\Request;
class ServiceController extends Controller
{
public function show(User $user, $serviceLink){
$service = $user->services()->where('link',$serviceLink)->first();
if (!$service)
abort(404);
... | true |
87e289d9ad06730fc015593f820995c13b642db5 | PHP | aurelia-piot/Back | /PHP/07_fruits/appel.php | UTF-8 | 640 | 3.03125 | 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>Document</title>
</head>
<body>
<?php
//exo afficher le prix de 2 kg de bananes en executant la fonc... | true |
16f6668becc41832fdaa32060b986caa0e2a3fab | PHP | wsh0408/DolrPHP | /DolrPHP/Dao/Adapter.php | UTF-8 | 23,224 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* DolrPHP轻量级PHP开发框架
*
* @package Dao
* @copyright Copyright (c) 2012 <www.dolrphp.com>
* @author Joychao <Joy@Joychao.cc>
* @license Apache 2.0
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link http://www.dolrphp.com
* @version $Id: Joychao $
**/
... | true |
3dde0e367a2bb8b572335b005727f061aba2ef7d | PHP | jeremib/Date | /tests/bugs/bug-2378-1.phpt | UTF-8 | 332 | 2.8125 | 3 | [] | no_license | --TEST--
Bug #2378: Date::getDate(DATE_FORMAT_UNIXTIME) doesn't convert to GMT
--FILE--
<?php
require_once "Date.php";
$date =& new Date(1095935549, array('format' => DATE_FORMAT_UNIXTIME));
echo $date->getTime()."\n";
$date->convertTZbyID('America/Los_Angeles');
echo $date->getTime()."\n";
?>
--EXPECT--
1095935549... | true |
0e476ff086f8cc0790d44824bfe95ef0da1b4cf7 | PHP | aciliainternet/acilia.ws.core | /src/Core/Entity/Setting.php | UTF-8 | 1,385 | 2.515625 | 3 | [] | no_license | <?php
namespace WS\Core\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'ws_setting')]
#[ORM\UniqueConstraint(columns: ['setting_domain', 'setting_name'])]
class Setting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(name: 'setting_id', type: 'integer')]
private ?int $id;
... | true |
9bb0db6ebf39580eed09201e69c4d655680e5a7a | PHP | yyinsomnia/php-ex | /regex/contact.php | UTF-8 | 12,573 | 2.984375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: leo
* Date: 15-11-9
* Time: 上午11:42
*/
class LeoContactFilter
{
const EMPTY_TYPE = 0;
const TEL_TYPE = 1;
const MOBILE_TYPE = 2;
const FOUR00_TYPE = 3;
const EIGHT00_TYPE =4;
public static function filterContactMobile($str)
{
$arr = sel... | true |