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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bab3b17743a6b4d7182556ec1aefea9d4d2f1efe | PHP | ZiRong27/ESD-Mentality | /app/ui/patient/patientViewAllDoctors.php | UTF-8 | 5,247 | 2.578125 | 3 | [] | no_license | <?php
require_once '../include/common.php';
$accountType = "patient";
require_once '../include/protect.php';
?>
<html>
<head>
<!--Install jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<header>
<?php include '../include/codeLinks.php';?>
<li... | true |
a2f8d8c33f6d2a57ef875d833fb1d0bfb35b33d4 | PHP | crowdsecurity/php-remediation-engine | /tests/scripts/get-remediation-lapi-with-geoloc.php | UTF-8 | 2,549 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
require_once __DIR__ . '/../../vendor/autoload.php';
use CrowdSec\Common\Logger\FileLog;
use CrowdSec\LapiClient\Bouncer;
use CrowdSec\RemediationEngine\CacheStorage\Memcached;
use CrowdSec\RemediationEngine\CacheStorage\PhpFiles;
use CrowdSec\RemediationEngine\CacheStorage\Redis;
use CrowdSec\RemediationEngine... | true |
a2424a497381fb744962eea54aa9caa55011fa37 | PHP | rutame/php_framework_mvc_minimo | /controllers/errorController.php | UTF-8 | 2,015 | 2.53125 | 3 | [] | no_license | <?php
/*
* Copyright (C) 2014 Pedro Gabriel Manrique Gutiérrez <pedrogmanrique at gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... | true |
864abe116e05dbef871664046be46a673137d630 | PHP | drozzi-pro/admin-columns | /classes/Column/Post/Ancestors.php | UTF-8 | 1,905 | 2.765625 | 3 | [] | no_license | <?php
namespace ACP\Column\Post;
use AC\Collection;
use AC\Column;
use AC\Settings;
use ACP\ConditionalFormat;
use ACP\Export;
use ACP\Filtering;
use ACP\Search;
use ACP\Sorting;
/**
* @since 4.2
*/
class Ancestors extends Column
implements Export\Exportable, Filtering\Filterable, Search\Searchable, Sorting\Sorta... | true |
5124099b866bfcf903f3795443c13050eb12fcd5 | PHP | ko-EnYan/aaa | /mission_2-15.php | UTF-8 | 11,070 | 2.84375 | 3 | [] | no_license | <?php
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//<MySQLに接続
$dsn='mysql:dbname=データベース名; host=localhost';
$user='ユーザー名';
$password='パスワード';
$pdo=new PDO($dsn,$user,$password);
//<MySQLに接続>
///////////////////////////////... | true |
57cb51f2c44cb5e8af1c5b5e51ece7a76694bc63 | PHP | Rydkey/Fictive_Library | /modif.php | UTF-8 | 2,851 | 2.546875 | 3 | [] | no_license | <?php
include ("connexion_bdd.php");
if($_GET['Table']=="EMPRUNT"){
$info['id']=$_GET['id'];
$requet_EMPRUNT="SELECT * FROM EMPRUNT WHERE idAdherent=".$info['id'].";";
$donnees=mysql_query($requet_EMPRUNT);
$message="Que voulez vous modifiez ?";
}elseif($_GET['Table']=="AUTEUR"){
$info['id']=$_GET... | true |
8fc776d2428ac8b65d5d4f0e442c36dd6ef6d9f0 | PHP | aikon2/tb | /migrations/m160601_170835_create_data_ref.php | UTF-8 | 883 | 2.609375 | 3 | [] | no_license | <?php
use yii\db\Migration;
/**
* Handles the creation for table `data_ref`.
*/
class m160601_170835_create_data_ref extends Migration
{
/**
* @inheritdoc
*/
public function SafeUp()
{
$this->createTable('data_ref', [
'id' => $this->primaryKey(),
'name_ref' => $... | true |
f7f56f0d50aaebb8bb55397b5a1d0fb582cd574a | PHP | eusonlito/captcha | /src/Image.php | UTF-8 | 9,747 | 3.375 | 3 | [
"MIT"
] | permissive | <?php
namespace Eusonlito\Captcha;
/**
* Class to manage image
*/
class Image
{
private $image;
private static $background = array(255, 255, 255, 1);
private static $color = array(115, 115, 115, 1);
private static $padding = 0.4;
private static $noisePoints;
private static $noiseLines;
/... | true |
409f7f931adc78515b587e2d0d3b8b9585eed3e4 | PHP | Engineer-Hasibur-Rahman/simple-api-final | /app/Http/Controllers/ProductController.php | UTF-8 | 1,641 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Product;
use Carbon\Carbon;
class ProductController extends Controller
{
public function index(){
$product=Product::all();
return $product;
}
public function store(Request $request){
$request->valida... | true |
bfe1114998213aad2f8f2643f548ee8b6c47fb0d | PHP | lukeissac/UsingGoogleOauthforMagentoApi | /config.php | UTF-8 | 746 | 2.75 | 3 | [] | no_license | <?php
function doHttpRequest($request, $url)
{
$ch = curl_init();
$headers = array($request->to_header());
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$rsp = curl_exec($ch);
// close cURL resource, and ... | true |
c273069a26643e19a279896f7463dcbcf4fae2b9 | PHP | TheRealSpectrum/dna-party-planner | /app/Notifications/EventNotification.php | UTF-8 | 1,260 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class EventNotification extends Notification
{
use Queueable;
private $notificationData;
public function __construct($notificationData)
{
... | true |
f7696b17edbd3d65caa3d71ccaaca75038a9414a | PHP | rudiedirkx/Image | /resize_image.php | UTF-8 | 260 | 2.625 | 3 | [] | no_license | <?php
require 'Image.php';
$img = new Image('dansje.png');
$img->background_color = array(255, 255, 255);
//$img->resize(0, 150);
//$img->save('created/darude.png', IMAGETYPE_PNG, array('chmod' => 0777));
$img->max(500, 300);
$img->output(IMAGETYPE_PNG);
| true |
00a58c2e9c99802258f7b09c9f45a6dca084548b | PHP | anilkobakoglu/php-oop | /sihirli metodlar/function__call.php | UTF-8 | 466 | 3.828125 | 4 | [] | no_license | <?php
class deneme{
public function __call($name,$arguments){
echo"<pre>";
echo "'$name' adlı methot '".__CLASS__."' adlı class ta bulunmamaktadır."; //eğer bu sunınıf çağrılıp içerisinde olmayan bir metot çağrılırsa böyle bir hata verir.
//print_r($arguments);
}
}//class end
$class=new deneme();
ec... | true |
ef2fd4c2692bd8bb0ce0e925c517f9bd0abef9e0 | PHP | holokron/json-patch | /src/Definition/Compiler.php | UTF-8 | 1,525 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Holokron\JsonPatch\Definition;
/**
* @author Michał Tęczyński <michal.teczynski@gmail.com>
*/
class Compiler
{
/**
* @var string
*/
const DELIMITER = '/';
/**
* @var string
*/
const DELIMITER_REGEX = '\\/';
/**
* @var string
... | true |
7e2542698f8a11b41d2e2c8d79719d67f928cf4b | PHP | meio-velarde/stack-image-service | /app/Business/UseCases/UploadImageUseCase.php | UTF-8 | 411 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Business\UseCases;
use App\Data\Repositories\ImageRepository;
use Illuminate\Http\UploadedFile;
class UploadImageUseCase {
public function __construct(private ImageRepository $image_repository) {}
public function execute(int $index, UploadedFile $data): void {
$image = $this->imag... | true |
38932498e4d92f80d513643b121dd5edb9d41954 | PHP | verzth/tcx | /src/Models/TCXAccess.php | UTF-8 | 1,217 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Dodi
* Date: 7/20/2018
* Time: 12:09 PM
*/
namespace Verzth\TCX\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class TCXAccess extends Model{
protected $table = "tcx_accesses";
protected $fillable = [
'id','application_id','token','re... | true |
a83b0ccaad11b2848391590f5ba319a08db0c224 | PHP | 17eyes/17eyes | /tests/parser/bug44703.phpt | UTF-8 | 1,821 | 2.734375 | 3 | [
"ISC",
"BSD-3-Clause"
] | permissive | --TEST--
Bug #44703 (htmlspecialchars() does not detect bad character set argument)
?>
<?php
var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 1));
var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 12));
var_dump(htmlspecialchars(b"<a href='test'>Test</a>", ENT_COMPAT, 125));
var_dump(h... | true |
288d0370fe9b20ac03e4a995f87bc283a5bb7dfa | PHP | Yashwantbokadia/login-page | /uploader.php | UTF-8 | 1,428 | 2.5625 | 3 | [] | no_license | <?php include("auth.php"); //include auth.php file on all secure pages ?>
<?php
$username=$_SESSION['username'];
if(isset($_FILES['file'])){
$file=$_FILES['file'];
$file_name = $file['name'];
$file_tmp = $file['tmp_name'];
$file_size = $file['size'];
$file_error = $file['error'];
$file_ext = explode('.',$file_nam... | true |
afbd82a34d533a2c2d211620a2b45698d446098f | PHP | AriTheAi/billing | /app/Http/Controllers/BlogController.php | UTF-8 | 952 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class BlogController extends Controller
{
public function fetchBlogPosts()
{
$sql = DB::table('blog_posts')->paginate(15);
return $sql;
}
public function homepage(Request $r... | true |
30441606d04a17fcf9d34b5af2cdb5ff86927131 | PHP | EricHogue/Practice | /20120502-Sudoku/tests/unitTests/ValidatorTest.php | UTF-8 | 4,281 | 2.703125 | 3 | [] | no_license | <?php
class ValidatorTest extends PHPUnit_Framework_TestCase {
/** @var Grid */
private $grid;
/** @var GridSplitter */
private $splitter;
/** @var GridCriterion */
private $criterion;
/** @var Validator */
private $validator;
public function setup() {
$this->grid = $this->getMock('Grid');
$this->crit... | true |
f820cd0054667254e4ec11fd2a52d6a4ba21a7e2 | PHP | thierry-khalife/reservation-salles | /reservation.php | UTF-8 | 1,919 | 2.609375 | 3 | [] | no_license | <?php
session_start();
ob_start();
$cnx = mysqli_connect("localhost", "root", "", "reservationsalles");
if ( isset($_GET["idresa"]) ) {
$idresa = $_GET["idresa"];
$requete1 = "SELECT titre,description,debut,fin FROM reservations WHERE id=$idresa";
$query1 = mysqli_query($cnx, $requete1);
$resultat = mysqli_fetc... | true |
64f430875e7908a5bbb3d10d60a472e7deb457ef | PHP | ChristianKolling/youselfie | /module/Home/src/Home/Service/Post.php | UTF-8 | 652 | 2.65625 | 3 | [] | no_license | <?php
namespace Home\Service;
use Core\Service\Service;
use Home\Model\Post as novoPost;
class Post extends Service
{
public function savePost($dados)
{
$novoPost = new novoPost();
$novoPost->setPublicacao($dados['publicacao']);
$novoPost->setUsuario($this->getObjectManager()->find('A... | true |
5b482269b8024fd8be61ef4e3015460fa726b1c0 | PHP | Arteeo/glossary-by-arteeo | /src/php/admin-page/controllers/class-admin-page-crud-controller.php | UTF-8 | 7,466 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Admin Page CRUD Controller
*
* @package arteeo\glossary
*/
namespace arteeo\glossary;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require_once __DIR__ . '/../class-admin-page.php';
require_once __DIR__ . '/../views/class-admin-page-entry-form.php';
require_once __DIR__ . '/... | true |
2ef9a416ed6e38a51a1064ed99d23340c17d81df | PHP | af-production/AtoutProtect | /ApplicationWeb/model/Logiciel.php | UTF-8 | 866 | 2.765625 | 3 | [] | no_license | <?php
namespace AtoutProtect\Model;
use \PDO;
require_once("model/Manager.php");
class Logiciel extends Manager
{
public function getLogiciels()
{
$db = $this->dbConnect();
$req = $db->query('SELECT * FROM Logiciel');
return $req;
}
public function getLogiciel($getId)
... | true |
7af36cee1735f828258beb123665b27a5e2c1021 | PHP | javiergomezpazo/ArtClick | /Interfaces/I_Crud.php | UTF-8 | 908 | 2.984375 | 3 | [] | no_license | <?php
namespace Interfaces;
/**
* Interface I_Crud
*
* Interface with method: Create, read, ipdate and delete.
*
* @package Interfaces
* @author Javier Gomez <gomez.javiergomez11@gmail.com>
*/
interface I_Crud {
/**
* Sign up a type object in BD
*
* @param PDO $bd Object PDO.
*... | true |
74529bdb949ada5c48c930ddfbcde1ffe750b619 | PHP | grmxque/seed-angular-php | /backend/service/UserService.php | UTF-8 | 1,592 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Administrateur
* Date: 21/05/15
* Time: 09:21
*/
namespace service;
use Doctrine\ORM\EntityManager;
use repository\UserRepository;
use utils\LoggerResolver;
use \JWT;
class UserService {
private $entityManager;
private $logger;
private $repository;
priva... | true |
d64f080aabace789082b827365a414fa03aefef0 | PHP | arnesonc/TpFinalWeb2 | /editorialjr/model/ImagenModel.php | UTF-8 | 691 | 2.875 | 3 | [] | no_license | <?php
require_once(__DIR__."/../service/ArticuloService.php");
require_once(__DIR__."/../helpers/LoggerHelper.php");
class ImagenModel{
public $id;
public $id_articulo;
public $url;
private $articulo;
/**
* Obtiene un objeto ArticuloModel, si lo tiene en memoria devuelve ese, si no, lo va a buscar a la ba... | true |
87579f5eceaec82faf35581dec38378eac547302 | PHP | ANDY2639/design-patterns | /src/Creacionales/FactoryMethod/AppLogistic.php | UTF-8 | 921 | 3.015625 | 3 | [] | no_license | <?php
namespace Anel\Creacionales\FactoryMethod;
use Anel\Creacionales\FactoryMethod\Classes\SeaLogistics;
use Anel\Creacionales\FactoryMethod\Classes\RoadLogistics;
class AppLogistic
{
private $logistics = null;
public function __construct($logistics)
{
$this->logistics = $logistics;
}
... | true |
481eb39c23c5f20e5e56d669b8ca371ee004a60e | PHP | leonardomorita/alura | /pdo/src/Domain/Repository/StudentRepository.php | UTF-8 | 281 | 2.71875 | 3 | [] | no_license | <?php
namespace Alura\Pdo\Domain\Repository;
interface StudentRepository
{
public function allStudents(): array;
public function studentsBirthAt(\DateTimeInterface $birthDate): array;
public function save($student): bool;
public function remove($student): bool;
} | true |
5dcc6a3272fac3ee8e143addf431bd33cb9f790a | PHP | amo-geocaching/php | /cache-list-test.php | UTF-8 | 3,317 | 2.578125 | 3 | [] | no_license | <?php
require 'header.php';
require 'DBController.php';
$db_handle = new DBController();
$ratingResult = $db_handle->runQuery("SELECT DISTINCT rating FROM caches ORDER BY cachename ASC");
?>
<main>
<div class="detail-main">
<div class="side">
</div>
<div class="middle">
<form me... | true |
0f71c7018bf9b24d13a4e4071b4d0ff2b5bb472d | PHP | Ankurya/ExcelFileUpload | /app/Http/Controllers/ExcelController.php | UTF-8 | 1,876 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Imports\FileImport;
use App\Models\File;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
class ExcelController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public funct... | true |
160aaf5bfc8c7499d5577b8a6d7b0219542759c9 | PHP | ducviethaboo/MD2-PHP-Datastructure-Dancer | /index.php | UTF-8 | 896 | 3.21875 | 3 | [] | no_license | <?php
include 'Dancer.php';
$queueMale = new SplQueue();
$queueFemale = new SplQueue();
$dancer1 = new Dancer("John", 'Male');
$dancer2 = new Dancer("James", 'Male');
$dancer3 = new Dancer("Kane", 'Male');
$dancer4 = new Dancer("Son", 'Male');
$dancer5 = new Dancer("Sarah", 'Female');
$dancer6 = new Dancer("Linda", ... | true |
550956e251af1483792a5e8ba467a5e0e3fd07e2 | PHP | lilllllbrown/league | /contact.php | UTF-8 | 8,367 | 2.5625 | 3 | [] | no_license | <?php
include ("top.php");
include ("header.php");
include ("nav.php");
if ($_POST["submit"]) {
$recipient = "lbrown20@uvm.edu";
$subject = "Form to email message";
$sender = $_POST["txtFirstName"];
$senderEmail = $_POST["txtEmail"];
$message = $_POST["lstExperience"];
/*
$mailBody="Name... | true |
045f5482f79b02913a407a3929263c6fbcf710a5 | PHP | eduavet/Secret-Diary | /index.php | UTF-8 | 6,404 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
session_start();
$error = "";
if(array_key_exists('logout', $_GET)){
session_destroy();
setcookie("id", "", time());
$_COOKIE["id"] = "";
header("Location: index.php");
exit();
}
else if (array_key_exists('id', $_SESSION) OR array_ke... | true |
4447b1fff5cef39775432d6e72eaa60148209549 | PHP | SaschaBehnsen/php-shoutcast | /src/Graph/Player.php | UTF-8 | 2,706 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace Shoutcast\Graph;
use Shoutcast\Filter\Multiplex;
use Shoutcast\Graph;
use Shoutcast\Interfaces\Connector\IInputDataStream;
use Shoutcast\Interfaces\Connector\IInputMediaSource;
use Shoutcast\Interfaces\Connector\IInputMultiplexedStream;
use Shoutcast\Interfaces\Connector\IOutputDataStream;
use Shoutca... | true |
ac66f8bb1bf16bef87fe18c6f0210957cda7664c | PHP | Mangielijah/learningplatform | /parent/includes/sign_in.inc.php | UTF-8 | 1,313 | 2.65625 | 3 | [] | no_license | <?php
if (isset($_POST['signin'])) {
require "../../includes/db.inc.php";
$email = $_POST['email'];
$pwd = $_POST['pwd'];
if (!filter_var($email,FILTER_VALIDATE_EMAIL)) {
header("Location:../index.php? error=Invalid Email");
exit();
}
else{
$sql = "SELECT * FROM parents WHERE email ... | true |
dc14e6a474ae9c1aa1f38bd59b1d32386cdbbeed | PHP | pa2tie/PHP_Tasks | /12.php | UTF-8 | 772 | 3.640625 | 4 | [] | no_license | <?php
//Найти максимальное значение в мультимассиве.
//На входе array(array(2,5,3),5,6,7,array(8,9,25),24,18).
//В результате должно получится 25.
$arr = array(array(2,5,3),5,6,7,array(8,9,25),24,18);
function max_in_multyarray($arr) {
echo ($arr[0] === array());
if (is_array($arr[0])) {
$max = max_in... | true |
08cd328b2e805f82d9e53176b2a5fc332a0fea8c | PHP | AlchemicA/MateriaArchive | /Mail/Senders/Mail.php | UTF-8 | 1,121 | 3.03125 | 3 | [] | no_license | <?php
namespace Materia\Mail\Senders;
/**
* PHP Mailer class
*
* @package Materia.Mail
* @author Filippo "Pirosauro" Bovo
* @link http://lab.alchemica.it/materia/
**/
class Mail implements \Materia\Mail\Sender {
protected $params;
/**
* Constructor
**/
public function __construct() {
}
/**
* ... | true |
2e8fbadd7e97ab4233102c0372a7f22114e671c3 | PHP | chalanadulajdilshan/pradipika_mrs | /class/Center.php | UTF-8 | 2,890 | 2.90625 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Product
*
* @author chalana
*/
class Center {
public $id;
public $district;
public $name;... | true |
6c479386a75968924e6375b4cfd0c611a2111950 | PHP | ruslan-immunity/gmhost-test | /app/Console/Commands/ShowProducts.php | UTF-8 | 2,171 | 2.875 | 3 | [] | no_license | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class ShowProducts extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'products:show {cat*} {--sort=desc}';
/**
... | true |
4e189e5be0f928cb60cd43678daf05b7a30fd8e7 | PHP | serverzone/drive-tester | /src/Command/GetSerialNumberCommand.php | UTF-8 | 762 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Command;
/**
* Get drive serial number command.
*/
class GetSerialNumberCommand extends BaseCommand
{
/**
* Detect drive serial number.
*
* @param string $devPath Path to device (e.g. /dev/sdb)
* @return string|null
*/
public function g... | true |
9fc4944f9ff0154b0bfac816e5388dec67008cec | PHP | pakha95/bikeonline | /shop/lib/goods.class.php | UHC | 1,547 | 2.515625 | 3 | [] | no_license | <?php
class Goods
{
var $db;
function Goods($db=0){
$this->db = Core::loader('db');
}
function get_opt_goodsno($optsno){
list($goodsno) = $this->db->fetch("select a.goodsno from ".GD_GOODS." a,".GD_GOODS_OPTION." b where a.goodsno=b.goodsno and b.sno='$optsno' and go_is_deleted <> '1' and go_is_display = '1' li... | true |
c5efbb044a931bf80dcf67b6cfd3a28b710d6a22 | PHP | Victorien95/phpoo | /statique/Commande.php | UTF-8 | 1,213 | 3.28125 | 3 | [] | no_license | <?php
class Commande
{
const TAUX_TVA = 20;
/**
* @var string
*/
public static $defautStatut = 'En cours';
public static $statutsPossibles = [
'En cours',
'Expédié',
'Annulé'
];
/**
* @var string
*/
private $statut;
/**
* @var int
*/
... | true |
424550ecbcd487815a6627c26ab1df8608f9bc57 | PHP | TheShiro/test-zadarma | /vendor/sao/src/Data/Repeat.php | UTF-8 | 209 | 2.5625 | 3 | [] | no_license | <?php
namespace sao\Data;
class Repeat extends String
{
public $error = "Пароли должны совпадать!";
public function __set($name, $value)
{
$this->{$name} = md5($value);
}
}
?> | true |
4ffc63311011af9705069633bca98e3d56aebd26 | PHP | szepeviktor/railt | /packages/SDL/src/Exception/SyntaxErrorException.php | UTF-8 | 1,386 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\SDL\Exception;
use Phplrt\Position\Position;
use Phplrt\Position\PositionInterface;
use Phpl... | true |
19b9e144202e5ea1ca2e4494e380030cac859f19 | PHP | YurivAnton/mysite.loc | /pages/changeLogin.php | UTF-8 | 1,142 | 2.609375 | 3 | [] | no_license | <?php
session_start();
include '../elems/connect_db.php';
if(!empty($_SESSION['auth'])) {
$id = $_SESSION['id'];
$query = "SELECT * FROM user WHERE id='$id'";
$user = mysqli_fetch_assoc(mysqli_query($link, $query));
$hash = $user['password'];
if (!empty($_POST['password'])) {
if (password_v... | true |
7900ebecbc59f241ea22167c8c2488f96b8bf1e7 | PHP | tweedegolf/generator | /src/TweedeGolf/Generator/Console/Input/BooleanType.php | UTF-8 | 964 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace TweedeGolf\Generator\Console\Input;
use Symfony\Component\Console\Helper\DialogHelper;
use TweedeGolf\Generator\Console\Questioner;
class BooleanType extends AbstractInputType
{
/**
* {@inheritdoc}
*/
public function getName()
{
return 'boolean';
}
/**
* {@... | true |
f4d641559de3251d60c49a1e332c06b7192ff9d8 | PHP | BitRewards/BitrixModule | /general/html_builder.php | UTF-8 | 2,594 | 2.734375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: kjah
* Date: 01.08.14
* Time: 8:53
*/
require_once('IHtmlBuilder.php');
class GenericHtmlBuilder implements IHtmlBuilder
{
public function GenericTableRow($keyHtml, $valHtml, $properties='')
{
return
'<tr '.$properties.'>'
.$this... | true |
54f30461dc210f15db9100fd54acb6d6f55273ea | PHP | janpc/php-employee-management-v1 | /src/library/employeeManager.php | UTF-8 | 2,457 | 2.8125 | 3 | [] | no_license | <?php
define("EMPLOYEES_JSON_PATH", $_SERVER["DOCUMENT_ROOT"] . "/php-employee-management-v1/resources/employees.json");
require_once('helper.php');
require_once('avatarManager.php');
function addEmployee(array $newEmployee)
{
$employees = decodeJsonFile(EMPLOYEES_JSON_PATH);
$newEmployee['id'] = end($employ... | true |
3a22bfa4165c86ef6bfe4b1472ceba701aa14617 | PHP | TheNullByte/echosign | /src/Info/RecipientInfo.php | UTF-8 | 876 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php namespace Echosign\Info;
use Echosign\Interfaces\InfoInterface;
class RecipientInfo implements InfoInterface {
public $fax;
public $email;
public $role;
public function __construct($email=null, $fax=null, $role=null)
{
$this->email = filter_var( $email, FILTER_SANITIZE_EMAIL );
... | true |
98754cd2f87391e34184c82cc4d947853ffc0d71 | PHP | axeldassonval/php2 | /exo/echo_exo.php | UTF-8 | 1,078 | 3.515625 | 4 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>exo poo</title>
</head>
<body>
<!--<?php/*
include_once("chainePlus.php");
$st = new complexe1("programation orientée objet en PHP");
echo"addition :".$st->addition()."<br>";
echo"soustraction :".$st->soustraction()."<br>";
echo"multiplication :".$st->produit()."<br>";
echo"divisio... | true |
1955cfa645b736f9f73e61946f32c42a380d5ef3 | PHP | karinasuk/Praktikum-YII | /frontend/controllers/MahasiswaController.php | UTF-8 | 945 | 2.578125 | 3 | [] | no_license | <?php
namespace frontend\controllers;
use frontend\models\NilaiSiswa;
class MahasiswaController extends \yii\web\Controller
{
public function actionIndex()
{
$mhs1 = "Sukma";
$mhs2 = "Farras";
$mhs3 = "Jennie";
$mhs4 = "Yayah";
$mhs5 = "Aceng";
$prodi1 = "Sistem Informasi";
... | true |
562d2332c9d31a0cc5ba34cd971a994e7ea97660 | PHP | NaxNax666/kursach | /authcore/login.php | UTF-8 | 1,981 | 2.71875 | 3 | [] | no_license | <?php
require __DIR__ . '/auth.php';
if (isset($_POST['signin'])) {
$login = isset($_POST['login']) ?$_POST['login']: '';
$password = isset($_POST['password']) ?$_POST['login']: '';
if (checkAuth($login, $password)) {
setcookie('login', $login, 0, '/');
setcookie('password', $password, 0,... | true |
837ceccb236a89e4e27ccc49255332cbf87afd49 | PHP | Tuhedul-Islam/House-Rental-System | /HouseRentalSystem-1.5/HRS/action.php | UTF-8 | 1,642 | 2.625 | 3 | [] | no_license | <?php
include"connection.php";
$check="";
if(isset($_POST['submit']))
{
// 28 var ... first work
//person...
$deg=$_POST['deg'];
$name=$_POST['name'];
$pass=$_POST['pass'];
$nid=$_POST['nid'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$address=$_POST['address'];
$city=$_POST['city'];
$occupation=$_PO... | true |
95987eecce2c09847c212baadcd0ae48f6a74663 | PHP | lreisoliveira/laravel | /app/Http/Controllers/ServerController.php | UTF-8 | 3,397 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
//use Illuminate\Support\Facades\Request;
//use Illuminate\Http\Request as RequestApi;
use Illuminate\Http\Response;
use Illuminate\Routing\Route;
use Illuminate\Support\Facades\Request;
class ServerController extends Controller
{
/**
* Create a new controller instance... | true |
5674a0d6bdc39538614162203dd8e7d02181dad3 | PHP | juice4711/myfirstsymfonyapp | /src/ExclusiveBooks/DemoAppBundle/Services/CustomMd5PasswordEncoder.php | UTF-8 | 653 | 2.546875 | 3 | [] | no_license | <?php
namespace ExclusiveBooks\DemoAppBundle\Services;
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
class CustomMd5PasswordEncoder implements PasswordEncoderInterface
{
public function __construct() {
}
public function encodePassword($raw, $salt) {
return "{SSHA}" . base6... | true |
99f5624f93e98e2802e1103a75cf67b6f7ce643f | PHP | logosrhema01/laravel-ecomm | /app/Http/Controllers/ProductController.php | UTF-8 | 5,833 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Product;
use App\Models\ProductImage;
use App\Models\Brand;
use App\Models\Category;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
class ProductController extends Controller
{
/**
* Display a list... | true |
009e527442f735d455c1338adfc23e098a468f9e | PHP | sheriljos/classics-enthusiats-forum | /process.php | UTF-8 | 3,184 | 2.765625 | 3 | [] | no_license | <?php
session_start();
require_once('connection.php');
//$_POST is an array which holds the input deatils var_dump($_POST) and see
// Routing to different controllers
if(isset($_POST['register']) && $_POST['register']=='register')
{
register_user($_POST);
}
if(isset($_POST['login']) && $_POST['login'] == '... | true |
4b3f0dafc542e3f34e384d750650bbf48bf82e5e | PHP | matteo1976/freeBeach | /backend/src/route/profili.php | UTF-8 | 7,882 | 2.65625 | 3 | [] | no_license | <?php
// vim: set ts=4 sw=4 expandtab:
use \Psr\Http\Message\ServerRequestInterface;
use \Psr\Http\Message\ResponseInterface;
use \Propel\Runtime\ActiveQuery\Criteria;
//*********************************************************** /PROFILI
/**
* GET profiliGet
* Summary:
* Notes: Restituisce la lista degli oggetti... | true |
f7ee0ddd04e8fc1f2f86bcfa6e87d0d4ee12853a | PHP | damanic/phpr-module-admin | /classes/admin_tray.php | UTF-8 | 1,001 | 2.921875 | 3 | [] | no_license | <?php
/**
* Admin System Tray
*/
class Admin_Tray
{
protected $items;
protected $module_id;
protected static $self = null;
public function __construct()
{
$this->items = array();
$this->load_items();
}
public static function create()
{
if (!self::$self)
self::$self = new self();
return self::$... | true |
8ba53f2f846f5261b1b962483f38281079446db2 | PHP | techbuddydrupal/LocationTimeAssignment | /modules/custom/location_time/src/GetTime.php | UTF-8 | 586 | 2.75 | 3 | [] | no_license | <?php
/**
* @file providing the service that will return current date and time for specific region.
*
*/
namespace Drupal\location_time;
use \Datetime;
class GetTime {
public function getTime($region = ''){
if (empty($region)) {
// If no region is passed, then return UTC time
$current = new DateTi... | true |
43e9aa2a9b29b3a6a9e10ff803ecf42205228497 | PHP | beatarynkevic/bankas | /create.php | UTF-8 | 2,283 | 2.8125 | 3 | [] | no_license | <?php
require __DIR__.'/bootstrap.php';
if($_SERVER['REQUEST_METHOD'] == 'POST') {
if(empty($_POST["name"]) || empty($_POST["surname"]) || empty($_POST["id_number"]) || empty($_POST["account_number"])) {
$_SESSION['error_msg'] = "ALL FIELDS MUST BE FILED";
header('Location: '.URL.'create.php');
... | true |
04b58d918a9963677de4b7c6e18bd680d92b4944 | PHP | marcallen348/marcpad | /adduser.php | UTF-8 | 2,191 | 2.671875 | 3 | [] | no_license | <?php
include_once ('config.php');
session_start();
if(!isset($_SESSION['user'])){
header("location:login.php");
}
if(isset($_POST['Register'])){
$iusername = $_POST['username'];
$ipassword = $_POST['password'];
$inickname = $_POST['nickname'];
$irole = $_POST['role'];
$sql = "inse... | true |
c187c028b6244837b055b4cf93ee0a79a8a4feef | PHP | alfs18/ramverk1 | /src/WeatherController/Dates.php | UTF-8 | 465 | 3.171875 | 3 | [] | no_license | <?php
namespace Anax\WeatherController;
class Dates
{
/**
* Get previous dates.
*
* @param int $days the amount of days to go back.
*
* @return array all the dates.
*/
public function getPastDates(int $days)
{
$dates = [];
for ($x = 1; $x <= $days; $x++) {
... | true |
2bbc875bcf507d3b48310ed99d10a90baded6268 | PHP | marial711/personnel-management-system | /deleteUser.php | UTF-8 | 1,401 | 2.671875 | 3 | [] | no_license | <!-- Team Name: Halava
Names: Brian Hafey, Jacob Kalat, Maria Leyva
Date: 5/2/2021
Purpose: To delete data from the table-->
<!-- Declares style for table -->
<style>
table{
background-color:#DDEEFF;
border:1px solid black;
padding: 3px;
}
th{
background-color:#D... | true |
216680a5fddad79543d263a5dd0358fbe708ad55 | PHP | rsayed007/hands-on-design-patterns | /decorator-pattern/index.php | UTF-8 | 873 | 3.734375 | 4 | [] | no_license | <?php
abstract class Beverage {
public function getDescription()
{
return "Unknown Description";
}
public abstract function cost();
}
abstract class CondimentDecorator extends Beverage {
}
class Milk extends CondimentDecorator {
private $beverage;
public function __construct(Beverag... | true |
5dc2fe307d5a902a45d90e4d0d7c2e10e3a944c5 | PHP | alexdavalos/maxnivel-api | /src/Maxnivel/API/Maxnivel.php | UTF-8 | 4,556 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
namespace MaxNivel\API;
use function GuzzleHttp\json_decode;
class MaxNivel
{
/**
* @var bool
*/
public $debug = false;
private $is_auth = true;
/**
* @var Request
*/
private $client_id;
/**
* @var
*/
private $client_secret;
/**
* @var
*/
... | true |
786bb2a5a7a38db37faa70f14e1b4153352863cd | PHP | Kenkaio/mtg | /controllers/index.php | UTF-8 | 822 | 2.671875 | 3 | [] | no_license | <?php
//function redirection éviter les erreurs header
function redirect_to($url){
header($url);
exit();
}
error_reporting(E_ALL);
ini_set("display_errors", 1);
// autoloader
require 'models/class/autoloader.php';
Autoloader::register();
session_start();
// chargement classes
$userManager = new userManager()... | true |
2116abe03e2623891c9d5adfe4eff9da282050b8 | PHP | sofiacarballo/wheelOfDoom | /src/Addition.php | UTF-8 | 187 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
final class Addition
{
public function addName($coders)
{
array_push($coders, 'Javier Marmol');
return print_r ($coders);
}
} | true |
cb05246e4ce076a07461715cb87b4b6646f0ae4d | PHP | chigix/php-io-component | /src/FilterInputStream.php | UTF-8 | 1,162 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the IO-Component package.
*
* (c) Richard Lea <chigix@zoho.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chigi\Component\IO;
/**
* A <code>FilterInputStream</code> contains som... | true |
7f69f5c3fae6c65b9bc5bf1536d7209e2faa230e | PHP | uzairmazhar/wad | /pro/server/functions.php | UTF-8 | 753 | 2.6875 | 3 | [] | no_license | <?php
require_once "db_connection.php";
function getCats(){
global $con;
$getCatsQuery = "select * from categories";
$getCatsResult = mysqli_query($con,$getCatsQuery);
while($row = mysqli_fetch_assoc($getCatsResult)){
$cat_id = $row['cat_id'];
$cat_title = $row['cat_title'];
ech... | true |
c42ce947ac1558765e40d9cb73b2c0d37dadb38c | PHP | netis-pl/yii2-crud | /db/ToggableBehavior.php | UTF-8 | 1,715 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @link http://netis.pl/
* @copyright Copyright (c) 2015 Netis Sp. z o. o.
*/
namespace netis\crud\db;
use yii\base\Behavior;
/**
* SortableBehavior allows to define custom order through selected attribute.
*
* An `enabled()` query is available in \netis\crud\db\ActiveQuery.
* @package netis\crud\cr... | true |
44f8421e54d68f73f3b27fa1066e0cddc7117b92 | PHP | SlothVia/folio | /src/Controller/MainController.php | UTF-8 | 1,566 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Entity\Profil;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class MainController extends Controller
{
... | true |
064ab9836a8140e347317b9f9527827946f21372 | PHP | YingheSun/shopCode | /Shop/Api/ESRegister.php | UTF-8 | 2,990 | 2.625 | 3 | [] | no_license | <?php
/**
* 用户注册接口服务类
*
* @author: YHS 20160603
* @author: YHS 20160620 重构
* @author: YHS 20160722 重构
*/
class Api_ESRegister extends PhalApi_Api {
public function getRules() {
return array(
//添加用户
'UserAdd' => array(
... | true |
95750a3d6a633708f6580e9fdc7abfb94eb9934b | PHP | danielemegna/openchat_symfony | /tests/E2E/BaseE2E.php | UTF-8 | 3,215 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Tests\E2E;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
abstract class BaseE2E extends WebTestCase {
protected $client;
protected function setUp() {
$this->client = static::createClient();
$this->cleanApplication();
}
protected function registerUser($username, $about, $... | true |
bd5249f2023ad043fa2a51f2c671717b832092d5 | PHP | luochaovg/oil-bundle | /Module/Validator/Entity/NotEmpty.php | UTF-8 | 639 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace Leon\BswBundle\Module\Validator\Entity;
use Leon\BswBundle\Module\Validator\Validator;
class NotEmpty extends Validator
{
/**
* @inheritdoc
*/
public function description(): string
{
return 'Not empty';
}
/**
* @inheritdoc
*/
public function messag... | true |
8b45025271cefcf78f2256dbebe319264831d89c | PHP | wavevision/props-control | /src/PropsControl/Helpers/PropUtils.php | UTF-8 | 527 | 2.625 | 3 | [
"MIT"
] | permissive | <?php declare (strict_types = 1);
namespace Wavevision\PropsControl\Helpers;
use Nette\Application\UI\Control;
use Nette\Schema\Schema;
use Nette\StaticClass;
use Wavevision\Utils\Arrays;
class PropUtils
{
use StaticClass;
/**
* @param mixed $prop
*/
public static function isControllable($prop): bool
{
r... | true |
6c6c051f3189d3a74bac585a910aaffdc5e5c8f0 | PHP | amm834/PHP_course_codes | /OOP/Static.php | UTF-8 | 130 | 2.796875 | 3 | [] | no_license | <?php
class Test{
public static $name = "amm";
public static function getName(){
echo self::$name;
}
}
Test::getName(); | true |
0b6710702f5f6023480f573d1c95551ef33abd69 | PHP | sbuberl/fSQL | /tests/SequenceFileTest.php | UTF-8 | 2,476 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
require_once __DIR__.'/BaseTest.php';
use FSQL\Database\Database;
use FSQL\Database\SequencesFile;
use FSQL\Environment;
class SequenceFileTest extends BaseTest
{
private $schema;
private $sequences;
public function setUp()
{
parent::setUp();
$fsql = new Environment();
... | true |
0dec87d6edc72d30bbd796a04d9edf4a91418024 | PHP | codeaid-dev/PHP_practice | /Drill/drill14.php | UTF-8 | 895 | 3.375 | 3 | [] | no_license | <?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$str = $_POST['str'] ?? '';
$reverse = '';
$length = mb_strlen($str);
for ($i=$length-1; $i>=0; $i--) {
$reverse .= mb_substr($str,$i,1);
}
if ($str==$reverse) {
$result = "「{$str}」は回文です。";
} else {
$result = "「{$str}」は回文で... | true |
5209d2b8dd4b464b672c05ea247af87ef651ec48 | PHP | irishGypsy/arcangel-dev | /app/Models/Banner.php | UTF-8 | 711 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Banner extends Model
{
/**
* @var string
*/
protected $table = 'banners';
/**
* @var array
*/
protected $fillable = [
'title','image','entry_da... | true |
6282a91c8a0fd22b5b8b2b196b90f179260fd730 | PHP | dbarkman/Earthquakes | /rssParser.php | UTF-8 | 2,760 | 2.578125 | 3 | [] | no_license | <?php
/**
* rssParser.php
* Project: Earthquakes
* Created with PhpStorm
* Developer: David Barkman
* Created on: 3/21/23 @ 22:15
*/
session_start();
require_once dirname(__FILE__) . '/includes/includes.php';
$container = new Container();
$logger = $container->getLogger();
$blogFeed = new BlogFeed("https://w... | true |
4f7580c8043142623395c6d0ec80be871dccd41b | PHP | Nikolay-Mishin/php-generics-1 | /src/Compiler/Parser.php | UTF-8 | 9,371 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Mrsuh\PhpGenerics\Compiler;
use Mrsuh\PhpGenerics\Compiler\ClassFinder\ClassFinderInterface;
use Mrsuh\PhpGenerics\Compiler\Generic\GenericParametersMap;
use PhpParser\Lexer\Emulative;
use PhpParser\Node;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\Instanceof_;
use PhpParser\Node\... | true |
0dcdd6ecc61fd41854badb81203d3b0ba52c6e55 | PHP | kibreabg/eidzimdev | /users/findARV (2).php | UTF-8 | 6,971 | 2.578125 | 3 | [] | no_license |
<?php
#### Roshan's Ajax dropdown code with php
#### Copyright reserved to Roshan Bhattarai - nepaliboy007@yahoo.com
#### if you have any problem contact me at http://roshanbh.com.np
#### fell free to visit my blog http://roshanbh.com.np
?>
<?php
require('../connection/config.php');
$arv = intval($_GET['arv']);
$mar... | true |
39750383ea453e2242225504dd30827a8be40bd9 | PHP | obikaekene08/gift_ekene | /Vendor.php | UTF-8 | 8,996 | 2.546875 | 3 | [] | no_license | <?php
require_once("User.php");
class Vendor extends User{
function signup($fname,$lname,$phone,$email,$pwd){
//the first if is for automatic signup when using function signupwithemail below
if(isset($_SESSION['user'])){
$encrypted_pass = $pwd;
}else{
$encrypted_pass = md5($pwd);
}
//end
//this ... | true |
1def7915321084b107e946e05c522f5aa4099452 | PHP | Vaalyn/BRG-Panel | /src/Routes/Api/Dashboard/HistoryController.php | UTF-8 | 2,248 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace BRG\Panel\Routes\Api\Dashboard;
use BRG\Panel\Model\Manager\HistoryModelManager;
use Illuminate\Database\Eloquent\Builder;
use League\Csv\Writer;
use Psr\Container\ContainerInterface;
use Slim\Http\Stream;
use Slim\Http\Request;
use Slim\Http\Response;
class HistoryController {
/**
* @param Contai... | true |
b58185837b35617addb357158218db7903ec9dc0 | PHP | magento-russia/3 | /app/code/local/Df/Qa/Method.php | UTF-8 | 12,945 | 2.796875 | 3 | [] | no_license | <?php
namespace Df\Qa;
class Method {
/**
* @param array $paramValue
* @param int $paramOrdering
* @param int $stackLevel [optional]
* @return void
* @throws \Exception
*/
public static function assertParamIsArray($paramValue, $paramOrdering, $stackLevel = 0) {
self::validateParam(\Df\Zf\Validate\ArrayT... | true |
91af1216c0f89c089ec6dd4d6f985181ab8fefb1 | PHP | ducquyen/Imagick_PHP | /Imagick/rotationalBlurImage.php | UTF-8 | 382 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/*Imagick Object*/
$imagick = new \Imagick('https://cdncontribute.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-19.png');
/*rotationalBlurImage*/
$imagick->rotationalBlurImage(1);
$imagick->rotationalBlurImage(7);
$imagick->rotationalBlurImage(3);
/*Image Header*/
header("Con... | true |
af0808a6a41881e00d4589a838853e59165a2037 | PHP | HasanTechie/voucherpool | /app/Http/Controllers/CodeController.php | UTF-8 | 5,608 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Recipient;
use App\Models\Offer;
use App\Models\Code;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
class CodeController extends Controller
{
/*
* Extra: For a given Email, return all his v... | true |
0f5cc5002e3a1b7439644e4929006ad12c6567ee | PHP | moshegershon/php-project-jb | /users.php | UTF-8 | 4,120 | 2.8125 | 3 | [] | no_license | <?php
include 'header.php';
require_once 'user-bl.php';
$bl = new BusinessLogicusers;
$arrayOfusers = $bl->get();
if (!empty($_POST['us'])){
$student = new usersModel([
'id' =>$_POST['id'],
'name' => $_POST['name'],
'password' => $_POST['pass'],
'pic' => $_POST['pic'],
... | true |
00fe71b1a0576c30a324e5fac4f1b928fdd074db | PHP | gfaster/TallAndSassy | /Strings/src/TsStringHtml.php | UTF-8 | 2,192 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace TallAndSassy\Strings;
class TsStringHtml {
/***************************************************************
* ADVANCED/Obscure
* @input:
* $aSourceString = a bunch of html
* $aTagName - tags and blocks you want to remove from the html
* ... | true |
f1c044bfb842cae48bf07de787758ae7652d88bf | PHP | zFrostbite/Team-Awesome | /Ruben/Sandbox/array_functions.php | UTF-8 | 499 | 4 | 4 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Array Functions</title>
</head>
<body>
<?php $numbers = array(8, 23, 15, 42, 16, 4); ?>
Count: <?php echo count($numbers); ?> <br/>
Min: <?php echo max($numbers); ?> <br/>
Max: <?php echo min($numbers); ?> <br/>
<br />... | true |
6eae2f3736ebe8eee3098476d0b2ae3ff49e4820 | PHP | lvyahui8/rc-blog | /app/controllers/JsonController.php | UTF-8 | 1,020 | 2.5625 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Response;
/**
* Created by PhpStorm.
* User: lvyahui
* Date: 2016/8/31
* Time: 22:12
*/
class JsonController extends BaseController
{
/**
* JsonController constructor.
*/
public function __construct()
{
parent::__construct();
//header('Ac... | true |
86a9352d572f319b0b07cf08f0347a8f3978e9bd | PHP | gpslab/geoip2 | /tests/Reader/TestReader.php | UTF-8 | 865 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
* GpsLab component.
*
* @author Peter Gribanov <info@peter-gribanov.ru>
* @copyright Copyright (c) 2017, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Bundle\GeoIP2Bundle\Tests\Reader;
use GeoIp2\Database\Reader;
/**
* Test class for ... | true |
7d6d03291a976ce7dc8c754a334836d2147c92e4 | PHP | Demi-hero/Breakbills_Student_Database | /Breakbills_SignUp.php | UTF-8 | 6,226 | 2.546875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<link href="style_sheets/Login_styles.css" rel="stylesheet"
type="text/css" />
<title>Welcome to Breakbills</title>
</head>
<body>
<div class="topnav">
<h2> Brakebills Col... | true |
dc6cc5d0809c8de6635e963f5ee696ec11557b1b | PHP | dxalljm/landsystem | /backend/models/Log.php | UTF-8 | 1,568 | 2.59375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%log}}".
*
* @property integer $id
* @property integer $user_id
* @property string $user_ip
* @property string $action
* @property string $action_type
* @property string $object_name
* @property string $object_id
... | true |
3653961f2b1ed761c42a63aed540c6b699fb05f7 | PHP | rodriados/mathr | /src/Evaluator/Node/IdentifierNode.php | UTF-8 | 1,795 | 3.171875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Node for generic identifiers.
* @package Mathr\Evaluator\Node
* @author Rodrigo Siqueira <rodriados@gmail.com>
* @copyright 2017-present Rodrigo Siqueira
* @license MIT License
*/
namespace Mathr\Evaluator\Node;
use Mathr\Evaluator\Node;
use Mathr\Interperter\Token;
use Mathr\Contracts\Evaluator\Node... | true |
acafda432843cba6722d977effba91715966b158 | PHP | namustyukov/googleimg | /controllers/Application.php | UTF-8 | 2,602 | 2.9375 | 3 | [] | no_license | <?php
require __DIR__.'/GoogleImageSearch.php';
class Application
{
private $_files = [];
private $_pages = 2;
function __construct() {
if (!empty($_POST['numPages'])) {
$this->_pages = (int) $_POST['numPages'];
}
}
public function run()
{
$this->_processF... | true |
68e841a3dad86fb5ee57c23690a771c5bce63e6b | PHP | nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins | /mod/ouwiki/revert.php | UTF-8 | 2,721 | 2.546875 | 3 | [] | no_license | <?php
/**
* Confirms reverting to previous version
* when confirmed, reverts to previous version then redirects back to that page.
* @copyright © 2008 The Open University
* @author s.marshall@open.ac.uk
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package ouwiki
*//** */
require('b... | true |
f2b50f05a307657e9d9eb28b7642a3b8c64484ba | PHP | drnau/Cours_FabDuNum | /php/php/20210610/exercice9/ab/prenoms.php | UTF-8 | 138 | 2.984375 | 3 | [] | no_license | <?php
$prenom=array("Bernard", "Robert", "Roger");
$prenom[]='Camille';
$prenom[]='Pauline';
echo "Bonjour $prenom[3]";
?> | true |