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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
da747f0e0ae3712beb49dca3eea0930d65f6f317 | PHP | janisbiz/heredoc | /tests/Unit/HeredocTest.php | UTF-8 | 943 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Janisbiz\Heredoc\Tests\Unit;
use Janisbiz\Heredoc\HeredocTrait;
use PHPUnit\Framework\TestCase;
class HeredocTest extends TestCase
{
use HeredocTrait;
/**
* @dataProvider heredocDataProvider
*
* @param int|string|null|float|double $value
* @param string $expected
*/
... | true |
424dfb993afa1bea893713da2d08c3f72a6e4e74 | PHP | Inquizarus/phroch | /tests/unit/Test/Factory/AcmeFactoryTest.php | UTF-8 | 3,690 | 2.515625 | 3 | [] | no_license | <?php
namespace Botty\Test\Factory;
use Botty\Factory\AcmeFactory;
use Botty\Input\InputDeviceInterface;
use Botty\Logger;
use Botty\Robot\Component\UplinkComponentInterface;
use Botty\Robot\RobotInterface;
use Botty\SatelliteInterface;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
cla... | true |
96f0ceff17e7c9c3bb9f16416e4c25221990a23c | PHP | EugeneBilenko/steam_skins_marketplace | /database/migrations/2016_05_03_082142_create_user_referrals.php | UTF-8 | 1,092 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserReferrals extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('user_referrals', function (Blueprint $table) {
... | true |
7a912c6777b082546efddfa829abbabaebcc0fe9 | PHP | smoothnoodle/test | /big4/test_if.php | UTF-8 | 243 | 3.21875 | 3 | [] | no_license | <?php
//$a=5;
//$b=4;
test_if(5,6);//I think is a fail
function test_if($a,$b){
//code in the dark
if($a>=$b){
//echo $a." a is bigger than b ".$b;
echo "$a a is bigger than b $b";
}else{
echo "b=$b is bigger than a=$a";
}
}
?> | true |
484e7115e96c52fed0d8d4d48ce7fd4c00f32f80 | PHP | Collinsnyamao/ticketeer | /admin/php/transactionsSummary.php | UTF-8 | 939 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
$servername = "localhost";
$username = "root3";
$password = "123";
$dbname = "evento";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "select * from Transactions;... | true |
b0cb68f113b6428f761f57f6f69353679beb74f7 | PHP | lyy5401/SOAsysterm | /Application/Common/Common/function.php | UTF-8 | 13,385 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* 获取所有模块Service
* @param string $name 指定Service名
* @return ServiceList
*/
function getAllService($name,$method,$vars=array()){
if(empty($name))return null;
$apiPath = APP_PATH.'*/Service/'.$name.'Service.class.php';
$apiList = glob($apiPath);
if(empty($apiList)){
return;
}
... | true |
5c410bdebb1c01462c5ca996f4a03d0aa704e9cd | PHP | zohac/Zohac-CMS | /src/DependencyInjection/Manager/DataBaseConnectionInterface.php | UTF-8 | 549 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\DependencyInjection\Manager;
use Exception;
interface DataBaseConnectionInterface
{
/**
* @param string $query
*
* @return $this
*/
public function addQuery(string $query): self;
/**
* @param string $parameter
* @param $value
* @param $option
*... | true |
efd68e655d66838a6273585630d5af8b727b42cf | PHP | peppe1991/prova | /4-Dati_persistenti_2.php | UTF-8 | 503 | 2.65625 | 3 | [] | no_license | <html>
<head>
<title>Il tuo compenso</title>
</head>
<body>
<?php
print("<h2>Compenso del signor $_REQUEST[Nome] $_REQUEST[Cognome]</h2>\n");
print("<h3>Giorni lavorati: $_REQUEST[GiorniLavorati]</h3>\n");
print("<h3>Costo Giornaliero: $_REQUEST[CostoGiornaliero] euro</... | true |
944e9f6ac0621aaa61e9f0938e1cfc66185cca02 | PHP | BlondelSeumo/Powerful-Classified-Ads-Web-Application | /app/Observers/Traits/Setting/SmsTrait.php | UTF-8 | 5,939 | 2.53125 | 3 | [] | no_license | <?php
/**
* LaraClassified - Classified Ads Web Application
* Copyright (c) BedigitCom. All Rights Reserved
*
* Website: https://bedigit.com
*
* LICENSE
* -------
* This software is furnished under a license and may be used and copied
* only in accordance with the terms of such license and with the inclusion
... | true |
22fa0ffca48b91c8ab9d18242ee2809020271dff | PHP | Activisme-be/Armoede-inventaris | /app/Models/Note.php | UTF-8 | 915 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use App\Models\Relations\Creatorable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Class Note
*
* @package App\Models
*/
class Note extends Model
{
use Creatorable;
/**
* Guarded fields for the internal mass-assignme... | true |
1b0143e93a79c566ddd3d155277c5f6630b389df | PHP | smart--petea/GraphQL-Tutorial | /src/Document/Author.php | UTF-8 | 883 | 2.875 | 3 | [] | no_license | <?php
namespace App\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\Document
*/
class Author
{
/**
* @MongoDB\Id
*/
private $id;
public function getId()
{
return $this->id;
}
/**
* @MongoDB\Field(type="string")
*/
private $nam... | true |
26fd8756e9a9f5963d7b856515206a0e6512459c | PHP | benjaminbrtrd/PPE | /callback/register.php | UTF-8 | 1,765 | 2.9375 | 3 | [] | no_license | <?php
// Je vérifie que toutes les infos du formulaire sont bien là.
if (!empty($_POST['prenom']) && !empty($_POST['nom']) && !empty($_POST['login']) && !empty($_POST['password']) && !empty($_POST['password2']) && !empty($_POST['email'])) {
// Check si le mot de passe et la confirmation sont pareils.
if ($_POS... | true |
4b8bd38873f523d989a5cdc9fbcdab4cdc3a32b1 | PHP | InventPartners/inventinvoice | /shared/model/upload.class.php | UTF-8 | 1,518 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
/* Upload Class
-------------------------
Manages uploads to the system
*/
Class InvUpload {
var $tmp_file;
var $target_filename;
var $file_system_path;
var $file_web_path;
public function __construct(){
}
public function processNewUpload($input_fieldname , $destination_dir , $destination_f... | true |
84e6fa3fe1e3dcc05fd346588e337adb1979d669 | PHP | conpago/conpago-console | /src/Conpago/Console/Presentation/ConsolePresenter.php | UTF-8 | 272 | 2.796875 | 3 | [] | no_license | <?php
namespace Conpago\Console\Presentation;
use Conpago\Console\Contract\Presentation\IConsolePresenter;
class ConsolePresenter implements IConsolePresenter
{
public function write(string $string): void
{
echo $string . PHP_EOL;
}
}
| true |
7f070e1231f2009e1b5b3a21b7970d77e0b6ae40 | PHP | microsoftgraph/msgraph-beta-sdk-php | /src/Generated/Models/VirtualEventPresenter.php | UTF-8 | 4,418 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
namespace Microsoft\Graph\Beta\Generated\Models;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
class VirtualEventPresenter extends Entity implements Parsable
{
/**
... | true |
8a9b023386354988643814a68d0da09676eb32f3 | PHP | QualiRetraite/TeamleaderApiClient | /src/Repository/CreditNoteRepository.php | UTF-8 | 1,695 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace QR\TeamleaderApiClient\Repository;
use QR\TeamleaderApiClient\Model\Aggregate\DownloadedCreditNote;
use QR\TeamleaderApiClient\Model\CreditNote\CreditNote;
use QR\TeamleaderApiClient\Model\CreditNote\CreditNoteListView;
use QR\TeamleaderApiClient\Request\Invoicing\CreditNotes... | true |
0b9a37ccb4556208b8c8aea3ac73a7aba6d6bb75 | PHP | tsh-code/football-live-commentaries-platform-cqrs | /src/Entity/Comment.php | UTF-8 | 1,518 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="CommentRepository")
*/
class Comment
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="FootballMatch")
... | true |
cc0dea6fbdb7206348c1ac069e66679e63349b89 | PHP | estebeskam/estebes | /save_user.php | UTF-8 | 954 | 2.703125 | 3 | [] | no_license | <?php
require_once("bd.php");
$db = new mysqli($servername, $username, $password, $name);
if ($db->connect_error) {
die("Connection failed: " . $db->connect_error);
}
$login = filterInput($_POST['login']);
$password = filterInput($_POST['password']);
$password_2 = filterInput($_POST['password_2']);... | true |
40a6ab8222826e816c543f496169a1980150219b | PHP | H-hussainHub/Web-Development | /Line_Scatter.php | UTF-8 | 2,327 | 3.265625 | 3 | [] | no_license | <?php
//A scatter chart to show a years worth of data (averaged by month) from a
//specific station for Carbon Monoxide (NO) at a certain time of day - say 08.00 hours.
@date_default_timezone_set("GMT");
header('Content-Type: application/json');
ini_set('memory_limit', '512M');
ini_set('max_execution_time', '300');
in... | true |
212d6bc34efc6ce131805f7e40a24c429c01000b | PHP | anouard24/problem-solving | /codeforces/gyms_2018/twins.php | UTF-8 | 382 | 3.234375 | 3 | [
"MIT"
] | permissive | <?php
// problem name: Twins
// date: 21/01/2018
fscanf(STDIN,"%d\n",$len);
$input = fgets(STDIN);
if ($len < 2) {
echo "1";
} else {
$n=explode(" ",$input);
for($i=0;$i<$len;$i++) $x[$i]=intval($n[$i]);
$moy=array_sum($x)/2;
rsort($x);$sum=0;
for($i=0;$i<$len;$i++){
... | true |
7ada7e23a4d994d599c60056d4294c90f7e1cb25 | PHP | ikr4185/nijiru-system | /application/models/StorageModel.php | UTF-8 | 1,688 | 2.96875 | 3 | [] | no_license | <?php
namespace Models;
use Models\Commons\AbstractModel;
class StorageModel extends AbstractModel
{
/**
* ファイル情報の保存
* @param $file_name
* @param $file_path
* @param $user_id
* @param $credit
* @param $size
* @return bool
*/
public function saveFileInfo( $file_name, $file_path, $user_id, $credit, $s... | true |
083452ebc20cafa986a40a4fa58f9145da46985b | PHP | alifahfathonah/printingpress | /tests/unit/Model/EditorTest.php | UTF-8 | 1,747 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
use App\Model\Editor;
use PHPUnit\Framework\TestCase;
class EditorTest extends TestCase
{
/** @var \App\Model\Editor $editor */
protected $editor;
/** @before */
public function setup(): void
{
$this->editor = new Editor('fname', 'lname', 'bole 04', '+251911223344', 'emp@ourmail.com');
}
/** @after *... | true |
54fa765449bce49168464923b88f832364505f54 | PHP | halisogluiskender/hepsiburada-botu | /class.hepsimagaza.php | UTF-8 | 13,269 | 2.71875 | 3 | [] | no_license | <?php
/**
* Class HepsiBurada
* @author İskender Halisoğlu
* @blog http://www.iskenderhalisoglu.com
* @mail halisogluiskender@gmail.com
* @date 17.2.2020
*/
class HepsiBurada
{
static $data = array();
/**
* Tüm Mağazaları Listelemek İçin Kullanılır
*
* @param null $filter
* @return ... | true |
76e2e13f848c9829f842bda98830fb1da4366760 | PHP | Awsme/TM-RU | /marathon14/include/Moto/Marafon.php | UTF-8 | 11,429 | 2.6875 | 3 | [] | no_license | <?php
class Moto_Marafon
{
protected $prefix;
protected $table = 'marafon';
public function __construct()
{
$this->prefix = $prefix = Database::instance()->table_prefix();;
}
/**
* Route the request
* @return bool
*/
public function route()
{
try
{
if (preg_match('#/marafon/(\w+)/#', $_SERVE... | true |
57edbe9db822d016d91936e1ea3d879e30a2db5f | PHP | vfelinis/job | /server/session.php | UTF-8 | 304 | 2.546875 | 3 | [] | no_license | <?php
session_start();
if(isset($_SESSION['logged_user'])){
$user = ['id' => $_SESSION['logged_user']['id'],
'login' => $_SESSION['logged_user']['login'],
'zone' => $_SESSION['logged_user']['zone'],
'role' => $_SESSION['logged_user']['role']];
echo json_encode($user);
}
else{
echo '{}';
} | true |
33289b2f843453dd4282662c8dbd3d8aa962bdcb | PHP | padagoal/isppanel | /models/Userprofile.php | UTF-8 | 821 | 2.53125 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "userprofile".
*
* @property string $profile
* @property bool $internal
*/
class Userprofile extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'userprofile';... | true |
eddf75486c7c9f1c47da4479ef2bf4b32b759965 | PHP | TheKuruoshii/heptathlon | /index.php | UTF-8 | 917 | 2.796875 | 3 | [] | no_license | <?php
require_once 'model/database.php';
$liste_produits = getAllProduits(3);
require_once 'layout/header.php';
?>
<h1>Bienvenue sur le site internet d'Heptathlon</h1>
<section>
<?php foreach ($liste_produits as $produit) : ?>
<article>
<h2><?php echo $produit['nom']; ?></h2>
<im... | true |
322b17af821b74f2c702e625a7af145101bcb72e | PHP | markosoft2000/GeoCoder | /Factory.php | UTF-8 | 650 | 2.953125 | 3 | [] | no_license | <?php
/**
* Class Factory
*
* Provides classes
*/
class Factory {
const YANDEX_GEO_API = 'yandex_geo_api';
/**
* Returns object of a given class name
* @param $class - class name
* @param $params - init params
* @return \Yandex\Geo\Api
* @throws Exception
*/
public static... | true |
569364330029cc6167851004795c148f90315e22 | PHP | younes1616/projet_web2 | /dev_web_2/classe/article2.php | UTF-8 | 5,134 | 2.671875 | 3 | [] | no_license | <?php
class Article{
public function inserer($pdo,$titre,$text,$ids)
{
$query = 'insert into article set titre=? , text=? ';
$pdo->prepare($query)->execute([$titre,$text]);
$article_id = $pdo->lastInsertId();
$article_photo = new Article_photo();
$... | true |
f90aba14df2f436155a69babcb9d2ee443a78145 | PHP | hirakumorishima02/invoice_and_todo | /app/Http/Requests/ClientRequest.php | UTF-8 | 1,243 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ClientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the... | true |
d0c940589c8ac921dc4edb39c87e1dc559038fe1 | PHP | brayanbasallo/inventory | /model/Admin.php | UTF-8 | 2,930 | 2.96875 | 3 | [] | no_license | <?php
class Admin
{
private $host;
private $user;
private $password;
private $data_base;
function __construct()
{
if (session_status() === PHP_SESSION_ACTIVE) {
$this->verificar_login();
}
/* include_once('../config.php');
$this->host = $host;
... | true |
5ccb6c5ae19d0c3e89a93c43955e25a3bb908f2a | PHP | peaceman/bugfree-archer | /lib/EDM/ShopOrder/Exception/InvalidPaymentState.php | UTF-8 | 281 | 2.59375 | 3 | [] | no_license | <?php
namespace EDM\ShopOrder\Exception;
class InvalidPaymentState extends \LogicException
{
/**
* @var \ShopOrder
*/
public $shopOrder;
/**
* @param \ShopOrder $shopOrder
*/
public function __construct(\ShopOrder $shopOrder)
{
$this->shopOrder = $shopOrder;
}
}
| true |
8594da864405d5f4a72a399e525ae20f48074fd1 | PHP | Telous/automotora | /src/Entity/Cliente.php | UTF-8 | 3,132 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\ClienteRepository")
*/
class Cliente
{
/**
* @O... | true |
81b7df47ef241f9a338591fc18279ed382302c6d | PHP | josephjlee/crud_native- | /insert.php | UTF-8 | 865 | 2.59375 | 3 | [] | no_license | <?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Simple CRUD - Insert</title>
</head>
<body>
<h2>Insert Data</h2>
<form action="insertProses.php" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>Nama</td>
<td>:</td>
<td><input type="text" name="nama"></td>
</tr... | true |
ab693f3bda07c19899efe460388c32762d04fbd5 | PHP | JeffreyZhu983/qii | /src/View/Dependence.php | UTF-8 | 2,276 | 2.984375 | 3 | [] | no_license | <?php
/**
* 模板里边添加依赖文件
*
*/
namespace Qii\View;
class Dependence
{
public static $dependence = array();
public static $blockCss = array();
public static $blockHTML = array();
public static $blockJS = array();
public static $assignBlocks = array();
public function __construct(){
}
public static function g... | true |
9c4c22ebd877b503c63a627f593ea80f614e3bec | PHP | encreinformatique/expertsender-api-php | /src/ExpertSenderClient.php | UTF-8 | 3,215 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace ExpertSenderFr\ExpertSenderApi;
use ExpertSenderFr\ExpertSenderApi\Model\Template;
use ExpertSenderFr\ExpertSenderApi\Services\Lists;
use ExpertSenderFr\ExpertSenderApi\Services\Messages;
use ExpertSenderFr\ExpertSenderApi\Services\Segmentations;
use ExpertSenderFr\ExpertSenderApi\Services\Server;
use... | true |
51649f5ff32d7de3aa6d37528e0b6c4a9158dcd5 | PHP | lkowol/chessablebanking | /src/Application/Branch/BranchWithLocationProcessor.php | UTF-8 | 2,847 | 2.546875 | 3 | [] | no_license | <?php
namespace ChessableBanking\Application\Branch;
use ChessableBanking\Application\Branch\Model\BranchWithLocation;
use ChessableBanking\Application\Security\TransactionInsurerInterface;
use ChessableBanking\Domain\Branch\BranchService;
use ChessableBanking\Domain\Branch\Exception\BranchValidationException;
use C... | true |
c8a56f173266741d53181a0c57ba223c3d8fc932 | PHP | jmarcos/logicamente | /cod-v20071/modules/controller.php | UTF-8 | 3,167 | 2.578125 | 3 | [] | no_license | <?php
session_start();
$_SESSION['con'];
require_once("Logicamente.class.php");
//display modules
if (isset($_POST['module'])){
switch ($_POST['module']){
case "menuGenerator" : require_once("../system/html/generator.php"); break;
case "menuSettings" : require_once("../system/html/settings.php"); break;... | true |
25e529560e50831e51980881f936f00de9a52d6f | PHP | gm8300130/newpay_middleware_lottery | /protal/App/Controllers/Auth/PasswordController.php | UTF-8 | 733 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Controllers\Auth;
use App\Controllers\BaseController;
use Respect\Validation\Validator as v;
class PasswordController extends BaseController
{
public function getChangePassword() {
return $this->render('auth.password.change');
}
public function postChangePassword() {
$validation = $this... | true |
de049312ec8883e1bc5ce61e18eec635d79cc369 | PHP | duytc/ur-api | /src/UR/Service/DataSource/JsonNewFormat.php | UTF-8 | 2,681 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
namespace UR\Service\DataSource;
use UR\Behaviors\ParserUtilTrait;
class JsonNewFormat extends CommonDataSourceFile implements DataSourceInterface
{
use ParserUtilTrait;
protected $rows = [];
protected $headers = [];
protected $dataRow = 1;
/**
* JsonNewFormat constructor.
* @par... | true |
39dfc3d5ac2d5e54b2d80659fb5ee764cf19400a | PHP | codebulls/webbook | /app/controllers/TicketController.php | UTF-8 | 726 | 2.59375 | 3 | [] | no_license | <?php
class TicketController extends ControllerBase
{
public function indexAction()
{
}
public function createAction($wid)
{
if(isset($_POST['action']) && $_POST['action'] == 'tcreate' && !empty($wid) && is_numeric($wid))
{
if(!empty($_POST['ttitle']) && !empty($_POST['tmsg']))
{
... | true |
92d15b1c57e3df7b5fb62db5fa05532f4fe9390d | PHP | fgoldoni/laravel-api | /Modules/Categories/Http/Controllers/Api/CategoriesController.php | UTF-8 | 3,021 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Modules\Categories\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Modules\Categories\Entities\Category;
use Modules\Categories\Http\Requests\StoreCategoryRequest;
use Modules\Categories\Http\Requests\UpdateCategoryRequest;
use Modules\Categories\Services\CategoriesService;
use Modules\... | true |
2eda1d24dfac2cd6910c6e0aff718d1eb153dd51 | PHP | GenesisTeodoro/Salon-Management-System | /staffsProcess.php | UTF-8 | 1,927 | 2.796875 | 3 | [] | no_license | <?php
session_start();
$mysqli = new mysqli('localhost', 'root', '', 'salon') or die(mysqli_error($mysqli));
$id = 0;
$staffName = '';
$age = '';
$gender = '';
$phone = '';
$email = '';
$update = false;
if (isset($_POST['save'])){
$staffName = $_POST['staffName'];
$age = $_POST['age'];
... | true |
41ba6b964ea4c5f8ce27ac6c93f3a9514bb9d8e8 | PHP | aedart/athenaeum | /tests/Integration/Http/Clients/C1_QueryTest.php | UTF-8 | 4,049 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace Aedart\Tests\Integration\Http\Clients;
use Aedart\Contracts\Http\Clients\Exceptions\ProfileNotFoundException;
use Aedart\Testing\Helpers\ConsoleDebugger;
use Aedart\Tests\TestCases\Http\HttpClientsTestCase;
use GuzzleHttp\Psr7\Query;
use Psr\Http\Message\ResponseInterface;
/**
* C1_QueryTest
*
* @... | true |
1fd8cae6ead59bcef84c94364a88576806439971 | PHP | ericknathan/rti-solutions | /fullbank/calculateWage.php | UTF-8 | 1,012 | 2.78125 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fullbank</title>
<link rel="stylesheet" href="styles.css" />
</head>
<?php
if(isset($_POST['name']) && isset... | true |
460c06f2586044aff376ae3175ea2c9158321996 | PHP | Nacho-thrasher/market-prog | /adm-prods/marcas.php | UTF-8 | 1,021 | 2.6875 | 3 | [] | no_license | <?php
include_once '../conexion.php';
class Marca
{
private $id_marca;
private $nombre_marca;
private $logo_marca;
public function __construct()
{
}
public function marcas(){
$db = new Conexion();
$sql = "Select * from marca";
$res= $db->query($sql);
$i=0... | true |
7b902fcd97636cae639d66e5c3e3c418f38a123f | PHP | Pra3t0r5/entornos2019 | /practica7/ejercicio6/carga.php | UTF-8 | 1,005 | 2.9375 | 3 | [] | no_license | <?php
session_start();
if (isset($_POST['login'])) {
$mail = $_POST['mail'];
$host = "localhost";
$database = "ejercicio6";
$username = "root";
$pass = "";
$conn = mysqli_connect($host, $username, $pass, $database) or die("Connect failed: %s\n" . $conn->error);
var_dump($conn);
echo ("<b... | true |
f3e5b92189768c51969838bfcfaf58c2dba6c5f0 | PHP | sfhardman/moodle_plugin_courseworkload | /classes/course.php | UTF-8 | 1,689 | 2.609375 | 3 | [] | no_license | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | true |
85934a65dc9aec1dad573b3ea03e11fa0bf4ed8b | PHP | junta1/app-82b0c694 | /api/appmax/Repositories/AbstractRepository.php | UTF-8 | 1,087 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace AppMax\Repositories;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
abstract class AbstractRepository
{
protected $model;
public function __construct(Model $model)
{
$this->model = $model;
}
public function all($filter = [])
{
retu... | true |
d9783571975f3f40a8d3b55954c7d192a374804b | PHP | Existrace/MVC_php_Blog_Engine | /core/Model.php | UTF-8 | 1,102 | 3.125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/*
Cette classe sert à créer une instance de PDO
Pour être appellée dans les contrôleurs
pour avoir accès à la base de données
*/
use ProjetBlog\core\Config;
class Model
{
public static PDO $myBd;
/* Attributs propres à la connexion de la base de données
Utilisation des constantes de co... | true |
e5f065066557ee296f9499f3769bf9d20f95ba67 | PHP | goldenpathsolutions/golden-path-starter-theme | /gps-starter/inc/layouts/components/class-component.php | UTF-8 | 547 | 2.78125 | 3 | [] | no_license | <?php
namespace GPS\Layouts\Components;
/**
* Parent class for layout components
*
* @author Patrick Jackson <pjackson@goldenpathsolutions.com>
*/
Class Component extends \GPS\Layouts\Layout {
protected static $component_count;
protected function __construct() {
parent::__construct();
self::$component_cou... | true |
505d49e338f555451e2ae075b075df15b758a3cb | PHP | JordanAdams/Presenter | /src/JordanAdams/Presenter/Presenter.php | UTF-8 | 841 | 3.09375 | 3 | [
"MIT"
] | permissive | <?php namespace JordanAdams\Presenter;
class Presenter
{
protected $model;
/**
* @param $model
*/
public function __construct($model)
{
$this->model = $model;
}
/**
* Checks if model has public property
*
* @param $property
* @return bool
*/
priv... | true |
34e5d220f11a0ce23606f5d26186e3253d28840c | PHP | kx1000/kimai2 | /src/Command/CreateUserCommand.php | UTF-8 | 5,060 | 2.6875 | 3 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | <?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Command;
use App\Entity\User;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Console\Comma... | true |
2e719bf9d1a044a00b25d3e346f429f8b009db6d | PHP | spernot/as-evan | /archi/objetsMetiers/News.php | ISO-8859-1 | 6,147 | 2.9375 | 3 | [] | no_license | <?php
require_once 'archi/objetsMetiers/ObjetRacine.php';
class Question extends ObjetRacine {
public $question;
public $reponse;
public $reponseImage;
public function Question() {
// gnration d'un identifiant
parent::ObjetRacine();
}
// getter et setter kivonbien
public function getQue... | true |
2981d34370d7217499b53239d8c1ce7966000b17 | PHP | flores-catherine/cs313-php | /web/project1/queries/queries.php | UTF-8 | 5,328 | 2.6875 | 3 | [] | no_license | <?php
function getMovies(){
$db = get_db();
$sql = 'SELECT DISTINCT movies.movieTitle, movies.movieID FROM movies INNER JOIN quotes ON movies.movieID=quotes.movieID ORDER BY movieTitle ASC';
$stmt = $db->prepare($sql);
$stmt->execute();
$movieTitles = $stmt->fetchAll(PDO::FETCH_ASSOC);
$stmt->c... | true |
a4c91621d48744826e4e349f57816e27cfb8253d | PHP | jleiva14/prueba | /city_edit.php | UTF-8 | 2,163 | 2.875 | 3 | [] | no_license | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Edit City</title>
</head... | true |
77af8785fec7354132fed1f6d42612c3e571f91c | PHP | vipin733/dmszar | /database/migrations/2017_04_16_004604_create_exam_marks_table.php | UTF-8 | 1,258 | 2.5625 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExamMarksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exam_marks', ... | true |
0c5be731dad43613c7560d87f80cf0db264728d3 | PHP | chadrbanks/Zpp | /htdocs/zpp/ZppControllerImplementation.php | UTF-8 | 666 | 2.78125 | 3 | [] | no_license | <?php
/**
* ZppControllerImplementation
*
* Project specific implementation of a ZppController, specifically the ZppControllerHTTP object.
*
* @author Chad R. Banks <chadrbanks@yahoo.com>
* @copyright MIT
* @package zpp
* @version 2019.12.10
*/
class ZppControllerImplementation extends ZppContr... | true |
cf785076747b966943ead3552cb1c4ee90c8917f | PHP | andreiripanu/emagia-game | /src/Setting/SkillSetting.php | UTF-8 | 411 | 2.671875 | 3 | [] | no_license | <?php
namespace Arcsym\Emagia\Setting;
use Symfony\Component\Yaml\Yaml;
class SkillSetting
{
/**
* @var array|mixed
*/
private array $skills = [];
public function __construct()
{
$this->skills = Yaml::parseFile(dirname(__DIR__, 2) . '/config/skills.yaml');
}
/**
* @return array
*/
pu... | true |
e4d1215d7b3761a931f277150f7c20239edbf7f3 | PHP | emedia1/oxygen-laravel | /src/Entities/Traits/OxygenUserTrait.php | UTF-8 | 4,881 | 2.609375 | 3 | [] | no_license | <?php
namespace EMedia\Oxygen\Entities\Traits;
use App\Entities\Auth\Ability;
use App\Entities\Auth\Role;
use EMedia\Formation\Entities\GeneratesFields;
use EMedia\QuickData\Entities\Search\SearchableTrait;
use Illuminate\Database\Eloquent\SoftDeletes;
use Silber\Bouncer\Database\HasRolesAndAbilities;
use Silber\Bou... | true |
13274cc95a3a384728634680236c85fb0a84dc1d | PHP | Barrkevin/GithubKevin | /Athle/resultats.php | UTF-8 | 3,530 | 2.671875 | 3 | [] | no_license | <?php
session_start();
require "fonction.php";
/*Pour aller chercher quelque chose de précis :*/
$sql = "select resultats.id as rid,resultats.name as rname,resultats.description,categories.name as cname,image,categories.id from resultats
inner join categories on resultats.category_id = categories.id;";
/*On sélection... | true |
ab2c098688bd2f696439e09ad21bd2c5d23ae287 | PHP | eos-13/YaCMS | /main/model/annuaire.php | UTF-8 | 2,529 | 2.640625 | 3 | [
"Artistic-2.0"
] | permissive | <?php
class model_annuaire extends common
{
public $id;
public $user_list;
public function run()
{
//var_dump($current_user->has_right('admin'));
global $conf,$current_user;
$requete = "SELECT id
FROM user
WHERE 1=1 ";
if (!($cu... | true |
153707094f1d8a93464892ed6d72a8ed921974f4 | PHP | mbsimmon/cis355as05 | /login.php | UTF-8 | 2,000 | 2.78125 | 3 | [] | no_license | <?php
session_start();
require '../database/database.php';
if ( !empty($_POST)) { //$_POST filled
$username = $_POST['username'];
$password = $_POST['password'];
$passwordhash = MD5($password);
$pdo = Database::connect();
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sql = "S... | true |
d8943208211e948bbcda3fcad3289876a22dbce1 | PHP | antuone/doc | /shedule3/schedule.class.php | UTF-8 | 7,457 | 2.796875 | 3 | [] | no_license | <?php
/**
* Объект хранящий расписание
*/
class Schedule implements Iterator {
/**
* Массив комнат
* @var Room[]
*/
private $rooms;
/**
* Текущая неделя
* @var boolean
*/
private $currentWeek;
/**
* id клуба НЕ из 1С
* @var string
*/
private $clubId;
/**
* Конструктор
* @param boolean $c... | true |
ec12324b042cd10c963a9078b7a4a7b94c7dd131 | PHP | bakardi-861/GMSAppRepo | /grant-management-system-development/app/MiamiOH/Sample.php | UTF-8 | 122 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\MiamiOH;
class Sample
{
public function sayHi(): string
{
return "Hello!";
}
}
| true |
fb34d075ecf662b85edbec97b5e3c3b0968a7d5e | PHP | Limych/gedcomx-php | /src/Extensions/FamilySearch/Platform/Discussions/Comment.php | UTF-8 | 6,589 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
*
*
*
* Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>.
*
*/
namespace Gedcomx\Extensions\FamilySearch\Platform\Discussions;
use Gedcomx\Common\ResourceReference;
use Gedcomx\Extensions\FamilySearch\Rt\FamilySearchPlatformModelVisitor;
use Gedcomx\Links\HypermediaEnab... | true |
b6a8fa9ee92f4ce1afaea2bd4b8644dc1b930d63 | PHP | acmorrill/fotomatter | /models/server_setting.php | UTF-8 | 938 | 2.6875 | 3 | [] | no_license | <?php
class ServerSetting extends AppModel {
public $name = 'ServerSetting';
public $useDbConfig = 'server_global';
public $useTable = "server_settings";
public function getVal ($name, $default = false) {
$toSet = $this->find('first', array(
'conditions' => array('name' => $name),
'fields' => array('Serve... | true |
a4d18701be5c330ce7fff4c6675f3d63fb5dc177 | PHP | binusrbinsbinusrsbin/PHP | /pizza1/pizza/order_pizza.php | UTF-8 | 1,201 | 2.53125 | 3 | [] | no_license | <?php include '../view/header.php'; ?>
<main>
<h1> Order Pizza </h1>
<form action="index.php" method="post" id="pizza_form">
<input type="hidden" name="action" value="pizza">
<h2>Pizza Size:</h2>
<?php foreach($sizes as $size): ?>
<input type="radio" name="size" value="<?php echo $size['size']; ... | true |
570c74d438ce06755363d065459a474e7dd5050c | PHP | qurben/curl-object | /curl.php | UTF-8 | 2,085 | 3.1875 | 3 | [] | no_license | <?php
/**
* Basic cURL wrapper for PHP
* Copyright © 2013 Gerben Oolbekkink
*/
class CURL {
private $ch;
private $response;
private $gz = false;
public function __construct($url = null, $method = 'get', $postfields = false) {
$this->ch = curl_init();
$this->setOption(CURLOPT_RETURNTRANSFER,true);
... | true |
fc219c67f8664fbce94f9f6a717fdbade0d16709 | PHP | mzeleznj2/phpFOI | /WEB_DIP/zeleznjak_zadnje07112016/VratiStatistike.php | UTF-8 | 2,515 | 2.53125 | 3 | [] | no_license | <?php
include('session.php');
include('dbconnect.php');
if(isset($_SESSION['dnevnik'])){
unset($_SESSION['dnevnik']);
}
$kor=$_GET['pojam'];
$skr = $_SESSION['skriptastat'];
DBConnect();
$sqlstr = "select dn.idDnevnik, dn.datumVrijeme, dn.poruka, dn.skripta, kor.korIme from dnevnik dn, korisnik kor
where dn.idKoris... | true |
c40efb513c92c81599479fa624af897537be28da | PHP | ipspace/wiki | /ipSpace/tags.php | UTF-8 | 2,297 | 2.703125 | 3 | [] | no_license | <?php
# tags.php
#
# ipSpace tags extensions:
#
# - xh1 ... xh4: alternate header tags that prevent entries from being inserted into TOC
#
namespace ipSpace;
if( !defined( 'MEDIAWIKI' ) ) {
echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
die( -1 );
}
global $w... | true |
d6a04ef4f23c55a6b0391ce18eda6f63a390481b | PHP | Antony-jacques/movie_land | /src/view/newMovie.php | UTF-8 | 1,145 | 2.578125 | 3 | [] | no_license | <?php
include(__DIR__. "./header.php");
?>
<form action="?page=newMovie" method="post">
<div class="form-group">
<label for="name">Titre du film</label>
<input type="text" name="name" class="form-control" id="name" required>
</div>
<div class="form-group">
<label for="image">A... | true |
86279ef7b165ba973af2273d4e0a9091a41cd8ac | PHP | eltoredo/FaceTech | /Modele/m_modifier_projet.php | UTF-8 | 875 | 2.59375 | 3 | [] | no_license | <?php
function modele_modifier_projet($ID, $Membres, $Titre, $Niveau, $Type,
$Statut, $Description)
{
if (empty($Titre)) return 1;
include("../Autres/conf.php");
$req2 = $connexion -> query("
SELECT nom, chef, membre, statut, type, niveau, descr
FROM PROJETS
WHERE nom = '$Titre'"
);
$resultat2 = $req2 -... | true |
95673edbefc236dd358bb1ec96b10e7db9803ba6 | PHP | agusyogisubawa/Point-Of-Sale-PHP | /no_transaksi.php | UTF-8 | 243 | 2.890625 | 3 | [] | no_license | <?php
function kode_random3($lenght) {
$data = '12345';
$string = 'JU';
for ($i=0; $i < $lenght; $i++) {
$pos = rand(0, strlen($data)-1);
$string .= $data{$pos};
}
return $string;
}
$no_transaksi = kode_random3(5);
?> | true |
5b94f1f7266a820acfb446e1431b6d4421c2575e | PHP | petk/normalizator | /src/Finder/Finder.php | UTF-8 | 1,376 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Normalizator\Finder;
use ArrayIterator;
use Iterator;
use RecursiveCallbackFilterIterator;
use RecursiveIteratorIterator;
use function is_file;
/**
* The Finder utility to get files.
*/
class Finder
{
/**
* @return Iterator<string,File>
*/
public functio... | true |
9171b963f8a0d9610881e658b64bc919b128f05a | PHP | DonVit/cstmd | /common/DBTreeManager.php | UTF-8 | 6,902 | 2.6875 | 3 | [] | no_license | <?php
class DBTreeManager extends Object {
//Common basic fields
public $id;
public $parentid;
public $title;
public $description;
public $createdat;
public $createdby;
public $updatedat;
public $updatedby;
public $deleted;
//public $createdby;
//public $createddate;
... | true |
b359142ac6ae0f1419e80146c5581a2c4713f3eb | PHP | massive-scope/scope-backend | /src/AppBundle/Entity/Appointment.php | UTF-8 | 6,149 | 2.734375 | 3 | [] | no_license | <?php
namespace AppBundle\Entity;
/**
* Appointment
*/
class Appointment
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $title;
/**
* @var string
*/
private $description;
/**
* @var \DateTime
*/
private $startDate;
/**
... | true |
44f516ad63fa6d59580baee9d94fd1c15b0a9657 | PHP | Notwe/mvc | /local/app/Model/Container/ServiceContainer.php | UTF-8 | 1,214 | 2.84375 | 3 | [] | no_license | <?php
namespace app\Model\Container;
class ServiceContainer
{
protected $services = [];
protected $resolved_services = [];
public function __construct ($params){
$this->service_init($params);
}
public function get(string $name) {
if (array_key_exists($name, $this... | true |
da5415d4fee58ab2f6370bb76720702386080e7c | PHP | jacqueline-li/LionBud | /Login_page.php | UTF-8 | 2,098 | 2.84375 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome to RBC</title>
</head>
<body>
<form method="post">
<h1>RBC Personal banking system</h1>
<p>User ID:<input type="text" name="userid"/></p>
<p>User Password:<input type="password" name="password"/></p>
<input type="sub... | true |
21dd2268d70734f3f10484ba4bf9c2575eba929a | PHP | ChromeTemplar/nhlakes_unhm | /php/view/waterbody/_form.php | UTF-8 | 1,104 | 2.609375 | 3 | [] | no_license | <!--
This form will handle New/Edit Waterbody
This form will have the following inputs:
Name
Type
-->
<?php
if (isset($waterbody)) {
$type = $waterbody['waterType'];
} else
$type = '';
?>
<div id="waterbody-form">
<form <?php
if (!isset($waterbody))
echo "action='index.php?rt=waterbody/create... | true |
6b33b3e2d0ab5de3aaed93054cdd6d09fc44d019 | PHP | adriamt/thrust | /src/Actions/Action.php | UTF-8 | 1,313 | 2.78125 | 3 | [] | no_license | <?php
namespace BadChoice\Thrust\Actions;
use Illuminate\Support\Collection;
abstract class Action
{
public $needsConfirmation = true;
public $confirmationMessage = 'Are you sure?';
public $title = null;
public $icon = null;
public $main = false;
... | true |
6a2df671862bd7b5e6af63229b8e017ba6f02c4b | PHP | Rybov/Studia_Semestr_6 | /Podstawy_Aplikacji_Internetowych/LAB5/index1.php | UTF-8 | 1,027 | 2.8125 | 3 | [] | no_license | <?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<title>PHP</title>
<meta charset='UTF-8' />
</head>
<body>
<?
echo'<h1>Nasz system</h1>';
require('funkcje.php');
//echo "Przesłany login:",$_POST['username'],"<br>";
//echo "Przesłane hasło:",$_POST['password'],"<br>";
... | true |
4e4badad5898ba7eff5d8285dfce20ab90047d57 | PHP | foxdrow/Php-twitter | /Models/UsersModel.php | UTF-8 | 2,790 | 2.625 | 3 | [] | no_license | <?php
namespace App\Models;
class UsersModel extends Model
{
public function __construct()
{
}
public function registration($data)
{
return $this->registrationDB('
INSERT INTO
users (
nickname,
pas... | true |
0f4bacd27487fc9f68e467a7506da6d1ea479b81 | PHP | harrysun2006/pt_sunhy2 | /library/Better/Denounce/Poi.php | UTF-8 | 897 | 2.921875 | 3 | [] | no_license | <?php
/**
* 举报Poi
*
* @package Better.Denounce
* @author leip <leip@peptalk.cn>
*
*/
class Better_Denounce_Poi extends Better_Denounce_Base
{
protected static $instance = null;
protected static $reasons = array(
'incorrect' => '名字地点不符',
'closedown' => '关门',
'duplicated' => '重复',
'oth... | true |
9d93cd8ac4b4cdf19ce1a7c09ca3867cedc51eb9 | PHP | Gurpreet2001/M151_LB | /pages/Admin/funktionen/adminaenderung.php | UTF-8 | 3,198 | 3.125 | 3 | [] | no_license | <?php
include('../../../php/database.php'); //datenbank verbindung
echo "<h1>Artikel Ändern</h1>";
echo "<form method=\"post\">
<label for=\"altArtikelBezeichnung\">Alte Artikel Bezeichnung</label>
<input id=\"altArtikelBezeichnung\" type=\"text\" name=\"altArtikelBezeichnung\">
<br>
... | true |
4d32a74fededf46dbb57afaeae262ac5af6fddde | PHP | brezhitskiy42/instant-cryptocurrency-exchange-plugin | /includes/class-api.php | UTF-8 | 5,579 | 2.6875 | 3 | [] | no_license | <?php
namespace InstantCryptoExchange;
// If this file is called directly, abort
if ( ! defined( 'ABSPATH' ) ) {
die;
}
// Class for handling ShapeShift API
if ( ! class_exists('API') ) {
class API {
// Getting coins list
static public function getCoinsList() {
$coins_list_url = '... | true |
f308fc37c9d1ebf1c5e6a85adeaf9cba3b7a29ae | PHP | donsmoore/steel-ball-calculator | /classes/baseclass.php | UTF-8 | 706 | 2.71875 | 3 | [] | no_license | <?php
namespace Donsframe;
//========================================================================
class Baseclass {
// TODO: see if GetQs can work from here...
public $name = 'base';
public $o = null;
private $_page_render_start_time = null;
private $_page_render_finish_time = null;
public function Se... | true |
d9e84f71064883619a375686e5b3370757d09300 | PHP | chizeng/CS179-PA2 | /ajax/addComment.php | UTF-8 | 909 | 3.078125 | 3 | [] | no_license | <?php
/**
* addComment.php
* adds a comment to a book given the ID
*/
// get core functionalities
require_once('../core.php');
header('Content-Type: application/json');
// get data
$bookID = clean($_POST['bookID']);
$comment = clean($_POST['comment']);
... | true |
2d268edfa4e1b929001c94ee3e943ea40ba318de | PHP | coder-int21h/noses | /application/controllers/IndexController.php | UTF-8 | 1,269 | 2.609375 | 3 | [] | no_license | <?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->headTitle('Home');
$this->view->title = 'Zend_Form_Element_File Example';
$this->view->bodyCopy = "<p>Please fill out this form.</p>";
$form = new forms_UploadForm();
... | true |
e1ce28da84cda38c4a35ee6da8fae421f50aaf8c | PHP | ahossain3210/oop-php-tut | /polymorphism.php | UTF-8 | 559 | 3.390625 | 3 | [] | no_license | <!--Defination: when we start to extends classes and add functionality which wasn't the previously
and override the methods, this called as polymorphism.
Basically, the basis of inheritance and override the methods is called polymorphism.-->
<?php
class Student{
public $name='Anwar Hossain';
public $age='25';
... | true |
6b9e3a8cf95d92f1f54756d0db8d5791df684860 | PHP | albatronic/hermes2 | /entities/models/AlmacenesMapasEntity.class.php | UTF-8 | 3,606 | 2.640625 | 3 | [] | no_license | <?php
/**
* Mapas de Almacenes
*
* @author Sergio Perez <sergio.perez@albatronic.com>
* @copyright INFORMATICA ALBATRONIC SL
* @since 23.06.2012 12:54:36
*/
/**
* @orm:Entity(ErpAlmacenesMapas)
*/
class AlmacenesMapasEntity extends EntityComunes {
/**
* @orm:GeneratedValue
* @orm:Id
* @or... | true |
04b0a9e88ef9bb53e99176d873d713715eee4f08 | PHP | Shlomo-Tech-Tav/MindTouchImporter | /includes/functions.php | UTF-8 | 20,988 | 3.3125 | 3 | [] | no_license | <?php
/**
* Sort an array of arrays by a key of the nested array.
* @param array $array Array to sort.
* @param string $on Key to sort on
* @param constant $order SORT_ASC or SORT_DESC to control the sorting direction.
* @return array $array The sorted array.
*/
function array_sort($array, $on, $order=SORT_ASC) {... | true |
33bed054da3e4d0dfa4dfadf06233f5f2188b0d5 | PHP | minajm/FlexClub | /index_edit.php | UTF-8 | 6,434 | 2.6875 | 3 | [] | no_license | <?php
include('header.php');
include "admin_panel_check.php";
$action = null;
if (isset($_GET['new'])) {
$action = "new";
} else if ($_GET['id']) {
$action = "edit";
}
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$title = $_POST['title'];
$description = $_POST['description'];
$photo... | true |
8fa20f8e0de86d6d21c0ec5d71b80f5e811bac16 | PHP | Jinlim01/Foodictionary | /bin/index.php | UTF-8 | 1,818 | 2.625 | 3 | [] | no_license | <?php
session_start();
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>Login</title>
</hea... | true |
72773754d4be8d3fad7a455418bc727d06f41124 | PHP | leradin/operation_simulator | /database/migrations/2016_11_29_083637_create_computer_table.php | UTF-8 | 1,050 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateComputerTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('computers', function (Blueprint $table) {
... | true |
c51054661852ab41d5096970825e69809e7ae98f | PHP | aganhanif/webservice2 | /tampil_format_xml.php | UTF-8 | 777 | 2.765625 | 3 | [] | no_license | <?php
Header ('Content-type:text/xml');
//Koneksi ke database akademik
$connection = mysqli_connect("localhost","root","","akademik") or die ("Error".mysqli_error($connection));
$xml = new SimpleXMLElement('<xml/>');
//Menampilkan data database, dari tabel mahasiswa
$sql = "select * from mahasiswa";
$result ... | true |
29cdb53c1d45643723456da063004d44b11d400c | PHP | bajkhe/humanity-test | /Services/VacationService.php | UTF-8 | 2,043 | 2.90625 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Entity\User;
use App\Entity\Vacation;
use App\Entity\VacationRequest;
use App\Exceptions\VacationRequestNotApprovedException;
use App\Repository\Interfaces\VacationRepositoryInterface;
use App\Services\Interfaces\VacationServiceInterface;
class VacationService implements Vacatio... | true |
02cfa725c0ed3a2c52534da13c2bb9f65f31e27a | PHP | saifaskri/BackendEcommerce_Htaccess | /Admin/includes/Classes/class_sql.php | UTF-8 | 20,151 | 2.515625 | 3 | [] | no_license | <?php
class Crud {
public function verif_log_in(){
if(isset($_SESSION["user"])&&! empty($_SESSION["user"])){
return true;
}else {
return false;
}
}
public function add_new_cat($conn,$user_id,$titel,$desc,$staus){
$q="INSERT INTO categories
( added_by ,cat_name , ca... | true |
fadd4d9154ffd100031cfb370734a3dc9a24341d | PHP | travierm/downstream | /app/Global/RequestLogContext.php | UTF-8 | 651 | 2.734375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | <?php
namespace App\Global;
use Cumulati\Monolog\LogContext;
class RequestLogContext
{
private static LogContext $logContext;
public static function getContext(): LogContext
{
return self::$logContext;
}
public static function startRequestLog(array $context = [])
{
self::$lo... | true |
5a4e1bed9abdf3f5d49b6c8936f36dc1a54a1b62 | PHP | danylop0423/aw2016_ReverseBid-app | /src/controllers/UserController.php | UTF-8 | 7,820 | 2.59375 | 3 | [] | no_license | <?php
class UserController extends AbstractController
{
public function editProfileAction($request, $response, $args)
{
$loggedUser = $request->getAttribute('loggedUser');
$args['title'] = 'Edita Tus Datos';
if($loggedUser){
if($request->isPost()){
return self::solve_editProfile_post($request,... | true |