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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2730784936082c6d63b25977da11a7b0e673bf17 | PHP | WallaceMachado/Ponto_Eletronico | /src/controllers/login.php | UTF-8 | 481 | 2.515625 | 3 | [] | no_license | <?php
loadModel('Login');
session_start(); // inicia uma sessão
$exception = null;
if(count($_POST) > 0) {//$_POST é um array associativo do php
$login = new Login($_POST);
print_r($login);
try {
$user = $login->checkLogin();
$_SESSION['user'] = $user;
header("Location: day_recor... | true |
9a82997924afd254ff920975e978b49d4a3ab041 | PHP | chenyu00544/loong | /mobile/app/Models/WarehouseGoods.php | UTF-8 | 4,161 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class WarehouseGoods
*/
class WarehouseGoods extends Model
{
protected $table = 'warehouse_goods';
protected $primaryKey = 'w_id';
public $timestamps = false;
protected $fillable = [
'user_id',
'goods_id',
... | true |
7be7be295d8a26bde1df64a3b7e8f58cbc68b676 | PHP | stomp-php/stomp-php | /src/Broker/ActiveMq/ActiveMq.php | UTF-8 | 3,790 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/*
* This file is part of the Stomp package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Stomp\Broker\ActiveMq;
use Stomp\Protocol\Protocol;
use Stomp\Protocol\Version;
use Stomp\Transport\Frame;
/**
* Active... | true |
a2094996dc30702e77c396691f6b48e2b3654074 | PHP | AdrianNiewiadomski/bazaDanychWPlikuTxt | /Osoba.class.php | UTF-8 | 1,707 | 3.640625 | 4 | [] | no_license | <?php
class Osoba {
private $id;
private $imie;
private $nazwisko;
private $zawod;
private $pensja;
public function __construct($id, $imie, $nazwisko, $zawod, $pensja){
$this->id = $id;
$this->imie = $imie;
$this->nazwi... | true |
a52cf6048c0ec5f028d1b99df429e52d1ebf88f6 | PHP | lbel/bndchat | /lib/Log/Logger.php | UTF-8 | 357 | 3.234375 | 3 | [
"MIT"
] | permissive | <?php
namespace Log;
/**
* Simple logging interface.
*
* TODO: Write an implementation.
*/
interface Logger
{
/**
*
* @param string $text
* @param \LogLevel $level
*/
function sendMessage( $text, $level );
function info( $text );
function warning( $text );
function error( $text );
function trace(... | true |
a50a5e3228b9d650e7a6b08eecae30cd184d7f51 | PHP | ChrisDasCode/TheDGL | /lib/utils/Time.php | UTF-8 | 513 | 2.90625 | 3 | [] | no_license | <?php
namespace lib\utils;
/**
* @Project: DGL
* @Author: DasCode (dascodegit@gmail.com)
* @Date: 9/28/2016
*/
class Time
{
/**
* Time constructor.
*/
public function __construct()
{
date_default_timezone_set("US/Eastern");
}
public static function stimeNow()
{
da... | true |
fe9bc863af3e0387df386713ebb46bcfe3a5f112 | PHP | yafoo/iicms | /application/admin/behavior/CheckAuth.php | UTF-8 | 2,212 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace app\admin\behavior;
use think\facade\Request;
use think\facade\Log;
use app\common\controller\UserApi;
/**
* Description of CheckAuth
* 检测用户权限行为
* @author static7
*/
class CheckAuth {
use \traits\controller\Jump;
private $visit = [
'allow' => ['admin/index/index', 'admin/index/welcome'], //允... | true |
e71d8bd88c8f782f28a76efca3e331ec9b66886a | PHP | AtLeastLast/laravel_blog | /app/Http/Controllers/CustomAuthController.php | UTF-8 | 3,215 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Session;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rule;
class CustomAuthController extends Controller
{
public fu... | true |
5e7c7bbfbe0d000d4cdbb6f460e0b05d7a39782a | PHP | eddoww/Astonia-Basic-Website | /toplist.php | UTF-8 | 1,853 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
require("config.php");
$stmt = $dbh->prepare('SELECT * FROM charinfo ORDER BY experience DESC LIMIT 0,34;');
$stmt->execute();
$result = $stmt->fetchAll();
$place = 1;
foreach ($result as $index => $item)
{
switch ($item['ID'])
{
case 1:
unset($result[$index]);
break;
... | true |
6ad242c3840d996d0c47ab6e735f5138886fe9c4 | PHP | jeroenlammerts/grooover | /application/migrations/2013_05_27_151126_create_pattern_types_table.php | UTF-8 | 269 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-dco-1.1"
] | permissive | <?php
class Create_Pattern_Types_Table {
public function up()
{
Schema::create('pattern_types', function($table) {
$table->increments('id');
$table->string('name');
});
}
public function down()
{
Schema::drop('pattern_types');
}
} | true |
875491f26388f048267fa3f0d7220285218ed5d4 | PHP | matteotealdi/Informatica | /esCompitoCaricamentoTabella/php/jsonDettaglio.php | UTF-8 | 454 | 2.625 | 3 | [] | no_license | <?php require("./connection.php");
if(isset($_GET["idUtente"]))
$idUtente=$_GET["idUtente"];
else
$idUtente="";
$sql="select *
from utenti ";
if(!$idUtente=="")
$sql=$sql . " where idUtente = ".$idUtente;
$rs=$con->query($sql);
if($rs===false)
{
die("sql error". $con->error . " <br/> ".$sql )... | true |
5ae901aaaa9ec57b66d05023b0745c57bacd8f4a | PHP | TengWeiKang/HMS | /database/migrations/2021_08_17_081202_create_reservation_table.php | UTF-8 | 979 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReservationTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reservation... | true |
2ce9e70dbbca2ac3f31cc3c17ba75c267fa56d37 | PHP | CatMeowlet/teach-me-investment-original | /controller/login-process.php | UTF-8 | 1,627 | 2.859375 | 3 | [] | no_license | <?php
//start session
session_start();
//define user and pass
$username = $_POST['user'];
$password = hash('sha256',$_POST['pass']);
//CONNECT DB - link
$link = mysqli_connect("localhost","root","","capstone");
//SQL QUERY
$query = "SELECT u_id, u_name, u_pass, u_type
FROM users
WHERE
u_name ... | true |
4c27c010006c76e2fcb7288eda487c348dc3d56b | PHP | andrisdwimartono/sim_pembayaran | /application/models/Cto_menupackage_model.php | UTF-8 | 3,070 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
class Cto_menupackage_model extends MY_Model
{
public function __construct() {
parent::__construct();
}
protected $_table_name = 'cto_menupackage';
protected $_cto_columns = array('name', 'sequence', 'is_active');
public function nData($keyword = null, $orders = null){
$querying = 'select count(... | true |
137cae2d2228ae3b5f93747e70a62565058887c8 | PHP | alejokimba/webaantik | /scripts/login2.php | UTF-8 | 718 | 2.546875 | 3 | [] | no_license | <?php
session_start();
if(isset($_POST['submit']))
{
extract($_POST);
include 'config.php';
$email = $db->real_escape_string($_REQUEST['email']);
$password = $db->real_escape_string($_REQUEST['password']);
$sql=mysqli_query($db,"SELECT * FROM user where email='$email' and password='$password'");
... | true |
49b21a42097a9fdf15029a9b1dc36ded84a94996 | PHP | un-zero-un/Veilleur | /src/AppBundle/Specification/IsSlackMessage.php | UTF-8 | 502 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace AppBundle\Specification;
/**
* @author Yohan Giarelli <yohan@giarel.li>
*/
class IsSlackMessage implements Specification
{
/**
* @param mixed $data
*
* @return bool
*/
public function isSatisfiedBy($data)
{
if (!$data instanceof \stdClass) {
return... | true |
9eafbce82e3a6956e7b705b1897154fe73911bb8 | PHP | E-CR/bitfork-rate | /protected/extensions/sse/Service.php | UTF-8 | 2,224 | 2.859375 | 3 | [] | no_license | <?php
/**
* Server Sent Events
*
* config - YiiBase::setPathOfAlias('sse', realpath(__DIR__ . '/../extensions/sse'));
* controller -
* public function actionSse()
* {
* $r = new \sse\Service();
* $r->run();
* }
* view - <?php Yii::app()->clientScript->registerScriptFile('/js/sse.js'); ?>
* send... | true |
ffb948f93d6688183de0000b8bbeed5e21198500 | PHP | Pholenk/siakad | /application/modules/matakuliah/controllers/Matakuliah.php | UTF-8 | 7,749 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
class Matakuliah extends MX_Controller
{
// declared variable
private $_access;
public function __construct()
{
parent::__construct();
$this->load->model('MatakuliahModel');
$this->load->module('jurusan');
$this->_access = $this->session->job;
}
public function index()
{
if ($this->_access ===... | true |
0a71a4f3146173fca337ae665e97ad89daa9f68c | PHP | my-com/laravel-conditional-actions | /src/Traits/EloquentTarget.php | UTF-8 | 1,317 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace ConditionalActions\Traits;
use ConditionalActions\Contracts\ConditionContract;
use ConditionalActions\Entities\Eloquent\Condition;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Support\Collection;
/**
* @mixin Model
*
* @property Colle... | true |
58ec35a253f4718379094897dbc65a0032c5eca4 | PHP | benytto888Z/Greta_phpcrud | /edit.php | UTF-8 | 2,453 | 2.71875 | 3 | [] | no_license | <?php
include('db.php');
setlocale(LC_ALL, "fr_FR.UTF-8");
if(isset($_GET['edit_todo'])){
$edit_id=$_GET['edit_todo'];
//echo "oki";
}
if(isset($_POST['btn_edit'])){
$edit_todo = $_POST['todo'];
$query = "UPDATE todos SET nom_todo = :nom_todo WHERE id_todo = :id_todo";
$stmt = $bdd->prepare($query);
$st... | true |
3fb0c6d2d36253b7c968f56eff3ed451b38beb26 | PHP | gogus/hackathon | /src/App/Domain/Service/ServiceInterface.php | UTF-8 | 272 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Domain\Service;
interface ServiceInterface
{
/**
* @param string $query Full query string
* @param string $token Keyword which produced the match
*
* @return mixed
*/
public function ask($query = null, $token = '');
} | true |
0b798b68548a8af5d7920d3dc852e17f6be81a9c | PHP | mohamedaboelmagd/posta | /database/migrations/2016_09_30_210256_create_notification_table.php | UTF-8 | 662 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notification', function (Blueprint $table) {
$table->increments('notific... | true |
b9f2d5d7c3c94b97ed65cfd2a5c73f2283733695 | PHP | studiocaramia/TranslationLoaderBundle | /Command/CsvExportTranslationsCommand.php | UTF-8 | 6,331 | 2.546875 | 3 | [] | no_license | <?php
/*
* This file is part of the AsmTranslationLoaderBundle package.
*
* (c) Marc Aschmann <maschmann@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Asm\TranslationLoaderBundle\Command;
use Symfony\Compo... | true |
5070cc7640a9f837294925fefddae852583adb11 | PHP | gurjeetsbagga/framework | /src/Cygnite/Helpers/Support.php | UTF-8 | 2,648 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
use Cygnite\Foundation\Application as App;
if ( ! function_exists('clear_sanity')) {
/*
* $_POST = array_map("clear_sanity", $_POST);
* Strip html encoding out of a string, useful to prevent cross site scripting attacks
* Use this function in view page to display values into web page
*/
... | true |
c3d57ff3075aca5599d7543db7ce6809320076fc | PHP | getvkey/my-framework | /Fastphp/fastphp/base/Controller.php | UTF-8 | 1,157 | 3.1875 | 3 | [] | no_license | <?php
namespace fastphp\base;
/**
* 控制器基类
*
* Class Controller
* @package fastphp\base
*/
class Controller
{
protected $_controller;
protected $_action;
protected $_view;
/**
* 构造函数,初始化属性,并实例化对应模型
* Controller constructor.
* @param $controller
* @param $action
*/
pub... | true |
1506ca8b875affd70d1aa03ce179ce0ae8b39e2d | PHP | hongfs/laravel-cos-cdn | /app/Helpers/functions.php | UTF-8 | 4,900 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Support\Facades\Redis;
if(!function_exists('result')) {
/**
* 返回数据
*
* @param string|array $data 数据
* @param int $status 状态码
* @return \Illuminate\Http\Response
*/
function result($data = null, int $status = 200) {
return response()->json(
... | true |
383918438ce6cd56647bab8e2043e07d4435bc55 | PHP | Madhuka/OfflineRestfulEmailSystem | /HordeOffline/services/help/Horde/SessionHandler.php | UTF-8 | 12,251 | 2.78125 | 3 | [] | no_license | <?php
/**
* SessionHandler:: defines an API for implementing custom PHP session
* handlers.
*
* Optional parameters:<pre>
* 'memcache' - (boolean) Use memcache to cache session data?
* </pre>
*
* $Horde: framework/SessionHandler/SessionHandler.php,v 1.13.10.20 2009-10-08 22:25:23 slusarz Exp $
*
* Copyright... | true |
7f6f759b66c93765f8436e5ebd887a1f4e22e824 | PHP | IFPB-PRPIPG/periodicos-ifpb | /plugins/blocks/keywordCloud/KeywordCloudBlockPlugin.inc.php | UTF-8 | 2,546 | 2.625 | 3 | [] | no_license | <?php
/**
* @file plugins/blocks/keywordCloud/KeywordCloudBlockPlugin.inc.php
*
* Copyright (c) 2013-2015 Simon Fraser University Library
* Copyright (c) 2003-2015 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class KeywordCloudBlockPlugin
* @ingroup plugins_... | true |
d7c1e15d4e4cdaea1f30aacfe3d7fa52ff30d828 | PHP | RomanDrevo/holytopmedia-crm | /app/Console/Commands/UpdateCallsCommand.php | UTF-8 | 3,574 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Carbon\Carbon;
use GuzzleHttp\Client;
use Illuminate\Console\Command;
class UpdateCallsCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'liantech:update-calls';
/**
... | true |
6871a42533ecca2655b2f9c4dea40541bdabcb84 | PHP | alexandrebispo/DesignPatterns-Code-Education | /Projeto2/src/Education/Form/Select.php | UTF-8 | 826 | 3.40625 | 3 | [] | no_license | <?php
/**
*
* @author: Alexandre Bispo
* @email: alexandrebispo.mestre@gmail.com
* @copyright 2015 the author
*
*/
namespace Education\Form;
use Education\Interfaces\SelectInterface;
use Education\Interfaces\FormElementInterface;
class Select implements SelectInterface, For... | true |
fd4f8f5de3bfa1f6caeb62786e5486c122dd3bb5 | PHP | FreeDSx/LDAP | /src/FreeDSx/Ldap/Operation/Response/PasswordModifyResponse.php | UTF-8 | 2,343 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the FreeDSx LDAP package.
*
* (c) Chad Sikorra <Chad.Sikorra@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FreeDSx\Ldap\Operation\Response;
use FreeDSx\Asn1\Asn1;
use FreeD... | true |
04c8457c4547ba67d0785221588b85cb8f6ab05f | PHP | anhphambkit/cms | /plugins/customer/src/Services/IOrderService.php | UTF-8 | 885 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Plugins\Customer\Services;
interface IOrderService
{
/**
* @param array $dataCheckouts
* @param int $customerId
* @param bool $isGuest
* @return mixed
*/
public function createOrderCustomerProduct(array $dataCheckouts, int $customerId, bool $isGuest = false);
/**
... | true |
8f31508eb86e2d9fe6ce3d9b509f285ff885913d | PHP | meezaan/rhodes | /rhodes/src/Row.php | UTF-8 | 307 | 2.984375 | 3 | [] | no_license | <?php
namespace Rhodes;
use stdClass;
class Row
{
/**
* @var string
*/
public string $name;
public array $components;
public function __construct(string $name, array $components)
{
$this->name = $name;
$this->components = $components;
}
} | true |
b45c0791d8c50cfae55523d71eb300fa811d97a2 | PHP | bangameck/aset_dishub_old | /_func/slug.php | UTF-8 | 324 | 2.59375 | 3 | [] | no_license | <?php
function slug($text = '')
{
$text = trim($text);
if (empty($text)) return '';
$text = preg_replace("/[^a-zA-Z0-9\-\s]+/", "", $text);
$text = strtolower(trim($text));
$text = str_replace(' ', '-', $text);
$text = $text_ori = preg_replace('/\-{2,}/', '-', $text);
return $text;
... | true |
160f65f945ebee0b7410eed95c5c3ee0f3ce11cf | PHP | moussadiop2005/TD2-PHP | /Exercice_4.php | UTF-8 | 1,830 | 3.09375 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Exercice 4</title>
<link rel="stylesheet" href="Exercice_4.css">
</head>
<body>
<?php require 'Fonction.php'?>
<form method="post" action="">
<fieldset>
<legend>liste de phrases</legend>
... | true |
d55484bd490c11c85319c0f28eec772a78655c4f | PHP | AbdelY21/clothes-shopify | /htdocs/profil.inc.php | UTF-8 | 3,609 | 2.875 | 3 | [] | no_license |
<?php include "header.php" ?>
<main>
<?php include "mainPHP.php"?>
<?php
if(isset($_POST['submit'])){
$connect = verbindung_Datenbank();
$sqlab =" SELECT * FROM user WHERE user_bnt ='".$_SESSION["user"]."'";
$result = mysqli_query($connect, $sqlab);
$dsatz = mysqli_fetch_assoc($result);
... | true |
1af38753b4b0fbec2e0ff27f1d533d9f640501db | PHP | lesilent/Yau | /library/Db/Sql/Sql.php | UTF-8 | 8,046 | 3.546875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | <?php
/**
* Yau Tools
*
* @author John Yau
* @category Yau
* @package Yau_Db
*/
namespace Yau\Db\Sql;
/**
* Abstract class for building simple SQL clauses and statements
*
* @author John Yau
* @category Yau
* @package Yau_Db
* @todo add support for automatically escaping values when forming statements
*/
a... | true |
4f6cfee91bc989698b46210be88e1bcc0f4fb160 | PHP | donnysim/ethereal-laravel | /src/Http/JsonResponse.php | UTF-8 | 9,678 | 2.75 | 3 | [] | no_license | <?php
namespace Ethereal\Http;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Http\ResponseTrait;
use Illuminate\Support\Arr;
use Illuminate\Support\MessageBag;
use Illuminate\Validation\ValidationException;
use Symfony\Component\HttpFoundation\JsonResponse as BaseJsonResponse;
use UnexpectedValueExceptio... | true |
f78c84d639c9fc0147de35e1462646a1c456e7de | PHP | ju1618/php | /clase10-04/calse10-04.php | UTF-8 | 3,165 | 3.75 | 4 | [] | no_license | <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
echo "<br>";
echo "<h3>Ejercicio 1 </h3>";
echo "<br><br>";
$numeroUno=1;
$numeroDos=2;
if($numeroUno > $numeroDos){
echo "el numero mayor es $numeroUno";
}... | true |
f5792e8367ccd92eaf2f9a7b7990450d4ed9574d | PHP | jklinck/theWall | /mywall_messages.php | UTF-8 | 1,213 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
session_start();
require_once('mywall_connection.php');
$errors= array();
$messageErrors= array();
$commentErrors= array();
// message validation
if(isset($_POST['action']) && $_POST['action'] == "message")
{
if(empty ($_POST['message']))
{
$messageErrors[]="Please enter a message";
}
if(count($messageError... | true |
d700c0c0eb4c01fe72713ddc807dc812e48252ae | PHP | codetech/programming-challenge-site | /save-submission.php | UTF-8 | 459 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
if (isset($_POST['title']) && $_POST['title'] != '')
{
include 'Submission.php';
$sub = new Submission(null, 1, new DateTime(), $_POST['title'], 'A submission.', 'Smitty', 'https://github.com/jquery/jquery.git', 'mit');
$success = $sub->save();
}
?>
<?php if ($sub): ?>
<pre><?php var_dump($sub); ?></pre>
<... | true |
72264a6988b03e8b2249e90cc2961e00a92da4a6 | PHP | UmidAbdu/personal-finance-management | /lp.php | UTF-8 | 827 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
include "includes/db.php";
$months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
$dictionary = array(null, null, null,null,null,null,null,null,null,null,null,null);
$previous= 0;
$lp = range(0, date('m')-1);
//print_r($lp);
foreach (... | true |
6f11a914e6571cf299ed63718b53c3fc0c4afef5 | PHP | JoaoPauloHenriqueSiqueira/starlist | /src/Repository/PeopleRepository.php | UTF-8 | 1,194 | 2.625 | 3 | [] | no_license | <?php
namespace App\Repository;
use App\Entity\People;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\ORM\EntityManagerInterface;
/**
* @method People|null find($id, $lockMode = null, $lockVersion = null)
* @method People|null findOneBy... | true |
778ccfee9dfa81e0763a1c887cd79cc723529604 | PHP | clairewint/Showcase-Blog | /Models/Users.php | UTF-8 | 1,791 | 2.9375 | 3 | [] | no_license | <?php
require_once '../connection.php';
class Users{
protected $email;
protected $username;
protected $password;
protected $usertype;
function getEmail() {
return $this->email;
}
function getUsername() {
return $this->username;
}
function getPassword() {
return $this->password;
}
functi... | true |
8991d3e1eb03ce2017e43e1da14a672c0f4c3159 | PHP | aynoncse/fms | /getstudentdata.php | UTF-8 | 2,745 | 2.59375 | 3 | [] | no_license | <?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath.'/lib/DB.php');
include_once ($filepath.'/Student.php');
$std = new Student();
$db = new DB();
?>
<?php
if (isset( $_POST['group'])) {
$group = $_POST['group'];
$course = explode('-', $group);
$course_code = $course[0];
$fac_id = $... | true |
7f3afdc8dd710437675715f89f5f0759e76960ba | PHP | Dhii/hierarchy-interface | /src/ChildrenAwareInterface.php | UTF-8 | 420 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace Dhii\Data\Hierarchy;
use Traversable;
/**
* Something that can have its children retrieved.
*
* @since 0.1
*/
interface ChildrenAwareInterface extends HasChildrenCapableInterface
{
/**
* Get a list of this instance's children.
*
* @since 0.1
*
* @return mixed[]|Traver... | true |
fb82b6c2b4a61a867c123cd455609a222e331b48 | PHP | MarinaMeza/Ejercicios_Clase4 | /administrar.php | UTF-8 | 916 | 2.65625 | 3 | [] | no_license | <?php
$destino = "upload/".$_FILES["archivoASubir"]["name"];
$flag=TRUE;
//var_dump($_FILES);
$formatoImagen = $_FILES["archivoASubir"]["type"];
//echo '<a href="mostrarimagen.html">Mostrar</a>'
//echo '<img src="upload/Jellyfish.jpg" alt="Jellyfish">';
//echo '<img src="'.$destino... | true |
39f5275f388a53d065ed98e8bcef561ed110287f | PHP | dimon7702506/php | /lectures/18/pagination/Pagination/MyPagination.php | UTF-8 | 618 | 2.609375 | 3 | [] | no_license | <?php
namespace Pagination;
use Couchbase\PasswordAuthenticator;
use Pagination\PaginationInterface\PaginationInterface;
class MyPagination extends PaginationAbstract implements PaginationInterface
{
protected $links_range = [];
public function getLinksRange(): array
{
//var_dump(PaginationAbstract:... | true |
441782e27b8b63064b1222a5adee8e3e1804100e | PHP | liguoqiang/YiiBlog | /protected/components/views/worldwide.php | UTF-8 | 341 | 2.5625 | 3 | [] | no_license | <ul>
<li>
<?php for( $i=0; $i<sizeof( $countries ); $i++ ) : ?>
<?php
$name = $countries[$i][0];
$link = $countries[$i][1];
$src = $countries[$i][2];
echo CHtml::link( CHtml::image( $src, null, array( 'border' => 0 ) ), $link, array( 'title' => $name, 'target' => '_blank' ) );
?>
<?php end... | true |
a0eb395364969d833d69115fdaf4faa833d002c2 | PHP | SeyramWood/adu-hrms | /app/Http/Requests/AppraisalRequest.php | UTF-8 | 1,692 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AppraisalRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get ... | true |
b66d5ca76915539b2e2c7788597079280e687940 | PHP | hyanmandian/software-quality-PHP | /Lab-2/src/Morse.php | UTF-8 | 2,570 | 3.203125 | 3 | [] | no_license | <?php namespace App;
use ArrayObject;
class Morse
{
const SPACE = " ";
private $letterSpace;
private $wordSpace;
private $dictionary = [
"a" => ".-",
"b" => "-...",
"c" => "-.-.",
"d" => "-..",
"e" => ".",
"f" => "..-.",
"g" => "--.",
... | true |
bc6de0234abed2c5c6f9b9626b90f22d996af1fe | PHP | zt123/Base-System | /protected/components/FilesComponent.php | UTF-8 | 27,465 | 2.546875 | 3 | [] | no_license | <?php
/*
* 文件模块 Class
* author yanxf <walkfine@gmail.com>
*/
class FilesComponent
{
//资源目录层级
public $dir_level;
public $dir_base;
public $dir_root;
public $dir_thumb_base;
public $dir_thumb_root;
const MKEY = 'wanthings';
public $error;
public function __construct()
{
$this->dir_level = 1;
$thi... | true |
aba96c1902ed5488d81b5d22d6dbe4f8007aed5c | PHP | radar4ick/hakaton | /app/Abstractions/AbstractSearch.php | UTF-8 | 917 | 2.75 | 3 | [] | no_license | <?php
namespace App\Abstractions;
use App\Contracts\ISearch;
use App\Services\ProxyService;
use GuzzleHttp\Client;
use Illuminate\Support\Collection;
abstract class AbstractSearch implements ISearch {
/**
* @var string
*/
protected static string $url = '';
/**
* @var \GuzzleHttp\Client
*/
prote... | true |
7a4b7cc0618725e58f0518d8e0f21a6b9a935d7d | PHP | Gregory-Bickham/codeup_web_exercise | /public/functions.php | UTF-8 | 293 | 2.734375 | 3 | [] | no_license | <?php
//inputHas($key): returns true or false based on whether the key is available.
function inputHas($key){
return isset($_REQUEST[$key]);
}
function inputGet($key){
return $_REQUEST[$key];
}
function escape($input){
return htmlspecialchars(strip_tags($_REQUEST[$key]));
}
?> | true |
7e8b937b24ada1a53cd1dc5000c8e9ca910bf492 | PHP | lianhub/try1 | /vendor/phine/phar/src/lib/Phine/Phar/Exception/ArchiveException.php | UTF-8 | 807 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace Phine\Phar\Exception;
use Phine\Exception\Exception;
/**
* Exception thrown for archive related errors.
*
* Summary
* -------
*
* The `ArchiveException` class is thrown for errors inside the `Archive`
* class. An example of this exception being used is when the data offset
* for the archive i... | true |
c0dcd6a1224e664042e89660a60b8298dda8d625 | PHP | rjwalsh88/BawkApp | /php/data/City.php | UTF-8 | 4,163 | 2.9375 | 3 | [] | no_license | <?php
/**
* @author Matt Bush
* (c) 2011 Stanford CS198 program. All rights reserved.
*/
require_once('Person.php');
require_once('Session.php');
require_once('DBRecord.php');
define('DIRECTION_NORTH', 0);
define('DIRECTION_EAST', 1);
define('DIRECTION_SOUTH', 2);
define('DIRECTION_WEST', 3);
define('DIRECTION_NE... | true |
c38038125e360c9007791a642539148044cefe36 | PHP | maxwebstar/secco | /app/Models/Currency.php | UTF-8 | 773 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Currency extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'currency';
/**
* The attributes that are mass assignable.
*
* @var array
*/
pro... | true |
f933542f8bddfe42e7e71fe10f2c0ab24a813f95 | PHP | Cl0v1s/L3-ProjetTechnologique | /Src/Controllers/DefaultController.php | UTF-8 | 506 | 2.53125 | 3 | [] | no_license | <?php
include_once "Core/Controller.php";
/**
* Created by PhpStorm.
* User: clovis
* Date: 22/01/17
* Time: 16:15
*/
class DefaultController extends Controller
{
function __construct($params)
{
parent::__construct($params);
}
public function run($ctx)
{
$this->display();
}
... | true |
e2f293c6fb6c7fd2edfc5394959f01add95f9d85 | PHP | atyumentsev/erp | /migrations/m171115_164629_counteragents.php | UTF-8 | 865 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
use yii\db\Migration;
/**
* Class m171115_164629_counteragents
*/
class m171115_164629_counteragents extends Migration
{
/**
* @inheritdoc
*/
public function safeUp()
{
$this->createTable('counteragent', [
'id' => $this->primaryKey(10)->unsigned(),
'code_1... | true |
e31750e1ac26bfd3503f9035da09922d2272f7ff | PHP | honinbouhzc/php | /foundation/数组/9 随机抽取数组元素.php | UTF-8 | 372 | 3.765625 | 4 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
<?php
$a = array("积极","asd",1,"bbc",true);
echo "原数组";
print_r($a); //打印这个数组
echo "<br>";
$rand = rand(0,4); //创建一个0-4的随机数
echo "随机取得的数组元素是:" . $a[$rand]; //将随机数作为键值获取数组元素
?>
</body>
</html> | true |
439a403843e5f3452611b8aa1327d2f20338e6ee | PHP | yegor256/phprack | /src/test/integration-tests/Disc/FileTest.php | UTF-8 | 1,010 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* @version $Id$
*/
/**
* @see phpRack_Test
*/
require_once PHPRACK_PATH . '/Test.php';
class Disc_FileTest extends phpRack_Test
{
public function testFileContent()
{
$fileName = '../test/phpRack/Package/Disc/_files/5lines.txt';
// Show the content of the file
$this->asse... | true |
f05783f8f061e7463de5a0d0499a71247b1af6ac | PHP | saschawildgrube/aficato | /www/_source/wdk/elements/element_message.inc | UTF-8 | 461 | 2.75 | 3 | [] | no_license | <?php
class CMessageElement extends CElement
{
function __construct(
CWebSite $website,
$strStyleID)
{
parent::__construct(
$website,
"message",
$strStyleID,
false,
true);
}
function RenderMessage($strMessageText)
{
$strOutput = $this->GetLayoutHTML();
$this->SetOutpu... | true |
83fc6d3cb61f69f04f699e2d235b82fb374aa9fc | PHP | tawenxi/guzzler | /app/Ardent/Ard.php | UTF-8 | 639 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Ardent;
use LaravelArdent\Ardent\Ardent;
class Ard extends Ardent
{
protected $fillable = ['firstname', 'lastname'];
public static $rules = [
'firstname'=> 'required|between:3,80',
'lastname'=> 'required|between:5,64', ];
public static $customMessages = [
'between' => '... | true |
15a6023f6afbba47a63d95715bf77e492704e563 | PHP | studiowbe/laravel-table | /src/Column/Column.php | UTF-8 | 1,690 | 2.796875 | 3 | [] | no_license | <?php
namespace Studiow\Laravel\Table\Column;
use Studiow\Laravel\Table\Contracts\Column as ColumnInterface;
class Column implements ColumnInterface
{
private $id;
private $label;
private $index;
private $resolver;
private $sortable;
public function __construct(string $id, string $label, boo... | true |
662bb88947c0c5e475d8718fe46f7a1c04898a7c | PHP | lgsoft-developers/libgen | /foreignfiction/resume.php | UTF-8 | 2,491 | 2.96875 | 3 | [] | no_license | <?php
//
// Pass a filename as an argument to the constructor to give a file out for downloading
//
// EXAMPLE:
// new getresumable('C:/text.doc');
//
class getresumable {
var $filename = null;
var $downloadname = null;
var $fileext = null;
var $bufsize = 2048;
var $seek_start = 0;
var $seek_end = -1;
public... | true |
be98876166b76c4c088e711280d2b29a69753540 | PHP | GabiSchaffzin/Visions-Of-Occupy | /compile_visuals.php | UTF-8 | 2,416 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/*
Created by Gabi Schaffzin (http://www.barelyconcealednarcissism.com/) in March 2012.
If you have any questions or comments, you can leave them on my GitHub page (https://github.com/GabiSchaffzin).
No implied warranty here of any sort. See README.md for license.
*/
include "config.php";... | true |
b1aa12a5d99af65faa8233ab5fc1f1cd0d28994e | PHP | Mohaiminul23r/lead_tracking_system | /public/assets/lib/datatable/foreach.php | UTF-8 | 116 | 3.359375 | 3 | [] | no_license | <?php
$arr = array('abd','xy','sd');
foreach ($arr as $virus=>$value){
echo $virus ."=>". $value."\n";
}
?> | true |
5c6257579ca45852ce093d79ef4ef1ef576b4785 | PHP | darug/dds-yii | /protected/controllers/KorzetController.php | UTF-8 | 4,545 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
class KorzetController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout='//layouts/column2';
/**
* @return array action filters
*/
public functio... | true |
a1d23b725731e72ab2ad65562d33c9ebc731aec6 | PHP | dazarobbo/BungieNetPlatform | /src/Enums/DamageType.php | UTF-8 | 214 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace BungieNetPlatform\Enums;
/**
* DamageType
*/
class DamageType extends \Cola\Enum {
const NONE = 0;
const KINETIC = 1;
const ARC = 2;
const THERMAL = 3;
const VOID = 4;
const RAID = 5;
}
| true |
41cdb104f67060033254c6a0a1df9d4ef9bb5ad1 | PHP | LaurentGruber/PathBundle | /Form/Handler/PathHandler.php | UTF-8 | 942 | 2.546875 | 3 | [] | no_license | <?php
namespace Innova\PathBundle\Form\Handler;
use Innova\PathBundle\Manager\PathManager;
/**
* Handles path form
*/
class PathHandler extends AbstractHandler
{
/**
* Path manager
* @var \Innova\PathBundle\Manager\PathManager
*/
protected $pathManager;
/**
* Class constructor
... | true |
0cd5f91a0872211d3445857b506ef8369d00ec6b | PHP | phpGolf/old-site | /stuff.php | WINDOWS-1252 | 2,081 | 2.96875 | 3 | [] | no_license | <?php
header('Content-Type: text/html; charset=ISO-8859-1');
if (!defined('INDEX')) {
header('location: /');
}
function ordUTF8($c, $index = 0, &$bytes = null) {
$len = strlen($c);
$bytes = 0;
if ($index >= $len) {
return false;
}
$h = ord($c{$index});
if ($h <= 0x7F) {
$b... | true |
425e7aa424a2588ea938832bee24cb49f57c6d27 | PHP | billywl/demo | /library_system/index.php | UTF-8 | 1,489 | 2.8125 | 3 | [] | no_license | <?php
//字符格式化UTF-8
header("Content-type:text/html; charset=utf-8");
//初始化domdocument类
$xmldoc = new DOMDocument('1.0',"UTF-8");
//载入XML文档
$xmldoc->load("library.xml");
//获取book节点
$books = $xmldoc->getElementsByTagName("book");
?>
<table border="1">
<tr>
<th>图书</th>
<th>属性</th>
<th>操作</th>
</tr>
<?php
//通过DOMNod... | true |
ed9edb70cde23824c85674e0dcfdf947d725b298 | PHP | Eliseev88/courses | /mvc/src/Controllers/AccountController.php | UTF-8 | 3,155 | 2.546875 | 3 | [] | no_license | <?php
namespace MyApp\Controllers;
use MyApp\Models\Users;
use MyApp\Models\History;
class AccountController extends Controller
{
public function actionIndex()
{
if (isset($_SESSION['user'])) {
$userHistory =History::getUserHistory($_SESSION['user']['id']);
$this->render('ac... | true |
eafdad5408701b164c488dd85e50ce7ba30cc094 | PHP | kaplan-michael/kissj | /src/FileHandler/File.php | UTF-8 | 338 | 2.796875 | 3 | [] | no_license | <?php
namespace kissj\FileHandler;
use Psr\Http\Message\StreamInterface;
class File {
public StreamInterface $stream;
public string $mimeContentType;
public function __construct(StreamInterface $stream, string $mimeContentType) {
$this->stream = $stream;
$this->mimeContentType = $mimeCon... | true |
91e3557b56efb29bf42fbf9755210bb0706437a4 | PHP | kristenvaccaro/TweedStudy | /src/toSQL/updateDataSQL.php | UTF-8 | 10,228 | 2.640625 | 3 | [] | no_license | <?php
function updateDataSQL() {
// echo "getting inside the function update Data<br>";
$servername = "localhost";
$username = "twitterf_user";
$password = "IIA@kT$7maLt";
$dbname = "twitterf_tweet_store";
// Initalize userid variable with session "user_i... | true |
c5a82937562bf90e6964536d96f5d852943d4dc0 | PHP | skamboj/splash | /web/app/controllers/attributes_controller.php | UTF-8 | 2,089 | 2.578125 | 3 | [] | no_license | <?php
class AttributesController extends AppController {
var $name = 'Attributes';
function index() {
$this->Attribute->recursive = 0;
$this->set('attributes', $this->paginate());
}
function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid attribute', true));
$this->redirect(array(... | true |
7e141aa27223e56a46487b25e9d6bd65707e336d | PHP | sschiglintsev/dservice | /заполнение в mysql/add_bd_timetable.php | UTF-8 | 1,488 | 2.515625 | 3 | [] | no_license | <?php
require_once "./includes/connection.php";
$result_fio=$link->query("SELECT fio FROM courier");
$fio_count=mysqli_num_rows($result_fio);
$ii=0;
while ($row_fio=mysqli_fetch_array($result_fio, MYSQLI_NUM)) {
$array_fio[$ii]=$row_fio[0];
$ii++;
}
$result_region=$link->query("SELECT region FROM region");
$... | true |
e9efa589e39a674cae72d9b5eb66feb344e5b6ac | PHP | redcreep76/AP17 | /classes/SuperDump.php | UTF-8 | 345 | 2.859375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Lucien
* Date: 14/03/2018
* Time: 16:03
*/
class SuperDump
{
public static function dump($data) {
echo "<pre>";
if (is_array($data)) {
echo htmlentities(print_r($data));
} else {
echo htmlentities($data);
}
... | true |
b35c053282dbe5c8d760126be0309318b897e2d3 | PHP | Vitaly-B/symfony-cms | /src/AppBundle/Managers/PageManager.php | UTF-8 | 2,568 | 2.78125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Vitaly Belikov vitalij.bell@gmail.com
* Date: 18.09.2017
* Time: 23:01
*/
namespace App\AppBundle\Managers;
use App\AppBundle\Entity\Interfaces\PageInterface;
use Doctrine\ORM\OptimisticLockException;
use Doctrine\ORM\ORMInvalidArgumentException;
use Doctrine\ORM\QueryBui... | true |
87dab57f7cfd61c95680371115b46ce36507e097 | PHP | beangoosedev/framebit-2005 | /setinfo.php | UTF-8 | 4,140 | 2.5625 | 3 | [] | no_license | <?php
include("header.php");
if(isset($_POST['prof_name'])) {
$setinfo = addslashes($_POST['textbox']); // addslashes for quotes
$user = $_SESSION['username']; // get username to set about to
$stmt = $connect->prepare("UPDATE users SET prof_name=? WHERE username=?");
$stmt->bind_param("ss", $setinfo, $user);
$st... | true |
64745c245cd56406b006917e117b8cc5e3470658 | PHP | gbili/GbiliViewHelper | /src/GbiliViewHelper/src/GbiliViewHelper/View/Helper/ConditionalNavigation.php | UTF-8 | 5,243 | 2.65625 | 3 | [] | no_license | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace G... | true |
8fd01e57ccc1cb19b806c6d1dd3d43db46af4d68 | PHP | PressMaximum/pm-blocks | /src/components/icon-picker/icon-picker.php | UTF-8 | 1,730 | 2.640625 | 3 | [] | no_license | <?php
class PM_Blocks_IconPicker {
public function __construct() {
// Add ajax handle.
add_action( 'wp_ajax_pm_blocks_get_fonticon', array( $this, 'ajax_fonticon' ) );
add_action( 'enqueue_block_assets', array( $this, 'block_assets' ) );
add_action( 'enqueue_block_editor_assets', array( $this, 'block_editor_as... | true |
dfe3ff0f353920e8db1f2a0262bcd24fd9aeb52d | PHP | dvapelnik/php-design-patterns | /src/Patterns/Structural/Decorator/String/GetTextInterface.php | UTF-8 | 116 | 2.71875 | 3 | [] | no_license | <?php
namespace Patterns\Structural\Decorator\String;
interface GetTextInterface
{
public function getText();
} | true |
f4550ee21241e63fc4936d7a3b7148e3f012c26a | PHP | therealartz/amadeus-php | /src/Auth/Token.php | UTF-8 | 1,894 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | <?php declare(strict_types=1);
namespace Amadeus\Auth;
class Token
{
// Renew the token 10 seconds earlier than required
private const REFRESH_BUFFER = 10;
private $username;
private $applicationName;
private $clientId;
private $tokenType;
private $accessToken;
private $expiresAt... | true |
5fa1d39bf3c8157936da19e509e016576ca964d0 | PHP | rito328/www.ritolab.com-sample-sources-Laravel-PHPUnit-http-mock | /app/Entities/BookList.php | UTF-8 | 1,013 | 3.25 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Entities;
class BookList implements \IteratorAggregate
{
private $bookList;
public function __construct()
{
$this->bookList = new \ArrayObject();
}
/**
* @param array $books
* @throws \Exception
*/
public function set(array ... | true |
8b3dea4c8d2eba20a1d9e174797f83ecc9651c11 | PHP | 2bad2furious/nette-pcv | /app/component/PaginatorControl.php | UTF-8 | 448 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
class PaginatorControl extends BaseControl {
public function __construct(BasePresenter $presenter, string $name, string $page_key, int $page, int $numberOfPages) {
parent::__construct($presenter, $name);
$this->template->page_key = $page_key;
$this->template->page = $page;
$... | true |
4a32eb2a461132a63ea52bca144473d9dd21acb2 | PHP | art009/zp | /widgets/ContactWidget/models/ContactForm.php | UTF-8 | 2,618 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\widgets\ContactWidget\models;
use app\models\Staff;
use Yii;
use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class ContactForm extends Model
{
public $name;
public $phone;
public $message;
public $person;
public $reCaptcha;
/**
* @ret... | true |
e46c389ea6e8a6d2fa66c569772c90c87e906011 | PHP | panytsch/php_academy | /backend/003_homework/7.php | UTF-8 | 122 | 3.234375 | 3 | [] | no_license | <?php
$arr =[2, 5, 9, 15, 0, 4];
foreach ($arr as $val){
if ($val >3 && $val < 10){
echo $val . "\n";
}
} | true |
2807c8ed19ff664f7dffb84c3762afe8c5fa79e2 | PHP | AMINE-AYMAN/Gestion-Stock-PHP | /controllers/AvoireController.php | UTF-8 | 1,851 | 2.515625 | 3 | [] | no_license | <?php
class AvoireController{
public function getAllAvoire(){
$avoires = Avoire::getAll();
return $avoires;
}
public function getupdateq(){
$avoires = Avoire::updateq();
return $avoires;
}
public function getupdatequ(){
$avoires = Avoire::updatequ();
return $avoires;
}
public function getOneAvo... | true |
fa39df04ca50859ca3676143adcace047258d041 | PHP | nasuhasri/proZakat | /generatepdf.php | UTF-8 | 1,437 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
try
{
require __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$html .= "<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>";
//Database connection
$conn = mysqli_connect("localhost","root","","pinjaman_asset") or die... | true |
be341fe91d888b63b71fddf4db332da0ab14587f | PHP | norfabagas/dss_wp | /database/migrations/2018_09_25_132114_create_criterias_table.php | UTF-8 | 1,944 | 2.609375 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCriteriasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('criterias', f... | true |
75d9477c4d4da013947f76bc5380f461f06c8a13 | PHP | IrinaPazargic/licenta | /html/rezerva.php | UTF-8 | 4,739 | 2.609375 | 3 | [] | no_license | <?php
require_once 'model.php';
require_once 'config.php';
require_once 'utils.php';
$rezervare = $_SESSION['rezervare'];
$email_username = "irina.pazargic@gmail.com";
$email_password = "gigel123"; //encrypt this value if you get some available time
$email_from = "irina.pazargic@gmail.com";
$email_to = $rezervare->pe... | true |
7ca56f395dd51d6f983c4d25123e1c4f8d81ef99 | PHP | lubatti/bunnytest | /web/src/Application/Actions/User/ViewUserAction.php | UTF-8 | 656 | 2.546875 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Application\Actions\User;
use App\Application\Actions\Action;
use App\Infrastructure\Persistence\Doctrine\Repositories\UserRepository;
use Psr\Http\Message\ResponseInterface as Response;
class ViewUserAction extends Action
{
private UserRepository $userRepository;
... | true |
e626fdb111a21925dac92b56415515cfaaafd0ed | PHP | jordanlovato/jlovato-lib | /FormBuilder/fields/super/FieldFactory.php | UTF-8 | 2,846 | 3.203125 | 3 | [] | no_license | <?php
/**
* Class FieldFactory
*
* This class is in charge of creating IField objects,
* and pushing them to the FieldList Singleton for management
*/
final class FieldFactory implements Singleton {
private static $FieldList;
private static $instance;
public static $field_count = 0;
function ... | true |
6a3f788da628836cef93371c1b1b1d129f97b045 | PHP | ertanusta712/ideasoft-oop | /course3/lib/Model/Ship.php | UTF-8 | 749 | 3.21875 | 3 | [] | no_license | <?php
/**
* Class Ship
*/
class Ship extends AbstractShip
{
private $jediFacotr;
private $underRepair;
public function __construct($name)
{
parent::__construct($name);
$this->underRepair = mt_rand(1, 100) < 30;
}
/**
* @return int
*/
public function getJediF... | true |
df6d21c3250547d788757f1eb617119ca3c00982 | PHP | amrMU/Light-Dashboard-Slim- | /app/Repositories/PhoneSettingsInfoRepositories.php | UTF-8 | 1,342 | 2.546875 | 3 | [] | no_license | <?php
/**
*
* User: Amr Muhamed
* Date: 1/5/2019
* Time: 2:42 PM
*/
namespace App\Repositories;
use Bosnadev\Repositories\Contracts\RepositoryInterface;
use Bosnadev\Repositories\Eloquent\Repository;
class PhoneSettingsInfoRepositories extends Repository
{
/*
* Get Phone with
* primary info
* @pa... | true |
715b8e77a6661a09240b5aa7073012cc91268840 | PHP | makcumko/laf_intranet | /App/Controller/AbstractController.php | UTF-8 | 3,254 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Controller;
abstract class AbstractController
{
/** var \App\Model\Request */
protected $request;
protected $user;
protected $templateVars = [];
public function __construct()
{
$this->request = \App\Model\Registry::Get("request");
$this->user = \App\Model\R... | true |
5bbe779bba03e2f1f70bb2b19b01b2449e95cebe | PHP | nidhinmmohan/SyZyGy | /online/cutoff.php | UTF-8 | 2,375 | 2.53125 | 3 | [] | no_license | <html>
<style>
.fr {
width: 500px;
white-space: nowrap;
}
.fr input,textarea {
float: right;
}
.error {
position: relative;
... | true |
d74be7788789aaa66dcadc9dde0c11f5143bd0ce | PHP | CodeExpertsLearning/formacao-php-codigos | /turma6/php-basico/arquivos/index.php | UTF-8 | 178 | 2.609375 | 3 | [] | no_license | <?php
echo '<h1>Arquivos com PHP</h1>';
echo 'file_get_contents & file_put_content - <a href="/1.php">link</a>';
echo '<br>';
echo 'fopen e afins - <a href="/2.php">link</a>';
| true |
5626ffa592402eeb0c82a4956f54a27b44621e9f | PHP | yangwu/flights | /model/PurchaseInfo.php | UTF-8 | 739 | 2.59375 | 3 | [] | no_license | <?php
include_once dirname ( '__FILE__' ) . '/config.php';
class PurchaseInfo {
public $id, $accountid, $realname, $birthday, $isadult, $productid, $productdate, $cardtype, $cardnumber, $cardvalidate,$createtime;
function __get($property_name) {
if (isset ( $this->$property_name )) {
return $this->$property_name... | true |