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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ef89ab68e06e193932d8b49c5cf2b30b781728a4 | PHP | scottrehlander/SplVideo | /data/ScottDB.php | UTF-8 | 4,072 | 2.8125 | 3 | [] | no_license | <?php
$pdo;
$dbServer = "db2549.perfora.net";
$dbName = "db336345575";
$dbUser = "dbo336345575";
$dbPassword = "videos1234";
// We want to pass in the query and an associative array of variables
// Bind the variables and then execute the query.
function ExecutePreparedQuery($sql, $vars)
{
if(empty($pdo))... | true |
87c74679e2f3d1e338f65f0dd0b1da12a755abff | PHP | jannix/WebPG | /www/libs/class/chat.php | UTF-8 | 1,378 | 2.953125 | 3 | [] | no_license | <?php
class chat
{
function add_message($message, $chan, $id_user, $id_party)
{
global $db;
if (empty($message) OR ($chan == GAME_ROOM_CHAN AND $id_party == 0))
return false;
$id_party = (int)$id_party;
$id_user = (int)$id_user;
$team = 0;
if ($chan == INGAME_TEAM_CHAN)
{
$sql = "SELECT team
... | true |
8e6701be38587f43b859a0bb1ad4979a322af2e2 | PHP | royderks/greenstreet | /mobilityhacks/import/import.php.php | UTF-8 | 3,470 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/*
* Roy Derks - hello@hackteam.io
*/
// Load OTP data
$file_otp = '../data/history_Sun04Dec2016013129.json';
$json_otp = json_decode(file_get_contents($file_otp), true);
// Load GPX date
// Credit: https://mapstogpx.com
// Based on: https://goo.gl/maps/K8KAcvK7nHE2
$file_gpx = '../data/gpxroute_berlin.json... | true |
fee3383b188882774ec0d8f21bf7b8585dfefd6a | PHP | randonner65/kharkovrele28.local | /switcher/passport1.php | UTF-8 | 19,236 | 2.625 | 3 | [] | no_license | <?php
function __autoload($class_name) {
if(file_exists("../classes/".$class_name.".php"))
require_once "../classes/".$class_name.".php";
else
require_once "classes/".$class_name.".php";
}//автоподключение нужного класса
$propswitcher = new PropertiesSwitcher();//создание объекта класса PropertiesSwitcher
$errors = ... | true |
fe609ee1f73cf80b5e6c0eaf7d29f336886c4ec5 | PHP | yanaFramework/yanaFramework | /trunk/libs/yana/files/isresource.php | UTF-8 | 1,986 | 2.546875 | 3 | [] | no_license | <?php
/**
* YANA library
*
* Software: Yana PHP-Framework
* Version: {VERSION} - {DATE}
* License: GNU GPL http://www.gnu.org/licenses/
*
* This program: can be redistributed and/or modified under the
* terms of the GNU General Public License as published by the
* Free Software Foundation, either version... | true |
7fb90de0aed49cf093388eab70d6d976164fa160 | PHP | vinnivinsachi/FernandoMichiganFishing | /application/models/DatabaseObject/BlogPost.php | UTF-8 | 9,095 | 2.890625 | 3 | [] | no_license | <?php
//pg 221
class DatabaseObject_BlogPost extends DatabaseObject
{
public $profile=null; //setting the profile of the BlogPost.
public $images = array();
//public $post_id = null;
private $databaseColumn = 'post_id';
const STATUS_DRAFT = 'D';
const STATUS_LIVE = 'L';
public function __c... | true |
dc1405cfe6b696dbc0cc47c4a6889212dc190a75 | PHP | oawu/gps.kerker-php | /App/Lib/CRUD/Show/Tag.php | UTF-8 | 672 | 2.71875 | 3 | [] | no_license | <?php
namespace CRUD\Show;
class Tag extends Unit {
const YELLOW = 'yellow';
const BLUE = 'blue';
const GREEN = 'green';
const GRAY = 'gray';
const RED = 'red';
private $color = '';
public function color($color) {
$this->color = $color;
return $this;
}
public function val($val) {
... | true |
e896a425469b72c7c8c9746c5c2388f63dee36cf | PHP | CoolONEOfficial/gorky-day-server | /root/php/func/error.func.php | UTF-8 | 460 | 2.890625 | 3 | [] | no_license | <?php
# ==== Error function ====
# Add error in $errorArr
function error(array $newErrorArr)
{
if(DEBUG)
{
echo 'Error!';
var_dump($newErrorArr);
echo ' Trace:';
var_dump(debug_backtrace());
}
if(DEBUG)
{
# Add error prefix
global $errorPrefixArr;
if( !empty($errorPrefixArr) )
$newErrorArr = ... | true |
f4c929595a4e6243387fce1202495c216f2ae5dd | PHP | badboyme/coding_dojo | /oop/bike/index.php | UTF-8 | 1,581 | 3.671875 | 4 | [] | no_license | <?php
class Bike
{
// properties/attributes
public $price = '$100';
public $max_speed = '50mph';
public $miles = 0;
public function __construct($u_price, $u_max_speed)
{
$this->price = $u_price;
$this->max_speed = $u_max_speed;
}
function displayInfo()
{
echo "Price: " . $this->price . ' - ';
echo... | true |
7321f213b40d45c1dfcde43cee8b13400faadd12 | PHP | Traffic2005/vpn-admin | /vpn-api/protected/Types/AbstractType.php | UTF-8 | 1,013 | 2.953125 | 3 | [] | no_license | <?php
/**
* Abstract base entity DTO
* Created by PhpStorm.
* User: traffic2005
* Date: 17.10.17
* Time: 14:53
*/
namespace App\Types;
abstract class AbstractType
{
/**
* Constructor with property hydration
*
* @param array $entityData Entity data
*/
public function __construct(a... | true |
bc3657d6f3fa4288a05d8a4b69302dbedea483c5 | PHP | ebenner91/blogs | /index.php | UTF-8 | 6,250 | 2.703125 | 3 | [] | no_license | <?php
/*
*
* ebenner.greenrivertech.net/328/blogs
* Elizabeth Benner
* Blogs Assignment
* 5/21/2017
* Controller for blogs website
*/
/**
* This is the controller for the blogs website
*
* The controller directs the various routes of the website, directing users
* to various pages, as well as pass... | true |
e7f8a44f6c8a9741f5915e95d41f06006541bffd | PHP | PavelMir/Class | /classes.php | UTF-8 | 2,313 | 3.40625 | 3 | [] | no_license | <?php
class Students{
public $firstname;
public $lastname;
public $gender;
public $status;
public $gpa;
public function showMyself(){
var_dump(get_object_vars($this));
}
public function studyTime($study_time){
if($this->gpa>4){$this->gpa = 4;}
$this->gpa += log($study_time);
return rou... | true |
0aca8189353a7d645b6e38cf5b629005e70dbb48 | PHP | yuz97/crud_ci4 | /app/Controllers/Komik.php | UTF-8 | 4,659 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Controllers;
use App\Models\komikModel;
class Komik extends Basecontroller{
public function __construct(){
$this->komikModel = new komikModel();
}
public function index()
{
// $komikModel = new komikModel();
$komik = $this->komikModel->getKomik();
// dd($komik);
$data = [
'komik... | true |
a4919d485482c6c3c108c94017be67e117263e5c | PHP | MRF-IT/jiang | /tp5seawatch/application/index/controller/Emailexcel.php | UTF-8 | 4,136 | 2.59375 | 3 | [
"PHP-3.0",
"Apache-2.0"
] | permissive | <?php
namespace app\index\controller;
use think\Controller;
use think\facade\Request;
use think\Db;
include('../vendor/phpexcel/PHPExcel.php');
class Emailexcel extends Controller
{
public function index()
{
if(Request::isPost()){
if (!empty($_FILES['excel']['name'])) {
$fileName = $_FILES['exc... | true |
f1a7fafe7c211d6cf3cf822f36c3b8ed794bdcfe | PHP | Turpin75/SymBNB | /src/Service/StatsService.php | UTF-8 | 1,850 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Service;
use App\Repository\AdRepository;
use App\Repository\UserRepository;
use App\Repository\BookingRepository;
use App\Repository\CommentRepository;
use Doctrine\Common\Persistence\ObjectManager;
class StatsService
{
private $manager;
private $adRepo;
private $userRepo;
privat... | true |
0ec5dd93a213d414339e79b473faba63f02ad76e | PHP | nodes-php/push | /src/Providers/UrbanAirshipV3.php | UTF-8 | 17,026 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace Nodes\Push\Providers;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Exception\ClientException;
use Illuminate\Support\MessageBag;
use Nodes\Push\Contracts\ProviderInterface;
use Nodes\Push\Exceptions\InvalidArgumentException;
use Nodes\Push\Exceptions\InvalidAudienceE... | true |
481606f8b724939a95867889d69359812460ef47 | PHP | ghost26/booking | /api/resources/bookmarks.php | UTF-8 | 3,235 | 2.921875 | 3 | [] | no_license | <?php
require_once 'utils/helpers.php';
function requestHandler($connection, $requestType, $params)
{
switch ($requestType) {
case 'POST':
$missingArgs = checkMandatoryParams($params, ['verifiedUserId', 'hotel_id', 'capacity', 'start_date', 'end_date']);
if (!$missingArgs) {
... | true |
99b04809b6760271cfe2da77411e121857700c53 | PHP | ff2flavio/Sistema | /backend/controllers/secao.php | UTF-8 | 4,960 | 2.59375 | 3 | [] | no_license | <?php
/**
* Secao
*
* @package Backend
* @subpackage controllers
* @author sistema
* @copyright Gregori Maus
* @version 2011
* @access public
*/
class Secao extends Controller {
/**
* Secao::Secao()
*
* @return
*/
function Secao()
{
parent::Controller();
}
/*
... | true |
cf9a38ab6fef159c40eefdda24161d6e2d04e03f | PHP | muction/stars-peace | /Src/Plugs/Cloud/Storage/Oss.php | UTF-8 | 3,306 | 2.828125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | <?php
/**
* ------------------------------------------------------
* 阿里云 - OSS
* ------------------------------------------------------
*/
namespace Stars\Peace\Plugs\Cloud\Storage;
use OSS\OssClient;
use Stars\Peace\Plugs\Cloud\Storage\OSS\OssCloudOption;
use Stars\Peace\Plugs\Cloud\Storage\OSS\OssCloudStorage;
... | true |
dedcd1e3932d542becaad613337fc6d00276ce8f | PHP | i4erkasov/phalcon-xml-annontations | /src/Annotations/Tag.php | UTF-8 | 1,564 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace I4\Phalcon\XML\Annotations;
class Tag extends AbstractTag
{
private ?string $content;
private ?string $comment;
private ?string $cdata;
public const ANNOTATION = 'XML\Tag';
public function __construct(
string $name,
?string $content = null,
?string $comm... | true |
2c7cd028c37bf9b7215fdb367158d7756865aa29 | PHP | atria0410/Talk-With | /app/Models/Room.php | UTF-8 | 812 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Validator;
class Room extends Model
{
protected $guarded = ['id'];
/* バリデーション */
public static function validation($request)
{
$rules = [
'title' => 'required',
'thumbnail' => 'mimes:jpeg,gif,png'... | true |
961e06e6217c3f620523d0f74c0ab479da1a6b6f | PHP | Deutsche-Squad-Gemeinschaft/BeyondTheWire-RCON-PHP | /tests/Feature/VirtualServerTest.php | UTF-8 | 11,728 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace DSG\BeyondTheWireRCON\Tests\Feature;
use DSG\BeyondTheWireRCON\Data\ServerConnectionInfo;
use DSG\BeyondTheWireRCON\BeyondTheWireServer;
use DSG\BeyondTheWireRCON\Tests\Runners\TestingCommandRunner;
class VirtualServerTest extends \DSG\BeyondTheWireRCON\Tests\TestCase {
private BeyondTheWireServe... | true |
8924a70bfbafb0398c0a951f0c40a88678f17168 | PHP | mssab/test | /ConnectionInfo.php | UTF-8 | 399 | 2.890625 | 3 | [] | no_license | <?php
class ConnectionInfo
{
public $mServerName;
public $mConnectionInfo;
public $conn;
public function GetConnection()
{
$this->mServerName = 'localhost';
$this->mConnectionInfo = array("Database"=>"YOUR_DATABASE", "UID"=>"YOUR_USERNAME", "PWD"=>"YOUR_PASSWORD");
$this->conn = sqlsrv_connect... | true |
f0eebac7d763615ecf50ff6fb780f2f8afc719b6 | PHP | liaopeng541/lpii | /models/Db.php | UTF-8 | 2,824 | 2.5625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: liaopeng
* Date: 2018/12/10
* Time: 4:31 PM
*/
namespace lpsoft\lpii\models;
class Db extends Build
{
/**
* 设置数据库连接
* @return array
*/
public static function setDbset($host="127.0.0.1",$port="3306",$dbname="",$username="root",$password="",$charset="ut... | true |
c51519495fd1cbea71bb5d323bd7809ff284ef70 | PHP | rochac2lee/encode | /cardapio/no-access/assets/includes/conexao.php | UTF-8 | 322 | 2.546875 | 3 | [] | no_license | <?php
try {
$conexao = new PDO('mysql:host=opmy0018.servidorwebfacil.com:3306;dbname=ifprpgua_externoCimb', 'ifprp_cimb', 'cim123');
$conexao -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo 'Houve um Erro na conexao com o banco de dados: ' . $e -> getMessage();
}
?... | true |
1e4bb7149c2974afd6920a4198d209e35fbbac2f | PHP | alextim/alpclub | /at-trip/inc/admin/admin-helper.php | UTF-8 | 2,330 | 2.875 | 3 | [] | no_license | <?php
/**
* Admin Helper
*
* @package inc/admin/
*/
// ADMIN COLUMN - HEADERS
add_filter( 'manage_edit-' . AT_TRIP_POST_TYPE . '_columns', function ( $columns ) {
unset( $columns['date'] );
$columns['sticky'] = 'Sticky';
$columns['price'] = 'Price';
$columns['dates'] = 'Dates';
$columns['days'] = 'Days/Night... | true |
2b39b486c44613de088f9fb05041f07c8b0cdbc1 | PHP | mzimhle/rentout | /public_html/library/classes/class/mileage.php | UTF-8 | 4,211 | 2.796875 | 3 | [] | no_license | <?php
//custom account item class as account table abstraction
class class_mileage extends Zend_Db_Table_Abstract
{
//declare table variables
protected $_name = 'mileage';
protected $_primary = 'mileage_code';
/**
* Insert the database record
* example: $table->insert($data);
* @param array $data... | true |
c4734da5d80e8a3230c2df19eb7bf8cb7e7a168c | PHP | rhuangabrielsantos/DataStructureAndAlgorithms | /tests/DataStructures/FixedArrayTest.php | UTF-8 | 472 | 3.03125 | 3 | [] | no_license | <?php
namespace DataStructureTests\DataStructures;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\TestCase;
use SplFixedArray;
class FixedArrayTest extends TestCase
{
public static function testStructure(): void
{
$fixedArray = new SplFixedArray($size = 2);
$fixedArray[0] = "orange";
... | true |
02aee9c048e9eae140dabff142b439d597a8d920 | PHP | theadeshkhanna/social-Backend | /app/Services/CommentService.php | UTF-8 | 637 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Comment;
use App\Services\Contracts\CreateCommentContract;
class CommentService {
public function store(CreateCommentContract $contract, $id) {
$comment = new Comment();
$comment->todo_id = $contract->getTodoId();
$comment->comment = $contract->getC... | true |
6a7470387894e09a343163053021c7313a03a300 | PHP | ampaze/phpFinTS | /Samples/accounts.php | UTF-8 | 670 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/** @noinspection PhpUnhandledExceptionInspection */
/**
* SAMPLE - Displays the available accounts
*/
// See login.php, it returns a FinTs instance that is already logged in.
/** @var \Fhp\FinTs $fints */
$fints = require_once 'login.php';
// Just pick the first account, for demonstration purposes. You cou... | true |
965d19996b613bdc3cfba48834a6a6701e03ef78 | PHP | Ange-hells/CinePassion38 | /mvc/modele/home/inscription.inc.php | UTF-8 | 1,055 | 2.890625 | 3 | [] | no_license | <?php
class modeleHomeInscription extends modele{
/**
* Renvoie tous les films de la cinémathèque
* @param null
* @return collection : une collection d'objets anonymes contenant les informations sur les films (n°, titre, durée, année de sortie, genre, prénom et nom du réalisateur)
*/
// publ... | true |
5c0b22800fb00ad7fc8080797e074473476b2981 | PHP | risingDamian/Tutkit_OOP_mit_PHP | /Observer/lib/Alarm/Observer.php | UTF-8 | 185 | 2.546875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: froese
* Date: 06.09.17
* Time: 15:19
*/
namespace Alarm;
abstract class Observer {
abstract public function update(System $system);
} | true |
1c25594d6afdf6a2d35d8bd82a79f80a16c8763b | PHP | fouda-moise/afex | /code_random.php | UTF-8 | 181 | 2.5625 | 3 | [] | no_license | <?php
$chars = '0123456789';
$code = str_shuffle($chars);
$code = substr($code,0,2);
$date1 = date('d-m-Y');
echo 'PJ'.$code.'-'.$date1;
?> | true |
6a5b3ca68aaf6e340096901ed14a4612ec0caa17 | PHP | nesrine9999/Chat- | /messageC.php | UTF-8 | 904 | 2.875 | 3 | [] | no_license | <?PHP
include "config.php";
class messageC
{
function ajouterMessage($message)
{
$sql = "insert into nesrine (pseudo, message, nbrlike) values (:pseudo, :message, :nbrlike)";
$db = config::getConnexion();
try {
$req = $db->prepare($sql);
$pseudo = $message->getPse... | true |
7fc6e6245b1702a8a77ddd25c1b95144b0f81062 | PHP | zjunbao/yaflib | /src/Strings.php | UTF-8 | 10,552 | 3.40625 | 3 | [
"MIT"
] | permissive | <?php
/**
* 字符串高级操作封装。
* @author fingerQin
* @date 2019-12-06
*/
namespace finger;
class Strings
{
/**
* 字符串星号处理器。
*
* @param string $str 被加星处理的字符串。
* @param int $start 星号起始位置。
* @param int $length 星号长度。
* @return string
*/
public st... | true |
098ad2fe8ce86fc980743f6b42612aec664f01ad | PHP | samspeck42/restaurantapp | /www/restaurantapp/owner/myrestaurants.php | UTF-8 | 1,148 | 3.078125 | 3 | [] | no_license | <?php
include $_SERVER["DOCUMENT_ROOT"] . "/includes/connection.php";
include $_SERVER["DOCUMENT_ROOT"] . "/includes/session.php";
load_session();
if (!is_logged_in()) {
// not logged in, redirect to login page
header("Location: /restaurantapp/login.php");
exit(0);
} else if (!$isOwner) {
// not a restaurant owne... | true |
b396c18fa25ed3fc6882622aa61b76a4820d30e0 | PHP | manxoloh/rmore | /common/models/Products.php | UTF-8 | 2,086 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "products".
*
* @property int $id
* @property int $category
* @property string $product_name
* @property string $featured_image
* @property string $description
* @property string $onload_date
* @property string $offload_date
* ... | true |
8709f71eb83099d7725126b979fc7e327e81c640 | PHP | Trucmuche/ProjetPT | /tables/GenreManager.class.php | UTF-8 | 1,474 | 3.03125 | 3 | [] | no_license | <?php
class GenreManager{
public static function creer($p){
$sql = "INSERT INTO Genre VALUES ('', ?)";
$res = DB::get_instance()->prepare($sql);
$res -> execute($p->Nom_Genre);
$p->id=DB::get_instance()->lastInsertId();
return $p;
}
public static function chercherParID($id){
$sql="S... | true |
97b01c7ff8cd07397366e5ccb2c86e906ac0e1de | PHP | Stratadox/Hydration | /src/LoadsProxiedObjects.php | UTF-8 | 999 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Stratadox\Hydration;
/**
* Loads proxied objects, notifying its observers in the process.
*
* Note: these are not the proxies, but the "real" objects that were previously
* represented by a proxy. This is the "loading" part of "lazy loading".
*
* @author Stratadox
* @package Stratadox\Hydrate
... | true |
4132e6c957ed03265209ce586a0d620330ffc7d4 | PHP | arvino/vino-cms-dwellasiamag.com | /function/Function.Booking_Status.php | UTF-8 | 2,957 | 2.671875 | 3 | [] | no_license | <?php
/* LIST FUNCTION UNTUK TABEL BOOKING STATUS */
/*
id
kodestatus
name
description
notifikasiemail
$id
$kodestatus
$name
$description
$notifikasiemail
$id,
$kodestatus,
$name,
$description,
$notifikasiemail,
*/
/* Fungsi Tabel Booking Status */
function bookingstatus_createid( $tbl_bookingstatus ){ /* Fun... | true |
661869b2a298fe57d1981828dff328f030b43596 | PHP | vidmahovic/nba | /tests/TestResource.php | UTF-8 | 383 | 2.578125 | 3 | [] | no_license | <?php
namespace Tests;
use CartHook\Entities\Resources\Resource;
/**
* Class TestResource
*
* @package \Tests
*/
class TestResource extends Resource
{
private $data = [];
public function fetch(string $source, array $options = []): array
{
return $this->data;
}
public function apply(... | true |
0679c30cd17eba663f1afde14b6196a5974c31e9 | PHP | santy6221/Comp.Graf-Final | /controller/UserController.php | UTF-8 | 4,277 | 2.875 | 3 | [] | no_license | <?php
require_once '../dao.php';
require_once '../interfaces/dbfunctions.php';
class UserController extends DAO implements dbfunctions
{
public function __construct()
{
parent::__construct();
}
public function verifyExistence(User $user): bool
{
$username = $user->getUserName();
... | true |
4f61e908e893943c97ffd60fed969bf616433eb0 | PHP | Hafizdzaki12/Responsib2 | /Alfreth Kristian Pongliku/deklarsi variabel.php | UTF-8 | 68 | 3.09375 | 3 | [] | no_license | <?php
$txt = "hello word";
$x = 5;
$y = 10.5;
echo $txt. $x. $y;
?>
| true |
5d803b71ff4680486929724da3c71a39daa75a96 | PHP | Dwirinas/Pemrograman-Web-Dinamis | /JOB3/Percobaan7.php | UTF-8 | 451 | 3.390625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Percobaan 7</title>
</head>
<body>
<?php
$x = 5;
$y = 4;
echo $x +$y;
echo "<br>";
$n... | true |
dd64d075b438a551d4af84be5352694ed917cca4 | PHP | dercoder/omnipay-ecopayz | /src/Omnipay/Ecopayz/Message/PurchaseResponse.php | UTF-8 | 1,391 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Omnipay\Ecopayz\Message;
use Omnipay\Common\Message\RedirectResponseInterface;
use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RequestInterface;
/**
* Ecopayz Purchase Response
*
* @author Alexander Fedra <contact@dercoder.at>
* @copyright 2015 DerCoder
* @license http://... | true |
8e4cdd5cb397a106d5ddb119e0a73e1520b30c9b | PHP | YuriiBondarchuk/HOMEWORK | /php_basics_tags/25.php | UTF-8 | 977 | 2.90625 | 3 | [] | no_license | <?php
/*25. Приведите пример, чем отличается <?php от <?=*/
/*
* Оба тега являються откривающими тегами кода РНР.
*Начиная с версии РНР 7.0 - только эти два тега остались доступными по умолчанию для обозначения кода РНР.
* Кроме краткости тега <?= - его отличие (я так думаю)) ) являеться его эквивалентность и кратк... | true |
fabbcf1908a68ff00e45688069f636532deb3746 | PHP | roy-lee/Web-Based-Meeting-Organiser | /createMeeting.php | UTF-8 | 14,981 | 2.71875 | 3 | [] | no_license | <?php
$currentPage = 'createMeeting';
include("includes/header.inc.php");
require_once 'config.php';
$organiserusername = $_SESSION['username'];
/* ---------------
*
* On page run
*
* --------------- */
$userid = getUserId($mysqli,$organiserusername);
$venues = get_venues($mysqli);
$results = get_users($mysqli... | true |
9b3c0119834136e6b8a66715e8cb842a216687be | PHP | okwinza/yandex-direct | /src/Api/V4/Contract/PhrasePriceInfo.php | UTF-8 | 3,544 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Biplane\YandexDirect\Api\V4\Contract;
/**
* Auto-generated code.
*/
class PhrasePriceInfo
{
protected $PhraseID = null;
protected $BannerID = null;
protected $CampaignID = null;
protected $Price = null;
protected $AutoBroker = null;
protected $AutoBudgetPriority = null;... | true |
769c7d59ecd7d0264907a6dfd60abe8d0a3b949f | PHP | FreeUKGen/FreeUKGenealogy | /craft/plugins/sproutforms/models/SproutForms_FormModel.php | UTF-8 | 3,177 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Craft;
class SproutForms_FormModel extends BaseElementModel
{
protected $elementType = 'SproutForms_Form';
private $_fields;
/**
* Use the form handle as the string representation.
*
* @return string
*/
function __toString()
{
return Craft::t($this->name);
}
/**
* @access prot... | true |
6eb9e32706922d0cca4c46b5bad71abaafb994b9 | PHP | joshuaeveleth/thecurrent | /library/querygenerator/coremodels/QueryWrapperArrayOf.class.php | UTF-8 | 545 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Adapter for ArrayOf objects
*
* @author Dan Kottke
*/
class QueryWrapperArrayOf extends QueryElementAdapter{
public function __construct(ArrayOf $value) {
parent::__construct($value);
... | true |
25fd12b71fded700460adc31591f6b1a20c0b710 | PHP | marrselo/ARTY_FRAGRANCE | /application/models/Contact.php | UTF-8 | 2,743 | 2.53125 | 3 | [] | no_license | <?php
class Application_Model_Contact extends ZExtraLib_Model {
protected $_contact;
protected $_idioma;
function __construct() {
parent::__construct();
$this->_contact = new Application_Model_DbTable_Contact();
$this->_idioma = new Application_Model_DbTable_Idioma();
}
p... | true |
2d57199e032251baaad44498fa8277dc02d6a736 | PHP | bousmahafaycal/Alexa | /ajoutCommentaire.php | UTF-8 | 1,348 | 2.625 | 3 | [] | no_license | <?php
if (!session_id()) session_start();
// Connection a la base de données
include('connectionbdd.php');
// Recuperation des classes
include('ArticleClass.php'); // Fonctions pour récuperer les articles
include('Personne.php'); // Fonctions pour récuperer les personnes
include('Categorie.php'); // Fonctions pour récu... | true |
f4744966d83ffec93da0353bf10c5b95a9fdabdf | PHP | johnkawakami/sf-active-undead | /sf-active/shared/classes/calendar/event_renderer.inc | UTF-8 | 7,356 | 3.109375 | 3 | [] | no_license | <?php
if (!isset($ev_renderer_is_defined)){
$ev_renderer_is_defined="true";
$midnight=0;
$first_listed_hour=10;
$last_listed_hour=22;
$sunday=0;
$saturday=6;
$oneday=60*60*24;
class EventRenderer{
//Event renderer is used to render the HTML for Event objects
function render_daytitle($date){
//returns a formatted... | true |
e663fa4485c303e322f0367ab2defbb555332bb3 | PHP | SP0D/SPOD-Magento-Extension | /Setup/InstallData.php | UTF-8 | 1,477 | 2.515625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Spod\Sync\Setup;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Spod\Sync\Helper\AttributeHelper;
/**
* Magento Setup class which creates the SPOD attribute set
... | true |
db64dc910c44da4e7504a61415d4a8fe2b4b40e7 | PHP | SWUNwy/yrui | /php/OOP/lesson6/03/is_a.php | UTF-8 | 400 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | <?php
class person {}
class student extends person {}
$person = new person();
$student = new student();
/**
* is_a() 判断对象是否由一个类或这个类的子类实例化来的
* 第一个参数:要判断的对象
* 第二个参数:要判断的类名
* 返回值:boolean
*/
var_dump(is_a($person,"person"));
var_dump(is_a($student,"student"));
var_dump(is_a($student,"person")); | true |
b4ba036c4a0b6f9f60a53693443abf9d6a27e296 | PHP | xudong7930/php7-up-and-running | /3-return-type-declare/index.php | UTF-8 | 240 | 3 | 3 | [] | no_license | <?php
declare(strict_types=1);
class User {}
// 声明返回类型为User实例
function getUser() :User {
// return [];
return new User;
}
function isValid() :bool {
return true;
}
var_dump(getUser());
var_dump(isValid());
| true |
98214619b459856d4db1ca1f7e75ed13dab71a53 | PHP | makeabledk/laravel-google-analytics | /src/AnalyticsProperty.php | UTF-8 | 1,576 | 2.609375 | 3 | [] | no_license | <?php
namespace Makeable\LaravelAnalytics;
use Google_Service_Analytics;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;
use JsonSerializable;
class AnalyticsProperty implements Arrayable, JsonSerializable
{
use HasAttributes,
NormalizeParameters;
/**
* @var Analy... | true |
f5b0fb959a2a438d36bb311ed89d19c4b875c951 | PHP | Gabriel-Kenji/Projeto_Fcamara_2021 | /_api/Classes/Class_Status.php | UTF-8 | 374 | 2.90625 | 3 | [] | no_license | <?php
namespace _api\Classes;
class Class_Status{
private $status, $nome;
public function getStatus(){
return $this->status;
}
public function setStatus($status){
$this->status = $status;
}
public function getNome(){
return $this->nome;
}
public function setNo... | true |
dce2eeedf8648559a0edc3d8e2837de7b608b831 | PHP | surfingdirt/rest-api | /library/Lib/Form/Element/Gender.php | UTF-8 | 569 | 2.5625 | 3 | [] | no_license | <?php
class Lib_Form_Element_Gender extends Zend_Form_Element_Select
{
const MALE = 'male';
const FEMALE = 'female';
public static $genders = array(
1 => self::MALE,
2 => self::FEMALE,
);
public function __construct($spec = 'gender', $label = 'gender', $options = null)
{
parent::__construct($... | true |
034a79bcbb4fcc9052060bb46791e287390a90b4 | PHP | Godtobi/rdc | /app/Http/Controllers/API/VehicleTypeAPIController.php | UTF-8 | 3,438 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateVehicleTypeAPIRequest;
use App\Http\Requests\API\UpdateVehicleTypeAPIRequest;
use App\Models\VehicleType;
use App\Repositories\VehicleTypeRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use Response;
/**
*... | true |
258dd97616ebb557312a5ff694d48c15cc14e810 | PHP | aeberdinelli/express-php | /src/Jade/Parser.php | UTF-8 | 16,668 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Jade;
use Jade\Exceptions\JadeFileNotFound;
use Jade\Nodes as Nodes;
require_once('Lexer.php');
class Parser {
public $basepath;
public static $extension = '.jade';
public $textOnly = array('script','style');
protected $input;
protected $lexer;
protected $filename;
prot... | true |
b3df93c0b51bc35df2fad1471c6a4c119d5b5ef2 | PHP | angaither/dosomething | /lib/modules/dosomething/dosomething_api/plugins/restful/files/1.0/DoSomethingFilesResource.class.php | UTF-8 | 1,844 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
/**
* @file
* Contains \DoSomethingFilesResource.
*/
class DoSomethingFilesResource extends RestfulEntityBase {
/**
* Overrides RestfulEntityBaseNode::publicFieldsInfo().
*/
public function publicFieldsInfo() {
$public_fields = parent::publicFieldsInfo();
$public_fields['created'] = array(... | true |
2824fa6394afae0d52654c0707097e877835e58a | PHP | theccode/AJAX_PHP | /ajax/grid/grid.class.php | UTF-8 | 2,810 | 3 | 3 | [] | no_license | <?php
require_once ('config.php');
session_start();
class Grid{
private $conn;
private $mTotalPages;
private $mItemsPerPage;
private $mCurrentPage;
private $mTotalItemsCount;
private $mSortColumn;
private $mSortDirection;
public function __construct($currentPage = 1, $itemsPerPage = 5... | true |
ac4e3ca037dca275ba951bdd08b72c95384a2e0e | PHP | kimniyom/mini-clinic | /protected/controllers/ServicedrugController.php | UTF-8 | 7,851 | 2.578125 | 3 | [] | no_license | <?php
class ServicedrugController extends Controller {
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout = 'template_backend';
/**
* @return array action filters
*/
public ... | true |
e7057e5c0503602927bf83e860fdd2f63ac61145 | PHP | owen-it/laravel-auditing | /src/AuditableObserver.php | UTF-8 | 2,268 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace OwenIt\Auditing;
use OwenIt\Auditing\Contracts\Auditable;
use OwenIt\Auditing\Facades\Auditor;
class AuditableObserver
{
/**
* Is the model being restored?
*
* @var bool
*/
public static $restoring = false;
/**
* Handle the retrieved event.
*
* @param \... | true |
f6e598f55107e0b70e4b89c09d32b10b4a41c3e0 | PHP | kruloco/colectivosServer | /controladores/Conexion.php | UTF-8 | 472 | 2.671875 | 3 | [] | no_license | <?php
function conectarDB()
{
$mysqli = new mysqli("localhost", "a5932039_carim", "colectivo123", "a5932039_col");
//$mysqli = new mysqli("mysql3.000webhost.com", "a5932039_carim", "colectivo123", "a5932039_col");
if (mysqli_connect_errno())
{
printf("Error de conexión: %s\n", mysqli_conne... | true |
ac5879ef3702325df2a3801b060bef4f50f9ee68 | PHP | sirjaf/carwash | /teams/includes/update_team.inc.php | UTF-8 | 1,147 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
include_once $_SERVER['DOCUMENT_ROOT'].'/includes/dbconn.inc.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/includes/func.inc.php';
setlocale(LC_ALL, "en_US.utf8");
$team = mysqli_real_escape_string($conn, $_POST['team']);
$team_crest = $_POST['team_crest'];
$country_id = mysqli_... | true |
1ad3e26d22501a77052c2dfdb14546c8e9402d8c | PHP | cjsampson/codeup.dev | /public/OOPLaraLessons/messages.php | UTF-8 | 241 | 2.5625 | 3 | [] | no_license | <?php
use Acme\Users\Person;
use Acme\Business;
use Acme\Staff;
$cj = new Person('CJ Sampson');
$staff = new Staff([$cj]);
$pizzaShop = new Business($staff);
$pizzaShop->hire(new Person('John Taylor'));
var_dump($pizzaShop->getStaffMembers());
| true |
8cfa5ebccfce66547d1d70eee0329d0527a0ec24 | PHP | miguelramos/grav | /system/src/Grav/Component/ArrayTraits/ArrayAccess.php | UTF-8 | 827 | 2.90625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Grav\Component\ArrayTraits;
/**
* Class ArrayAccess
* @package Grav\Component\ArrayTraits
*
* @property array $items
*/
trait ArrayAccess
{
/**
* @param mixed $offset
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->items[$offset]);
... | true |
d3ddd1f872eb03adf788414f65664bfa68e7bee3 | PHP | Ntanui/Informatics-Project | /editorg.php | UTF-8 | 5,296 | 2.65625 | 3 | [] | no_license | <?php
include_once("config.php");
include_once("dbutils.php");
//
//
if (isset($_POST['submit'])) {
//get data from form
$id = $_POST['id'];
$orgName = $_POST['orgName'];
$contactInfo = $_POST['contactInfo'];
$adMininfo = $_POST['adMininfo']... | true |
7249e95f49b661319334519c7f423b8c3c531c9e | PHP | manjirik/drupal_Projects | /timesheet application/phpFunctions.php | UTF-8 | 5,225 | 2.953125 | 3 | [] | no_license | <?php
/*
|===================================================================================================|
| Project Name: timesheet
| Page Name: phpFunctions.php
| Developed By: Harshal S. Hirve
| Email: harshalh@synechron.com
| Date: 27-04-2010
| Purpose: class file, contains all the common php func... | true |
ebce76b3bcb66a112d2a916dba22eafd30367122 | PHP | pausman/p3dwa | /app/Http/Controllers/PracticeController.php | UTF-8 | 1,671 | 2.9375 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use KKiernan\CaesarCipher;
class PracticeController extends Controller
{
/*
* This was used for testing
*/
// from class notes
public function practice1()
{
return ("practice 1");
}
public function practice2()
{
$cipher = n... | true |
e08d94cbc5ede20e0f1bbf9fe2dc669cf874cae2 | PHP | nourbahaa461/Web-project | /Shopping-market-place/Model/messages.php | UTF-8 | 2,027 | 3.03125 | 3 | [] | no_license | <?php
require_once(__ROOT__ . "model/Model.php");
require_once(__ROOT__ . "model/message.php");
?>
<?php
class messages extends Model {
public $messages;
private $dbh;
function __construct() {
$this->fillArray();
}
function fillArray() {
$this->messages = array();
$this-... | true |
0978e1bc93d34b3bc8235062daff3b104a4de453 | PHP | iamandrii/it-school | /php-sc/do15.php | UTF-8 | 215 | 2.59375 | 3 | [] | no_license | <link rel="stylesheet" href="pstyle.css">
<div class="main">
<?php
$a = (int)$_GET["a"];
if($a<1000)
echo ($a*6)*0.2;
else if($a>=1000 && $a<2000)
echo ($a*6)*0.25;
else if($a>=2000)
echo ($a*6)*0.3;
?>
</div> | true |
c6039e27b6df4f1899ecf0bea9dde8718b863b5c | PHP | kemsguy7/Cms_Project | /DateTime.php | UTF-8 | 134 | 2.625 | 3 | [] | no_license | <?php
date_default_timezone_get();
$CurrentTime=time();
$DateTime=strftime("%Y-%m-%d %H:%M%S", $CurrentTime);
echo $DateTime;
?> | true |
a730b5050c82f908584622a0995617f1a75763a6 | PHP | bistik/comm-task | /src/Entity/Commission.php | UTF-8 | 960 | 3.09375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Bianes\CommissionTask\Entity;
abstract class Commission
{
/** @var float */
private $maximum;
/** @var float */
private $minimum;
/** @var float */
private $percentage;
/**
* Commission constructor.
*
* @param float $minimum
*... | true |
5d672a5887fcb17b6bebaf20acf1c781eb83e933 | PHP | dixitthakur/extension-mates_travel | /Classes/ViewHelpers/Form/GetItineraryViewHelper.php | UTF-8 | 788 | 2.828125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace MT\MatesTravel\ViewHelpers\Form;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* Class GetItineraryViewHelper
*/
class GetItineraryViewHelper extends AbstractViewHelper
{
/**
* @var array
*/
protected $itinerary = [
'0' => 'Fixed',
... | true |
92aa68b4b2235ec3f5c82423c2a22447f42d91c9 | PHP | shareful/whoop | /database/migrations/2018_01_24_102524_create_boost_code_providers_table.php | UTF-8 | 1,799 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use \App\Models\Admin\BoostCodeProvider;
class CreateBoostCodeProvidersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public functio... | true |
65c10c6d891844e0c2ad3d16e94345e3ecf26cac | PHP | namesjewman/RPG | /working/save_char.php | UTF-8 | 13,557 | 2.875 | 3 | [] | no_license | <?php
session_start();
require("functions.php");
$ab_array = array('0'); // set the first item in the array to 0 to help the for loop below easier
$char = get_character_info($_SESSION['char']);
$id = $char['id'];
/******** Add abilities to database ************/
if (isset($_GET['ab'])) {
$newCrit=$charCrit... | true |
7a1aa0e29ab8afbb352c9595844f07f57b63e176 | PHP | dokuwiki-translate/howhard | /syntax.php | UTF-8 | 2,831 | 2.5625 | 3 | [] | no_license | <?php
/**
* DokuWiki Plugin HowHard (Syntax Component)
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author Fabrice DEJAIGHER <fabrice@chtiland.com>
*/
// must be run within Dokuwiki
if (!defined('DOKU_INC'))
{
die();
}
if (!defined('DOKU_LF'))
{
define('DOKU_LF', "\n");
}
if (!defined('DOKU... | true |
07b1f38c5ad2c2368bad871fb24e3b80c1a706f0 | PHP | andrey-silivanov/cubeXTest | /app/Http/Middleware/JwtTokenMiddleware.php | UTF-8 | 1,525 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace App\Http\Middleware;
use App\Exceptions\JwtAuthFailedException;
use Closure;
use Illuminate\Contracts\Events\Dispatcher;
use Tymon\JWTAuth\{
Exceptions\JWTException,
Exceptions\TokenExpiredException,
JWTAuth
};
/**
* Class JwtTokenMiddleware
* @package App\Htt... | true |
61ec320a64fa23fa365a172ae1bbbebe5a237e32 | PHP | sky8652/bughello | /app/Command/VideoImgDownload.php | UTF-8 | 1,039 | 2.59375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Command;
use App\Factory\JobFactory;
use App\Model\Video;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command;
use Psr\Container\ContainerInterface;
use Hyperf\Di\Annotation\Inject;
/**
* @Command
*/
class VideoImgDownload extends HyperfCo... | true |
6d35a4c179bf45cfa2d5c643b5a75a672b68e536 | PHP | budaboydark/deliciasnocopinho | /sistema/webserver_ip/ws_feriados.php | UTF-8 | 2,002 | 2.65625 | 3 | [] | no_license | <?php
require_once "lib/nusoap.php";
include_once "ws_conctaws.php";
function montaBody($function, $namespace, $campos) {
if($namespace){
$body .= '<' . $function . ' ' . $namespace . ' >'; // inicia o corpo do wsdl
}else{
$body .= '<' . $function . '>'; // inicia o corpo do wsdl
}
/*
* monta os c... | true |
6b6a0588c84b5a3df2ddfbeea630a07cc6af3c6a | PHP | AdityaManggala/07224_TA_Ngopee | /Model/AuthModel.php | UTF-8 | 1,623 | 2.765625 | 3 | [] | no_license | <?php
class AuthModel{
/** Function prosesAuthadmin untuk cek data admin dari database admin
* @param $npm untuk data npm
* @param $password untuk data password
*/
public function prosesAuthAdmin($email,$password)
{
$sql = "SELECT * from u... | true |
494b99338403b3a896ed3dbdef10b77a86ab7f7e | PHP | emanijaz/Nuces-Circle | /nuces/model/addProfile_model.php | UTF-8 | 11,460 | 2.875 | 3 | [] | no_license | <?php
// defined('BASEPATH') OR exit('No direct script access allowed');
require_once("DataAccessHelper.php");
if(!isset($_SESSION))
{
session_start();
}
class addProfile_model
{
public static function add_experience($title, $company, $location, $from_year, $to_year, $industry, $headline, ... | true |
fb5467f4c9a328c5a8e5a2081672f3c7b9f69af7 | PHP | Muhammad-Adli-Azzam/Praktikum4SI_02_MuhammadAdliAzzam | /Praktikumsi2-main/mahasiswa.php | UTF-8 | 920 | 3.53125 | 4 | [
"MIT"
] | permissive | <?php
class Mahasiswa{
public $nama;
public $nim;
public $gender;
public function __construct($nama,$nim,$gender){
$this->nama = $nama;
$this->nim = $nim;
$this->gender = $gender;
}
public function nama_mahasiswa(){
return "nama mahasiswa".$this->na... | true |
23963f98515f8990f8d4c4018f79e4fbbba35d6c | PHP | yes-soft-de/yes-go | /backend/src/Entity/SkillEmployeeEntity.php | UTF-8 | 1,766 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SkillEmployeeEntityRepository")
*/
class SkillEmployeeEntity
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyTo... | true |
33a01936c11d001ac289d25343f18e70347048b4 | PHP | e4rthboy/pastebin-parody | /common/models/paste/Paste.php | UTF-8 | 3,366 | 2.6875 | 3 | [] | no_license | <?php
namespace common\models\paste;
use common\enums\PasteExpirationTypeEnum;
use common\enums\SyntaxTypeEnum;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
/**
* Паста.
*
* @property int $id
* @property string $name Название
* @property string $content Контент пасты
* @property string $token ... | true |
0300a555bb7c5261358f7345d8b5730b1fa116ff | PHP | shezartech-kmp/drsmith_project | /login1.php | UTF-8 | 1,451 | 2.6875 | 3 | [] | no_license | <?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: PUT, GET, POST");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
include "db.php";
// username and password sent from form
$var1="this is mentor";
$var2="this is m... | true |
9ae869194b7a5a5e08577176ee0fd9301f503feb | PHP | shortlist-digital/agreable-instant-articles-plugin | /app/Controllers/SaveController.php | UTF-8 | 1,076 | 2.515625 | 3 | [] | no_license | <?php
namespace AgreableInstantArticlesPlugin\Controllers;
use AgreableInstantArticlesPlugin\Services\Client;
use AgreableInstantArticlesPlugin\Services\ClientProvider;
use AgreableInstantArticlesPlugin\Services\Generator;
use Facebook\InstantArticles\Elements\InstantArticle;
use Facebook\InstantArticles\Transformer\... | true |
01f5349973e970612b6fdd24f6bfab3121d65e42 | PHP | TugbaKaya/is-basvurusu | /egitim.php | UTF-8 | 6,641 | 2.59375 | 3 | [] | no_license | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript" src="js/egitim.js" ></script>
</head>
<body>
<?php
$baglan = null;
function veri_baglantisi ()
{
global $baglan;
if ($... | true |
1753b223abf7b39b7940114bbf611acb378e37c3 | PHP | albapardos/proyecto | /app/php/login.php | UTF-8 | 4,248 | 2.8125 | 3 | [] | no_license | <?php
include_once"mysql.php";
session_start();
//Tengo que mirar la base de datos
$conexion= conectar();
//Miramos a ver si no existe
$nombre=$_POST['user'];
$pass=$_POST['pass'];
//Iniciamos la consulta preparada
$consulta... | true |
5544b4da75cb91da8412bd0ef6da079b574b98bc | PHP | huub-l/carlosforla.com | /carlosforla.com/web/app/plugins/wrd-up/wordUp.php | UTF-8 | 3,347 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Plugin Name: wordUp
* Plugin URI: https://tinypixel.io/
* Description: WordPress Service and Support
* Version: 1.0.0
* Author: Tiny Pixel Collective
* Author URI: https://tinypixel.io/
* License: MIT License
* License URI: http://opensource.org/licenses/MIT
*
* PHP... | true |
1b1757f881dcf89477c5b5d114ce2a3c4f4454ca | PHP | BackupTheBerlios/comacms-svn | /trunk/ComaCMS/classes/account.php | UTF-8 | 11,573 | 2.78125 | 3 | [] | no_license | <?php
/**
* @package ComaCMS
* @copyright (C) 2005-2007 The ComaCMS-Team
*/
#----------------------------------------------------------------------
# file : user.php
# created : 2005-09-03
# copyright : (C) 2005-2007 The ComaCMS-Team
# email : coma... | true |
6d2cc5f25517e1bd75124263057ead03aa4abf7e | PHP | Theys96/Krant | /www/classes/Controller/Page/LoggedIn/FeedbackList.class.php | UTF-8 | 638 | 2.546875 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
namespace Controller\Page\LoggedIn;
use Controller\Page\LoggedIn;
use Model\Category;
use Model\Log;
use Model\User;
use Util\Singleton\ErrorHandler;
use Util\Singleton\Session;
use Util\ViewRenderer;
/**
* Feedback overzicht pagina.
*/
class FeedbackList extends LoggedIn
{
/**
* @return string
... | true |
201cf69e50a468ed2c873b0c5654658411bab36d | PHP | pgroenbaek/sdu-sb6-it | /Gallery/Controller/LoginController.php | UTF-8 | 1,482 | 2.734375 | 3 | [] | no_license | <?php
namespace Gallery\Controller;
use Gallery\Model\UserDao;
class LoginController
{
private $userDao = null;
public function __construct(UserDao $userDao)
{
$this->userDao = $userDao;
}
public function showLogin()
{
$title = 'Login';
require VIEW_DIR . '/pages/lo... | true |
6909309e322d7c41d82fa7fbb540fec8c854693d | PHP | thecodingmachine/web.development.quizz | /src/Model/Entities/MyFirstObject.php | UTF-8 | 561 | 3.03125 | 3 | [] | no_license | <?php
namespace WebDevelopmentQuizz\Model\Entities;
/**
* Created by PhpStorm.
* User: Xavier
* Date: 11/08/2016
* Time: 17:08
*/
class MyFirstObject
{
/**
* @var string
*/
private $name;
public function __construct(string $name)
{
$this->name = $name;
}
/**
*... | true |
ab92f17bb9305f26a86a5f2c649ee5b901f034ac | PHP | manojkattikulam/project05-OpenClassroom | /application/models/Admins_product_model.php | UTF-8 | 2,140 | 2.546875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admins_product_model extends CI_Model {
// ADD PRODUCTS TO DATABASE
public function addProducts($data)
{
return $this->db->insert('products', $data);
}
// CHECK IF PRODUCT EXIST IN DATABASE
public function checkProductExi... | true |
3bffa55c3e27704679b363ebd128611e8b9e214a | PHP | FernandoIsco/myBlog | /app/api/model/BaseModel.php | UTF-8 | 8,705 | 2.765625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/2/24
* Time: 17:57
*/
namespace app\api\model;
use Emilia\http\Request;
use Emilia\mvc\Model;
class BaseModel extends Model
{
const SEARCH_LIMIT = 10;
const SEARCH_PAGE = 1;
protected $request;
protecte... | true |
19d72367aa228f5f768327ba2801c56e53119f97 | PHP | jou/ymc-components | /Crawler/src/robots_txt.php | UTF-8 | 4,468 | 3.234375 | 3 | [] | no_license | <?php
/**
* Class to parse a robots.txt file.
*
* @copyright 2009 Young Media Concepts GmbH. All rights reserved.
* @author Thomas Koch <thomas.koch@ymc.ch>
*
* @TODO parse the following keywords:
* crawl-delay
* request-rate
* visit-time
* host
*
* <sitemap_location>/sitemap.asp</sitemap_location>
... | true |