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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
279601794854fe0625b0a08324d858da542c8b68 | PHP | christian-westbrook/liqsec | /public_html/php/register-script.php | UTF-8 | 3,818 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
// =========================================================================
// System : LiqSec
// Repository : https://github.com/christian-westbrook/liqsec.git
// File : login-script.php
// Developers : Nathan Brown, Nicholas Leonard, and Christian
// Version : Pre-release
... | true |
c054f4d8b2106045c37e9fa3780bf89ca7b7a0aa | PHP | humanmade/wp-encrypted-uploads | /namespace.php | UTF-8 | 9,352 | 2.53125 | 3 | [] | no_license | <?php
namespace HM\EncryptedUploads;
/**
* Add a checkbox in the upload window to encrypt the file being uploaded.
*
* @action post-upload-ui
*/
function post_upload_ui_encryption() {
printf(
'<label for="upload_encrypted"><input type="checkbox" name="upload_encrypted" id="upload_encrypted"> %s</label>',
esc... | true |
e2b85e124f15663fa35f09f96cd00fbbbde39e04 | PHP | Dheia/OctoberMetroApplications | /applications/widgets/formfield/FormField.php | UTF-8 | 1,481 | 2.515625 | 3 | [] | no_license | <?php namespace Applications\Widgets\FormField;
use Applications\Widgets\WidgetBase;
use October\Rain\Database\Model;
class FormField extends WidgetBase {
protected $name = 'formfield';
protected $model = null;
protected function initWidget() {
$this->setModel($this->getApplication()->getModel()... | true |
9647e75d5bbca2a19e062d03146a80f079a2902c | PHP | JordanDalton/EPOS | /app/Acme/Repositories/Db/AttachmentRepository.php | UTF-8 | 1,683 | 3.015625 | 3 | [] | no_license | <?php namespace Acme\Repositories\Db;
use Acme\Attachment;
use Acme\Interfaces\Db\AttachmentRepositoryInterface;
class AttachmentRepository implements AttachmentRepositoryInterface {
/**
* Create new resource record.
*
* @param array $data The user input data.
* @return \Illuminate\Database\Eloquent\Mode... | true |
6adbbf6e2f1fb6517fe4cbc97ae3c6d86b3bcfe6 | PHP | FabiMacedo/Projeto_Squad2_Trabalho_RecodePro | /Projeto_Squad2_Trabalho_RecodePro/Frontend/cadastro_usuario.php | UTF-8 | 2,463 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
include_once '../Backend/conexao.php';
$nome = $_POST['nome'];
$sobrenome = $_POST['sobrenome'];
$email = $_POST['email'];
$senha = $_POST['senha'];
$conf_senha = $_POST['conf_senha'];
$escolha = $_POST['id_curso'];
if (strlen($nome) > 2 && strlen($sobrenome) > 2 && strlen($ema... | true |
11c0ab874295144215fa2ba070c2c7b6ae7c41df | PHP | ctapu4ok/vk-messenger-sdk | /src/API/VKApiError.php | UTF-8 | 3,353 | 3.171875 | 3 | [
"MIT"
] | permissive | <?php
namespace ctapu4ok\VkMessengerSdk\API;
class VKApiError
{
protected const ERROR_CODE = 'error_code';
protected const ERROR_MSG = 'error_msg';
protected const CAPTCHA_SID = 'captcha_sid';
protected const CAPTCHA_IMG = 'captcha_img';
protected const CONFIRMATION_TEXT = 'confirmation_text';
... | true |
65eaff050419ec7bc3c7a0315c58789ce52a21f2 | PHP | msugi9/r-int | /adminc1.php | UTF-8 | 1,420 | 2.625 | 3 | [] | no_license | <?php
$database_url = "postgres://kikflxevlqickd:2k4rCJxU0oMOH6OOWWSEiqH1mY@ec2-54-204-25-54.compute-1.amazonaws.com:5432/d6h4ep9bna3r8i";
//Postgresqlの接続に必要なデータの取得
$url = parse_url($database_url);
$dsn = sprintf('pgsql:host=%s;dbname=%s', $url['host'], substr($url['path'], 1));
try{
//データベースに接続
$pdo = new PDO($d... | true |
96bab506e501bee2ad7f41e465cca3fba7e6f10f | PHP | vsrz/CIS444 | /final/Member.php | UTF-8 | 9,682 | 3.0625 | 3 | [] | no_license | <?php
require_once('Session.php');
require_once('Db.php');
require_once('Logger.php');
class Member {
public static $uid;
public static $email;
public static $pass;
public static $fname;
public static $lname;
public static $gender;
public static $signup_date;
public stati... | true |
b5403ff59288129a53600b519d6754d7209a18e1 | PHP | rougin/windstorm | /src/Mutators/ReturnTotalEntities.php | UTF-8 | 1,271 | 2.828125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Rougin\Windstorm\Mutators;
use Rougin\Windstorm\QueryInterface;
/**
* Return Total Entities Mutator
*
* @package Windstorm
* @author Rougin Gutib <rougingutib@gmail.com>
*/
class ReturnTotalEntities extends ReturnEntities
{
/**
* @var string
*/
protected $keyword = 'total';
... | true |
0bbc91b0dcbf3ca180c53954fa03587884069ab3 | PHP | zimall/blogpress | /shared/helpers/MY_date_helper.php | UTF-8 | 2,299 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// ------------------------------------------------------------------------
if ( ! function_exists('mysql_date'))
{
function mysql_date($time=FALSE)
{
return $time ? date( 'Y-m-d H:i:s', $time ) : date( 'Y-m-d H:i:s' );
}
}
if(!... | true |
f025091790aded7e035652fbaa0ef0695b41a1a8 | PHP | ingetat2014/T-chat | /modele/Person.php | UTF-8 | 1,772 | 3.078125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: ismail
* Date: 17/03/2018
* Time: 12:34
*/
namespace entities;
class Person
{
private $id;
private $name;
private $password;
private $connected;// champ fictif
private $subscribe_date;
private $last_disconnect_date;
private $last_connect_date;
... | true |
359d2c166be643577ce7e9a6f582becabf0985c5 | PHP | berninagray/capstone | /php/classes/Test/ProfileTest.php | UTF-8 | 11,886 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Edu\Cnm\FoodTruckFinder\Test;
use Edu\Cnm\FoodTruckFinder\Profile;
require_once (dirname(__DIR__). "/Profile.php");
// get class under scrutiny
require_once (dirname(__DIR__). "/autoload.php");
// get the uuid generator
require_once(dirname(__DIR__, 1) . "/validateUuid.php");
/**
* Full PHPUnit t... | true |
64246f76dcec35c50f9a2001222a314d6aed84d6 | PHP | ReinisD3/Basic-1-5 | /03/1.php | UTF-8 | 61 | 2.765625 | 3 | [] | no_license | <?php
$array =[14,33,75];
echo array_sum($array) . PHP_EOL; | true |
f44b7e4fe473b439815b082edb3078c332d14343 | PHP | dr-lux/project-cir3-framework-2020-2021 | /symf-cir3-prj/src/Controller/ProfondeurController.php | UTF-8 | 6,586 | 2.578125 | 3 | [] | no_license | <?php
/**
* @author: Titouan Allain
* @version: 1.0
*
* ProfondeurController.php
*
* Controler of the 'Profondeur' entity with CRUD's functions.
*/
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\... | true |
b9d628a8a1cd102563821ff42258bd48dbe54196 | PHP | bobbylinux/HolisticRemedies | /app/Models/ScontoTipoPagamento.php | UTF-8 | 1,515 | 2.578125 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Validator as Validator;
class ScontoTipoPagamento extends BaseModel
{
protected $table = "sconti_tipopagamento";
protected $fillable = array('pagamento','sconto');
/**
* The variable for validation r... | true |
f908f1c597960ed7ec8127342a8611ee376a09dd | PHP | fmarangi/aoc | /spec/Year2015/Day8Spec.php | UTF-8 | 800 | 3.140625 | 3 | [] | no_license | <?php
namespace spec\Mzentrale\AdventOfCode\Year2015;
use Mzentrale\AdventOfCode\Puzzle;
use PhpSpec\ObjectBehavior;
class Day8Spec extends ObjectBehavior
{
function it_is_a_puzzle()
{
$this->shouldHaveType(Puzzle::class);
}
function it_gets_the_length_difference()
{
$this->getSt... | true |
237fa1c6545d945d54cb2b3b03540e8fc1bf9625 | PHP | Valantina80/utc503 | /utc503/jour1/licenceinfo/afficheurs/AfficheurDeCoursCliElegant.php | UTF-8 | 838 | 3.203125 | 3 | [] | no_license | <?php
namespace LambertAnne_France\Afficheurs;
/**
* affiche le cours en ligne de commande de manière élégante
*/
class AfficheurDeCoursCliElegant extends AfficheurDeCoursCli
{
protected static $sequenceSeparateur = "~v~";
protected static $nombreSequence = 7;
/**
* définition d'une... | true |
f61700a96bdec1e3ff8d041a5f66aa9d424f600c | PHP | olexkalinichenko/acmp.ru-php | /0004.php | UTF-8 | 3,857 | 2.53125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: sasha
* Date: 12.05.16
* Time: 12:45
* В свободное время одноклассники Вася и Петя любят играть в различные
* логические игры: морской бой, крестики-нолики, шахматы, шашки и многое
* другое. Ребята уже испробовали и поиграли во всевозможные классические игры
* подобного ... | true |
039201324ae7504da188ff09f0c8a7ac73c4580f | PHP | NxSys/library.clients-brex | /src-gen/Team/Model/CardMailingAddress.php | UTF-8 | 4,040 | 2.65625 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace NxSys\Library\Clients\Brex\API\Team\Model;
class CardMailingAddress extends \ArrayObject
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized... | true |
455792e89414890832640028ca541c7cc7b894de | PHP | kouril/perun-simplesamlphp-module | /lib/RpcConnector.php | UTF-8 | 3,631 | 2.78125 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
/**
* Provides interface to call Perun RPC.
* Configuration file 'module_perun.php' should be placed in default config folder of SimpleSAMLphp.
* Example of file is in config-template folder.
* Note that Perun RPC should be considered as unreliable
* and authentication process should continue without connec... | true |
377ab0097ec6783557099559127a323253de7b8e | PHP | JESSDIGISYS/JDSFramework | /src/Dbal/ConnectionFactory.php | UTF-8 | 300 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace JDS\Dbal;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DriverManager;
class ConnectionFactory
{
public function __construct(private string $databaseUrl)
{
}
public function create(): Connection
{
return DriverManager::getConnection(['url' => $this->databaseUrl]);
}
}
| true |
46584ebe89f716573831d0438d72f51745aa3b58 | PHP | geminiww/misc | /eightqueen/nqueen_oo.php | UTF-8 | 995 | 3.25 | 3 | [
"MIT"
] | permissive | <?php
/**
* Solution to Eight Queen Puzzle - Object version
*
* Solution to Eight Queen => N-queens problem, using backtracking without distiguishing symmetry ones
*
* @author Wei Wu <geminiwyn@hotmail.com>
* @version 1.0
* @copyright 2013 Wei Wu
* @license http://www.opensource.org/licenses/mit-li... | true |
6f86bf5449fc32642fef1c0107a273b59f032134 | PHP | shovakmisha/php-lessons | /php/demo/functions/string/chr.php | UTF-8 | 320 | 3.375 | 3 | [] | no_license | <HTML>
<HEAD>
<TITLE>chr</TITLE>
</HEAD>
<BODY>
<?
//open a test file
$fp = fopen("data.txt", "w");
//write a couple of records that have
//linefeeds for end markers
fwrite($fp, "data record 1" . chr(10));
fwrite($fp, "data record 2" . chr(10));
//close file
fclose($fp);
?>
</BODY>
</HTML> | true |
20a19e4c1119927e65e3173e46cc4b59c5faec40 | PHP | Dzhuneyt/audiobooke | /apps/backend/rest/common/SearchComponent.php | UTF-8 | 562 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace rest\common;
use Yii;
use yii\base\Component;
use yii\db\Exception;
class SearchComponent extends Component
{
/**
* @param $keyword
* @return int
* @throws Exception
*/
public function save($keyword)
{
$idUser = Yii::$app->user->isGuest ? null : Yii::$app->... | true |
65d7d26488a140dd429ab12c6067fb7425ad8152 | PHP | smartboxgroup/api-bundle | /ApiRestClient/ApiRestInternalClientBuilder.php | UTF-8 | 1,633 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
namespace Smartbox\ApiRestClient;
/**
* Class ApiRestInternalClientBuilder.
*/
class ApiRestInternalClientBuilder
{
/**
* Static method to create a APIRestInternalClient.
*
* @param null $class
* @param $baseUrl
* @param $username
* @param $password
*
* @return mixe... | true |
0d1b7c2f33946276d083510d3b87d7b09c71347e | PHP | jbahamonc/calidad-sistemas | /app/models/DTO/sub_categorias.php | UTF-8 | 776 | 3.234375 | 3 | [] | no_license | <?php
namespace App\Models\DTO;
/**
* Clase para el manejo de las sub-categorias existentes
*/
class Sub_categorias {
/**
* @var $_nombre nombre de la sub-categoria
*/
private $_nombre;
/**
* @var $_id_categoria identifica a la categoria a la que pertenece
*/
private $_id_categoria;
... | true |
e1945834e07314d67a7b31b82733356269388202 | PHP | naOyD/tshirtshop_g | /business/database_handler.php | UTF-8 | 7,504 | 3.40625 | 3 | [] | no_license | <?php
// Класс предоставляющий бузовую функциональность доступа к данным
class DatabaseHandler
{
//Переменная для хранения экземпляра класса PDO
private static $_mHandler;
//private - конструктор, не позволяющий напрямую создавать объекты класса
private function __construct()
{
... | true |
28fc1a1bd0124404e3cd82f1889a51e29ef569e7 | PHP | steakbanana/omnimailer | /_inc/class-omnimailer-options.php | UTF-8 | 3,524 | 2.8125 | 3 | [] | no_license | <?php
namespace OmniMailer;
if( ! defined( 'ABSPATH' ) )
exit;
/**
* Provides handling of options.
*
* @since 0.0.1
* @package OmniMailer
* @subpackage OmniMailer/_inc
* @author Julian Hartmann <jh@steakbanana.com>
*/
class OmniMailer_Options {
/**
* Returns the default options.
*
* @sinc... | true |
204da968a7c2a8a189c1cfd4e3b1da1edfba06b7 | PHP | alphagov/accessibility-monitoring | /phppgadmin/htdocs/classes/database/Postgres74.php | UTF-8 | 22,096 | 2.703125 | 3 | [
"GPL-2.0-or-later",
"MIT"
] | permissive | <?php
/**
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
* $Id: Postgres74.php,v 1.72 2008/02/20 21:06:18 ioguix Exp $
*/
include_once('./classes/database/Postgres80.php');
class Postgres74 extends Postgres80 {
var $major_version = 7.4;
// List... | true |
343e1dd01878f50c5ca99eb9871765d2563be49a | PHP | TheSoundAndFury/Design_Patterns | /Strategy_Pattern/src/ducks/behaviours/IQuackBehaviour.php | UTF-8 | 297 | 2.90625 | 3 | [] | no_license | <?php
namespace Strategy_Pattern\DuckBehaviours;
/**
* An interface for all Quack Behaviours to use.
*/
interface IQuackBehaviour {
/**
* Abstract Method for all Quack objects
* @return string
*/
public function quack();
} | true |
1ed5baa13aa32788bf319aafcd9405c56e45c6bd | PHP | esaisyah/bandungkab | /app/Http/Controllers/Backend/ArticlesController.php | UTF-8 | 2,370 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Backend;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Article;
use Illuminate\Http\Request;
use Carbon\Carbon;
use Session;
class ArticlesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return void
*/
... | true |
2a3e92c402eca0751a36dff030e0c62aea9efc1f | PHP | sam-higton/F1Data | /src/Service/Api/Ergast/DriverService.php | UTF-8 | 2,141 | 2.59375 | 3 | [] | no_license | <?php
namespace F1Data\Service\Api\Ergast;
use F1Data\Service\DriverServiceInterface;
use F1Data\Service\ResponseCollection;
use F1Data\Service\ResponseObject;
use F1Data\Service\ServiceInterface;
class DriverService extends Ergast implements ServiceInterface, DriverServiceInterface {
public function getDriver (... | true |
ac5150725fd66bc621404f2200966299638e5bad | PHP | JumpStart-SFU/JumpStart | /activate.php | UTF-8 | 660 | 2.640625 | 3 | [] | no_license | <?php
$activate = FALSE;
// Submit
if (isset($_POST('email')) &&
isset($_POST('activate_code'))) {
}
// Success activation
if ($activate) {
// redirect to profile page
}
// Failed activate to whatever
elseif (!($activate)) {
}
?>
<html lang="en">
<head>
<!-- META STUFF -->
<title>Activati... | true |
8b71063d84b0192286701d6f71d025b84ef93948 | PHP | jaguilar992/ExpedienteMedico | /BackEnd/class/Examen.php | UTF-8 | 4,674 | 2.6875 | 3 | [] | no_license | <?php
class Examen{
private $idExamen;
private $urlDocumento;
private $idTipo;
private $idCentroMedico;
private $observacion;
private $idExpediente;
private $fecha;
public function __construct(
$idExamen = null,
$urlDocumento = null,
$idTipo = null,
$idCentroMedico = null,
$observacion = null,
$idE... | true |
bdf71cec9484064770fdbd9b1086902f03736e9c | PHP | laminas/laminas.dev | /src/Factory/ProblemDetailsMiddlewareFactory.php | UTF-8 | 1,425 | 2.53125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Factory;
use Mezzio\ProblemDetails\ProblemDetailsMiddleware;
use Mezzio\ProblemDetails\ProblemDetailsResponseFactory;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Log\LoggerInterface;
use Thro... | true |
3244145791b820f010634e750355894ea62b4ad8 | PHP | clas-web/connections-hub | /classes/search/control.php | UTF-8 | 3,482 | 2.71875 | 3 | [] | no_license | <?php
/**
* Controls the setup and display of the Connections Search widget and shortcode.
*
* Shortcode Example:
* [connections_search title="My Connections Search" placeholder="Search Connections..."]
*
* @package connections-hub
* @author Crystal Barton <atrus1701@gmail.com>
*/
if( !class_exists('C... | true |
32144ba43bdf9351868c8434645fbf6b7a3c9c71 | PHP | rauwebieten/codeception-skeleton | /src/Example.php | UTF-8 | 169 | 3.25 | 3 | [
"MIT"
] | permissive | <?php
namespace Src;
class Example
{
public function getNumber(int $number): string
{
if ($number === 0) {
return 'zero';
}
}
} | true |
0e5c66ba4c4f81065297f5651344cd6cd2aaa521 | PHP | getherbie-plugin/markdown | /markdown.php | UTF-8 | 2,889 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
declare(strict_types=1);
namespace herbie\plugin\markdown;
use Herbie\Config;
use Herbie\Event;
use Herbie\EventManager;
use Herbie\PluginInterface;
use Herbie\StringValue;
class MarkdownPlugin implements PluginInterface
{
/**
* @var Config
*/
private $config;
/**
* MarkdownPlugin ... | true |
1edbf6135eec666309167bc4efba6f77e524cea1 | PHP | jpbaena13/Skeleton | /Controller/Controller.php | UTF-8 | 5,309 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Clase base de controlador.
*
* @package Controller
* @author JpBaena13
* @since PHP 5
*/
abstract class Controller {
// Instancia del usuario autenticado
protected $user = null;
/**
* Contructor de clase, se encarga de llamar al método especificado
* como parámetro GET.
*
... | true |
a6bebe69ba2d7ad0c83e45153a6c060b3558b51d | PHP | VoVanTinh99/project_php | /Src/About/UpdateAbout.php | UTF-8 | 3,779 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
$conn = mysqli_connect("localhost","root","","a_huy");
mysqli_set_charset($conn,'utf8');
function searchAbout($AboutId)
{
$sqlSelect = "
SELECT `AboutId`, `AboutName`, `AboutWinsor`, `EmployeeCode` FROM `about` WHERE `AboutId`='$AboutId'";
return mysqli_query($conn,$sqlSelect);
}
function UpdateAbout($AboutI... | true |
26f87ac4704ffc41e45f33908bd82e4c70e9a2bd | PHP | Akizaki/FundamentalPHP0.7 | /Core/Exception/TraitUndefinedException.class.php | UTF-8 | 2,257 | 3.359375 | 3 | [] | no_license | <?php
/**
* TraitUndefinedException::Exception
*
* 指定されたトレイトが未定義だった場合、この例外が投げられる
* This exception is thrown if the specified trait is undefined
*
* @category FundamentalPHP
* @package Core/Exception
* @copyright
*/
class TraitUndefinedException extends Exception {
protected $_trait, $_errorInfo;
... | true |
b78f6207ebd5f405ca1572ebd93535ecc71f1deb | PHP | MaxPRafferty/cmwn-platform | /module/Media/test/MediaTest/MediaPropertiesTest.php | UTF-8 | 2,611 | 2.734375 | 3 | [] | no_license | <?php
namespace MediaTest;
use Media\MediaProperties;
use PHPUnit\Framework\TestCase as TestCase;
/**
* Test MediaPropertiesTest
*
* @group Media
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
* @SuppressWarnings(PHPMD.TooManyMethods)
* @SuppressWarnings(PHPMD... | true |
bab85965e8ddf78a96392665306450096d21ed12 | PHP | Nivl/Ninaca_1 | /helpers/Html.class.php | UTF-8 | 14,982 | 2.890625 | 3 | [] | no_license | <?php
/*
** Affiche du html.
**
** @package Ninaca
** @author Nivl <nivl@free.fr>
** @started 12/07/09
** @last Nivl <nivl@free.fr> 03/14/2010, 04:30 PM
** @link http://nivl.free.fr
** @copyright Copyright (C) 2009 Laplanche Melvin
**
** This program is free software: you can redistribute it and/or modify
**... | true |
f15437cb0d873bfc72633690bfce2d8b7ba36e4d | PHP | Saberfront/SaberfrontVM | /app/Notifications/NewLoadoutNotification.php | UTF-8 | 1,453 | 2.5625 | 3 | [] | no_license | <?php
namespace Saberfront\Notifications;
use Illuminate\Bus\Queueable;
use NotificationChannels\Webhook\WebhookChannel;
use NotificationChannels\Webhook\WebhookMessage;
use Illuminate\Notifications\Notification;
class NewLoadoutNotification extends Notification
{
use Queueable;
/**
* Create a new notif... | true |
e446fe9b1edebcbbf37b5b128137fdac7695b8e6 | PHP | JangTaeGyu/php-memo | /application/Helpers/Response.php | UTF-8 | 1,215 | 2.90625 | 3 | [] | no_license | <?php
/**
* 템플릿 파일 확인
* @param string $template [Path]
* @return boolean
*/
function isTemplate($template = '')
{
$path = TEMPLATE_PATH . '/' . $template;
if (is_file($path)) {
return $path;
}
return false;
}
/**
* 뷰 파일 로드
* @param string $template [Path]
* @param array $data ... | true |
fc5348f405e00a190efd283053222b48d54bc7ab | PHP | YuriyBlackFlag/myshop_elek | /models/OrdersModel.php | UTF-8 | 3,831 | 2.796875 | 3 | [] | no_license | <?php
/**
* Модель для работы с таблицей Orders
*/
/**
* Создание заказа (без привязки товара)
*
* @param string $name
* @param string $phone
* @param string $adress
* @return integer ID созданного заказа
*/
function makeNewOrder($name, $phone, $adress)
{
//> инициализация переменных
$userId = $_SESS... | true |
d7edc78ccccf0d37a4fa40a662da12ba6e4f539d | PHP | jasontwong/monphp | /monphp/module/MPContent/admin/view/edit_entries.php | UTF-8 | 2,906 | 2.609375 | 3 | [] | no_license | <?php
echo $form->build();
$table_class = '';
if ($ordering)
{
if ($filter['limit'] == 0)
{
$table_class = 'class="manual_ordering"';
}
else
{
$_GET['filter']['limit']['data'] = 0;
unset($_GET['filter']['query']);
unset($_GET['filter']['submit']);
echo '<p>... | true |
087d3458844086bfcc780a33704e7131c68c8336 | PHP | Rokytis/CodeAcademyPHP | /PHP/masyvai-multi.php | UTF-8 | 872 | 3.125 | 3 | [] | no_license | <?php
$m = [
['var' => 'Jonas',
'pav' => 'Jonaitis',
'amz' => 35],
['var' => 'Petras',
'pav' => 'Petraitis',
'amz' => 40],
['var' => 'Antanas',
'pav' => 'Antanaitis',
'amz' => 43]
];
//var_dump($m);
echo '<table>';
echo '<tr><th>Vardas</th><th>Pavarde</th><th>Amzius... | true |
8b4dc219da97abeeb06230c002e3ba77ae0faa33 | PHP | SarapinaElsa/peweduaelsa | /variabelthis.php | UTF-8 | 229 | 2.734375 | 3 | [] | no_license | <?php
class bunga{
//set property
public $jenis_bunga;
public $warna;
//method
public function mekar(){
return "Bunga Mekar";
}
}
//proses instasiasi
$melati=new bunga();
$melati->jenis_bunga='melati'
?> | true |
ddfbf60d5a918460554be75b8d8390332755a947 | PHP | alirezaand97/digikala | /app/SearchProduct.php | UTF-8 | 5,620 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
class SearchProduct
{
protected $request;
protected $maxPrice = 0;
protected $minPrice = 0;
protected $attributes = array();
public $brands = array();
protected $colors = null;
protected $searchString = null;
protected $hasProduct = 0;
protected $readyToShipm... | true |
531cfcbbc69658d46c21e4cb7a0c23015394f09d | PHP | oakntk/studen-registartion-website | /index.php | UTF-8 | 2,747 | 2.65625 | 3 | [] | no_license | <?php
session_start();
require 'connect.php';
require 'functions.php';
if(isset($_POST['login'])){
$uname = clean($_POST['username']);
$pword = clean($_POST['password']);
$query = "SELECT * FROM students WHERE username = '$uname' AND pword = '$pword'";
... | true |
eeed5ba5ce6495b6f6c76723b3793b31c5d739fa | PHP | Avillanueva1997/Achilca | /model/PRO/SetSemaforoProduction.php | UTF-8 | 5,516 | 2.515625 | 3 | [] | no_license | <?php
require_once('../../security.php');
require '../DatosBD.php';
require '../Global_Functions.php';
$con = open_conection($host, $user, $pass, $db);
mysqli_set_charset($con, "utf8");
$Year = date("Y");
$Month = date("n");
$month = date('m');
$trimestre = GetTrimestre($month);
$response = 'Error';
$MetaUptimeL2 ... | true |
f8368b23e2730b61f27a57d06f79302b3392a018 | PHP | popphp/popphp | /src/Controller/ControllerInterface.php | UTF-8 | 1,233 | 2.78125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Pop PHP Framework (http://www.popphp.org/)
*
* @link https://github.com/popphp/popphp-framework
* @author Nick Sagona, III <dev@nolainteractive.com>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license N... | true |
0a97620b178e4df58a3b735d03c46f70d9314958 | PHP | xpemhunter/links | /common/components/behaviors/DatetimeBehavior.php | UTF-8 | 2,473 | 2.890625 | 3 | [] | no_license | <?php
namespace common\components\behaviors;
use yii\base\Behavior;
use yii\db\BaseActiveRecord;
/**
* DatetimeBehavior automatically fills the specified attributes with the datetime expression
*
* To use DatetimeBehavior, insert the following code to your ActiveRecord class:
* ```php
* use \common\components\b... | true |
0089c3ce458a2ec063e8a7e06d18420243849099 | PHP | php-guard/oauth-server-demo | /src/OAuth/Storages/RefreshTokenStorage.php | UTF-8 | 2,325 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Alexandre
* Date: 21/04/2018
* Time: 18:50
*/
namespace App\OAuth\Storages;
use App\Entity\Credentials\RefreshToken;
use Doctrine\ORM\EntityManagerInterface;
use OAuth2\Credentials\RefreshTokenInterface;
use OAuth2\Credentials\TokenInterface;
use OAuth2\Storages\RefreshT... | true |
e9ff214acb45441ff9a1f61a30d6e22550067186 | PHP | Jkoles/CSPFinal | /read.php | UTF-8 | 1,723 | 2.859375 | 3 | [] | no_license | <?php
require_once 'login1.php'; //uses the info to access the database
$db_server = mysql_connect($host, $username, $password);
if (!$db_server) die("Unable to connect to MySQL: " . mysql_error());
mysql_select_db($dbname)
or die("Unable to select database: " . mysql_error());
$query = "SELECT * FROM student WHERE ... | true |
c73eca85420214d76103c738face63fa2584447f | PHP | Felix2190/res_tams | /include/model/base/model.base.paises.inc.php | UTF-8 | 7,478 | 2.578125 | 3 | [] | no_license | <?php
class ModeloBasePaises extends clsBasicCommon
{
#------------------------------------------------------------------------------------------------------#
#----------------------------------------------Propiedades---------------------------------------------#
#----------------------------------------------... | true |
34d0e176db8e8bc8d3bdfc9b070b7e5f7338e53e | PHP | octalmage/wib | /php-7.3.0/ext/standard/tests/array/arsort_variation3.phpt | UTF-8 | 5,028 | 3.40625 | 3 | [
"MIT",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"TCL",
"ISC",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"blessing"
] | permissive | --TEST--
Test arsort() function : usage variations - sort integer/float values
--FILE--
<?php
/* Prototype : bool arsort ( array &$array [, int $sort_flags] )
* Description: Sort an array and maintain index association
Elements will be arranged from highest to lowest when this function has completed.
... | true |
6e695c8f746175c5cf51eed4486673a45a46d936 | PHP | tronsha/testphp | /tests/FunctionStrtrTest.php | UTF-8 | 534 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Class FunctionStrtrTest
* @link http://php.net/manual/en/function.strtr.php
*/
class FunctionStrtrTest extends PHPUnit_Framework_TestCase
{
public function testFunctionStrtr()
{
$trans = array("h" => "-", "hello" => "hi", "hi" => "hello");
$this->assertEquals('hello all, I said h... | true |
7f204b3c09d9732cae12856b79e78005023161d9 | PHP | maxolex/scaffold-interface | /src/Filesystem/Path.php | UTF-8 | 2,588 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace Maxolex\ScaffoldInterface\Filesystem;
/**
* Class Paths.
*
* @author Maxolex Togolais <maxolex12@gmail.com>
*/
class Path
{
/**
* The Parser instance.
*
* @var \Maxolex\ScaffoldInterface\Parsers\Parser
*/
private $parser;
/**
* Migration file path.
*
... | true |
7eb475dffc9a345f2c7f1a074b672a17e53a64d8 | PHP | NewbridgeGreen/ExtJSBundle | /Store.php | UTF-8 | 1,233 | 2.671875 | 3 | [] | no_license | <?php
namespace NewbridgeGreen\ExtJSBundle;
use JMS\SerializerBundle\Annotation\SerializedName;
class Store
{
/** @SerializedName("root") */
private $root;
/** @SerializedName("success") */
private $success;
/** @SerializedName("message") */
private $message;
/** @SerializedName("total")... | true |
f494545564566a80319fd29dd8a691b80ef066c3 | PHP | alexkovalevv/factory-framework-pages | /includes/admin-page.class.php | UTF-8 | 18,207 | 2.71875 | 3 | [] | no_license | <?php
/**
* Admin page class
*
* @author Alex Kovalev <alex.kovalevv@gmail.com>
* @since 1.0.0
* @package factory-core
* @copyright (c) 2018, Webcraftic Ltd
*
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Wbcr_FactoryPages000_AdminPage' ) )... | true |
fcf70a309d3b003e106391fdde02074c2c7207c7 | PHP | luzma1/Laboratorio_8 | /test.php | UTF-8 | 398 | 2.9375 | 3 | [] | no_license | <?php
echo comprobarDiccionario();
function comprobarDiccionario() {
$filename = "toppasswords.txt";
$word = "123456";
$content = file_get_contents($filename);
$words = explode("\n", $content);
for($i=0; $i<count($words); $i++)
{
if(trim($words[$i]) == $word)
... | true |
9a64a725d8aaec68b881f06ab7e2bc0d308ba2bd | PHP | AbanoubWagih94/web_projects | /get_cobon/app/Http/Controllers/UserActions.php | UTF-8 | 3,544 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Offer;
use App\User;
use Validator;
class UserActions extends Controller
{
public function __construct(Request $request)
{
$this->request = $request;
}
/**
* Validate the request have valid terminal data
*
... | true |
50100db558d2252167427bd00854c6a3f6936ad8 | PHP | collinsmarc/CMM007AL--1510646- | /blog.php | UTF-8 | 4,414 | 2.734375 | 3 | [] | no_license | <?php
include("connection.php"); //establish connection to DB
$choice = $_GET["category"];
?>
<!--all of the metadata for the page, including unsemantic, CSS stylesheet and fonts from google-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="myBlogStyle.css" type="te... | true |
2476d3cb297f90aeb81503809789287be42d91b9 | PHP | prashantbhandari/onlinegallery | /app/Http/Controllers/Admin/ContactInfoController.php | UTF-8 | 2,216 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\ContactInfo;
use URL;
use Exception;
class ContactInfoController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index... | true |
dcf2fcc6ea2c088fce54fdc56963f49988915cd6 | PHP | Zakupki/lpovar | /common/components/LangActiveRecord.php | UTF-8 | 6,325 | 2.703125 | 3 | [] | no_license | <?php
/**
* Base class for language models
*
* @property int $pid
* @property string $language_id
*/
abstract class LangActiveRecord extends BaseActiveRecord
{
public function getIdAttr()
{
return 'pid';
}
/**
* List of items
*
* @param array $filterKeys Select only specifie... | true |
3cfc9b2740464d93e9d31cc74a7a928fbbe56669 | PHP | chinawilon/spider-php | /src/IO/BuffIO.php | UTF-8 | 865 | 3.234375 | 3 | [] | no_license | <?php
namespace Spider\IO;
use Spider\Connection\ConnectionInterface;
class BuffIO implements IOInterface
{
/**
* @var string
*/
private $left = '';
/**
* @var ConnectionInterface
*/
private $connection;
public function __construct(ConnectionInterface $connection)
{
... | true |
b4fe38c54ad4e97b37f3307458fe555e04c91803 | PHP | sprungbrett/sprungbrett | /src/Bundle/PortalBundle/Model/CourseView/Handler/CoursePublishedEventHandler.php | UTF-8 | 2,761 | 2.515625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Sprungbrett\Bundle\PortalBundle\Model\CourseView\Handler;
use Sprungbrett\Bundle\ContentBundle\Model\Content\ContentRepositoryInterface;
use Sprungbrett\Bundle\ContentBundle\Model\Content\Exception\ContentNotFoundException;
use Sprungbrett\Bundle\ContentBundle\Stages;
use Spr... | true |
19c53610c808722003cc7ad291a4f07ba1d40631 | PHP | MJ702/php | /database/database_connection.php | UTF-8 | 411 | 2.90625 | 3 | [] | no_license | <?php
$host = 'localhost';
$username = 'root';
$pass = '';
$conn = mysqli_connect($host, $username, $pass);
if ($conn->connect_errno){
die("Connection error".$conn->connect_error);
}
$sql = 'CREATE DATABASE database3';
if ($conn->query($sql)){
echo 'database create su... | true |
10cfa0475095b1d9fa005829ceb411ab8653d302 | PHP | kenshikento/practice-oop | /Test/Unit/Validation/CustomerTest.php | UTF-8 | 971 | 2.546875 | 3 | [] | no_license | <?php
namespace Tests\Validation;
use App\Validation\Customer;
use PHPUnit\Framework\TestCase;
class CustomerTest extends TestCase
{
public function setUp() : void
{
$this->validation = new Customer();
}
public function testCustomerIsValidStrictAssetsToTrue()
{
$data['name'] = 'name';
$data['email'] =... | true |
9dd1251f6f5b599ed6e48539e719f262126d0cf3 | PHP | aircoq/EA-dodo | /application/publish/controller/AmazonPublishTask.php | UTF-8 | 1,952 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace app\publish\controller;
use app\publish\service\AmazonPublishTaskService;
use think\Request;
use think\Exception;
use app\common\controller\Base;
/**
* @module 刊登系统
* @title Amazon每日刊登
* @url /publish/amazon-task
* Class AmazonPublishTask
* @package app\publish\controller
*/
class AmazonPublishT... | true |
4efd2670931b53505b9acf19db22e4b09881f537 | PHP | zmfields87/Career-Data-Tool | /getNMSAdata.php | UTF-8 | 1,010 | 2.8125 | 3 | [] | no_license | <?php
$state = $_REQUEST['state'];
$jobTitle = $_REQUEST['job'];
try
{
$db = new PDO("mysql:host=localhost;port=8889;dbname=TeacherData","root","root");
}
catch (Exception $e)
{
echo "Could not connect to database.";
exit;
}
$stmt = $db->prepare("SELECT DISTINCT
TOT_EMP,
JOBS_1000,
... | true |
a0cedfb3333c0cf650796c148ec46e141890cef2 | PHP | pickupman/omnipay-hrh | /src/Message/AbstractRequest.php | UTF-8 | 4,546 | 2.609375 | 3 | [] | no_license | <?php
/**
* Hrh Abstract Request
*/
namespace Omnipay\Hrh\Message;
/**
* Hrh Abstract Request
*
* This class forms the base class for Hrh requests
*
*/
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
{
protected $liveEndpoint = 'https://hrh.transactiongateway.com/api/transact... | true |
f1513509cc64d2399bce4377915f1db5c739ef8d | PHP | hoest/knvb-api | /knvb-client.php | UTF-8 | 5,508 | 2.609375 | 3 | [] | no_license | <?php
// include the RainTPL class
include "inc/rain.tpl.class.php";
class KnvbClient {
const BASEURI = 'http://api.knvbdataservice.nl/api';
public $session_id;
protected $apiKey;
protected $apiPath;
protected $clubName;
public function __construct($apiKey, $apiPath, $clubName = 'VVZ \'49') {
$this... | true |
84d35f818a4fe394cbe5c5c5867d01c0b2f2c50e | PHP | Shaddowr88/bison_laravel_vers | /database/seeds/CoprosTableSeeder.php | UTF-8 | 852 | 2.671875 | 3 | [] | no_license | <?php
use App\copros;
use Illuminate\Database\Seeder;
class CoprosTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
$coPro = new copros();
$coPro ->name = "Mars";
$coPro ->cp = "75017";
$coP... | true |
ec57f8c2fb0062bbd86fe7f33c5ec10e335985c6 | PHP | Gandavaa-zz/forum | /app/Inspections/Spam.php | UTF-8 | 550 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Inspections;
class Spam
{
protected $inspections = [
InvalidKeywords::class,
KeyHeldDown::class
];
/**
* Detect spam.
* its detect throught inspectiosn and app(Inspection::Class name) detect
*
* @param string @body
* @retunr b... | true |
2ced9edb57bf3276e73a3bcdcb9e4af511a77c1c | PHP | fragwuerdig/webinterface | /templates/ShowUsersTemplate.php | UTF-8 | 1,245 | 2.6875 | 3 | [] | no_license |
<table>
<tr>
<th>ID</th>
<th>Email</th>
<th>Password</th>
<th></th>
</tr>
<?php
foreach ($_['users'] as $key => $value){
echo "<tr>";
echo "<td>".$key."</td>";
echo "<td>".$value."</td>";
echo "<td>
<form action=\"index.php?controller=SessionController&action=setUserPassword\" method=\"post\">
... | true |
590ca500e958d73efe2f32cb7ec25984cbb73e34 | PHP | vincdpt/Project-LCDP-PHP | /src/Domain/Produit.php | UTF-8 | 3,337 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace PPE_PHP\Domain;
class Produit
{
/**
* Produit id_produit.
*
* @var integer
*/
private $id_produit;
/**
* Produit id_famille.
*
* @var famille
*/
private $famille;
/**
* Produit id_famille.
*
* @var integer
*/
privat... | true |
3bae87a24fd1359db97ad50981852109103bf0e7 | PHP | ankitamit/php_own_code | /classes/traits/projector.php | UTF-8 | 154 | 2.703125 | 3 | [] | no_license | <?php
trait Projector {
public function range() {
echo '2 metre';
}
public function power() {
echo ' Power of Projector Range ';
}
}
| true |
914a63ae889d04ea219451a627ac3d75637a2a6b | PHP | Arekushi/PetFlow | /petflow.dx.am/app/model/Conexao.php | UTF-8 | 912 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace app\model;
class Conexao {
/* Atributos */
private static $instance;
/*private static $host = 'fdb22.awardspace.net';
private static $user = '3178051_bdpetflow';
private static $password = 'seventhone71';
private static $dbName = '3178051_bdpetflow';*/
private static $hos... | true |
2356dfc6b9819dfa7e4ef0cd8b6475ea121ed2c9 | PHP | nevena-angelova/PHP-Virtual-Restaurant | /models/user/user_login.php | UTF-8 | 2,001 | 2.875 | 3 | [] | no_license | <?php
class UserLogin extends User
{
public function login($username, $pass)
{
$this->setUsername($username);
$this->setPass($pass);
if (count($this->validation_errors) === 0) {
$db = DB::getInstance()->getConnection();
$username_esc = mysqli_real_escape_string... | true |
8e339e1d813cbb43d13f74fbecfa817cbe6d3bf4 | PHP | FrankCastelijns/dndlib | /models/DndItemRequiredSpells.php | UTF-8 | 1,218 | 2.640625 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "dnd_item_required_spells".
*
* @property integer $id
* @property integer $item_id
* @property integer $spell_id
*
* @property DndItem $item
* @property DndSpell $spell
*/
class DndItemRequiredSpells extends \yii\db\ActiveRecord
{
... | true |
cf707cfc3717a352a70a63172ef9e46b223cc545 | PHP | enflow/document-replacer | /src/Converters/LibreOfficeConverter.php | UTF-8 | 1,998 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Enflow\DocumentReplacer\Converters;
use Enflow\DocumentReplacer\Exceptions\ConversionFailed;
use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\Process;
class LibreOfficeConverter extends AbstractConverter
{
private const BINARY = '/usr/bin/libreoffice';
protected ... | true |
26e65fc3012e3b3fbf6af4197c39c1750c892b7e | PHP | trooperandz/chapman | /reset-process.php | UTF-8 | 1,051 | 2.59375 | 3 | [] | no_license | <?php
require_once('functions.inc');
// prevent access if they haven't submitted the form.
if (!isset($_POST['submit'])) {
die(header("Location: index.php"));
}
$_SESSION['formAttempt'] = true;
if (isset($_SESSION['error'])) {
unset($_SESSION['error']);
}
$_SESSION['error'] = array();
$required = array... | true |
45a4dc295d52acc23fef937da4afcc68e005dc70 | PHP | j-flan/PHP-work | /Jeff_Flanegan_Homework9/8-5/ViewAirlineSurveys.php | UTF-8 | 2,477 | 2.828125 | 3 | [] | no_license | <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--Jeff Flanegan
CWB 208
ViewAirlineSurveys.php
2019-10-22-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<?php
//connect to database
$DBName... | true |
b5b5adde957f818566657b49d509e4ede31d48c0 | PHP | go1com/util_core | /portal/MailTemplate.php | UTF-8 | 938 | 2.859375 | 3 | [] | no_license | <?php
namespace go1\util\portal;
use JsonSerializable;
class MailTemplate implements JsonSerializable
{
private $id, $subject, $body, $html;
public function __construct(string $id, string $subject, string $body = null, string $html = null)
{
$this->id = $id;
$this->subject = $subject;
... | true |
7388f79b9144ec9ebd01409e1fb3bb0528e9bcfe | PHP | bulletbs/KoMS | /classes/Image.php | UTF-8 | 3,507 | 2.78125 | 3 | [] | no_license | <?php
/**
* Created by JetBrains PhpStorm.
* User: butch
* Date: 21.07.12
* Time: 17:28
* To change this template use File | Settings | File Templates.
*/
abstract class Image extends Kohana_Image{
CONST WATERMARK_TOP_LEFT = 1;
CONST WATERMARK_TOP_RIGHT = 2;
CONST WATERMARK_BOTTOM_LEFT = 3;
CONS... | true |
b938cf5bdea34e21809348209ff19f8e7bd49454 | PHP | mpijierro/devoogle | /app/Src/Social/Library/TwitterSocialUser.php | UTF-8 | 848 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Devoogle\Src\Social\Library;
class TwitterSocialUser extends SocialUser
{
public function __construct($socialUserObject)
{
parent::__construct((array)$socialUserObject);
}
public function id()
{
return $this->getField('id');
}
public function username(... | true |
3399099b16ee464afef82b3f2e9701ac24c3d4ed | PHP | korkytiki/andy-mai-test | /application/controllers/Customer.php | UTF-8 | 2,352 | 2.515625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
class customer extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library(array('session', 'form_validation'));
$this->load->model('customer_model', 'customer');
}
public function get($id)
{
$this->_check_login();
$user = $this->customer->get($id);
$t... | true |
2b3ff2de99b96608f632e4674a998662dcef3115 | PHP | mirzasuga/indodam | /app/Console/Commands/Minings/GrabDailyIncomeCommand.php | UTF-8 | 2,701 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands\Minings;
use Illuminate\Console\Command;
use App\Mining;
use App\Events\Mining\GrabedIncomeDaily;
use App\Events\Mining\GrabedIncomeHalfmonth;
use DB;
class GrabDailyIncomeCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var ... | true |
5e1285bb4bdbe6ec1673830db8acc8d830cdb6d1 | PHP | fridamelin/1dv610-L2 | /model/LoginModel.php | UTF-8 | 2,967 | 2.9375 | 3 | [] | no_license | <?php
namespace model;
require_once("view/LoginView.php");
class LoginModel {
public function __construct() {
$loginView = new \view\LoginView();
}
//DENNA KOMMER FRÅN LOGINVIEW//
//mste bara testa en kommentar
public function login(){
$username = $this->loginView->getRequestUserName();... | true |
0b4f436713cfb0f9cf3aa26900465ac6ff649e13 | PHP | Tupsi/pathfinder | /app/Lib/SystemTag/CountConnections.php | UTF-8 | 2,171 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace Exodus4D\Pathfinder\Lib\SystemTag;
use Exodus4D\Pathfinder\Model\Pathfinder\ConnectionModel;
use Exodus4D\Pathfinder\Model\Pathfinder\MapModel;
use Exodus4D\Pathfinder\Model\Pathfinder\SystemModel;
use Exodus4D\Pathfinder\Model\Universe\AbstractUniverseModel;
use Exodus4D\Pathfinder\Lib\SystemTag;
cl... | true |
4ff390c207f2892dda2aae8676a5ecc683f7bccb | PHP | elgranjm3000/ktt | /admin/upload_imgprensa.php | UTF-8 | 529 | 2.515625 | 3 | [] | no_license | <?php
if (!empty($_FILES)) {
$narchivo= mktime().str_replace(" ","",basename(strtolower($_FILES['Filedata']['name'])));
//$ruta0 = "../recursos/images/".strtolower($narchivo);
$ruta0 = "recursos/images/".strtolower($narchivo);
move_uploaded_file($_FILES['Filedata']['tmp_name'], $ruta0);
requ... | true |
5e74aed1d6ea9bbbc96c6242ab075405e691556d | PHP | RomanovichSG/test | /src/Service/User/UserDenormalizer.php | UTF-8 | 1,736 | 2.765625 | 3 | [] | no_license | <?php
namespace App\Service\User;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
class UserDenormalizer implements DenormalizerInterface
{
/**
* @var ObjectNormalizer
*/
private $normalizer;
/**
* UserDenor... | true |
533b5de2a355acf450378bd3653c47e8ef8a81c7 | PHP | Harrk/gamejolt-api | /src/GamejoltConfig.php | UTF-8 | 879 | 3.125 | 3 | [
"MIT"
] | permissive | <?php
namespace Harrk\GameJoltApi;
class GamejoltConfig {
protected string $endpoint = 'https://api.gamejolt.com/api/game/v1_2/';
protected string $privateKey;
protected int $gameId;
public function __construct(int $gameId, string $privateKey, ?string $endpoint = null)
{
$this->privateKey... | true |
c1747ffe8b5d7b7703754c960fcff71b45f1a038 | PHP | CapDRAKE/gsb3.1 | /application/core/MY_Controller.php | UTF-8 | 3,660 | 2.578125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->model('user_model');
$this->load->library('session');
... | true |
ba33cf609c9d3f0c77488961ddbe83b238977058 | PHP | vskcs/Seriez | /register.php | UTF-8 | 5,444 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php include('alerts.php'); ?>
<!DOCTYPE HTML>
<html>
<head>
<title>SERIEZ - Register</title>
<style>
.error {color: #FF0000;}
</style>
</head>
<body>
<?php
include('navBar.php');
include('config.php');
// define variables and set to empty values
$nameErr = $passErr1= $passErr2 = $confPa... | true |
2c69ba3079dd5793fd4bdf762ec1c41700a856e9 | PHP | dshafik/Squiz-Framework | /DAL/Parsers/DALSchemaParser.inc | UTF-8 | 36,555 | 2.515625 | 3 | [] | no_license | <?php
/**
* DALSchemaParser.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY;... | true |
fc8e9898c11649a9bb4bdd88f9d71b7b3480bca7 | PHP | ado1ph/quest | /database/seeds/UserTableSeeder.php | UTF-8 | 1,252 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//产生faker实例
$faker = \Faker\Factory::create('zh_CN');
$data = [];
for ($i = 0; $i < 100; $i++) {
... | true |