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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ce9303b8d0c0d1bae5f39ecaeb557978df9d9cde | PHP | MohammedSys/NCU-NLIS-E-Learning-Project | /search.php | UTF-8 | 8,353 | 2.609375 | 3 | [] | no_license | <?php session_start(); ?>
<?php
require 'php/permission.php';
include("php/connection.php");
//設定編碼,避免中文字出現亂碼
mysql_query("set names 'utf8'");
?>
<?php
//PDFParser 預設載入項目
include 'assets/comps/vendor/autoload.php';
// searching time limit
set_time_limit("600");
//get the searching keyword
$keyword = htmlspecialchar... | true |
422499c3542ee8102e50712d9c6d0994fad04e93 | PHP | ahmedaof/clothes-shop-pure-php | /add.php | UTF-8 | 2,237 | 2.984375 | 3 | [] | no_license | <?php
session_start();
if(isset($_SESSION['username'])){
}else{
header('Location: index.php');
}
include('config2/connects.php');
$email=$name = $number ="";
$errors = array('email'=>'','name' =>'','number'=>'');
if(isset($_POST['submit'])){
if(empty($_POST['email'])){
$errors['email'] = 'An emai... | true |
d1cecf9712ec343d0a7a862a0b521e022cebac3a | PHP | qamar-h/CSVParser | /src/Service/FileService.php | UTF-8 | 756 | 3.359375 | 3 | [] | no_license | <?php
namespace CSVParser\Service;
class FileService{
/**
* Permet de vérifier si le fichier existe
*
* @param $path
* @throws \Exception
*/
public function exist($path) {
if (! file_exists($path)) {
throw new \Exception('[ERROR] Aucun fichier trouvé');
}... | true |
f972b81881dfc92dcdb2e82c790d22288fdbe13d | PHP | bay122/webUnion | /app/Models/Perfil.php | UTF-8 | 2,016 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $gl_nombre
* @property string $gl_json_permisos
*/
class Perfil extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'perfiles';
... | true |
dd57a76f5b3cab0c2cf71496f4b7cddd3bbdf0a3 | PHP | asartalo/aswf | /tests/Asar/Tests/Unit/Template/TemplateAssemblerTest.php | UTF-8 | 6,431 | 2.625 | 3 | [] | no_license | <?php
/**
* This file is part of the Asar Web Framework
*
* (c) Wayne Duran <asartalo@projectweb.ph>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Asar\Tests\Unit\Template;
use Asar\TestHelper\TestCase;
use Asar\Templ... | true |
63604a41e5b4026b54f177f8b32c35638ff18734 | PHP | dimitrizarkua/SaaS-Backend-Laravel | /app/Components/Finance/Interfaces/InvoiceListingServiceInterface.php | UTF-8 | 1,723 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Components\Finance\Interfaces;
use App\Components\Finance\Models\Filters\InvoiceListingFilter;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Collection;
/**
* Interface InvoiceListingServiceInterface
*
* @package App\Components\Finance\Interfaces
*/
interface InvoiceListing... | true |
e2b50809243f474e37be9b65efe4f282be92a2d8 | PHP | yickson/front-rest | /default/app/models/directorio.php | UTF-8 | 2,385 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Modelo para gestionar el directorio de SM
*/
class Directorio
{
public static function getDirectorio($user = null, $password = null) {
$ldap_host = "10.120.0.31"; //10.120.15.29 --- 10.120.0.31
$ldap_dn = "DC=smcl,DC=net";
$base_dn = "DC=smcl,DC=net";
$ldap_usr_dom = "@smcl.net";
$ldap ... | true |
c5291db237d6726dce87a12328eff57347f069dc | PHP | vragosta/Calico-Code | /Update/scripts/profilestats.php | UTF-8 | 545 | 2.53125 | 3 | [] | no_license | <?php
session_start();
include("connection.php");
$sql = 'SELECT * FROM userprofile WHERE id="' . $_SESSION['id'] .'"';
$query = mysqli_query($link, $sql);
$row = mysqli_fetch_array($query);
echo '<center>';
echo 'Web ID: ' . $row['id'] . '<br />';
echo 'First Name: ' . $row['firstname'] . '<br />';
echo... | true |
7fc58de67ec3660f40b04f839155beaba8445991 | PHP | adnan116/Validation_Javascript | /data.php | UTF-8 | 772 | 2.671875 | 3 | [] | no_license | <?php
if(isset($_POST['er']))
{
echo $_POST['er'];
}
else
{
$name = $_POST['Name'];
$email = $_POST['Email'];
$uname = $_POST['Uname'];
$pass = $_POST['Pass'];
$gender = $_POST['Gender'];
$day = $_POST['Day'];
$month = $_POST['Month'];
$year = $_POST['Year'];
$date = $day."/".... | true |
832cefee1556885cfb43a429695a5b1b3ca4e386 | PHP | Cecep01/pindahan-file | /switch case/switch.php | UTF-8 | 1,203 | 3.015625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form method="POST" action="">
<table>
<tr>
<td>Masukan ... | true |
d2def6b5e924b6201bbe88352dd4ea014a11927e | PHP | BarrockWork/Ushopp | /src/Classe/Mail.php | UTF-8 | 1,369 | 2.640625 | 3 | [] | no_license | <?php
namespace App\Classe;
use Mailjet\Client;
use Mailjet\Resources;
class Mail
{
// Mailjet configuration
private $apiKey = '2c99dcd927a77a838adbe312b26f58af';
private $apiKeySecret = '1913a813df43de9886ad6fe79f061a8f';
private int $idDefaultTemplate = 3149457;
/**
* Send an email with m... | true |
ab1726aab30d77d0ec1dc6d5c7343b89c8a4cd6c | PHP | linqiurong/clone-sms | /src/Sms.php | UTF-8 | 1,439 | 2.765625 | 3 | [] | no_license | <?php
namespace clonelin\sms;
use clonelin\sms\library\SendTypeEnum;
class Sms {
// 发送短信
public static function send($sendType,$params = []){
if(!in_array($sendType,[SendTypeEnum::ALI_SMS,SendTypeEnum::LE_SMS])){
throw new \Exception("Send Type Invalidate");
return false;
... | true |
a454440a5ed72ee5abaa27a968dd7eb747240cc0 | PHP | masenjer/doctoratcirurgia | /catala/PHP/News/Clase.php | UTF-8 | 1,966 | 2.5625 | 3 | [] | no_license | <?php
class News {
public $Conexion;
private $SearchText, $SearchDesde, $SearchHasta;
function CargaListadoNews($ST, $SD, $SH, $idN){
session_start();
include ($this->Conexion);
$this->SearchText = $ST;
$this->SearchDesde = $SD;
$this->SearchHasta = $SH;
$_SESSION["SearchText"]... | true |
d5cf753d32295a0459af08ef63427e9b30938f4a | PHP | tijus/alumniportal | /frontend/models/Resume.php | UTF-8 | 1,558 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "resume".
*
* @property integer $resume_id
* @property string $carreer_obj
* @property string $awards
* @property string $sem1
* @property string $sem2
* @property string $sem3
* @property string $sem4
* @property string $sem... | true |
b5b29b6e065d66ec292adc6f5ff65f9fe18efbb3 | PHP | lunojoop/albadi1 | /index.php | UTF-8 | 1,539 | 3.125 | 3 | [] | no_license | <?php
$Résultat="le résultat s'affiche ici";
if (isset($_POST['calculer'])){
if (!empty($_POST['Nombre1']) AND!empty($_POST['Nombre2']) AND !empty($_POST['ordinateur'])){
$Nombre1=$_POST['Nombre1'];
$Nombre2=$_POST['Nombre2'];
$ordinateur=$_POST['ordinateur'];
if (ctype_digit($Nombre1) && ctype_digit($No... | true |
868875646ac89b1ea39a6eabf577e7ed9bcf43a4 | PHP | RoYaLBG/SoftUni-PHP-Forum | /Models/TopicModel.php | UTF-8 | 6,706 | 2.65625 | 3 | [] | no_license | <?php
namespace ANSR\Models;
/**
* Topic model
* @author Ivan Yonkov <ivanynkv@gmail.com>
*/
class TopicModel extends Model {
public function getTopicsByForumId($forum_id) {
$forum_id = intval($forum_id);
$result = $this->getDb()->query("SELECT id, summary, body, forum_id, created_on, user... | true |
eca02d7ef7c98a808720da1617e1a69f699f7222 | PHP | BizShuk/code_sandbox | /php/fizzbuzz.php | UTF-8 | 240 | 3.5 | 4 | [
"MIT"
] | permissive | <?php
$pritned = false;
for ( $i = 1; $i <= 100; $i++ ) {
if ( $i%3==0 && $printed = true ) echo "Fizz";
if ( $i%5==0 && $printed = true ) echo "Buzz";
if ( !$printed ) echo $i;
$printed = false;
echo "\n";
}
?>
| true |
74d55ebc99dfdf025ad8c21aa598e2846876ce97 | PHP | a-ast/poc-akeneo-api-import-with-mq | /src/Command/ProductBatchUpdateCommand.php | UTF-8 | 2,173 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Command;
use Exception;
use App\ProductUpdater\ApiProductBatchUpdater;
use App\ProductUpdater\Exceptions\MissingParentException;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Compone... | true |
ac194a1df2d0619159bedd840f7a747026763f46 | PHP | Elvin-dsouza/quizmaster | /quiz/question_reg.php | UTF-8 | 1,169 | 2.515625 | 3 | [] | no_license | <?php
/*$handle=new mysqli('localhost','root','','sygma');
$handle->query("CREATE TABLE IF NOT EXISTS `question`(qt_id INT(5) PRIMARY KEY AUTO_INCREMENT,q_id INT(10), question_name VARCHAR(128))");
$handle->query("CREATE TABLE IF NOT EXISTS `answer`(a_id INT(5) PRIMARY KEY AUTO_INCREMENT, qt_id INT(10),q_id I... | true |
949f5415a32845d53b603009e869eb0c1ac7cc88 | PHP | mfinkels/miPrimerProyecto | /ALANAPI/vendor/psliwa/php-pdf/lib/PHPPdf/Core/Formatter/ImageConvertAttributesFormatter.php | UTF-8 | 2,349 | 2.53125 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
/*
* Copyright 2011 Piotr Śliwa <peter.pl7@gmail.com>
*
* License information is in LICENSE file
*/
namespace PHPPdf\Core\Formatter;
use PHPPdf\Core\Node\Image;
use PHPPdf\Core\Node\Node;
use PHPPdf\Core\Engine\Image as EngineImage;
use PHPPdf\Util;
use PHPPdf\Core\Document;
/**
* @author Piotr Śliwa <pe... | true |
1beb59b4441ebd4cc4889cb562cb0f0d72f59f50 | PHP | caption1/itaoke | /ITK/Itaoke/poster/ItaokePoster.php | UTF-8 | 6,896 | 2.515625 | 3 | [] | no_license | <?php
include 'phpqrcode/phpqrcode.php';
/**
* itaoke
*/
class ItaokePoster
{
public $config = array(
'image'=>array(array('url'=> '', //图片资源路径
'left'=>220,
'top'=>-173,
'stream'=>0, //图片资源是否是字符串图像流
'right'=>0,
... | true |
d284c85d380f7049d27246db065f9cccfb69649c | PHP | JasperVanEck/webDB13MC1 | /addproducts.php | UTF-8 | 1,261 | 2.546875 | 3 | [] | no_license | <?php
include 'dbconnection.php';
session_start();
if(isset($_SESSION["admin"]) && $_SESSION["admin"] == 1)
{
$name = $_POST["prodname"];
$price = $_POST["prodprice"];
$size = $_POST["prodsize"];
$color = $_POST["prodcolor"];
$metal = $_POST["prodmetal"];
$amount = $_POST["prod... | true |
3f43491009dee6c08684e7700ea5416b3fc19cca | PHP | async-aws/aws | /src/CodeGenerator/src/File/Location/StandalonePackageResolver.php | UTF-8 | 1,236 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace AsyncAws\CodeGenerator\File\Location;
class StandalonePackageResolver implements DirectoryResolver
{
/**
* @var string
*/
private $rootDirectory;
/**
* @var string
*/
private $rootNamespace;
public function __construct(string $rootDirectory, string $rootNamesp... | true |
e629acf0c0df8336527f82d25bbd3b31f37f4b04 | PHP | angacu/figuritasFiguritas | /figuritas.php | UTF-8 | 1,800 | 3.359375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>figuritas y franciscos</title>
<link rel="stylesheet" href="figuritas.css">
</head>
<body>
<h4>Figura 1 (sencilla)</h4>
<?php
$i=1;
while ($i <= 5) {
echo "*";
echo "<br>";
$i++;
}
?>
... | true |
7919829bb5f6b12e87b70b228e61dadb22f9a22a | PHP | derUli/blog_random_article_list | /src/content/modules/blog_random_article_list/main.php | UTF-8 | 1,069 | 2.640625 | 3 | [] | no_license | <?php
function blog_random_article_list_render() {
$html = "<ul class='blog_random_article_list'>";
$limit_sql = "";
$limit_amount = getconfig("blog_random_article_list_amount");
if ($limit_amount) {
$limit_sql = " LIMIT " . $limit_amount;
} else {
return "<div class='ulicms-error... | true |
8f7ff41287cdaf8ce9e6071d4eb3aa99aae10746 | PHP | dbing/BigLionClassWork | /SHUAI/8-30/2.php | UTF-8 | 865 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* User : SHUAI
* Email : 953436658@qq.com
* Referral: This is from a very handsome guy
* control : $param
* content : $方法重写
* content : 子类要父类方法名保持一致,参数的个数一致
* 子类要重写父类方法时,权限修饰要比父类的冠松;
* 当父类方法被子类重写后,parent ::方法名
* final 关键字 修饰的类和方法
* Date : 2017/8/30 0030
* Time ... | true |
52a43ced190f207ec3b271f9ec05bf58eb6d63a6 | PHP | JosephPatena/lvcc-web-app-devt-16-17 | /db-sample/users.php | UTF-8 | 1,537 | 2.734375 | 3 | [] | no_license | <?php
/**
* La Verdad Christian College
* Web Applications Development
* @author Romack Natividad <romacknatividad@laverdad.edu.ph>
* @since November 2016
*/
include_once('db-connection.php');
include_once('UserDAO.php');
$userDao = new UserDAO($pdo);
$users = $userDao->getAllUsers();
?>
<!DOCTYPE html>
<html lang... | true |
fce9032cfc46375ca1f2eb33cad6fb44a0a38ad9 | PHP | therdas/authlib | /TemplateFiller.php | UTF-8 | 307 | 2.625 | 3 | [] | no_license | <?php
function FillTemplate(String $text, $translate) {
if(!$translate) {
$translate = [];
}
$translateTo = [];
foreach($translate as $key => $value) {
$translateTo["{\$".$key."}"] = $value;
}
return str_replace(array_keys($translateTo), $translateTo, $text);
}
?> | true |
111b15515ff6d3419b2725fbe708de3afb9c84a5 | PHP | NicoFRI/EntNote | /App/bloc/devoirs.php | ISO-8859-1 | 2,226 | 2.59375 | 3 | [] | no_license | <?php
session_name("ent");
session_start();
//connection la bdd
include('/../BDD.php');
$bdd = BDD::connect();
//recupere les devoir associs l'utilisateur
$Rep = $bdd->getDevoirEtudiant($_SESSION["Connexion"]["Identifiant"]);
echo '<h3>Mes devoirs </h3>';
echo '<table class=... | true |
c4de90cbcca75b225e4b2214b43cae7531d5baeb | PHP | octalmage/wib | /php-7.3.0/ext/standard/tests/strings/bug40704.phpt | UTF-8 | 244 | 2.5625 | 3 | [
"MIT",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"TCL",
"ISC",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"blessing"
] | permissive | --TEST--
Bug #40704 (strip_tags() does not handle single quotes correctly)
--FILE--
<?php
$html = "<div>Bug ' Trigger</div> Missing Text";
var_dump(strip_tags($html));
echo "Done\n";
?>
--EXPECT--
string(26) "Bug ' Trigger Missing Text"
Done
| true |
5f705ef8ec929f40383e1e8cb520617fa1374ff4 | PHP | ragnarok-exiler/calendar | /code/modules/gestion/Module.php | UTF-8 | 2,916 | 2.75 | 3 | [] | no_license | <?php
namespace app\modules\gestion;
use Yii;
/**
* gestion module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = 'app\modules\gestion\controllers';
/**
* {@inheritdoc}
*/
public function init()
{
par... | true |
29f0c2020b878be642933397e0f278c68e5c5dda | PHP | DatabaseAsAService/df-git | /src/Components/GitHubUser.php | UTF-8 | 625 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace DreamFactory\Core\Git\Components;
use Github\Api\User;
class GitHubUser extends User
{
public function repositories($username, $type = 'owner', $sort = 'full_name', $direction = 'asc', $visibility = 'all', $affiliation = 'owner,collaborator,organization_member', $extra = [])
{
$headers... | true |
0248caa887eecd68dd4956e81c69c30d3042a1db | PHP | BruceGoodGuy/khoauth | /khoa/app/Http/Requests/changeword.php | UTF-8 | 1,063 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use app\word;
use Illuminate\Foundation\Http\FormRequest;
class changeword extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... | true |
263c51366747dbfbb756d85b57489be2da84b775 | PHP | edendeveloper/mercadao | /conexaodb.php | UTF-8 | 591 | 2.609375 | 3 | [] | no_license | <?php
//local servidor
$servername = "localhost";
//usuário de banco de dados
$username = "root";
//senha do usuário de banco de dados
$password = "";
//nome do banco de dados
$dbname = "sistemadb";
//criar a conexão
$conn = mysqli_connect($servername, $username, $password, $dbname);
//conecta ao banco ... | true |
e205fc2d5d796edd15652e7a274f4230030fbff0 | PHP | muhammadrisano/jawaban_soal_arkademy | /4.php | UTF-8 | 506 | 3.25 | 3 | [] | no_license | <?php
$bilangan_array = [6, 22, 34, 15, 2, 13, 26, 57, 42, 32];
$nilai_min = min($bilangan_array);
$nilai_max = max($bilangan_array);
// $ascending =;
// $descending = rsort($bilangan_array);
sort($bilangan_array);
echo "bilangan terkecil =" . $nilai_min . "<br/>";
echo "bilangan terbesar =" . $nilai_max . "<br/>... | true |
46d288ff0bf2c48754b6c09e4cd8b3e09f9af1a4 | PHP | yuricoco/devups | /dclass/devups/Bugmanager.php | UTF-8 | 3,165 | 3 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Bugmanager
*
* @author aurelien.ATEMKENG
*/
class Bugmanager {
static function getError($clas... | true |
d4e5b5b30a6018e48c8d624da467d35ecbc493e3 | PHP | botman/botman | /src/Messages/Conversations/Conversation.php | UTF-8 | 7,794 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace BotMan\BotMan\Messages\Conversations;
use BotMan\BotMan\BotMan;
use BotMan\BotMan\Interfaces\ShouldQueue;
use BotMan\BotMan\Messages\Attachments\Audio;
use BotMan\BotMan\Messages\Attachments\Contact;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Image;
use BotMan\... | true |
7253791eb6afb5ae895676d4e48660bd5e8c6440 | PHP | Subhash-cmd/Ecommerce-Website | /index.php | UTF-8 | 126 | 2.546875 | 3 | [] | no_license |
<?php
&nbps; &nbps; &nbps; &nbps; $string = "! BatMan= () ";
&nbps; &nbps; &nbps; &nbps;echo strlen($string);
?>
| true |
48e815ecc990fe27692252c4c5256bc41950c062 | PHP | a-ghasemi/algorithm-gaming | /testIt2.php | UTF-8 | 582 | 2.578125 | 3 | [] | no_license | <?php
require 'JsonDB.php';
$db = new JsonDB(__DIR__ . '/db_files');
//var_dump($db->select('table1', null));
var_dump($db->select('table1', ['first_name' => 'Ali', 'last_name' => 'AliZadeh', 'country' => 'Iran']));
//var_dump($db->select('table1', ['first_name' => 'Ali']));
$db->insert('table1', ['first_name' =... | true |
1d25eae84c81112b7ae2fc28e6e7914191957350 | PHP | shoaibahmadse/shoaibahmadse | /dist/admin/addCategories.php | UTF-8 | 1,618 | 2.734375 | 3 | [] | no_license | <?php
include_once "layout/header.php";
$error = false;
if(isset($_GET['error'])) {
$error = true;
if($_GET['error'] == 'cat-already-exists') {
$msg = 'Category Already Exists';
} else if ($_GET['error'] == 'empty-fields') {
$msg = "Please write the name for the category";
} else{
... | true |
815766803fcea0091224402048e0e3112a2d9a8a | PHP | shtormus/examples | /image/models/RoundSaveThumb/RoundSaveThumbTableTrait.php | UTF-8 | 1,240 | 2.59375 | 3 | [] | no_license | <?php
namespace ImageMS\models\RoundSaveThumb;
use ImageMS\models\Thumbs\Category\ThumbsCategory;
use ImageMS\models\File\Information\FileInformation;
/**
* @author Sergey Ivanov
*
*/
trait RoundSaveThumbTableTrait
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'ima... | true |
4e606d1637ce53b5a35d0b9e8b3da862a6da984c | PHP | NIT-Administrative-Systems/lodash-php | /src/Collection/each.php | UTF-8 | 1,462 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/*
* This file is part of the SolidWorx Lodash-PHP project.
*
* @author Pierre du Plessis <open-source@solidworx.co>
* @copyright Copyright (c) 2017
*/
namespace _;
/**
* Iterates over elements of `collection` and invokes `iteratee` for each element.
* The iteratee is invo... | true |
faae740f42a6fefbb340940974cccb051aa7fab4 | PHP | stubbles/stubbles-console | /src/main/php/input/ConsoleRequest.php | UTF-8 | 2,752 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
declare(strict_types=1);
/**
* This file is part of stubbles.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package stubbles\console
*/
namespace stubbles\console\input;
use stubbles\input\{
ParamRequest,
Params,... | true |
9266071411f06382cd4377fe97fc5f84b73df7a4 | PHP | MuhamadSaktiAbabil/PWFL_UNISNU_DA_Penerapan_Aplikasi_Magang_BerbasisWeb | /application/models/m_dosen.php | UTF-8 | 2,383 | 2.625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_dosen extends CI_Model {
var $table = 'dosen'; //nama tabel dari database
var $column_order = array(null, 'nama_dosen','alamat','no_hp'); //field yang ada di table user
var $column_search = array('nama_dosen','alamat','no_hp'); //field ... | true |
e9788085350b0b77cd9100ac5c511cc7899ead72 | PHP | Halachysz/webprogeng | /templates/pages/galery.tpl.php | UTF-8 | 3,778 | 2.59375 | 3 | [] | no_license |
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="card">
<div class="card-body text-center">
<h1 class="h1-responsive font-weight-bold text-center my-4">Gallery</h1>
<?php
... | true |
a7456bf677679c4ab4b417f80dde51b57f10bdb5 | PHP | kemalbehram/BHCMarketplace | /database/migrations/2021_03_26_172637_create_bidding_tokens_table.php | UTF-8 | 728 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBiddingTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bidding_t... | true |
5d10ddfe16073302ba52598fb751153efbc4780e | PHP | ninjas007/PHP_NativeMVC | /app/models/Buku_model.php | UTF-8 | 421 | 2.890625 | 3 | [] | no_license | <?php
class Buku_model {
private $table = 'tbl_buku';
private $db;
public function __construct()
{
$this->db = new Database;
}
public function getAllBuku()
{
$this->db->query("SELECT * FROM $this->table");
return $this->db->resultSet();
}
public function getBukuById($id)
{
$this->db->query("SELE... | true |
68734b26d18a0d9bc6e0a29e762d0a277135803c | PHP | twarlop/labels | /src/ProductLabels/Setup/LabelProductProvider.php | UTF-8 | 6,463 | 2.671875 | 3 | [] | no_license | <?php
namespace ProductLabels\Setup;
use ProductLabels\Contract\ProviderInterface;
use ProductLabels\Setup\Prijzen\PrijsProvider;
use ProductLabels\Setup\Promoties\PromotieProvider;
use DateTime, DBRM;
/**
* LabelProductProvider
*
* provider class to fetching products and their prices etc
*/
class LabelProductProvid... | true |
9a274167f9a77ad6caeb23c79d79756adadc623c | PHP | hipot/hipot.framework | /lib/classes/Hipot/BitrixUtils/PhpCacher.php | UTF-8 | 6,177 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace Hipot\BitrixUtils;
use Bitrix\Main\Application;
use Bitrix\Main\Data\Cache;
use Bitrix\Main\Engine\CurrentUser;
/**
* Класс для работы с кешированием (как обертка над логикой в виде анонимной функции, возвращающей данные)
* @version 3.0
*/
class PhpCacher
{
/**
* @var \Bitrix\Main\Data\Cache
*... | true |
4f65a2d8eaeeac4fd93929c776e0b310e9124e11 | PHP | iconation/icon-sdk-php | /src/Utils/IconServiceHelper.php | UTF-8 | 1,221 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace iconation\IconSDK\Utils;
use iconation\IconSDK\IconService\IconService;
class IconServiceHelper
{
private $iconService;
public function __construct(IconService $iconService)
{
$this->iconService = $iconService;
}
/**
* @param $data
* @return object|null
* ... | true |
d0ccf05b88f3eb011c40fb75220d8a901a9d07d3 | PHP | aringheadrian/CityAlerts_HackTM_2014 | /admin/add_user.php | UTF-8 | 1,764 | 2.640625 | 3 | [] | no_license | <?php
//Include the common file
require '../common.php';
//Check if the user is logged in
if (!$authentication->loggedIn() || !$authentication->isAdmin()) header("Location: login.php");
//Check if the form has been submitted
if (isset($_POST['submit'])) {
$validate->required($_POST['first_name'], 'Introduceti p... | true |
ecec5159a9eeb33cd4ce23b414822c367df6d9f1 | PHP | schan0/617162 | /public/includes/nav.php | UTF-8 | 521 | 2.75 | 3 | [] | no_license | <?php
$sql="SELECT * FROM category";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) { //loops through the categories table to display as the navigation
$categoryName=$row["name"];
$options.="<li><a href='/617162/public/categoryPage.php?c_id=".$row['c_id'] ."'>$categoryName</a></li>... | true |
43ff2c0be8716bc6367a61a98d61b88ec6d2e32d | PHP | hugo-inda-toledo/rrrtrail | /src/Model/Entity/PriceUpdate.php | UTF-8 | 1,218 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* PriceUpdate Entity
*
* @property int $id
* @property int $product_store_id
* @property float $price
* @property float $previous_price
* @property float $ppums_price
* @property float $previous_ppums_price
* @property \Cake\I18n\FrozenTime $company_... | true |
3fa6a02db029b393bcae241013998be500ca9999 | PHP | delznet/phalcon-plus | /Delz/PhalconPlus/Config/Config.php | UTF-8 | 6,551 | 3.25 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace Delz\PhalconPlus\Config;
/**
* 标准配置类
*
* 可以从内存以及不同文件格式(ini\php\yaml\xml)获取配置
*
* @package Delz\PhalconPlus\Config
*/
class Config implements IConfig
{
/**
* 配置参数表
*
* @var array
*/
private $map = [];
/**
* 读取过的配置参数
*
* 避... | true |
a51fb589840c6edc973048033d28ab9e33bf102e | PHP | lafisques/test_defa | /core/response.class.php | UTF-8 | 329 | 2.953125 | 3 | [] | no_license | <?php
class Response
{
protected $_state = [
"ERROR" => "SUCCESS",
"DATA" => [],
];
public function setError(string $value)
{
$this->_state["ERROR"] = $value;
}
public function setData(array $data)
{
$this->_state["DATA"] = $data;
}
public function printResponse()
{
print json_encode($this->_sta... | true |
f7c741e590105b28f282a2c43c20092b31b6fbbe | PHP | RazorMeister/laravel-installer | /src/Middleware/CheckIfInstalled.php | UTF-8 | 805 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace RazorMeister\Installer\Middleware;
use Closure;
use RazorMeister\Installer\Helpers\InfoFileChecker;
class CheckIfInstalled
{
private $infoFileChecker;
/**
* CheckIfInstalled constructor.
*
* @param InfoFileChecker $infoFileChecker
*/
public function __construct(InfoFi... | true |
eb007a415f44b064541d836d7d43d076caacdf74 | PHP | kuso-megane/blog | /www/Models/domain/backyardArticle/edit/Validator/Validator.php | UTF-8 | 743 | 2.796875 | 3 | [] | no_license | <?php
namespace domain\backyardArticle\edit\Validator;
use domain\backyardArticle\edit\Data\InputData;
use TypeError;
use domain\Exception\ValidationFailException;
class Validator
{
/**
* @param array $vars
*
* @return InputData
*/
public function validate(array $vars):InputData
{
... | true |
c8ce31b3972bb587391c0fea02b0cc1947c2f358 | PHP | michaskruzelka/peraklad.ai.legacy | /modules/Projects/Services/LatinConverter/Renderers/DefaultRenderer.php | UTF-8 | 1,565 | 2.875 | 3 | [] | no_license | <?php
namespace Modules\Projects\Services\LatinConverter\Renderers;
class DefaultRenderer implements Renderer
{
/**
* @var Renderer
*/
protected $wrapper;
protected $actions = [];
protected $actionNames = [];
protected $letters = [];
public function __construct()
{
fore... | true |
83bcf04536383c6dc925f658df4bb6e1c86d0b95 | PHP | wifi2fone/business-texting | /classes/getuserinfo.php | UTF-8 | 2,336 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
class getuserinfo
{
/**
* @var object $db_connection The database connection
*/
private $db_connection = null;
/**
* Checks if database connection is opened and open it if not
*/
private function databaseConnection()
{
// connection already opened
... | true |
432e955f81910037a57f3d61da00d0e60481ef9f | PHP | rexfleischer/misc-projs | /web_dev/boydsnest_old/_public/helper/ThreadedForumBuilder.php | UTF-8 | 1,034 | 2.8125 | 3 | [] | no_license | <?php
class ThreadedForumBuilder {
/**
*
* @param array $pages
* @param array $rights
* @param <type> $rightReq
* @param <type> $bypass
* @return _FORUM
*/
public static final function MakeFolderHierarchyForUser(
array &$pages,
array &$rights,
... | true |
31179d9c3f88c23d1803688c3989d52b85bafe91 | PHP | fasih-ansari/FandF-House-of-Guns | /log/login.php | UTF-8 | 2,677 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
session_start();
$servername = "localhost";
$username = "root";
$password = "fasih090078601";
$dbname="fnf";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " .$conn->connect_error);
}
e... | true |
66b3ede89e56d7872f8ce46039f943050a5e6e23 | PHP | miracleave-ltd/meet-up_CI-CD | /my-laravel-app/app/Http/Controllers/BooksController.php | UTF-8 | 625 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Book;
class BooksController extends Controller
{
public function register()
{
return view('books.register');
}
public function store(Request $request)
{
$title = $request->title;
$body = $request->bo... | true |
cce7df2102934ba5fb8a88a1949ce7c4a13f3374 | PHP | ZeyadEmad/Software-Engineering | /New/staff/edit&delete.php | UTF-8 | 1,950 | 3.140625 | 3 | [] | no_license | <?php
class dbconnect {
private $servername;
private $usernsme;
private $password;
private $db;
private $con;
function __construct() {
$this->servername = "localhost";
$this->username = "root";
$this->password = "";
$this->db = "try1";
$this->con... | true |
11cf9d7b58fd4a18f04c112677e68878645cecbe | PHP | henri-hesse/todo | /protected/controllers/SiteController.php | UTF-8 | 3,276 | 2.875 | 3 | [] | no_license | <?php
class SiteController extends CController {
/**
* Executed on every request.
*/
public function init() {
parent::init();
// Register site CSS file
$cs = Yii::app()->clientscript;
$cs->registerCssFile(Yii::app()->baseUrl.'/css/site.css');
}
/**
* Redirects guests to the login page and logg... | true |
9b7751d3bbfdc2cd11341d18da1386e08db8e600 | PHP | Vanshika12345/mvc | /cybercom/Model/Order.php | UTF-8 | 1,833 | 2.71875 | 3 | [] | no_license | <?php
namespace Model;
class Order extends \Model\Core\Table
{
public function __construct()
{
$this->setTableName('order_table');
$this->setPrimaryKey('orderId');
}
public function getShippingMethod()
{
if(!$this->shippingMethodId)
{
return null;
}
$shipping = \Mage::getModel('Model\Shippin... | true |
274680a61c8d8cfd4cf11af213e336315586bb18 | PHP | TCROC/CIS-355-Prog05 | /fileUploader.class.php | UTF-8 | 7,869 | 3.203125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: travi
* Date: 3/29/2019
* Time: 10:59 PM
*/
require 'database.php';
class fileUploader
{
function uploadFile1(string $fileName, string $tempFileName, string $fileLocation)
{
$fileFullPath = $fileLocation . $fileName;
if (!file_exists($fileLocatio... | true |
5ec208d6de4bca60f3c47fec1313607022c48a50 | PHP | alt-7/oop_mvc | /application/models/Main.php | UTF-8 | 1,040 | 2.875 | 3 | [] | no_license | <?php
namespace application\models;
use application\core\Model;
use application\service\Parser;
class Main extends Model {
protected $table = 'csv';
public function getData() {
$result = $this->db->row('SELECT * FROM csv');
return $result;
}
public function createTable() {
... | true |
3be2b4c32734b3bc148aa123842de7117217ebae | PHP | schmarjames/Product_Catalog_App | /application/libraries/Download_Controller.php | UTF-8 | 1,642 | 2.71875 | 3 | [] | no_license | <?php
/**
* Download_Controller contains general functionality for the Download section.
*
* The Download_Controller contains general functionality for the
* Download section such as loading the necessary helpers, libraries, and
* and models. It also contains the download functionality
* for files.
*
* @package Produ... | true |
b7cd31812ccbc55c9558fa55feed48a457708189 | PHP | Manit1/Authentication-Using-cookies | /Authentication using cookie/login.php | UTF-8 | 1,001 | 2.609375 | 3 | [] | no_license | <?php
if(isset($_COOKIE['userid']))
{
header('location:home.php');
}
if($_SERVER['REQUEST_METHOD']=='POST')
{
$userid=$_POST['userid'];
$password=$_POST['password'];
//Validate From the Database
setcookie('userid',$userid);
//Login is complete, redirect to home page
header('location:home.ph... | true |
c006505cc7190779ce6404cd0bbed47a76ac4912 | PHP | guoyu07/yaf-scripts | /yaf/Yaf_Route_Supervar.php | UTF-8 | 466 | 2.6875 | 3 | [] | no_license | <?php
/**
* Yaf_Route_Supervar
* @since 2.0
*/
class Yaf_Route_Supervar
{
/**
* public Yaf_Route_Supervar::route(string $uri)
* @param string $uri
* @return
* @since 2.0
*/
public function route (string $uri)
{
}
/**
* public Yaf_Route_Supervar::__construct(string... | true |
6cba2cca8e352af65eddb62d88ab9d4567da04df | PHP | iloveyii/yii_advanced_template | /frontend/models/City.php | UTF-8 | 3,811 | 2.828125 | 3 | [] | no_license | <?php
/**
* This is the model class for table "city".
*
* The followings are the available columns in table 'city':
* @property integer $id
* @property string $name
* @property integer $county_id
*
* The followings are the available model relations:
* @property Ad[] $ads
* @property County $county
*/
class ... | true |
5862fff60b8e3b8671db8461937b08f3a83b0a10 | PHP | hlinh0411hd/ThesisMgr | /application/models/Laboratory_Model.php | UTF-8 | 1,180 | 2.6875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Pham Minh Hoang Linh
* Date: 11/19/2016
* Time: 10:27 PM
*/
class Laboratory_Model extends CI_Model {
public function getName($laboratoryId) {
$query = $this->db->select('laboratoryName')
->from('laboratories')
->where('laboratoryId', $l... | true |
ab80015747e8c9da1935de84ad34866a9bf3a437 | PHP | houseofbits/web-toolchain-examples | /ci3-doctrine/application/modules/site/controllers/Site.php | UTF-8 | 2,241 | 2.65625 | 3 | [] | no_license | <?php
(defined('BASEPATH')) OR exit('No direct script access allowed');
use Entities\Product;
use Entities\Log;
use Listeners\ProductEventSubscriber;
class Site extends MY_Controller {
const MAIN_PAGE = 0;
const FORM_PAGE = 1;
const LOGS_PAGE = 2;
private $data = [
'title' => "Welcome to Co... | true |
2312aa2e8bcbdf539993277dcba80ffd1cc2d565 | PHP | clearcodepartners/ClearCodeLibrary | /class/Insurance.class.php | UTF-8 | 947 | 2.84375 | 3 | [] | no_license | <?php
/**
* Insurance
*
* All of the information associated with a single insurance
*
* @property int|null ID
* @property string company
* @property Phone phone
* @property string policy_number
* @property Person policy_holder
* @property string group
* @property string member_id
* @property string deductab... | true |
3fe1ec5e095013a1c5253cf3b32065a59052ebf9 | PHP | ruibin/Cronrunner | /lib/component/CGearmanWorkerBase.php | UTF-8 | 19,076 | 2.5625 | 3 | [] | no_license | <?php
/**
* gearman worker抽象类
* @author hcb0825@126.com
* @author hcb0825@126.com
* @since 2012-08-27
*/
if (version_compare(PHP_VERSION, "5.3.0") < 0) {
declare(ticks = 1);
}
abstract class CGearmanWorkerBase extends CObject{
// configurable property
/**
* gearman dsn,(host1:port1,host2:port2...... | true |
ed6ee0dbe78cadaa1d34119a5aefacaee12fc1a7 | PHP | n1tr0-5urf3r/InTech-2020 | /uebung09/questions-update.php | UTF-8 | 446 | 2.609375 | 3 | [] | no_license | <?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
require_once("db-lib.php");
$id = $_POST['questionId'];
$question = $_POST['question'];
$answer0 = $_POST['answer0'];
$answer1 = $_POST['answer1'];
$answer2 = $_POST['answer2'];
$solution = $_POST['solution'];
$db = new Database();
... | true |
759c7e2c7bf1fac5f8683b823052c9317e456498 | PHP | octalmage/wib | /php-7.3.0/tests/classes/static_mix_2.phpt | UTF-8 | 464 | 2.90625 | 3 | [
"MIT",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"TCL",
"ISC",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"blessing"
] | permissive | --TEST--
ZE2 You cannot overload a non static method with a static method
--FILE--
<?php
class pass {
function show() {
echo "Call to function pass::show()\n";
}
}
class fail extends pass {
static function show() {
echo "Call to function fail::show()\n";
}
}
$t = new pass();
$t->show();
fail::show();
echo "... | true |
32300a157c338e385043172ffae279b6237b562c | PHP | MisterGlass/ahw | /src/Controller/UploadController.php | UTF-8 | 3,262 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Entity\Customer;
use App\Entity\Product;
use App\Entity\PurchaseEvent;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Http... | true |
9021c61325bb398a24964679f698985f6078454a | PHP | ili5/human-creator | /Classes/Arms.php | UTF-8 | 322 | 2.84375 | 3 | [] | no_license | <?php
namespace Human\Classes;
use Human\Interfaces\ArmsInterface;
class Arms implements ArmsInterface{
public function moveLeft()
{
}
public function moveRight()
{
}
public function moveUp()
{
}
public function moveDown()
{
}
public function grab()
{
}... | true |
090040a977cadd658493da9b0430a1c112c4afa9 | PHP | WillansMisael/graduateproyect | /app/Http/Livewire/PersonalController.php | UTF-8 | 6,415 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Livewire;
use Livewire\WithPagination;
use Livewire\Component;
use App\Models\Personal;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Carbon\Carbon;
use Barryvdh\DomPDF\Facade as PDF;
class PersonalController extends Component
{
use WithPagination;
protected $paginati... | true |
50ce0b0691a5f7434e9c167fafcaf5ec11161121 | PHP | mist-cloud/my_sample_projectA | /saishoniyomuPHP/Chapter3/STEP1/4-test/2-keisan.php | UTF-8 | 487 | 3.375 | 3 | [] | no_license | <?php
/*
[問題]
200円のケーキを8個、180円のプリンを5個を買う予定でした。
しかし、プリンの方が美味しそうに見えたので、プリンを5個、ケーキを8個買うことにしました。
これにより予算はいくら節約できたでしょうか。
*/
?>
<?php
$cake = 200;
$pudding = 180;
$v1 = ($cake * 8 + $pudding * 5);
$v2 = ($cake * 5 + $pudding * 8);
$sa = $v1 - $v2;
echo "結果、{$sa}円安くなりました。"; | true |
e4a9dadf9b5a67decdfa21a303b412e1fd38690f | PHP | taurthil/blackflag | /php/tests/EventSourcing/MessageTest.php | UTF-8 | 2,790 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Tests\EventSourcing;
use EventSourcing\Event;
use EventSourcing\Message;
use PHPUnit\Framework\TestCase;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
class MessageTest extends TestCase
{
public function testHasIdentifier(): void
{
$event = $this->getMo... | true |
164f6c50318753d004dc3ebcffbc61c5ac8a4c9d | PHP | chr-peters/Kniffel | /webcontent/profile.php | UTF-8 | 2,258 | 2.84375 | 3 | [] | no_license | <?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
// include the necessary files
require('lib/Database.class.php');
require('lib/requests.php');
require('lib/tokens.php');
// check if it is a POST request (see specifications for scores)
if (!strcasecmp($_SERVER['REQUES... | true |
0bb4f3cd14975367ecace6631014fecb09d96b25 | PHP | Yuviri/System-biblioteczny | /classes/Comments.class.php | UTF-8 | 1,007 | 2.828125 | 3 | [] | no_license | <?php
class Comments extends Dbc
{
private $error;
private $edit;
public function addComment($email, $book, $date, $content){
$sql = "INSERT INTO komentarze VALUES (NULL, ?, ?, ?, ?)";
$query = $this->connect()->prepare($sql);
if ($query->execute([$email, $book, $date, $content]))... | true |
50dfe1c82842bbc65dcc354286e489c6e5144925 | PHP | santivila/lumen_simple_voting_app | /database/seeds/VotesTableSeeder.php | UTF-8 | 592 | 2.75 | 3 | [] | no_license | <?php
use App\Vote;
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;
class VotesTableSeeder extends Seeder
{
public function run()
{
// Using "Faker" library to generate some dummy data
// https://github.com/fzaninotto/Faker
$faker = Faker::create();
for ($i=0; $... | true |
8cc5072e97d9910699d75471e7dcfcb4e952363d | PHP | eealvarez/barShop | /src/AppBundle/Controller/GestionReservasController.php | UTF-8 | 5,471 | 2.578125 | 3 | [] | no_license | <?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use AppBundle\Entity\Reserva;
use AppBundle\Entity\Usuario;
use AppBundle\Form\ReservaType;
/**
* @Route("/reserva... | true |
bb890db3ae9541fb9a77cb7d3dcfea13409b67fe | PHP | JorgeSivil/php-janrain-api | /lib/Janrain/Api/Capture/Access.php | UTF-8 | 2,490 | 2.6875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Janrain\Api\Capture;
use Janrain\Api\AbstractApi;
use Janrain\Exception\MissingArgumentException;
class Access extends AbstractApi
{
/**
* Retrieves an `accessToken` for signing in to an application. This token is
* valid for 1 hour.
*
* @param array $params
* @link http://developers.janr... | true |
a6a1f42cfcd8e7b1ad1b71f0a38a439820856a4d | PHP | ModulesTeam/opencart | /system/library/mundipagg/src/Aggregates/RecurrencyProduct/RecurrencySubproductValueObject.php | UTF-8 | 2,787 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
namespace Mundipagg\Aggregates\RecurrencyProduct;
use Exception;
use JsonSerializable;
use Mundipagg\Aggregates\Template\RepetitionValueObject;
class RecurrencySubproductValueObject implements JsonSerializable
{
/** @var int */
protected $productId;
/** @var int */
protected $quantity;
/** ... | true |
ca7cda4bf03e7a798630945fb4c10321cb01c722 | PHP | RoDKoDRoK/RoDKoDRoK-firstpackages | /packages/connector.tracker/static/default/core/src/common/class.php/class.tracker.php | UTF-8 | 614 | 2.71875 | 3 | [] | no_license | <?php
class Tracker extends ClassIniter
{
function __construct($initer=array())
{
parent::__construct($initer);
}
function trackCurrentPage()
{
//get current page
$host=$_SERVER['HOST_NAME'];
$uri=$_SERVER['REQUEST_URI'];
$iduser=0;
if(isset($this->user->uid))
$iduser=$this->user->uid;
... | true |
4299f756a3abca82c755be106e6f427f40af3911 | PHP | hipogea/zega3 | /protected/models/Masterlistamateriales.php | UTF-8 | 3,695 | 2.625 | 3 | [] | no_license | <?php
/**
* This is the model class for table "{{masterlistamateriales}}".
*
* The followings are the available columns in table '{{masterlistamateriales}}':
* @property string $id
* @property string $codigo
* @property string $hidlista
* @property string $activo
*
* The followings are the available model rel... | true |
d7291220c5fe44ffcf774b82fbe1ab731042e43e | PHP | MichalBroniszewski/redis-workshops | /src/DataProvider/HashDataProvider.php | UTF-8 | 631 | 2.578125 | 3 | [] | no_license | <?php
declare(strict_types=1);
/**
* File:HashDataProvider.php
*
* @author Maciej Sławik <maciej.slawik@lizardmedia.pl>
* @copyright Copyright (C) 2019 Lizard Media (http://lizardmedia.pl)
*/
namespace LizardMedia\RedisVsFiles\DataProvider;
/**
* Class HashDataProvider
* @package LizardMedia\RedisVsFiles\Data... | true |
09a7357b2f8a13985d3ee87dcab09dc0b8ae6613 | PHP | diegosposito/alcec | /apps/alumnos/modules/sedes/actions/actions.class.php | UTF-8 | 2,196 | 2.53125 | 3 | [] | no_license | <?php
/**
* sedes actions.
*
* @package sig
* @subpackage sedes
* @author Your name here
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class sedesActions extends sfActions
{
public function executeIndex(sfWebRequest $request)
{
$this->sedess = Doctrine_C... | true |
381ce4c23cac2551be0aaa20cd75fead7ed1bb34 | PHP | dasturchiuz/keriolaravel | /examples/connect/getAdmins.php | UTF-8 | 2,619 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Administration API for Kerio Connect - Sample Application.
*
* Get all users with any administrator rights.
*
* @copyright Copyright © 2012-2012 Kerio Technologies s.r.o.
* @version 1.4.0.234
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(dirname(__FILE__) . '/../class/MyAp... | true |
ba4e6394cb251c61801bd4c5256b74854af54ad4 | PHP | petrwl/3igames_wiki | /database/seeds/DatabaseSeeder.php | UTF-8 | 1,609 | 2.546875 | 3 | [] | no_license | <?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$text = '<b>Википедия</b> — общедоступная многоязычная универсальная <i>интернет-энциклопедия</i> со
свободным контенто... | true |
45a887099b69b350f60b7753b541ce72ca143cfb | PHP | chanhoJo/shoppingMall | /mvc/Loader.php | UTF-8 | 1,382 | 3.046875 | 3 | [] | no_license | <?php
class Loader{
protected $_directories = array(); // autoload 대상 Directory를 저장하는 property
// *** regDirectory() ***
// 인자로 받은 경로를 배열에 저장
public function regDirectory($dir){
$this->_directories[] = $dir;
// array_push($this->_directories, $dir);
// http://php.net/manual/kr/... | true |
84d31822d11e5870cb47b11c61331e2ddadd9272 | PHP | jayrayjohns99/EECS448-lab10 | /Lab10/Exercise 2/CreateUser.php | UTF-8 | 902 | 3.046875 | 3 | [] | no_license | <?php
$username = $_POST["input"];
$mysqli = new mysqli("mysql.eecs.ku.edu", "jjohnston", "JRJku99",
"jjohnston");
if ($mysqli->connect_errno)
{
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
$userExists = false;
$query = "SELECT * FROM Users";
if ($result = $mysqli->query($query))
{
while (... | true |
feb84aff27348fa4a7436d15cfe65e495262b0bc | PHP | cafe-latte/framework | /src/Core/ModelView.php | UTF-8 | 1,398 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of CafeLatte Framework.
*
* (c) Thorpe Lee(Gwangbok Lee) <koangbok@gmail.com>
*
* For the full copyright and license information, please view
* the license that is located at the bottom of this file.
*
* @license MIT License
*/
namespace CafeLatte\Core;
/**
* @author Thorpe L... | true |
274d6e635598cc6a6ef458a32d0f57a6467f1e38 | PHP | doflip/BugCake | /Controller/UsersController.php | UTF-8 | 2,810 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
class UsersController extends BugCakeAppController {
// var $domain = "example.com"
var $components = array('Session', 'Auth', 'Cookie');
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('add', 'login', 'index', 'logout');
}
public function i... | true |
84e4e99334b24edcd61d51866c19a7d84e62f64d | PHP | sansanyun/mipjz | /system/library/HTMLPurifier/Strategy/ValidateAttributes.php | UTF-8 | 1,325 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Validate all attributes in the tokens.
*/
class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy
{
/**
* @param HTMLPurifier_Token[] $tokens
* @param HTMLPurifier_Config $config
* @param HTMLPurifier_Context $context
* @return HTML... | true |
71707150dbd34e9a602b345b964b11d023e3f612 | PHP | leandrobaena/app_php | /ourtaxes/gen/entities/UserEntity.php | UTF-8 | 3,137 | 3.265625 | 3 | [] | no_license | <?php
namespace gen\entities;
require_once (__DIR__ . "/../../utils/FormatterText.php");
require_once (__DIR__ . "/LBTObject.php");
/**
* Usuario que tiene acceso a las aplicaciones
*
* @property int $iduser Identificador del usuario
* @property string $name Nombre del usuario
* @property string $lo... | true |