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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e69fa112113681e41e5466f477d8090f42102461 | PHP | brewerwall/yeasts | /lib/generate_formats.php | UTF-8 | 1,240 | 2.921875 | 3 | [] | no_license | <?php
//CONFIG
$config = json_decode(file_get_contents(__DIR__."/../config.json"), true);
// SCRIPTS VARS
$master_file = __DIR__."/../src/".$config['data']."_master.json";
$json = file_get_contents($master_file);
$array = json_decode($json, true);
// CONVERT MASTER FILE TO CSV
$f_csv = fopen(__DIR__.'/../formats/'.$... | true |
1923f5849d4fbcca054ac1b601a8bbc183d997fd | PHP | jaimi7/Intership | /Day 1/t2php.php | UTF-8 | 1,745 | 2.515625 | 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>Web Site</title>
<style>
body{
text-align: center;
background: ... | true |
e600ac983fc47062421f281ae8894de71f6450df | PHP | msdshsk/upload_test | /src/Shsk/Property/Coordinate.php | UTF-8 | 713 | 3.0625 | 3 | [] | no_license | <?php
namespace Shsk\Property;
class Coordinate extends ReadOnly
{
public function __construct($x, $y)
{
parent::__construct(['x' => $x, 'y' => $y]);
}
public function max()
{
return $this->x > $this->y ? $this->x : $this->y;
}
public function min()
{
return $... | true |
9e7349f147e5368c375d2ac851fda206deff5b30 | PHP | adraynaline/antonin | /model/admin/details.php | UTF-8 | 893 | 2.59375 | 3 | [] | no_license | <?php
function show_details_model($modele){
global $connexion;
$query = $connexion->prepare('SELECT * FROM details WHERE id_modele = :modele');
$query->bindValue(':modele', $modele, PDO::PARAM_STR);
$query->execute();
$details = $query->fetchAll();
return $details;
}
function add_detail($modele, $descri... | true |
01b3375c32fbe51f71b04b794239e791e865aada | PHP | nobody05/canal_php | /src/Config.php | UTF-8 | 2,351 | 2.8125 | 3 | [] | no_license | <?php
namespace PhpOne\CanalPHP;
class Config
{
const CONFIG_FILE_EXT = '.php';
private static $configFileName;
private static $configEnvFilePath;
private static $configGlobalFilePath;
private static $configItemName;
/**
* @param string $configName
* @return array|null|string|int... | true |
66c886a400e6d9de9e2c6297c8556e530328da6a | PHP | StevenNNZ/Proyecto_MVC_DP | /controller/reporte_venta.php | UTF-8 | 2,318 | 2.859375 | 3 | [] | no_license | <?php
require_once("../config/conexion.php");
require_once("../models/Reporte_venta.php");
require_once("../models/Interfaz.php");
// Instancias
$reportesVenta = new Reporte_venta();
$interfaz = new Interfaz();
//Validación variable superglobal
switch($_GET["op"]){
case "repor... | true |
0ccf89bd6c10c6e51f0b4b1464384349804d3197 | PHP | hwordhy/qidu | /lib/mail/mail.php | UTF-8 | 6,955 | 2.5625 | 3 | [] | no_license | <?php
class JieqiMail extends JieqiObject
{
public $to;
public $subject;
public $content;
public $params = array('mailtype' => 1, 'maildelimiter' => 1, 'contenttype' => 'text/plain', 'charset' => JIEQI_CHAR_SET, 'mailfrom' => JIEQI_CONTACT_EMAIL);
public function __construct($to, $subject, $content, $params = ar... | true |
8b69f11811b67fc9572567df9ce82b40651c5e15 | PHP | AlejandroMel97/Lab04 | /EECS448-Lab04/customerBackend.php | UTF-8 | 3,290 | 2.90625 | 3 | [] | no_license | <?php
//include("style.css");
echo "<body style ='background-color: lightgray'>";
echo "<center>";
$user = $_POST["email"];
echo "Welcome $user! Thank you for your Purchase!<br>";
echo "Your password is: <i><strong>".$_POST["pass"];
echo "</strong></i><br><br><br>";
//$quantkobe = $_POST["Kobe Bryant - ... | true |
203f1ea1e9604ec1426d9e3fa4ee3e31c87961cd | PHP | obsolete-gjo-se/2013_zf1_big5 | /application/modules/admin/controllers/FilesController.php | UTF-8 | 4,773 | 2.578125 | 3 | [] | no_license | <?php
class Admin_FilesController extends Jbig3_Controller_BaseController {
public function indexFilesAction($folder = '..'){
$content = '<table>';
foreach (scandir($folder) as $file) {
if($file[0] != '.') { // Versteckte Dateien nicht anzeigen
if(is_dir($folder . '/' ... | true |
3ad54840f08591a46a99af85d9b898cd10c7f03e | PHP | Donaldluc1/Donaldluc-blog | /src/Validators/CommentsValidator.php | UTF-8 | 385 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Validators;
class CommentsValidator extends AbstractValidator {
public function __construct(array $data)
{
parent::__construct($data);
$this->validator->rule('required', ['pseudo', 'mail', 'content']);
$this->validator->rule('lengthBetween', ['pseudo', 'content'], ... | true |
2377e2c9c4f70cb7822dc5707f0eab67aa95ff91 | PHP | sreikanth/open-swamp | /registry-web-server/var/www/directory-server/app/models/events/ProjectEvent.php | UTF-8 | 445 | 2.5625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <?php
namespace Models\Events;
use Models\BaseModel;
use Models\Events\Event;
class ProjectEvent extends Event {
/**
* database attributes
*/
protected $table = 'project_events';
/**
* mass assignment policy
*/
protected $fillable = array(
'full_name',
'short_name',
'project_uid'
);
/**
*... | true |
090e0c3d49627c655525bc335862fa1c94227e52 | PHP | BFlorian91/piscine_php | /Day01/ex12/search_it!.php | UTF-8 | 253 | 2.734375 | 3 | [] | no_license | #!/usr/bin/php
<?php
if ($argc < 3)
die();
$key = $argv[1];
unset($argv[0], $argv[1]);
foreach ($argv as $args) {
$values = explode(':', $args);
if ($key === $values[0])
die($values[1].PHP_EOL);
} | true |
5e05dfc9b7ff38598c523b09d6e1eb752818d4d9 | PHP | HoruScodes/BooksMTL | /deletePurchases.php | UTF-8 | 742 | 2.9375 | 3 | [] | no_license | <?php
/*
#Revision history:
#
26 Rahul on 12/13/2020 at 3:50 PM Rahul Pipaliya(2012728) 2020-12-13 updated cheat sheet/removed extra code
26 Rahul on 12/13/2020 at 3:50 PM Rahul Pipaliya(2012728) 2020-12-11 added delete purchase code.
*/
//import purchase class
require_once('purchase.php');
//if purchase id in po... | true |
7f757ea2688acb408f84ac9beca8531397957659 | PHP | cubiche/cubiche | /src/Cubiche/Core/Comparable/SelectorComparator.php | UTF-8 | 1,492 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Comparable;
use Cubiche\Core\Delegate\Delegate;
/**
* Selector Comparator cl... | true |
a3b3736147c748cabd1a0f21c19b86e722a47294 | PHP | SudeepMi/php-learners | /form-handling/task5.php | UTF-8 | 996 | 3.515625 | 4 | [] | no_license | <?php
// create a simple calculator to add two numbers provided by user
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css" class="css">
</head>
<body>
<fo... | true |
047dbc18105f151c684194b19dfdc79b83545514 | PHP | lenevor/lenevor | /syscodes/src/components/Core/Http/Middleware/VerifyPostSize.php | UTF-8 | 2,087 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Lenevor Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file license.md.
* It is also available through the world-wide-web at this URL:
* https://lenevor.com/license
* If you did not receive a copy of the license and are unabl... | true |
21d733ded070f3f9efb15fc463cb7eea34078962 | PHP | sinnerJoe/er-project-backend | /src/config/database.php | UTF-8 | 2,108 | 2.984375 | 3 | [] | no_license | <?php
require_once(__DIR__.'/config.php');
require_once(__DIR__.'/mail.php');
class Database {
static private $instance;
private $hostName;
private $dbname;
private $username;
private $password;
private $pdo;
public function __construct() {
$this->pdo = null;
$this->userna... | true |
5d7e313496dd3f04775de6d82aa886aa346638b5 | PHP | StanleyDip/NewsBee | /search.php | UTF-8 | 1,844 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
include_once 'header.php';
include_once 'dbh.inc.php';
?>
<h1>Search Result:</h1>
<?php
if(isset($_POST['submit-search'])){
$search=mysqli_real_escape_string($conn, $_POST['search']);
$sql="SELECT * FROM `shared` WHERE `title` LIKE '%$search%' OR `sharedBy` LIKE '%$search%' OR `description` LIKE '%$sea... | true |
2c1ed4c4682c9d5c6a61e97378284c5d82d7ddc8 | PHP | react-hunter/laravel-vuejs-school | /Domain/Teacher/TeacherService.php | UTF-8 | 747 | 2.671875 | 3 | [] | no_license | <?php
/**
* @Author: Leandro Henrique Reis <emtudo@gmail.com>
* @Date: 2016-05-05 08:41:17
* @Last Modified by: Leandro Henrique Reis
* @Last Modified time: 2016-06-04 19:52:18
*/
namespace Domain\Teacher;
use Domain\Services\PersonAbstractService;
use Domain\Teacher\TeacherRepository;
use Domain\User\UserRe... | true |
2f6c807526e4ce7999ee3ea366ccce86e817a9a8 | PHP | newga/newga | /public_html/protected/extensions/widgets/EGridView.php | UTF-8 | 1,079 | 2.5625 | 3 | [] | no_license | <?php
Yii::import('zii.widgets.grid.CGridView');
class EGridView extends CGridView
{
protected $rowSetKeys = array();
public $rowIdPrefix = 'listItem_';
public function init(){
parent::init();
$this->rowSetKeys = $this->dataProvider->getKeys();
}
/**
* @param $row
*... | true |
67980e9fe6455831fb26130880a1316dc857b8b8 | PHP | HanshenWang586/Summer2016 | /Module/includes/classes/class_BlogList.php | UTF-8 | 6,408 | 2.625 | 3 | [] | no_license | <?php
class BlogList {
private $types = array( 'news' => 1,
'features' => 2,
'travel' => 3);
public function getItems($options = array()) {
global $user;
global $model;
$clauses = array('!blog_content.ts < ' . ifElse($options['before'], 'NOW()') . ' AND blog_content.properties & 1');
if (a... | true |
d6cd91fb79e65b0a48f13979db3f797663baf338 | PHP | googleapis/google-cloud-php | /Logging/src/Metric.php | UTF-8 | 5,971 | 2.640625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | true |
bda3a7914cbcbeabea6d789654ba64089e541bf1 | PHP | Askedio/laravel-multiauth | /src/MultiAuth/Traits/Login.php | UTF-8 | 935 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Askedio\MultiAuth\Traits;
use Askedio\MultiAuth\Jobs\SendEmailLoginToken;
use Illuminate\Http\Request;
trait Login
{
/**
* [doLogin description].
*
* @param Request $request [description]
*
* @return [type] [description]
*/
protected function doLogin()
{
... | true |
97362f9301bbd588fc5e0a82b5651a0cf4255624 | PHP | murattkoc/HaberNews | /src/AppBundle/Entity/product.php | UTF-8 | 656 | 2.546875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="users")
*/
class users{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string")
*/private $use... | true |
c591c6d01a4610ce451908f9552a29fcfd898454 | PHP | sistemapos2019/Grupo_CMYR | /Resbar_v2/ajax/ventasxFecha.php | UTF-8 | 3,142 | 2.75 | 3 | [] | no_license | <?php
include "../config/config.php";//Contiene funcion que conecta a la base de datos
// metodo para mostrar y buscar por fechas
$query = "SELECT * FROM orden WHERE estado='cc' AND ";
if($_POST["is_date_search"] == "yes")
{
$query .= 'fecha BETWEEN "'.$_POST["start_date"].'" AND "'.$_POST["end_date"].'" ORDER BY id ... | true |
947b36aee2ad6e4c3885deec112a81183a6fc286 | PHP | Sprattel/Oden | /core/classes/benchmark.php | UTF-8 | 614 | 3.25 | 3 | [] | no_license | <?php
class OD_Benchmark {
var $marks = array();
/*
* Start a new benchmark
*/
public function start($name) {
$this->marks[$name]['start'] = microtime();
}
/*
* End benchmark
*/
public function end($name) {
$this->marks[$name]['end'] = microtime();
}
/*
* Return mark
... | true |
054394be160dd93f0ce7fac1770052a401095241 | PHP | artman8954/pups_zf1 | /application/models/SalesModel.php | UTF-8 | 2,942 | 2.75 | 3 | [] | no_license | <?php
/**
* Model class for proejct
* @category Class
* @package pups
* @author Muhamad
* @version 1.0
* @createddate 28th Aug 2013
*/
class Application_Model_SalesModel
{
/**
* Function for get project list
* @param None
* @return None
*/
public function getSales($search_key,$column_name,$page,$... | true |
3a2db2761d64f437495a0aafa9bf91ae81045817 | PHP | LaraPackage/API | /src/Contracts/Request/Payload.php | UTF-8 | 284 | 2.546875 | 3 | [] | no_license | <?php
namespace LaraPackage\Api\Contracts\Request;
interface Payload extends \IteratorAggregate
{
/**
* Returns the payload content
*
* @return \ArrayIterator
* @throws \LaraPackage\Api\Exceptions\RequestException
*/
public function getIterator();
}
| true |
d75e301540f4c3b3fe3a17497c10d2e264f7e523 | PHP | TopFloorTech/drupal-commerce_tax_service | /src/TaxServiceOrderProcessor.php | UTF-8 | 1,549 | 2.578125 | 3 | [] | no_license | <?php
namespace Drupal\commerce_tax_service;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\commerce_order\Entity\OrderTypeInterface;
use Drupal\commerce_order\OrderProcessorInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
/**
* Applies tax services to orders during the order refresh proce... | true |
584e250fef715c32c9731d76ec9e17ac99ecaa66 | PHP | h4kuna/mail-manager | /src/Template/LayoutFactory.php | UTF-8 | 2,299 | 2.84375 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace h4kuna\MailManager\Template;
use Nette\Application\UI\ITemplate;
class LayoutFactory
{
/** @var ITemplateFactory */
private $templateFactory;
/** @var string */
private $mailDir;
/** @var Layout */
private $lastLayout;
/** @var string */
private $plainMacro;
/**... | true |
0a10137987fbacd1ad00f03f0e43049886b3ef3b | PHP | astehlik/typo3-extension-tinyurls | /Classes/Hooks/DatabaseRecordList.php | UTF-8 | 2,867 | 2.53125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Tx\Tinyurls\Hooks;
/* *
* This script belongs to the TYPO3 extension "tinyurls". *
* *
* It is free software; you c... | true |
fa145dd88326f4c21df9c7b1a5d086ded3000f29 | PHP | yiqiang3344/site_template | /protected/models/MContact.php | UTF-8 | 3,047 | 2.546875 | 3 | [] | no_license | <?php
class MContact extends YActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return User the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($classNam... | true |
4589c761b9b1fb63e1f03e56450d4380241fc2ec | PHP | NTUCSIECouncil/JudgeWeb | /admin/admin_contest.php | UTF-8 | 5,941 | 2.65625 | 3 | [] | no_license | <?php
session_start ();
if ($_SESSION["group"]!="admin") {
header ("Location: ../index.php");
exit (0);
}
require_once ("../lib/php/func.php");
require_once ("../lib/php/dblink.php");
if ($_GET["del"]) {
$id = $_GET["del"];
$sql = "delete from contests where contest_id=$id";
mysql_query ($sql) or die ("Invalid q... | true |
cb9e5d5fb34ff0b2ef380c996447bfd3ac9127a7 | PHP | himanshupatel79/php-oop-unit-testing | /src/Football.php | UTF-8 | 3,770 | 3.296875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Himanshu
* Date: 14/04/2016
* Time: 10:10
*/
namespace SSDMTechTest;
class Football implements EventInterface, EventStorageInterface
{
public $start_time = 6000;
static public $goal = 1;
public static $half_time = 3000; // 3000 seconds, 45 Minutes
public $e... | true |
fa0a7a0c24d2e442da44ec699b4f27149ce8492f | PHP | 131k0032/curso-php-7 | /concatenaciones/concatenaciones.php | UTF-8 | 358 | 3.234375 | 3 | [] | no_license | <?php
$saludo="Hola mundo";
$mensaje="El ganador es el numero ";
$ganador=8889;
//se puede mezclar mientras esté dentro de comillas dobles
echo "el numero ganador es $ganador";
//concantenando con punto
echo "el numero ganador es" . $ganador;
//concantenando con commillas simples
echo 'el numero ganador es' .$ganad... | true |
c56070be4a0a5e2d6521598d185705f81c993ad2 | PHP | packaged/form | /php/tests/DataHandlers/BooleanHandlerTest.php | UTF-8 | 845 | 2.578125 | 3 | [] | no_license | <?php
namespace Packaged\Tests\Form\DataHandlers;
use Packaged\Form\DataHandlers\BooleanDataHandler;
use PHPUnit\Framework\TestCase;
class BooleanHandlerTest extends TestCase
{
public function testCheckbox()
{
$h = new BooleanDataHandler();
self::assertFalse($h->getValue());
$h->setValue('sgfsafhasd... | true |
cd71152c6e7bd8423d4ef351841131b1573e269c | PHP | jairzea/evertec | /modelos/Ordenes.modelo.php | UTF-8 | 3,630 | 2.859375 | 3 | [] | no_license | <?php
require_once "conexion.php";
class OrdenesModelo
{
/*=============================================
MOSTRAR USUARIOS
=============================================*/
static public function mdlMostrarOrdenes($tabla, $item, $valor)
{
if($item != null){
$stmt = Conexion::conectar()->prepare("SELECT * F... | true |
4d20e136244f2a44078045c8a2405b541ae2da0f | PHP | Jordan-Philippot/MVC_PiePHP | /MVC_PiePHP/src/Model/MovieModel.php | UTF-8 | 3,069 | 2.5625 | 3 | [] | no_license | <?php
namespace Model;
use Core\Database;
use PDO;
class MovieModel extends AppModel
{
public function movie()
{
$statement = $this->db->prepare('SELECT film.date_debut_affiche AS "debut_affiche", film.date_fin_affiche AS "fin_affiche",
film.id_film AS "id_film", film.titre AS "titre", film.r... | true |
9d84ffa1e0d485869e207eee53bf53649f12468f | PHP | Rupesh-Kayastha/medicare_project | /common/models/search/MedicineSearch.php | UTF-8 | 2,522 | 2.546875 | 3 | [] | permissive | <?php
namespace common\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Medicine;
/**
* MedicineSearch represents the model behind the search form about `common\models\Medicine`.
*/
class MedicineSearch extends Medicine
{
public $BrandName;
/**
* @inherit... | true |
81f9689c727919b88d83abbf4d7ecb6693622b89 | PHP | ProAI/lumen-annotations | /src/Metadata/AnnotationLoader.php | UTF-8 | 867 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace ProAI\Annotations\Metadata;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Illuminate\Filesystem\Filesystem;
class AnnotationLoader
{
/**
* The filesystem instance.
*
* @var \Illuminate\Filesystem\Filesystem
*/
protected $files;
/**
* Create a new an... | true |
0154d330218a565915bc0a976e9dc651701244cb | PHP | mhaddadf/salonerp | /salonerp-1.1/_db.php | UTF-8 | 1,187 | 2.703125 | 3 | [] | no_license | <?php
require_once("config/config.php");
require_once("config/sql.php");
if($GLOBALS["configuration"]["database-type"] == "SQLite")
{
$db = new PDO('sqlite:database.sqlite');
}
else if($GLOBALS["configuration"]["database-type"] == "MySQL")
{
$db = new PDO(
'mysql:host='.$GLOBALS["configuration"]["mysql-server"].'... | true |
e8a19379c2e5ba4e35722ea22b7eed27ac376758 | PHP | dwyenp1/IN612dwyenp1 | /nicDwyerAssignment1/createTables.php | UTF-8 | 1,082 | 2.703125 | 3 | [] | no_license | <?php
include "connect.php";
//Set up the event/athlete tables with a foreign key
try
{
$dropQuery = "DROP TABLE IF EXISTS tblAthlete";
$pdo->exec($dropQuery);
$dropQuery = "DROP TABLE IF EXISTS tblEvent";
$pdo->exec($dropQuery);
//Create Event table
$createQuery ="CREATE TABLE tblEvent
(
iD ... | true |
05ce8334921e7541293e5bbce7736e391d112c00 | PHP | enscope/corelib | /src/Utils/ClassUtils.php | UTF-8 | 862 | 2.78125 | 3 | [] | no_license | <?php
namespace Corelib\Utils
{
class ClassUtils
{
public static function implementsInterface($class_name, $interface)
{
return (array_key_exists($interface, class_implements($class_name)));
}
public static function getClassName($obj)
{
if (!($parts = self::getClassNameParts($obj)))
{... | true |
74e37f94023b90e9d4e09572e003f26786b52138 | PHP | hotwire12/OpenEndgame | /php/autocomplete.php | UTF-8 | 727 | 2.609375 | 3 | [] | no_license | <?php
if (isset($_GET['q']) and $_GET['q'] != '') {
$schema = json_decode(file_get_contents('../api/440_schema.json'), true);
$schemaItems = $schema['items'];
//
$string = strtoupper($_GET['q']);
// initialize the results array
$results = array();
foreach ($schemaItems as $item) {
// if it starts with 'part' a... | true |
fab991e2aa41a471a35cb339aaf631734dcfc477 | PHP | atoms183/blog | /index.php | UTF-8 | 4,306 | 2.5625 | 3 | [] | no_license | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Авторизация на сайте:</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
</head>
<style>
body {
background-image: url(img/OZ5NRVL6Q... | true |
1ebba72156debcd71bf3c4af33dbf17eaacbd1ee | PHP | leolm83/Aprendizado.PHP | /03/index.php | UTF-8 | 107 | 3.328125 | 3 | [] | no_license | <?php
/*While loop em PHP*/
$numero=0;
while($numero<10){
echo " N: ".$numero."<br>";
$numero++;
} | true |
42b25bb75a8557419e1c53b27e4ed72fd41842fe | PHP | benjaminhansen/workday-wsdl | /src/StructType/Workteam_Response_DataType.php | UTF-8 | 4,477 | 2.8125 | 3 | [] | no_license | <?php
namespace WorkdayWsdl\\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for Workteam_Response_DataType StructType
* Meta information extracted from the WSDL
* - documentation: Get Workteam Response Data.
* @subpackage Structs
*/
class Workteam_Response_DataType extends Ab... | true |
556ec667af464ccaa4f65b1596a643fce6ef5f1e | PHP | bb-drummer/profiler | /tests/Profiler/CsvTableTest.php | UTF-8 | 1,264 | 2.84375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | <?php
use Profiler\Writer\CsvTable;
use Profiler\Profiler;
/**
* CsvTable test case.
*/
class CsvTableTest extends PHPUnit_Framework_TestCase
{
/**
*
* @var Profiler
*/
private $profiler;
/**
*
* @var CsvTable
*/
private $csvTable;
/**
* Prepares the ... | true |
4cac1de6631dbe65d559e6f81b55c67872e2d353 | PHP | glensee/BIOS | /app/loginProcess.php | UTF-8 | 1,418 | 2.671875 | 3 | [] | no_license | <?php
require_once 'include/common.php';
// isMissingOrEmpty(...) is in common.php
$errors = [ isMissingOrEmpty ('username'), isMissingOrEmpty ('password') ];
$errors = array_filter($errors);
if (!isEmpty($errors)) {
$_SESSION['errors'] = $errors;
header("Location: login.php");
exit();
}
$username = $_P... | true |
79a112707c97c4eb1eb1e44cf21ae6c47f4bc180 | PHP | natsumeaurlia/purePHP_board | /mypage.php | UTF-8 | 1,904 | 2.671875 | 3 | [] | no_license | <?php
require('functions.php');
session_start();
if(!empty($_GET))
{
if(!empty($_GET['user_id']) && is_numeric($_GET['user_id']))
{
$user_id = htmlspecialchars($_GET['user_id'],ENT_QUOTES);
$pdo = connectDB();
//対象ユーザー情報取得
$stmt = $pdo->prepare('SELECT * FROM members WHERE id = :id');
$stmt->execute(array('... | true |
5357acbc6304674e9233276bcc7ab35ed38d144a | PHP | MarioLegenda/iWant | /src/Etsy/Library/Response/ShippingProfileEntriesResponseModel.php | UTF-8 | 1,527 | 2.640625 | 3 | [] | no_license | <?php
namespace App\Etsy\Library\Response;
use App\Etsy\Library\Response\ResponseItem\ResultsInterface;
use App\Etsy\Library\Response\ResponseItem\ShippingProfileEntriesResults;
use App\Library\Tools\LockedImmutableGenericHashSet;
use App\Library\Tools\UnlockedImmutableHashSet;
class ShippingProfileEntriesResponseMo... | true |
2c25f5e559df475101d176a75fa9627ed4af1488 | PHP | bitapihub/api-optimization-engine | /fuel/app/modules/v1/classes/usage.php | UTF-8 | 5,684 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Copyright 2015 Bit API Hub
*
* API usage handler
*/
namespace V1;
class Usage
{
/**
* Get the usage statistics for the chosen account
*
* @param mixed $api The name of the API to retrieve stats for, boolean false to pull the
* account total, or empty to get everything
* @return arra... | true |
71349d237a29594736d65cdcdda92e735fade7a9 | PHP | Nureke-hub/Grant_Distribution_Laravel | /app/Models/User.php | UTF-8 | 1,001 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use HasFactory, Notifiable;
protected $table="u... | true |
c1c677e94dd15848b80537fbd3d07ce824c059d3 | PHP | jruizsimari/Blog | /src/Sdz/BlogBundle/Entity/ArticleRepository.php | UTF-8 | 6,876 | 2.734375 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace Sdz\BlogBundle\Entity;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Tools\Pagination\Paginator;
/**
* ArticleRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ArticleRepository extends EntityRepository
{
public function ... | true |
87aefe33ab98ad894c37398fd8135f001a3a2493 | PHP | nancy0625/login | /mysql/registerdo.php | GB18030 | 584 | 2.53125 | 3 | [] | no_license | <?php
require_once 'dbconfig.php';
header("content-type:text/html;charset=utf-8");
//ȡݿ
$username =$_POST['username'];
$password=$_POST['password'];
//ժҪ
$password2=sha1($password);
//sqlֵַţֶ
$sql="insert into user(id,username,password,status) values (null,'$username','$password2',1)";
if(mysql_query($sql))... | true |
476f07a840203031090ac9faf949c1d9e5e371dc | PHP | vpninfotech/srapo1 | /manufacturer/models/reports/Billing_pending_report_model.php | UTF-8 | 3,289 | 2.546875 | 3 | [] | no_license | <?php
/**
* Product Purchased Report Model Model Class
* Collection of various common function related to order database operation.
*
* @author Indrajit Kaplatiya
* @license http://www.vpninfotech.com/
*/
class Billing_pending_report_model extends CI_Model
{
/**
*
* @function name : __construct()
* @... | true |
0c711d9b75f2e033825f94c60d731e7e77cf7af5 | PHP | seydinand18/tournoi_foot | /classes/Equipes.class.php | UTF-8 | 1,104 | 2.671875 | 3 | [] | no_license | <?php
/**
*
*/
require_once "classes/DataObject.class.php";
class Equipes extends DataObject
{
protected $data = array(
"idequipes"=>"",
"equipesName"=>"",
"equipesEmbleme"=>"",
"equipesDrapeau"=>""
);
public static function getEquipe($idequipes){
$conn = parent::co... | true |
a78e83df28b25b1042b6d1f37968c4de7581a902 | PHP | KuzmichevaKsenia/shop.ru | /www/lib/manageadmin_class.php | UTF-8 | 14,369 | 2.640625 | 3 | [] | no_license | <?php
require_once "manage_class.php";
require_once "urladmin_class.php";
require_once "auth_class.php";
require_once "item_class.php";
require_once "brand_class.php";
require_once "color_class.php";
class ManageAdmin extends Manage
{
private $url_admin;
private $item;
private $brand;
private $color;
... | true |
30729c21d4be5f5ee2cac8663bb1a98cceaacbe9 | PHP | mackecm2/texaco-loyalty | /FileProcessing/AddHocProcessing/OctoberBonus.php | UTF-8 | 3,414 | 2.609375 | 3 | [] | no_license | ********************************************************************
**
** Processing File
**
********************************************************************
<?php
error_reporting( E_ALL );
//******************************************************************
//
// FileProcess.php
// Reads in a file f... | true |
a8d20f4d292ae6d2b1decc17b97f63e488a3653d | PHP | luigif/WsdlToPhp | /samples/serviceobjects-fast-quote/Symbol/SOFastQuoteServiceSymbol.php | UTF-8 | 1,693 | 2.6875 | 3 | [] | no_license | <?php
/**
* Class file for SOFastQuoteServiceSymbol
* @date 08/07/2012
*/
/**
* Class SOFastQuoteServiceSymbol
* @date 08/07/2012
*/
class SOFastQuoteServiceSymbol extends SOFastQuoteWsdlClass
{
/**
* Method to call SymbolLookup
* Meta informations :
* - documentation : Returns a symbol based on a Company... | true |
2654cdc922418f8c4729635500536313026f6de8 | PHP | hiden2/thinkshop | /Application/Admin/Model/CategoryModel.class.php | UTF-8 | 1,775 | 2.515625 | 3 | [] | no_license | <?php
namespace Admin\Model;
use Think\Model;
class CategoryModel extends Model {
// 自动验证
protected $_validate=array(
array('name','require','分录名称不能为空'),
array('name','','分录已经存在',0,'unique',1),
);
// 添加
public function insert($data){
$res=$this->add($data);
return $res;
... | true |
6f0222219ee577c5cc48a4266d2f3bd216c6f58c | PHP | HackingPolitics/hp-backend | /src/Event/Entity/UsedArgumentEvent.php | UTF-8 | 409 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Event\Entity;
use App\Entity\UsedArgument;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Base class for events triggered for an usedArgument.
*/
abstract class UsedArgumentEvent extends Event
{
public UsedArgument $usedArgument;
public function __construc... | true |
39997b5fd0e67df2193db17467eee86e6df964dd | PHP | dct2012/laminas-users | /src/php/src/Model/Helper/AdminPageVisitHelper.php | UTF-8 | 2,050 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
declare( strict_types = 1 );
namespace App\Model\Helper;
use App\Model\AdminPageVisit;
use App\Model\Values\AdminPageVisitFields as APVFs;
class AdminPageVisitHelper extends AbstractHelper {
/** @return string */
static protected function getTableName(): string {
return 'admin_page_visits';
}
/** @retu... | true |
c935b42759a4839c270255d9f30c0766c796c419 | PHP | 2017JosePablo/Paradigmas | /content/data/examenTuberculosisData.php | UTF-8 | 2,889 | 2.90625 | 3 | [] | no_license | <?php
//include 'data.php';
require_once 'data.php';
include '../domain/examenTuberculosis.php';
class examenTuberculosisData extends Data{
private $data;
function __construct(){
$this->data = new Data();
}
public function insertarExamen($examen){
$conn = new mysqli($this->data->getServ... | true |
0960b8b472b429f3efd808b1cc04fa49497b49ce | PHP | codacy-badger/czechDataBox | /src/Utils/Validator.php | UTF-8 | 1,769 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
/**
* Created by PhpStorm.
* User: Tomas Kulhanek
* Email: info@tirus.cz
*/
namespace HelpPC\CzechDataBox\Utils;
use HelpPC\CzechDataBox\Exception\InputNotValid;
use Nette\Utils\Strings;
use Nette\Utils\Validators;
class Validator extends Validators
{
public static function i... | true |
dee45819334397bcb266342b2f0ed2a72bb8233a | PHP | TechKingsUG/panel | /app/Http/Requests/Api/Application/Users/StoreUserRequest.php | UTF-8 | 1,625 | 2.625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <?php
namespace Pterodactyl\Http\Requests\Api\Application\Users;
use Pterodactyl\Models\User;
use Pterodactyl\Services\Acl\Api\AdminAcl;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
class StoreUserRequest extends ApplicationApiRequest
{
/**
* @var string
*/
protected $resour... | true |
d501a6aa46e22b7fc07cda14277d15623c7de968 | PHP | jimmytidey/think_tank_bank | /text_analysis_scripts/entity_extraction.php | UTF-8 | 3,019 | 2.5625 | 3 | [] | no_license | <?php
/*
* entity_extraction
*
* Extracts entities from a body of text
*
* @content (text) Some text to extract entities from
* @return (array) Entities extracted
*/
function entity_extraction($content)
{
// Your license key (obatined from api.opencalais.com)
$contentType = "text/txt"; // simple tex... | true |
8d28896e7e5324b94ee9cc2de43d211c470495a7 | PHP | JeremyDps/todolist_php_ajax | /server.php | UTF-8 | 4,208 | 3.046875 | 3 | [] | no_license | <?php
try {
$pdo = new PDO('mysql:host=localhost;dbname=todo-list;charset=utf8', 'root', '');
} catch (Exception $e) {
die('Erreur : ' . $e->getMessage());
}
//Si action est dans l'url alors $action prend sa valeur, sinon il prend une chaîne vide
$action = isset($_GET['action']) ? $... | true |
ff8d8b0de749973f6e7ad051aa49c9d8b14b7dd7 | PHP | JetBrains/phpstorm-workshop | /workshop/05_Refactoring/04_Extract_Constant.php | UTF-8 | 915 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Extract Constant
*
* Ctrl+Alt+C (Windows/Linux)
* Alt+Command+C (macOS)
*
* Extract a constant to make code cleaner and more maintainable.
*/
namespace Refactoring4\JetBrains;
// 1. Extract "----------------------\r\n" into a constant named HORIZONTAL_LINE.
echo "----------------------\r\n";
echo "... | true |
4e4b17df6f9cf083638f59a1affbbcb09f2a0395 | PHP | bazo/nette-mongodb-sandbox | /app/console/extensions/ConsoleExtension.php | UTF-8 | 1,779 | 2.640625 | 3 | [] | no_license | <?php
namespace Extensions;
use Nette\Config\Configurator,
Nette\Framework;
/**
* Console service.
*
* @author Martin Bažík
*/
class ConsoleExtension extends \Nette\Config\CompilerExtension
{
/**
* Processes configuration data
*
* @return void
*/
public function loadConfiguration()
{
$container = $t... | true |
7deadf975978ca69fbb63a2e3422e33c4f803ee7 | PHP | wumengshengxs/swoole | /demo/memory/table.php | UTF-8 | 677 | 2.921875 | 3 | [] | no_license | <?php
//创建内存表
$table = new Swoole\Table(1024);
//内存表增加一行
$table->column('id',$table::TYPE_INT,8);
$table->column('name',$table::TYPE_STRING,128);
$table->column('age',$table::TYPE_INT,8);
$table->create();
//存值
$table->set('singwa_imooc',['id'=>1,'name'=>'li','age'=>22]);
//第二种存值方案
$table['singwa_imooc_1'] = [
... | true |
ca0659e2fd91c024436faf9cd47faa3c764bff5e | PHP | eduardolopezm/grp_analisis | /mvc/model/Locstockcls.php | UTF-8 | 4,011 | 2.796875 | 3 | [] | no_license | <?php
/***/
class Locstockcls{
private $loccode;
private $stockid;
private $quantity;
private $quantityprod;
private $reorderlevel;
private $ontransit;
private $quantityv2;
private $timefactor;
private $delay;
private $localidad;
private $minimumlevel;
private $qtybyse... | true |
dc16daae7b00af4676f783afa28c6e204f9fc0cf | PHP | htmlacademy-yii/1021437-task-force-1 | /src/classes/actions/RefuseAction.php | UTF-8 | 393 | 2.609375 | 3 | [] | permissive | <?php
namespace Task\classes\actions;
class RefuseAction extends AbstractAction
{
public function getName(): string
{
return 'Отказаться';
}
public function getPrivateName(): string
{
return 'deny';
}
public function checkRule(int $user, int $executor, int $currentUser):... | true |
ac013d965817ce5c61086437591e27c1a354ba4b | PHP | alfredlaggner/schedule2.ozinc.info | /app/Console/Commands/simPaymentAdd.php | UTF-8 | 1,424 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use GuzzleHttp\Client;
class simPaymentAdd extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sim:payment_add';
/**
* The console command descript... | true |
9d79a19d54ea74a189b111e38d6da3edc42332dc | PHP | cindymxcai/cabs | /adminDelete.php | UTF-8 | 796 | 2.515625 | 3 | [] | no_license | <?php
//Cindy Cai 16938610 processes the admin assign booking area
require_once ("../../../conf/settings.php");
$conn = @mysqli_connect($host, $user, $pswd, $dbnm)
or die("Failed to connect to DB");
//takes in input
$bref = $_GET['number'];
// query database for bookings that match input
... | true |
70e295aaf21a542715c8b1d26e0878dc359de792 | PHP | beatlabs/load | /src/Loader/PHPLoader.php | UTF-8 | 764 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace BeatLabs\Load\Loader;
use BeatLabs\Load\Exception\FileNotFoundException;
use BeatLabs\Load\Exception\InvalidPHPConfiguration;
use BeatLabs\Load\Interfaces\Loader;
class PHPLoader implements Loader
{
/** @var string */
private $file;
public function __construct(s... | true |
582f4789aa027e47a300279f21a2a3b64bb6ee68 | PHP | notchafrica/git | /src/Github.php | UTF-8 | 4,123 | 2.90625 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace Songshenzong\Git;
use HttpX\Tea\Tea;
use HttpX\Tea\Response;
use GuzzleHttp\Psr7\Request;
use Songshenzong\Support\Arrays;
/**
* Class Github
*
* @package Songshenzong\Git
*/
class Github
{
/**
* @var array
*/
protected static $organizationRepositories;
/**
* @param st... | true |
6533dfc622c6c22999781b28d814b1862b1a511f | PHP | quachvanhao2020/YPHP | /src/HttpStream.php | UTF-8 | 959 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace YPHP;
class HttpStream extends Stream{
private $meta;
/**
* Returns the remaining contents in a string
*
* @return string
* @throws \RuntimeException if unable to read or an error occurs while
* reading.
*/
public function getContents(){
return fi... | true |
3c6609a015373db584f13c791c1a638ba65be74b | PHP | natedtcc/jazz-lounge-v2 | /src/Services/GenerateToastService.php | UTF-8 | 614 | 2.703125 | 3 | [] | no_license | <?php
// src/Services/PaginationService.php
namespace App\Services;
class GenerateToastService
{
function generateSuccessToast(string $string){
$toast = [
'message' => $string,
'type' => "custom_alert alert-success"
];
return $toast;
}
function generateErrorToast(string $string)... | true |
e2bd1fed4b737f0118d424f6530b17f3d1891308 | PHP | rianmartins/vshop | /database/seeds/UsersTableSeeder.php | UTF-8 | 630 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Seeder;
use App\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$user1 = new User();
$user1->name = "Miguel Ataíde";
$user1->email = "miguelataide365@gmail.com"... | true |
04c6acc429370e4388308cadff8c8541896a8796 | PHP | asika32764/muse | /src/Muse/Template/AbstractTemplate.php | UTF-8 | 2,593 | 2.640625 | 3 | [] | no_license | <?php
/**
* Part of muse project.
*
* @copyright Copyright (C) 2011 - 2015 SMS Taiwan, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
namespace Muse\Template;
use Muse\IO\IOInterface;
use Windwalker\Structure\Structure;
/**
* Class Template
*
* @since 1... | true |
c437e922a9eed43ff9069f3a65d8e9c8a0858dcc | PHP | yihaocompany/dldh | /app/common/models/Area.php | UTF-8 | 5,593 | 2.828125 | 3 | [] | no_license | <?php
namespace Dldh\Models;
class Area extends Zmodelbase
{
/**
*
* @var integer
* @Primary
* @Identity
* @Column(column="id", type="integer", length=11, nullable=false)
*/
protected $id;
/**
*
* @var string
* @Column(column="area_name", type="string", length=... | true |
0b498f0022e8da4df90f5b3cef2b4ee2f40df915 | PHP | CamiloBallesteros/PHP-Project---MVC | /models/consultamodel.php | UTF-8 | 2,102 | 2.6875 | 3 | [] | no_license | <?php
include_once 'models/evento.php';
include_once 'models/asistente.php';
include_once 'models/asist_event.php';
class ConsultaModel extends Modelo{
public function __construct(){
parent::__construct();
}
public function select($datos){
$tabla = $datos['tabla'];
$items = [];
... | true |
35004a2d81f0e66e1fa18d2e8da9e0f430a2350e | PHP | shrink0r/php-schema | /src/Property/PropertyInterface.php | UTF-8 | 1,229 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
namespace Shrink0r\PhpSchema\Property;
use Shrink0r\PhpSchema\ResultInterface;
use Shrink0r\PhpSchema\SchemaInterface;
interface PropertyInterface
{
/**
* Tells if a given value is valid according to the property's specifics.
*
* @param mixed $value
*
* @return ResultInterface Retu... | true |
9b3ab76b78e4ca58691fa1c4c9ad85f8a7d88a6a | PHP | albertosql/-PAPS-Sistema-de-Gerenciamento-de-Frotas | /stpcu/models/CategoriaVeiculo.php | UTF-8 | 1,002 | 2.53125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "categoria_veiculo".
*
* @property integer $id
* @property string $nome
*
* @property Solicitacao[] $solicitacaos
*/
class CategoriaVeiculo extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function ... | true |
d46babb3b5fa1d56ad18f903c7ba1245fc1362c9 | PHP | kylegarrettwilson/Barcoder-Version-2.3 | /Master/src/update.php | UTF-8 | 9,051 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/* --------------------------------------------------
SlaRle.js by BobbyJay <https://github.com/BobbyJay/SlaRle.js>
This software is provided under the MIT license, http://opensource.org/licenses/MIT.
All use of this software must include this
text, including the reference to the creator of the original ... | true |
e467b04ba5a01b8e54d8926a336f14ba474e0a33 | PHP | vinh28193/old-job | /models/FreeContent.php | UTF-8 | 2,709 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use app\models\queries\FreeContentQuery;
use proseeds\models\BaseModel;
use Yii;
use yii\helpers\Url;
/**
* This is the model class for table "free_content".
*
* @property integer $id
* @property integer $tenant_id
* @property string $title
* @property string $keyword
* @property s... | true |
34479345fb839f8189de46ffa769a5f7d89c1e23 | PHP | uarmadik/home-work | /objects/signin.php | UTF-8 | 1,041 | 2.875 | 3 | [] | no_license | <?php
class SignIn
{
var $error;
var $_post;
var $user_name;
var $user_password;
function checkUser($name_from_db, $password_from_db)
{
if($this->user_name == $name_from_db){
if(password_verify($this->user_password, $password_from_db)) return true;
} else {
... | true |
cf4c7c4f2d6b401543e6eafca1d1c3bcb5476d38 | PHP | brettwhitty/bw-msu-sites | /solcomp/htdocs/includes/_content.species.php | UTF-8 | 1,477 | 2.984375 | 3 | [] | no_license | <?php
require('left_menu.inc.php');
require_once('php-lib/TaxonList.php');
$t = new TaxonList(1);
$species = $t->get_array();
// accept a get variable 'g' for genus
// $genus = (isset($_GET['g'])) ? $_GET['g'] : null;
// read genus name from path_info
require_once('pathi... | true |
d312cd6b247e4519b595fb66680207a9f1f68a9b | PHP | iron-bound-designs/IronBound-DB | /src/Table/ForeignKey/DeleteConstrainable.php | UTF-8 | 709 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Contains the definition for the DeleteConstrainable interface
*
* @author Iron Bound Designs
* @since 2.0
* @license MIT
* @copyright Iron Bound Designs, 2016.
*/
namespace IronBound\DB\Table\ForeignKey;
use IronBound\DB\Table\Column\Foreign;
/**
* Interface DeleteConstrainable
* @packag... | true |
01d23fdaff2b62433ba6063a08f79563060b3a43 | PHP | strikerlg/Tournament-8 | /src/Pstryk82/LeagueBundle/Event/AbstractEvent.php | UTF-8 | 456 | 2.578125 | 3 | [] | no_license | <?php
namespace Pstryk82\LeagueBundle\Event;
abstract class AbstractEvent
{
/**
* @var string
*/
protected $aggregateId;
/**
* @var \DateTime
*/
protected $happenedAt;
/**
* @return string
*/
public function getAggregateId()
{
return $this->aggregate... | true |
50c3ccc866a006549f51ac4e185b2869ad6494b4 | PHP | CodeImmersives/search-suggestions | /member.php | UTF-8 | 1,731 | 2.75 | 3 | [] | no_license | <?php
/*
*** // ==== // *** // AUTOCOMPLETE SEARCH SUGGESTION // ==== // **** // ====
Creating Autocomplete or Search Suggestion Functionality with PHP and MySQL a.k.a.
Friendly Search : predict or help compose a user's search query.
This application uses Twitter’s Typeahead.js -- a Javascript L... | true |
535fa602fb32355434d390bd4037170de05164c8 | PHP | jorit-vasconezgerlach/fibonacci-php | /index.php | UTF-8 | 892 | 3.109375 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<title>Fibonacci Numbers</title>
<link rel="stylesheet" href="page.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<main>
<p st... | true |
f0670536b752cb20072c053e9270f8a0cf33da00 | PHP | PiloudeDakar/ZenoCore | /src/Zeno/Commands/Online.php | UTF-8 | 1,151 | 2.9375 | 3 | [] | no_license | <?php
namespace Zeno\Commands;
use Zeno\Core;
use pocketmine\command\PluginCommand;
use pocketmine\command\CommandSender;
use pocketmine\Player;
class Online extends PluginCommand {
private $plugin;
public function __construct(Core $plugin) {
parent::__construct("list", $plugin);
$this->set... | true |
8b0e81acf0447c4a7e8a398abd0d5aa3c91ed43c | PHP | bina-antarbudaya/OR14 | /app/models/user.php | UTF-8 | 3,980 | 2.90625 | 3 | [] | no_license | <?php
/**
* User
*
* @author Andhika Nugraha <andhika.nugraha@gmail.com>
* @package auth
*/
class User extends HeliumRecord {
public $id;
public $username;
public $password_hash;
public $email;
public $role; // now an integer
public $chapter_id;
public $email_verified;
public function init() {
$this->... | true |
a82355b4d0eb44032d1d5fe67d302b47076baad2 | PHP | Youssef-kobi/php-pool | /Day01/ex07/rostring.php | UTF-8 | 342 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/php
<?php
if ($argc > 1)
{
$words = str_word_count($argv[1]);
$string = explode(' ',preg_replace('/^\s+|\s+$|\s+(?=\s)/', '',$argv[1]));
$first[] = $string[0];
unset($string[0]);
for ($i=1; $i < $words; $i++)
$string[$i] .= " ";
$string = array_merge($string , $first);
printf(implode($string... | true |
ccfb2fb1f695c868fda57ce877d040f8b33c9dfe | PHP | felipenaf/importacao_csv | /leitura_csv.php | UTF-8 | 631 | 3.265625 | 3 | [] | no_license | <?php
function leitura_csv(){
//A função fopen abre o arquivo
//o "r" é de read = leitura
$arquivo = fopen("clientes.csv", "r");
// O fgetcsv serve para quebrar a informação no ";"
//Ex: felipe;felipe@felipe;rua pontal;11/07/2016
//felipe felipe@felipe rua pontal 11/07/2016
$row = 0;
while ($line = ... | true |
a1e7c5ea183d586cfe41fbde99433f08d1cd5a0a | PHP | Chlibaton/Tracking-system | /app/Broadcasting/jofstatus.php | UTF-8 | 455 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Broadcasting;
use App\Joforder;
class jofstatus
{
/**
* Create a new channel instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Authenticate the user's access to the channel.
*
* @param \App\User $user
* ... | true |
e517594ecc3bce7c931e405a22c4ba6ffd2d3ade | PHP | mkostrzycki/something-like-twitter | /src/Comment.php | UTF-8 | 5,337 | 3.234375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Klasa do obsługi komentarzy
*/
class Comment
{
/**
* Stała określająca ID obiektu nieistniejącego w bazie.
*/
const NON_EXISTING_ID = -1;
/**
*
* @var int ID komentarza
*/
private $id;
/**
*
* @var int ID użytkownika, który stworzył komenta... | true |
504fab94d839835b06e4cac5e2790a1b6aaae1c1 | PHP | nours/RestAdminBundle | /Controller/FormController.php | UTF-8 | 1,754 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of RestAdminBundle.
*
* (c) David Coudrier <david.coudrier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nours\RestAdminBundle\Controller;
use Nours\RestAdminBundle\Domain\Actio... | true |