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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
618c5fc6b148e75f23e2a84b7c9bab258b279e6c | PHP | afanasyevadina/ourversion | /schedule/newday.php | UTF-8 | 1,468 | 2.65625 | 3 | [] | no_license | <?php
require_once('../connect.php');
$date=date('Y-m-d');
$day_of_week=date('N');
$res=$pdo->prepare("SELECT `day_of_week`, `num_of_lesson`, `item_id`, `group_id` FROM `schedule_items` WHERE `day_of_week`=?");
$res->execute(array($day_of_week));
while ($lsn=$res->fetch()) {
$lesnres=$pdo->prepare("SELECT COUNT(*) FRO... | true |
4d170d64d527d314c749ff6ad62f1a7d33e20862 | PHP | jdupak/school | /cykly.php | UTF-8 | 208 | 3.015625 | 3 | [] | no_license | <?php
$n=0;
global $n;
echo "<table border='1'>";
for ($i=0; $i < 1000; $i++) {
echo "<tr>";
for ($j=0; $j < 1000; $j++) {
echo "<td>".$n."</td>";
$n++;
}
echo "</tr>";
};
echo "</table>";
?>
| true |
1382280103f11e204d7769a903ee5a4051676a1f | PHP | laterpay/laterpay-wordpress-plugin | /laterpay/application/Compatibility/Subscription.php | UTF-8 | 7,454 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* LaterPay subscription model to work with custom tables in older versions.
*
* Plugin Name: LaterPay
* Plugin URI: https://github.com/laterpay/laterpay-wordpress-plugin
* Author URI: https://laterpay.net/
*/
class LaterPay_Compatibility_Subscription
{
/**
* Name of PostViews tab... | true |
776ae8cd9ee1b4afb15258d77f2e352f077b4325 | PHP | DesertEagle1/bpmailer | /controllers/SiteController.php | UTF-8 | 4,422 | 2.53125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\filters\VerbFilter;
use app\models\User;
use app\models\LoginForm;
use app\models\AccessRights;
use app\models\ChangePasswordForm;
use app\models\Newsletter;
use app\models\Subscriber;
class SiteController extend... | true |
d223b53dbaf7131bcb9f414630979a93f9cb2f9e | PHP | saiedlakhdar/ibraframe | /packages/models/usersmodel.php | UTF-8 | 3,393 | 2.5625 | 3 | [] | no_license | <?php
/**
* Created by : SAIED.LAKHDAR.LOAI
* User: DJELFANETWORK
* Dvlper Email:saied.lakhdar01@gmail.com
* Date: 1/23/2020
* Time: 11:11 PM
* Filename : UsersModel.php
*/
namespace App\models;
use App\models\common\AbstractModel;
use http\Client\Curl\User;
class UsersModel extends Ab... | true |
06d216cbed9393635a93a84f2b425dab74984843 | PHP | matiux/php-design-patterns | /src/Decorator/Condiment/Macchiato.php | UTF-8 | 711 | 3.09375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace DesignPatterns\Decorator\Condiment;
use DesignPatterns\Decorator\Beverage\Beverage;
class Macchiato extends CondimentDecorator
{
public function cost(): float
{
$cost = $this->beverage->cost();
switch ($this->beverage->size) {
case Bevera... | true |
fadec878ea9f973d72bb64825320812583e41e89 | PHP | zamazzal/Piscine-PHP | /day02/ex01/one_more_time.php | UTF-8 | 2,029 | 2.734375 | 3 | [] | no_license | #!/usr/bin/php
<?php
date_default_timezone_set('Europe/Paris');
function ft_ezzsplit($entr, $limit)
{
$tab = explode($limit, $entr);
$tab = array_diff($tab, array(''));
$tab = array_slice($tab, 0);
return($tab);
}
function isvalid($str)
{
$test = preg_match("/(^[Ll]undi|^[Mm]ardi|^[Mm]ercredi|^[Jj]eudi|^[Vv]endre... | true |
b4f558bec9484f66c5505b756842d3f30a275317 | PHP | youzan/extension-point-api | /src/Cloud/Extension/Param/Test/BizTestOutParam.php | UTF-8 | 1,642 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by IntelliJ IDEA.
* User: allen
* Date: 2019-02-27
* Time: 18:34
*/
namespace Com\Youzan\Cloud\Extension\Param\Test;
use Com\Youzan\Cloud\Extension\Util\DefaultJsonSerializeUtil;
use stdClass;
class BizTestOutParam implements \JsonSerializable
{
use DefaultJsonSerializeUtil;
/**
... | true |
1f927a7179ff63d235664863e89c59e7090e6ed6 | PHP | scarecrow98/EduNET | /server/classes/UIDrawer.class.php | UTF-8 | 5,030 | 2.703125 | 3 | [] | no_license | <?php
class UIDrawer{
private function __construct(){ }
private function __clone(){ }
//gyakran használt html szerkezetek
private static $span_wrong = '<span class="option-result-icon wrong-icon"></span>';
private static $span_correct = '<span class="option-result-icon correct... | true |
33a467e8109f01786eb2b15e5e19d8bcd2200db6 | PHP | sg-garg/goodbye | /public_html/site/event-catadmin-edit.php | UTF-8 | 3,591 | 2.625 | 3 | [] | no_license | <?php
require_once("include/adminbase.php");
$catid = intval($_GET["event_id"]);
$sql = "SELECT * FROM eventcat where eventcatid = :id";
$q = $conn->prepare($sql);
$q->execute( array(':id' => $catid));
$row = $q->fetch();
$obj = new stdClass;
$obj->na... | true |
3f538f9806d699e40ea9231c2483c4ceceb39f88 | PHP | ilya-dev/sange | /src/Sange/Option.php | UTF-8 | 1,419 | 3.21875 | 3 | [
"MIT"
] | permissive | <?php namespace Sange;
class Option extends InputElement {
/**
* The option volume.
*
* @var integer
*/
protected $volume = 1;
/**
* Check if the element was used as a "switch" and its value is empty.
*
* @return boolean
*/
public function isFlag()
{
... | true |
9c14c7739c19fbe717b3f653c4f7de8d67c35fe3 | PHP | riogod/rsi_worker_timemanager | /tm/user_func.php | UTF-8 | 9,584 | 2.734375 | 3 | [] | no_license | <?php
// Добавление сотрудника ts_AddUser
// Удаление сотрудника ts_DelUser
// Редактирование сотрудника ts_UpdUser
// Получение данных сотрудника ts_GetUser
// Получение списка сотрудников ts_GetUsers
// Добавление группы ts_AddGroup
// Удаление группы ts_DelGroup
// Редактирование группы ts_UpdGroup
// Получение д... | true |
a0edd9605f037a08a412c6ff3efb59264ec39cbd | PHP | hashstudio/Mindy_Orm | /src/Mindy/Orm/DataIterator.php | UTF-8 | 661 | 2.515625 | 3 | [
"BSD-2-Clause-Views"
] | permissive | <?php
/**
*
*
* All rights reserved.
*
* @author Falaleev Maxim
* @email max@studio107.ru
* @version 1.0
* @company Studio107
* @site http://studio107.ru
* @date 18/07/14.07.2014 16:54
*/
namespace Mindy\Orm;
use ArrayIterator;
use Mindy\Helper\Traits\Configurator;
/**
* Class DataIterator
* @package Mi... | true |
9d2e8b609f52f4dc0ba2c747e3590ef01ab1c675 | PHP | wayee/YiPHP | /framework/classes/CCrud.php | UTF-8 | 5,077 | 3.015625 | 3 | [] | no_license | <?php defined('SYSPATH') or die('No direct script access.');
/**
* 封装简单的crud操作等
*
* @author Andy Cai (huayicai@gmail.com)
*
*/
class CCrud extends CModel
{
public function __construct( $className, $tableName )
{
parent::__construct( $className, $tableName );
}
/**
* 创建记录
* @param object $obj
* @par... | true |
1462ab8db5cf3d24483f46ac1aae45b517068c26 | PHP | bsormagec/laravel-cloud | /app/StorageProvider.php | UTF-8 | 1,318 | 2.515625 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Facades\App\StorageProviderClientFactory;
class StorageProvider extends Model
{
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'meta' => 'json',
];
/**
... | true |
259348dc2367740a4e301ac8317eb10ff67b6d34 | PHP | davidecesarano/Embryo-Container | /Embryo/Container/Container.php | UTF-8 | 5,419 | 3.09375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Container
*
* PSR-11 Container implementation.
* Finds an entry of the container by its identifier and returns it.
*
* @author Davide Cesarano <davide.cesarano@unipegaso.it>
* @link https://github.com/davidecesarano/embryo-container
* @see https://git... | true |
2cdb0783aab0272f4c93a638712553194350cacd | PHP | carbondioxxxx/0426 | /edit.php | UTF-8 | 1,943 | 2.515625 | 3 | [] | no_license | <?php
session_start();
require('lib/db_info.php');
$id=$_GET['id'];
$no=$_GET['no'];
$result=mysqli_query($conn,"select id,name,email,title,comment,ip from listt where id={$id}");
$row=mysqli_fetch_array($result);
?>
<script>
var id=<?= json_encode($_SESSION['id']) ?>;
console.log(id);
var ids=<?= ... | true |
b5d08053edf97f40576ef69c7af128d012f94ad3 | PHP | Shahbaz9090/test | /dynamic/application/helpers/login_session_helper.php | UTF-8 | 9,823 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* login helper
*
* @package CodeIgniter
* @subpackage Helpers
* @category Seesion
* @company GohrmInc
* @since Version 1.0
*/
//====================================Get Login user Permission==================================... | true |
992e5cd23d7b9bba1ac413d39131bc997241c632 | PHP | LilianTobace/crud-php | /upload.php | UTF-8 | 1,242 | 2.515625 | 3 | [] | no_license | <?php
include_once("connect.php");
session_start();
$submit = filter_input(INPUT_POST, 'submit', FILTER_SANITIZE_STRING);
if ($submit) {
$file = $_FILES['file'];
$total = count($file['name']);
for( $i=0;$i<$total; $i++) {
$users_id = filter_input(INPUT_POST, 'users_id', FILTER_SANITIZE_NUMBER_INT);... | true |
bb6b1404a0e3b47b328741a3c5018b3846822e6e | PHP | DASetya/kenalan-yuk | /database/seeders/MyStoryCategorySeeder.php | UTF-8 | 2,455 | 2.640625 | 3 | [] | no_license | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use App\Models\MyStoryCategory;
use Faker\Factory;
class MyStoryCategorySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = F... | true |
912f75df8855d3c3dc49f2818d50fa574af625da | PHP | LeonardD93/onpage-php | /src/QueryBuilder.php | UTF-8 | 2,145 | 2.671875 | 3 | [] | no_license | <?php
namespace OnPage;
class QueryBuilder
{
private string $resource;
private array $filters = [];
private FieldLoader $field_loader;
private ?array $related_to = null;
private Api $api;
function __construct(Api $api, string $resource)
{
$this->api = $api;
$this->resource... | true |
43dfdc08c52e024d962bfbb0be59e96df11cf390 | PHP | theoremoon/webapplication | /application/templates/index.php | UTF-8 | 1,243 | 2.53125 | 3 | [] | no_license | <?php include("header.php"); ?>
<section class="hero">
<div class="hero-body">
<div class="container">
<h1 class="title">HELLO <?= o($session['login']); ?></h1>
</div>
</div>
</section>
<div class="columns">
<section class="column">
<h2 class="is-size-4">Users</h2>
<table class="table">
<tr>
... | true |
b6f6874c2a959d26438b251134b2bcf0f3728fb0 | PHP | UseMuffin/Github | /src/Webservice/Driver/Github/CacheBridge.php | UTF-8 | 1,810 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace Muffin\Github\Webservice\Driver\Github;
use Cake\Cache\Cache;
use Github\HttpClient\Cache\CacheInterface;
use Guzzle\Http\Message\Response;
use RuntimeException;
class CacheBridge implements CacheInterface
{
protected $_engine;
/**
* Constructor
*
* @param string $alias Cache n... | true |
496c6b0a6a114dadf772aa476248ad41b7929e92 | PHP | muscleandstrength/easypost-php | /test/EasyPost/OrderTest.php | UTF-8 | 3,839 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace EasyPost\Test;
use EasyPost\EasyPost;
use EasyPost\Error;
use EasyPost\Order;
use EasyPost\Test\Fixture;
use VCR\VCR;
class OrderTest extends \PHPUnit\Framework\TestCase
{
/**
* Setup the testing environment for this file.
*/
public static function setUpBeforeClass(): void
{
... | true |
fab93295b7ce8de6ac855484a24ac6038ffe0375 | PHP | iampinheirosamuel/Lara-freelance | /app/User.php | UTF-8 | 1,447 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;
use Cog\Contracts\Love\Liker\Models\Liker as LikerContract;
use Cog\Laravel\Love\Liker\Models\Traits\Liker;
class User extends Authenticatable implements Liker... | true |
89272a35dfed8e28fb0a64a32b7d93ea290647f6 | PHP | ladyjer/PHPHeadaches | /Manual/Language_Reference/_2_Types/_9_null.php | UTF-8 | 1,020 | 3.53125 | 4 | [] | no_license | <?php
/**
* Created by IntelliJ IDEA.
* User: ladyj
* Date: 9/11/14
* Time: 10:53 PM
*
* The special NULL value represents a variable with no value. NULL is the only possible value of type null.
*/
/*
* Finds whether a variable is NULL
* E' truè se la variabile è = null oppure non esiste
*/
if (is_null(... | true |
54edde08c89bb3f26f5bbb27491f06141d427c50 | PHP | greenbeen11/phptraining | /testarray.php | UTF-8 | 1,430 | 3.0625 | 3 | [] | no_license | <form method="POST" action="testarray.php">
<input type="text" name="username" value="">
<input type="password" name="password" value="">
<input type="submit">
</form>
<?php
//$data1 = array('1','2','3');
//
//
//for($a = 1;$a<=1;$a++){
// if ($a='1'){
// echo "$data1[1]<br>";
// }
//}
//
//$b ... | true |
96ccc0b06c0c1a415491fc394d5db833e5e0b0f3 | PHP | Tikapot/Tikapot-Site | /framework/database.php | UTF-8 | 1,680 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/*
* Tikapot Database Class
*
*/
include_once(home_dir . "framework/databases/mysql.php");
include_once(home_dir . "framework/databases/postgres.php");
class NotConnectedException extends Exception { }
class QueryException extends Exception { }
abstract class Database
{
private static $dbs = array();
prot... | true |
d62a66663704d438889311c864c6cbed02dcf1b2 | PHP | rucblake/xumengjie.cn | /app/Services/IndexService.php | UTF-8 | 1,242 | 2.640625 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Entities\Index;
use App\Repositories\IndexRepository;
use App\Repositories\ImageRepository;
use App\Repositories\VideoRepository;
use App\Repositories\NewsRepository;
class IndexService {
protected $indexRepository;
protected $imageRepository;
protected $videoReposi... | true |
70a180e5786c025a8494cac3ca44369031db2f29 | PHP | n1chre/ga-lib | /Genetic/Chromosome/Chromosome.php | UTF-8 | 1,555 | 3.78125 | 4 | [] | no_license | <?php
namespace Genetic\Chromosome;
/**
* Interface Chromosome
* Contains basic function that chromosome must have
* @package Genetic\Chromosome
*/
interface Chromosome
{
/**
* Creates a default chromosome.
* @return Chromosome
*/
function createDefaultChromosome();
/**
* @return... | true |
eaced64b1bc10e256c0fc21c8fd865139c61a52a | PHP | Titsvetlana/hw | /calculatorPhp/index.php | UTF-8 | 1,516 | 3.359375 | 3 | [] | no_license | <?php
function calc()
{
if($_POST['submit'])
{
$a = $_POST['first'];
$b = $_POST['second'];
$p = $_POST['operation'];
$rez;
if($p == '+')
echo $rez = $a + $b;
elseif($p == '-')
echo $rez = $a - $b;
elseif($p == '*')
echo $rez = $a * $b;
elseif($p == '/')
{
if($b == 0 ... | true |
e6e27d7ac0651a701a5982dfba6fef67badc9ffc | PHP | fleetbase/core-api | /src/Exceptions/PolicyDoesNotExist.php | UTF-8 | 404 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Fleetbase\Exceptions;
use InvalidArgumentException;
class PolicyDoesNotExist extends InvalidArgumentException
{
public static function named(string $policyName)
{
return new static("There is no policy named `{$policyName}`.");
}
public static function withId(int $policyId)
... | true |
ae8fcfdbabad232f67314f2634797fbb2b792a90 | PHP | AxaliaN/Writer | /src/TS/Writer/Provider/Laravel/WriterServiceProvider.php | UTF-8 | 1,962 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace TS\Writer\Provider\Laravel;
use Illuminate\Support\ServiceProvider;
use Symfony\Component\EventDispatcher\EventDispatcher;
use TS\Writer\FileWriterContainer;
/**
* @package Writer
* @author Timo Schäfer
* @copyright 2014
* @version 1.2
*/
class WriterServiceProvider extends ServiceProvide... | true |
9a63e5a7b9e11284269feaae3d4eb85b03439a7d | PHP | Yanato/chatterie | /modele/Contenu.class.php | UTF-8 | 1,049 | 3.140625 | 3 | [] | no_license | <?php
class Contenu
{
private $numPage;
private $numTexte;
private $texte;
public function __construct($numPage, $numTexte, $texte)
{
$this->numPage = $numPage;
$this->numTexte = $numTexte;
$this->texte = $texte;
}
//----------------------------------- Accesseurs --... | true |
6d3f4097780f8b0fc16a69a3f05169c3262c3258 | PHP | CourtneyFarnsworth/Paws | /public/db/create-mysql-database.php | UTF-8 | 3,900 | 2.96875 | 3 | [] | no_license | <?php
require_once("../support.php");
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "root", "");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_conne... | true |
69119ab7e1b4059ebc9d54a2d79aa02d67b688ad | PHP | feriirawan0/php-dasar-feriirawan | /phpdasar/programmingweb/pert8/proses2.php | UTF-8 | 5,029 | 2.796875 | 3 | [] | no_license | <?php
if(isset($_POST['submit'])){
$kb =$_POST['kb'];
$jb =$_POST['jb'];
$nm_barang =[
"Bk" => "Buku",
"Ms" => "Mouse",
"FD" => "Flash Disk",
"PI" => "Pulpen",
];
$hrgsatuan ... | true |
c218129ff7837961da1ff5817802667071fb1f3d | PHP | pks-gdansk-oliwa/oop-xml | /src/Element/Item.php | UTF-8 | 1,061 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace PksGdanskOliwa\OopXml\Element;
use PksGdanskOliwa\OopXml\Interfaces\ItemInterface;
/**
* Class Element
*/
class Item extends BaseElement implements ItemInterface
{
public $_value = null;
/**
* @inheritdoc
*/
public function setValue($_value)
{
$this->_value = $_va... | true |
5cbe809f0deea02beba63d856a5ffbf20439f7fb | PHP | marciioluucas/Chemistery | /controller/PerguntaController.php | UTF-8 | 1,186 | 2.765625 | 3 | [] | no_license | <?php
require_once "../model/Pergunta.php";
/**
* Created by PhpStorm.
* User: marci
* Date: 24/02/2017
* Time: 11:23
*/
class PerguntaController
{
public function __construct()
{
if (isset($_GET['q']) and $_GET['q'] == "listar") {
$pergunta = new Pergunta();
$pergunta->li... | true |
0c889ffa88b0283fa42ca0355f3a021c40f068c2 | PHP | RobsonFerreira1992/estoque-venda | /procedimentos/categorias/adicionarCategorias.php | UTF-8 | 428 | 2.53125 | 3 | [] | no_license | <?php
session_start();
require_once "../../classes/conexao.php";
require_once "../../classes/categorias.php";
$data = date("Y-m-d");
$idusuario = $_SESSION['iduser'];
$categoria = $_POST['categoria'];
$obj = new categorias(); // chamando minha classe de categorias
$dados =array( // criando meu array com os da... | true |
207f754149ebe432d782c52c4a8c95812fc545a9 | PHP | digitaldreams/data-converter | /src/data-converter/FileCsv.php | UTF-8 | 769 | 2.953125 | 3 | [] | no_license | <?php
namespace DataConverter;
/**
* Description of FileCsv
*
* @author Tuhin
*/
class FileCsv extends FileManager implements FileManagerInterface {
public function __construct() {
parent::__construct();
}
public function read() {
$this->loadFile($this->file_path, 'r+');
$dat... | true |
7085c07e90e63f36f52dda0289d9c4d77970006c | PHP | SharuJ/gongs-comp3512-assign3 | /session.php | UTF-8 | 1,045 | 2.59375 | 3 | [] | no_license | <?php
// include 'includes/config.php';
// $pdo = new PDO(DBCONNSTRING, DBUSER, DBPASS);
// $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// session_start();// Starting Session
// // Storing Session
// $user_check=$_SESSION['userid'];
// // SQL Query To Fetch Complete Information Of User
// $sql="sele... | true |
650e76af995629e4b7b1117eea5cd738601cb232 | PHP | hanoivip/gate-client | /src/Services/StatisticService.php | UTF-8 | 4,049 | 2.671875 | 3 | [] | no_license | <?php
namespace Hanoivip\GateClient\Services;
use Hanoivip\Events\Gate\UserTopup;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Exception;
use Hanoivip\GateClient\Models\StatisticType;
use Hanoivip\GateClient\Models\Statistic;
class StatisticService
{
// Only global statistic key ... | true |
f1b024986188f2b4b7136cc69e0dc7c0f81eb7d6 | PHP | pixelbrackets/rector | /src/PhpParser/Parser/SimplePhpParser.php | UTF-8 | 1,332 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
declare (strict_types=1);
namespace Rector\Core\PhpParser\Parser;
use RectorPrefix202304\Nette\Utils\FileSystem;
use PhpParser\Node\Stmt;
use PhpParser\Parser;
use PhpParser\ParserFactory;
use Rector\Core\PhpParser\NodeTraverser\NodeConnectingTraverser;
final class SimplePhpParser
{
/**
* @readonly
... | true |
b1584bad8511f91dd30e0f19704ef566fcd782e1 | PHP | rrahool/Health_Care_Doctors_Appoint_Mgt_System | /src/BITM/F2S/OnlineTreatment/OnlineTreatment.php | UTF-8 | 8,270 | 2.53125 | 3 | [] | no_license | <?php
namespace App\OnlineTreatment;
use App\Utility\Utility;
use PDO;
use App\Model\Database;
class OnlineTreatment extends Database
{
public $id;
public $name;
public $email;
public $doctors_id;
public $password;
public $type;
public $status;
public $address;
public $message_no;
... | true |
87953634d47171da70bcb2de472a0a437f101dd1 | PHP | inunosinsi/soycms | /cms/soyshop/webapp/src/module/plugins/payment_construction/util/PaymentConstructionUtil.class.php | UTF-8 | 1,420 | 2.671875 | 3 | [] | no_license | <?php
class PaymentConstructionUtil {
public static function getConfig(){
return SOYShop_DataSets::get("payment_construction.config", array(
"items" => "人件費"
));
}
public static function saveConfig($values){
$values["display_construction_item"] = (isset($values["display_construction_item"]) && (int)$valu... | true |
062fc40facfae0c6985ac4e572dfdc1e0f7390a9 | PHP | kraftp/Leginon-Feature-Detection-Modification | /myamiweb/project/runStat.php | UTF-8 | 19,544 | 2.546875 | 3 | [] | no_license | <?php
require_once('inc/project.inc.php');
require_once "inc/jpgraph.php";
require_once "inc/jpgraph_line.php";
require_once "inc/jpgraph_scatter.php";
require_once "inc/jpgraph_bar.php";
require_once "inc/histogram.inc";
require_once "inc/image.inc";
if (privilege('projects')) {
$title = "Statistics Report";
login_... | true |
55310fad9a24d717376d082d685771332a5b84dc | PHP | Usocrate/vostok | /classes/Society.class.php | UTF-8 | 33,665 | 3.046875 | 3 | [] | no_license | <?php
/**
* @package usocrate.vostok
* @author Florent Chanavat
*/
class Society {
public $id;
protected $industries;
protected $street;
protected $city;
protected $postalcode;
protected $subAdministrativeAreaName;
protected $administrativeAreaName;
protected $countryNameCode;
/**
* les coordonnées géogr... | true |
7e48551075576ba3684f018cc9f3f64bd6c43623 | PHP | msartor/FeedbackSlimBackend | /src/lib/FeedbackBatch/MyTest.php | UTF-8 | 726 | 2.53125 | 3 | [] | no_license | <?php
namespace FeedbackBatch;
use FeedbackBatch\lib\Core;
use FeedbackBatch\lib\BatchJob;
class MyTest extends IndexController{
protected $view;
// constructor receives container instance
public function __construct($view = null) {
parent::__construct();
$this->view = $view;
}
pub... | true |
f5c0bcb35e2be331ef27189eb90f4917ed4ad270 | PHP | ads04r/bus-finder | /classes/Operator.php | UTF-8 | 3,005 | 2.65625 | 3 | [] | no_license | <?php
class BusOperator
{
private $noc;
private $rdf;
private $uri;
private $rdesc;
private $cache;
public function id()
{
return $this->noc;
}
public function uri()
{
return $this->uri;
}
public function label()
{
return "" . $this->rdf->label();
}
public function routes()
{
function sort_... | true |
0752b1b2ec8a1f4663526ab84a156d4f8e2b3342 | PHP | mizdflop/dev_new | /app/webroot/gather.php | UTF-8 | 445 | 2.59375 | 3 | [] | no_license | <?php
$sessionid = (int)$_POST["sessionid"];
$userid = (int)$_POST["userid"];
$counter = (int)$_POST["counter"];
$hand_history = $_POST["hand_history"];
$filePointer = fopen("results.txt", "a");
if ($filePointer)
{
$timestamp = date("F j, Y, g:i a");
fwrite($filePointer, "$timestamp\nses... | true |
c76c809e8c64ac4dddf945fa29b4593fc4a93d35 | PHP | Rhythm113/CoffeeHouse | /tests/core_nlp_pos_tagger.php | UTF-8 | 497 | 2.515625 | 3 | [] | no_license | <?php
use CoffeeHouse\CoffeeHouse;
use CoffeeHouse\Exceptions\ServerInterfaceException;
require("ppm");
ppm_import("net.intellivoid.coffeehouse");
$CoffeeHouse = new CoffeeHouse();
try
{
var_dump($CoffeeHouse->getCoreNLP()->posTag(
"CoffeeHouse is a machine learning ... | true |
157ca3a1e336c47438f3ebb0697bcb5337232fbe | PHP | Erfans/AssetBundle | /Config/AssetManagerConfig.php | UTF-8 | 1,293 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace Erfans\AssetBundle\Config;
class AssetManagerConfig {
/** @var array $config */
private $config;
/**
* AssetManagerConfig constructor.
*
* @param $config
*/
public function __construct($config) {
$this->config = $config;
}
private function getConf... | true |
0eb70bc97ed16deb194d20a7e97c48ee9d602bce | PHP | DAlekseenko/Yii2-project | /app/console/migrations/m170125_125042_create_documents.php | UTF-8 | 976 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
use yii\db\Schema;
use yii\db\Migration;
class m170125_125042_create_documents extends Migration
{
public static $table = "{{documents}}";
/*
CREATE TABLE documents (
id SERIAL NOT NULL PRIMARY KEY,
title VARCHAR(500),
"text" TEXT NOT NULL DEFAULT '',
draft TEXT NOT NULL DEFAULT ''
);
GRANT... | true |
62a69fef4a377a263f4a3aea6d5a5d0dcc46fd5e | PHP | hrphp/hrphp-cli | /tests/library/Command/PingCommandTest.php | UTF-8 | 2,743 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the hrphp-cli package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HrphpTest\Cli\Command;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use Gu... | true |
a9ac401d383f64aac8f488ca8c0f4b94cb02f3ce | PHP | Unit6/form-php | /src/Element/Button.php | UTF-8 | 2,349 | 2.9375 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Form package.
*
* (c) Unit6 <team@unit6websites.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Unit6\Form\Element;
use InvalidArgumentException;
use Unit6\Form\Template;
/**
... | true |
20c8a3c29e2a95f5240593371784799584328b4c | PHP | linuxserver/Heimdall | /vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/InstallCommand.php | UTF-8 | 1,576 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Illuminate\Database\Console\Migrations;
use Illuminate\Console\Command;
use Illuminate\Database\Migrations\MigrationRepositoryInterface;
use Symfony\Component\Console\Input\InputOption;
class InstallCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
... | true |
be6ea2a97da7a9d39cf130af490316e9f5ae7861 | PHP | syachrzl/blog7 | /app/Http/Controllers/NegaraController.php | UTF-8 | 1,734 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Negara;
class NegaraController extends Controller
{
public function negara()
{
//Mengambil semua data dari table
$nama = Negara::all();
return view('negara.negarapage', compact('nama'));
}
publ... | true |
c5efac7e1b22112aff3d6ada3c0f0804a6f2a9d6 | PHP | Dev-Int/glsr | /server/src/User/Domain/Model/VO/Password.php | UTF-8 | 1,366 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/*
* This file is part of the G.L.S.R. Apps package.
*
* (c) Dev-Int Création <info@developpement-interessant.com>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace User\Domain\Model\VO;
... | true |
f0251dd7b99c2c63cf140b47c78960ec4b2023f1 | PHP | fastpenguin91/code-challenges | /public/single-code_challenge.php | UTF-8 | 4,114 | 2.625 | 3 | [] | no_license | <?php
/**
* Template Name: Single Challenge
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
if ( is_user_logged_in() ) {
$user = wp_get_current_user();
}
get_header();
global $wpdb;
$db_name = $wpdb->prefix . 'jsc_challenge_user';
?>
<div id="primary" class="content-area"... | true |
21083c1950b9ff2ec57b1ab2fecc45cc4b1645e6 | PHP | zaidanriski/web-laravel-apotek | /database/migrations/2018_06_27_032513_create_obatss_table.php | UTF-8 | 1,412 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateObatssTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('obats', function... | true |
28f23cc8d3d117792597ebe5e8378d91791496ec | PHP | servo80/ehe-ini-de | /custom/extensions/Testimonials/engine.php | UTF-8 | 1,601 | 2.578125 | 3 | [] | no_license | <?php
namespace BB\custom\engine;
if(@secure !== true)
die('forbidden');
class Testimonials extends \BB\model\engine {
protected $path = 'custom/extensions/Veranstaltungen/';
protected static $autoloadFolders = array(
'custom/dao/',
'custom/dao/model/',
'custom/dao/element/'
... | true |
46337a129912afa55d3dcb21b8f806080ad70b28 | PHP | phitien/ico-solution | /core/Template.php | UTF-8 | 2,757 | 2.578125 | 3 | [] | no_license | <?php
class Template {
public static $smarty;
protected $_data;
protected $_config = [];
public static function init() {
if (!self::$smarty) self::$smarty = self::factory();
}
public static function factory() {
$smarty = new Smarty;
$smarty->setConfigDir('smarty/configs/');
$smarty->setCompi... | true |
4873c3ea41df2b562f2300d885873048f80f282a | PHP | sujin2f/wp_express | /classes/helpers/schema/index.php | UTF-8 | 6,764 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
* Schema Base
*
* @author Sujin 수진 Choi <http://www.sujinc.com/>
* @package WP Express
* @param string $name Schema Unique name
* @since 4.0.0
* @subpackage Schema
*/
namespace Sujin\Wordpress\WP_Express\Helpers;
use Suji... | true |
a3d6c47d7485784775b17c63975cc1a9882dc939 | PHP | gobb/SprayFire | /libs/SprayFire/Plugin/PluginSignature.php | UTF-8 | 1,735 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Interface that represents the information needed to load a plugin and manage
* how that plugin interacts with the framework.
*
* @author Charles Sprayberry
* @license Subject to the terms of the LICENSE file in the project root
* @version 0.2
* @since 0.2
*/
namespace SprayFire\Plugin;
use \Spr... | true |
076e50b29d3871d60ec35502c111c6d96d4dfd9f | PHP | silverham/Personal-Website | /includes/lib/EchoUrlForSubMenu.php | UTF-8 | 622 | 3.03125 | 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.
*/
/*
* Returns the beginning of a URL up to a specified string
*/
function echoUrlForSubMenu ($subIndex) {
//get current url... | true |
a19547d79f1362ee9e9b1111ede88c98b4ba1ecf | PHP | idrunk/dce-php | /engine/loader/attr/SingMatrix.php | UTF-8 | 1,806 | 2.6875 | 3 | [
"LicenseRef-scancode-mulanpsl-2.0-en"
] | permissive | <?php
/**
* Author: Drunk (drunkce.com; idrunk.net)
* Date: 2021/10/18 21:37
*/
namespace dce\loader\attr;
abstract class SingMatrix {
protected static array $mapping = [];
public function __construct(mixed ... $args) {}
/**
* @template T
* @param class-string<T>|callable $class
* @par... | true |
4d9e2a95f17064bbca3da1a247e2ae356d27c365 | PHP | plamenyankov/larabook | /app/controllers/StatusesController.php | UTF-8 | 1,886 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
//use Larabook\Core\CommandBus;
use Larabook\Forms\PostStatusForm;
use Larabook\Statuses\PublishStatusCommand;
use Larabook\Statuses\StatusRepository;
class StatusesController extends \BaseController {
//use CommandBus;
protected $statusRepository;
/**
* @var Larabook\Forms\PostStatusForm
*/... | true |
42bab70006b36323fafec62e0997f4805b194e34 | PHP | terablaze/core | /src/Queue/Console/Command/FlushFailedCommand.php | UTF-8 | 1,449 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Terablaze\Queue\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Terablaze\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand(name: 'queue:flush')]
class FlushFailedCommand extends Command
{
/**
* The name of the console command.
*
... | true |
a4f41fcffa40a27f5eb1306a7ce87b3a337ffba5 | PHP | maxprofs-llcio/XCTF-2018-Final-WEB2-PUBG | /DECODED/kss_inc/zip.cls.php | UTF-8 | 4,578 | 2.65625 | 3 | [] | no_license | <?php
/*********************/
/* */
/* Dezend for PHP5 */
/* NWS */
/* Nulled.WS */
/* */
/*********************/
class PHPzip
{
public $file_count = 0;
public $datastr_len = 0;
public $dirstr_len = 0;
public $filedata = "";
... | true |
796a0ed38346f5c421d727095fd64c645b2b24fc | PHP | OMGZui/WebSocket-For-PHP | /app/Socket.php | UTF-8 | 6,251 | 3.078125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
require __DIR__.'/../vendor/autoload.php';
class Socket
{
const BIND_NUM = 20;
private $master;
private $sockets = [];
private $handshake = false; // 握手
public function __construct($address, $port)
{
try {
// 创建
$this->master = socket_crea... | true |
e381d83d35d90648af24dec5a5c77e60fe3ffbb4 | PHP | fushi411/yx | /Application/Light/Logic/YxhbKfMaterielAmendLogic.class.php | UTF-8 | 8,255 | 2.578125 | 3 | [] | no_license | <?php
namespace Light\Logic;
use Think\Model;
/**
* 临时额度逻辑模型
* @author
*/
class YxhbKfMaterielAmendLogic extends Model {
// 实际表名
protected $trueTableName = 'yxhb_materiel';
/**
* 记录内容
* @param integer $id 记录ID
* @return array 记录数组
*/
public function record($id)
{
... | true |
7c8275373c37dc3631b399e9e6f034fb69fd67ff | PHP | jetanuwoma/walletok | /application/app/Helpers/Money.php | UTF-8 | 415 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Helpers;
use Auth;
class Money
{
public function value($val, $currency_symbol = null){
if (!is_null($currency_symbol) and $currency_symbol == '(BTC)') {
return $val .' '. $currency_symbol;
}
return number_format((float)$val, 2, '.', ',') . ' '. $curren... | true |
557f603a256b8d8e52505c645a122b18cfc5a9f7 | PHP | huanganxin/MVC | /src/ApplicationController.php | UTF-8 | 10,649 | 2.75 | 3 | [] | no_license | <?php
/**
* Copyright (c) 2009 Stefan Priebsch <stefan@priebsch.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright no... | true |
f406c9a4d71263c8e605b1410bf1cb103b97102d | PHP | mirobrando/redcart-client | /src/client/models/InventoryOptions.php | UTF-8 | 1,466 | 2.828125 | 3 | [] | no_license | <?php
namespace mirolabs\redcart\client\models;
use mirolabs\redcart\client\Model;
class InventoryOptions extends Model
{
protected $products_id;
protected $quantity;
protected $inventories_id;
protected $options_array;
/**
* @return mixed
*/
public function getProductsId()
... | true |
d3b8f4f26950da2c5e85300eaa5c70cfb9a9e005 | PHP | TerimaX/abcde | /chatRoom.php | UTF-8 | 2,472 | 2.8125 | 3 | [] | no_license | <?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "roommating";
// connect with database demo
$conn = new mysqli($servername, $username, $password, $dbname);
// an array to display response
$response = array();
// on below line we are checking if the parameter send is ... | true |
6684e6fe430f4c1cc8dea142e79daeb671eddea0 | PHP | TonyVlcek/GoClimb | /app/server/Model/Entities/Attributes/Address.php | UTF-8 | 1,384 | 2.84375 | 3 | [] | no_license | <?php
namespace GoClimb\Model\Entities\Attributes;
trait Address
{
/**
* @var string
* @ORM\Column(type="string", nullable=TRUE)
*/
private $street;
/**
* @var string
* @ORM\Column(type="string", nullable=TRUE)
*/
private $number;
/**
* @var string
* @ORM\Column(type="string", nullable=TRUE)
... | true |
074d6139e43b4eeee901e4569dc993ec58a9795a | PHP | Linked3234/kulinary_control | /app/Http/Controllers/CategoryController.php | UTF-8 | 2,536 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Models\Category;
use Illuminate\Http\Request;
class CategoryController extends Controller
{
public function index($type)
{
return view('categories.index', [
'title' => $this->check_title($type),
'categories' => Category::where('t... | true |
c2772be246b1de388e50d4c15551d085d342391a | PHP | hpopotter7/TDI | /reporte_clientes.php | UTF-8 | 1,056 | 2.53125 | 3 | [] | no_license | <?php
include("conexion.php");
if (mysqli_connect_errno()) {
printf("Error de conexion: %s\n", mysqli_connect_error());
exit();
}
function asmoneda($value) {
return '$' . number_format($value, 2);
}
$res='<thead>
<tr>
<th>Razon Social</th>
<th>Nombre comercial</th>
... | true |
b3c846f13f960b49db284461c9cb178b65145230 | PHP | inri13666/google-api-php-client-v2 | /libs/Google/Service/GamesManagement/Resource/Applications.php | UTF-8 | 1,101 | 2.546875 | 3 | [
"Unlicense"
] | permissive | <?php
namespace Google\Service\GamesManagement\Resource;
class Applications extends \Google\Resource\Service
{
/**
* Get the list of players hidden from the given application. This method is
* only available to user accounts for your developer console.
* (applications.listHidden)
*
* @param string $a... | true |
c8b01e7a93a3f7fe61da8fbd07e298fed58e953a | PHP | eliseuegewarth/RadarCriminal | /test/model/CrimeTeste.php | UTF-8 | 2,204 | 2.84375 | 3 | [] | no_license | <?php
/**
* @author Eliseu
* Classe Crime Teste
**/
require_once ('C:/xampp/htdocs/mds2013/model/Crime.php');
class CrimeTeste extends PHPUnit_Framework_Testcase{
public function setUp(){
$this->crime = new Crime();
}
public function testeAtributoIdCrime(){
$this->assertInstanceOf('Crime'... | true |
0a01cdd6948be7f9aa3d1d94a271cf586034647e | PHP | konstantin-serb/comfort | /modules/admin/models/forms/ChangeOrderImageForm.php | UTF-8 | 709 | 2.53125 | 3 | [] | no_license | <?php
namespace app\modules\admin\models\forms;
use app\modules\admin\models\ImagesProduct;
use yii\base\Model;
class ChangeOrderImageForm extends Model
{
public $sort;
public $imageId;
public function rules()
{
return [
[['sort', 'imageId'], 'integer'],
];
}
pu... | true |
8865b0c9c4668209757f48d4642e125fde99fb73 | PHP | fysfloe/fat | /src/Service/FootballGame/CreateFootballGameService.php | UTF-8 | 706 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Service\FootballGame;
use App\Entity\AbstractEntity;
use App\Entity\FootballGame;
use App\Exception\ValidationException;
use App\Service\Rest\CreateService;
class CreateFootballGameService extends CreateService
{
protected function validate(AbstractEntity $entity): AbstractEntity
{
... | true |
1c841f3989e48524553e7d153722bac089778a8f | PHP | Malina-Shrestha/Travel-Booking-System | /app/Controllers/StatesController.php | UTF-8 | 1,595 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Controllers;
use App\Models\Category;
use App\Models\State;
use System\Core\BaseController;
class StatesController extends BaseController
{
public function index()
{
$data = $this->paginate(new State, 2, 'states');
view('back/states/index', $data);
}
public funct... | true |
b1959d953c32340ea79d24f3f8e3122d9c6030c2 | PHP | aydik99/marketbank | /models/Ask.php | UTF-8 | 997 | 2.515625 | 3 | [] | no_license | <?php
namespace app\models;
use yii\db\ActiveRecord;
class Ask extends ActiveRecord {
public function rules()
{
return [
// username and password are both required
[['summa'], 'required','message'=>'Это обязательное поле.'],
// rememberMe must be a boo... | true |
f447278a8da2c2af224303732e414c6a11745f40 | PHP | zorille/php_framework | /APIWeb/cacti/Zorille_framework_cacti_hosts.class.php | UTF-8 | 5,763 | 2.921875 | 3 | [] | no_license | <?php
/**
* @author dvargas
* @package Lib
*
*/
namespace Zorille\framework;
use \Exception as Exception;
/**
* class cacti_addTree<br>
*
* Prepare une ligne de commande de generation.
*
* @package Lib
* @subpackage Cacti
*/
class cacti_hosts extends parametresStandard {
/**
* var privee
*
* @access p... | true |
e5e0ac52781037dc155e113f2d3c3587a4777b92 | PHP | ephenyxshop/phenyxShop | /library/classes/helper/HelperImageUploader.php | UTF-8 | 2,207 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Class HelperImageUploaderCore
*
* @since 1.8.1.0
*/
class HelperImageUploaderCore extends HelperUploader {
/**
* @return int
*
* @since 1.8.1.0
* @version 1.8.5.0
*/
public function getMaxSize() {
return (int) Tools::getMaxUploadSize();
}
/**
*... | true |
ee7cb5c3e961a9025e28a633b206a03a111380e9 | PHP | IvanSotelo/TwilioSmsVerification | /src/Traits/MustVerifyPhone.php | UTF-8 | 2,100 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace IvanSotelo\TwilioVerify\Traits;
use IvanSotelo\TwilioVerify\Notifications\VerifyPhone;
trait MustVerifyPhone
{
/**
* Determine if the user has verified their email address.
*
* @return bool
*/
public function hasVerifiedPhone()
{
return ! is_null($this->phone_v... | true |
33d3824aecf7f3e2f4f8afd26080d3c0fb1d0f4f | PHP | kungfunk/its-ddd | /src/Domain/Ticket.php | UTF-8 | 1,069 | 3.109375 | 3 | [
"Unlicense"
] | permissive | <?php
declare(strict_types = 1);
namespace ITS\Domain;
use ITS\Domain\TicketId;
use ITS\Domain\TicketStatus;
use ITS\Domain\InvalidTicketStatus;
final class Ticket
{
private TicketId $id;
private string $description;
private string $status;
private array $allowedStatus = [
TicketStatus::OPEN... | true |
f345f644d199057e479bfb92e079b9e6fdb0c5d5 | PHP | grntovspyn/TreeHouse-Project-8 | /inc/functions_auth.php | UTF-8 | 2,250 | 2.671875 | 3 | [] | no_license | <?php
// Code heavily drawn from videos by Alena Holligan @ https://teamtreehouse.com/library/introduction-to-user-authentication-in-php
use Firebase\JWT\JWT;
function isAuthenticated()
{
return decodeAuthCookie();
}
function saveUserData($user)
{
global $session;
$session->getFlashBag()->add('success',... | true |
5555461ffd1ae417f9bff7eb17db99afec046b37 | PHP | BilalAlnajjar/laravel-payoneer | /src/koizoinno/LaravelPayoneer/Requests/ChargeAccountRequest.php | UTF-8 | 680 | 2.75 | 3 | [
"MIT"
] | permissive | <?php namespace koizoinno\LaravelPayoneer\Requests;
use koizoinno\LaravelPayoneer\Contracts\RequestInterface;
class ChargeAccountRequest extends BaseRequest implements RequestInterface
{
/**
* ChargeAccountRequest constructor.
* @param $amount
* @param $accountId
* @param string $description
... | true |
0b6755484abd24943d7df9391e4f5839418c3947 | PHP | Nosto/nosto-prestashop | /classes/helpers/NostoHelperLogger.php | UTF-8 | 3,330 | 2.9375 | 3 | [
"AFL-3.0"
] | permissive | <?php /** @noinspection PhpUnused */
/**
* 2013-2022 Nosto Solutions Ltd
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.or... | true |
4dc837d93fef763dd12177e85732a91707d6f331 | PHP | swap-shwetagarg/uncle | /app/Helpers/GetNextBooking.php | UTF-8 | 2,486 | 2.546875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: vishal
* Date: 21/6/17
* Time: 10:53 PM
*/
namespace App\Helpers;
use Carbon\Carbon;
use App\User;
use App\Booking;
use Hamcrest\Type\IsInteger;
use phpDocumentor\Reflection\Types\Integer;
class GetNextBooking extends Helpers
{
public static function ConvertFormat(C... | true |
db101b805b0d572a0dcfa9677bac49e50b421542 | PHP | tokano864/techbase | /mission2/mission_2-4.php | UTF-8 | 683 | 2.921875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
</head>
<body>
<form action=""method="post">
<input type="text" name="comment"
value="コメント">
<input type="submit">
</form>
<?php
$str=$_POST["comment"];
if($str!... | true |
c2bbe958eb5d3168b44b1218976b85b0a97d8214 | PHP | bronek89/data-map | /src/Getter/GetterMap.php | UTF-8 | 994 | 2.859375 | 3 | [] | no_license | <?php
namespace DataMap\Getter;
use DataMap\Exception\FailedToInitializeMapper;
final class GetterMap implements \IteratorAggregate
{
/**
* Key => Getter association map.
* @var callable[] [key => callable getter, ...]
*/
private $map = [];
public function __construct(array $map)
{
... | true |
7d003246615e63ffe4ddbb6e0381c808477e72ba | PHP | MonsieurGourmand/chronopost | /_src/Creneau/deliverySlotResponse.php | UTF-8 | 1,494 | 2.8125 | 3 | [] | no_license | <?php
namespace Chronopost\Creneau;
class deliverySlotResponse extends wsResponse
{
/**
* @var string $meshCode
*/
protected $meshCode = null;
/**
* @var slot[] $slotList
*/
protected $slotList = null;
/**
* @var string $transactionID
*/
protected $transactionI... | true |
63af97abaa36f09053cac5ee8dc013645c7c9f72 | PHP | rizkyalkusaeri/LATIHAN | /coba1/ubah.php | UTF-8 | 2,020 | 2.921875 | 3 | [] | no_license | <?php
session_start();
if (!isset($_SESSION['login'])) {
header("Location: login.php");
}
require 'functions.php';
if (!isset($_GET['id'])) {
header("Location: index.php");
exit;
}
$id = $_GET['id'];
$m = query("SELECT * FROM mahasiswa WHERE id = $id");
if (isset($_POST['ubah'])) {
if (ubah($_POST) > 0) {
... | true |
d6a1cd158a84ca1e913a22f14ff2f4a81c23384f | PHP | twtrubiks/AKBGroup_SongList | /confirm.php | UTF-8 | 2,185 | 2.859375 | 3 | [
"MIT"
] | permissive | <html>
<body>
<head>
<title>Confirm</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<?php
function check_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
echo '收到收到收到:'.$_POST['data'][0].'<br>';
//print_r(... | true |
995a081324fb855864c0e4f8956f091302b25653 | PHP | gsuranga/demo-project | /osram/system/libraries/Time.php | UTF-8 | 1,163 | 2.875 | 3 | [] | no_license | <?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of services
*
* @author chathuranga bandara
*/
class CI_Time {
public function __construct() {
$this->CI ... | true |
8f9e2219017957e2fa2e0acf20a833d65f2a3025 | PHP | icole/ost_courses | /introphp/lesson2/lesson2.php | UTF-8 | 1,672 | 2.921875 | 3 | [] | no_license | <html>
<head>
<style>
#price {
text-align: right;
}
.subtotal {
border-top: 1px solid black;
}
</style>
</head>
<?
//Definitions for course items
$appetizer = "Hot Wings";
$drink = "Beer";
$entree = "Bacon Cheeseburger";
$dessert = "Chocolate Cake";
//Definitions for course prices
$appetizer_price = ... | true |
89969438588193c5709e0ff923752f4e36f24e38 | PHP | sina1010anis/DivarTest | /app/Pattern/AbstractFactory/ItemTowAbstractFactory.php | UTF-8 | 498 | 3.4375 | 3 | [] | no_license | <?php
namespace App\Pattern\AbstractFactory;
class ItemTowAbstractFactory implements AbstractFactoryInterface
{
private $price;
private $name;
public function __construct($price , $name)
{
$this->price = $price;
$this->name = $name;
}
public function price()
{
re... | true |