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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ee51d0f9afeea1d9a1970ff476cdf1ae90e96f2d | PHP | elizabeth26/Covoiturage | /covoiturage_ElizabethSOTO/include/pages/ajouterVille.inc.php | UTF-8 | 936 | 2.796875 | 3 | [] | no_license | <?php
if(empty($_POST['vil_nom'])){
?>
<h1>Ajouter une ville</h1>
<form action="#" id="Ajouter_ville" method="post">
<label > Nom: </label>
<input type="text" name="vil_nom" id="vil_nom" size="15" required>
<input class="button" type="submit" value="Valider" />
</form>
<?php
}else{
$pdo=new Myp... | true |
8b93bba83e863c1fc113cf4697fdce20f3365567 | PHP | Meg4R0M/Framework | /src/Framework/Middleware/TrailingSlashMiddleware.php | UTF-8 | 961 | 2.59375 | 3 | [] | no_license | <?php
/**
* Created by IntelliJ IDEA.
* User: meg4r0m
* Date: 10/06/18
* Time: 11:02
*/
namespace App\Framework\Middleware;
use GuzzleHttp\Psr7\Response;
use Middlewares\Utils\RequestHandler;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
/**
* Class TrailingSlashMidd... | true |
64f1f0f5e45bd785f0fd01c6938c406e2a63230f | PHP | micatch22/TechSupportPro | /tech_support/incident_create/index.php | UTF-8 | 1,402 | 2.625 | 3 | [] | no_license | <?php
/****************************************************
* Date: 4/28/2017 *
* Authors: Chantal Dale & Michelle Pierce *
* Class: CIS 4100 *
* Project 3 *
*************************************... | true |
fac2b1a0f7bd76cb447b0bf6728c629c0fc08e69 | PHP | Mirrai20/Projet_Gestion_RDV-Stage_Final | /Projet_Gestion_RDV-Stage_Final/App_Web_EL BAROUDI/CHUO/Classes/RDV.php | UTF-8 | 18,332 | 2.984375 | 3 | [] | no_license | <?php
class RDV extends User {
//ATTRIBUTES
protected $idRDV;
protected $CINP;
protected $NuMedecin;
protected $dateRdv;
protected $Etat;
//CONSTRUCTORS
public function __construct()
{
parent::__construct();
$this->... | true |
7a9822325a0b4eeef975c42e89fe93515de77dee | PHP | DigitalerSchulhof/Kern | /klassen/texttrafo.php | UTF-8 | 1,844 | 3.65625 | 4 | [] | no_license | <?php
namespace Kern;
class Texttrafo {
private function __construct() {}
/**
* Wandelt einen Text bzw. ein Array dessen in gültige URL-Zeichen bzw. ein Array dieser um.
* ``` ``` -> ```_```
* ```ä``` -> ```ae```
* ```ö``` -> ```oe```
* ```ü``` -> ```ue```
* ```ß``` -> ```sz```
* @param stri... | true |
8d6076e4f8152e463b3ad79b091385b836ab8617 | PHP | Mattie112/advent-of-code-2016 | /day5-part2.php | UTF-8 | 770 | 3.53125 | 4 | [] | no_license | <?php
//$input = "abc";
$input = "wtnhxymk";
$counter = 0;
$continue = true;
$password = [];
while ($continue) {
if ($counter % 10000 == 0) {
echo ".";
}
$hash = md5($input . $counter);
if (substr($hash, 0, 5) === "00000") {
$position = substr($hash, 5, 1);
$position = hexdec... | true |
aa18c100a150fe78b239a00f857f50dd6b9e82c1 | PHP | mentimjojo/Custom_FrameWork | /framework/Libraries/Database/Engines/MySQL_MySQLi.php | UTF-8 | 2,417 | 3.296875 | 3 | [] | no_license | <?php
class MySQL_MySQLi
{
/**
* Temp connection save
* @var
*/
private $connection;
/**
* Database credentials
* @var
*/
private $credentials;
/**
* PDO constructor.
*
* @param array $credentials of the database
*/
public function __construc... | true |
372151cc7c54c5139f919b117f3ed590c4f8c8df | PHP | AlainNiessen/POO | /POO - CRUD adresses/AdresseManager.php | UTF-8 | 3,839 | 3.421875 | 3 | [] | no_license | <?php
class AdresseManager {
private $connexion = null;
//constructor
public function __construct ($connex) {
$this -> connexion = $connex;
}
//setter
public function setConnection ($connexion) {
$this -> connexion = $connexion;
}
//getter
public function getCo... | true |
fa81800ee34bcc05fae97ec527419c12bab2ab5f | PHP | acleret/CP_scrum_demo | /src/web/inscription.php | UTF-8 | 4,690 | 2.640625 | 3 | [] | no_license | <?php
require_once("../web/config.php");
if (!isset($_SESSION["session"])) {
$s->suppressionCookies();
$s->head("Inscription");
$s->header($db);
$s->nav($db);
$erreurDev = false;
if (isset($_GET["erreur"])) {
if (!strcmp($_GET["erreur"], "dev")) {
$erreurDev = true;
echo "Erreur : le devel... | true |
777ffc64509556ca888ffc6d9730a8b0ad265923 | PHP | Anakeen/development-tools | /src/Dcp/DevTools/Po/AnalyzePhp.php | UTF-8 | 1,448 | 2.5625 | 3 | [] | no_license | <?php
namespace Dcp\DevTools\Po;
use Dcp\DevTools\Template\Template;
class AnalyzePhp extends Analyze
{
public function extract(\Iterator $filesPath)
{
$searchLabels = [];
$sharpLabels = [];
$workflowLabels = [];
foreach ($filesPath as $phpInputFile) {
$extractor ... | true |
a99c96d97a5dce33629f9cb384207967e8a9b274 | PHP | OpenBuildings/timestamped-migrations | /classes/Migrations.php | UTF-8 | 5,308 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php defined('SYSPATH') OR die('No direct script access.');
/**
* Migrations class.
*/
class Migrations
{
protected $config;
protected $driver;
protected $migrations;
public $output = NULL;
/**
* Intialize migration library
*
* @param bool Do we want output of migration steps?
* @param string Da... | true |
586610ef9d37ed50f8ba072c4d403a47e8e45ef9 | PHP | rubenclaudino/OV | /database/migrations/2017_04_18_103306_create_clinics_table.php | UTF-8 | 1,389 | 2.5625 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClinicsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clinics', funct... | true |
fbeaf9aced7eccd366ea9c4ca83f29903eeff4c8 | PHP | hinakot1228/practice_oop | /index.php | UTF-8 | 1,527 | 4.25 | 4 | [] | no_license | <?php
// Humanクラスを作ってHelloと出力
// step1 クラスを宣言
class Human{
// step3 プロパティ
private $name; // 人間は名前を持つ
// step4 メソッド(関数)
// 人間の技(挨拶するとか)
// セッター:プロパティに値をセットするメソッド=
// function setName($namae){
// $this->name = $namae; // nameプロパティ... | true |
9cdaef12fc48f9d87dda2a5b0225032dd5ae9684 | PHP | StajkovskaAndrijana/SupportTicketing | /database/seeds/RoleSeeder.php | UTF-8 | 473 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
use App\Role;
use Illuminate\Database\Seeder;
class RoleSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$admin = new Role();
$admin->name = 'Admin';
$admin->slug = 'admin';
$admin->save();
... | true |
d3cf652c6f6274c586a7adab2b40b301e39c7402 | PHP | devyonghee/design-patterns | /decorate/Mocha.php | UTF-8 | 377 | 3.28125 | 3 | [] | no_license | <?php
require_once 'Beverage.php';
class Mocha extends Beverage
{
private $beverage;
public function Mocha($beverage)
{
$this->beverage = $beverage;
}
public function getDescription()
{
return $this->beverage->getDescription() . ", 모카";
}
public function cost()
{
... | true |
8644c293a20afa81d5881e8dd6e71e401d2890f7 | PHP | vapdl/Test | /tests/repositories/EuromillionsRepositoryTest.php | UTF-8 | 1,962 | 2.625 | 3 | [] | no_license | <?php
namespace tests\repositories;
use src\repositories\EuromillionsRepository;
use PHPUnit\Framework\TestCase;
use Predis\Client;
class EuromillionsRepositoryTest extends TestCase
{
private $euromillionsObject;
protected function setUp()
{
$this->mysqli = new \mysqli($GLOBALS['DB_HOST'], $GLOB... | true |
60e5fa3a3a2c01d63f7c17cfc4ba14a8efe74c99 | PHP | kaelri/secret-santa-matcher | /classes/SecretSanta.php | UTF-8 | 7,133 | 3.078125 | 3 | [] | no_license | <?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
class SecretSanta {
public static $app_path = '';
public static $config = [];
public static $people = [];
public static $all_assigned = false;
public static function run( $app_path, array $args = [] ) {
echo PHP_EOL;... | true |
b2680951b1e8e9980b0dcfd05b6bbf8f493278f2 | PHP | rahmatsyifana12/berlatih-php | /tukar-besar-kecil.php | UTF-8 | 880 | 3.515625 | 4 | [] | no_license | <?php
function tukar_besar_kecil($string){
//kode di sini
$len = strlen($string);
for($i=0; $i<$len; $i++){
$temp = ord($string[$i]);
if($temp >= 65 && $temp <= 90){
$temp += 32;
$string[$i] = chr($temp);
}
... | true |
a78626c18a8155ff18be24822eaea93d46c6a584 | PHP | ParveenArora/GNDEC-SMS-Service | /get_report.php | UTF-8 | 2,627 | 2.59375 | 3 | [] | no_license | <?php
// ** GET CONFIGURATION DATA **
require_once('constants.inc');
require_once(FILE_FUNCTIONS);
require_once(FILE_CLASS_OPTIONS);
require_once(FILE_CLASS_CONTACTLIST);
require_once(FILE_CLASSES);
session_start();
$by = $_SESSION['username'];
echo "<link rel='stylesheet' href='styles.css' type='text/css'>"... | true |
b328ee3dbdb27df18a8363cc935a73ab49aefe0c | PHP | devatsrs/neon.web | /app/models/Timezones.php | UTF-8 | 1,736 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
class Timezones extends \Eloquent {
protected $fillable = [];
protected $guarded = array();
protected $table = 'tblTimezones';
protected $primaryKey = "TimezonesID";
public $timestamps = false;
public static $DaysOfWeek = array(
"1" => "Sunday",
"2" => "Monday",
... | true |
c1a31ef12dbce6626f3a7449bc79f659db6b5e0d | PHP | Pest-Register/phpaccounting-myobaccountrightlive | /src/Helpers/NewEssentials/ErrorResponseHelper.php | UTF-8 | 3,170 | 2.65625 | 3 | [] | no_license | <?php
namespace PHPAccounting\MyobAccountRightLive\Helpers\NewEssentials;
class ErrorResponseHelper
{
/**
* @param $response
* @param string $model
* @return array
*/
public static function parseErrorResponse ($response, $status, $errorCode, $statusCode, $detail, $model = '') {
s... | true |
8932970fdd48fd7dd5a06d1f3ec89754764d11a3 | PHP | VietDucPhan/koshihen | /app/Plugin/admin/Controller/SchoolsController.php | UTF-8 | 3,786 | 2.515625 | 3 | [] | no_license | <?php
class SchoolsController extends AppController {
public $uses = array('School');
public function index() {
//load all users
$result = $this -> School -> getAllSchools();
$this -> set('schools', $result);
}
public function add() {
if (!empty($this -> request -> data)) {
$data = $this -> request -> ... | true |
accee40e245922e52c2f385ac3dab9cf0f89fa04 | PHP | johnkhansrc/iaphub-bundle | /src/Model/Api/ActiveProducts.php | UTF-8 | 9,593 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace Johnkhansrc\IaphubBundle\Model\Api;
use DateTime;
class ActiveProducts
{
/**
* Product id.
*/
private string $id;
/**
* Product type.
*/
private string $type;
/**
* Product sku.
*/
private string $sku;
/**
* Platform of the purchase.
... | true |
0885b5fbb9c59928039f1140e24c3f147cd74229 | PHP | LeonEmil/Revista-psico-website | /wp-content/plugins/wp-google-drive/class/zip-class.php | UTF-8 | 2,070 | 2.71875 | 3 | [] | no_license | <?php
class create_zip{
public function addtozip( $source, $destination, $exclude = array() ) {
if ( !file_exists( $source ) ) {
return false;
}
$zip = new ZipArchive();
if ( $res = $zip->open( $destination, ZIPARCHIVE::CREATE ) != true ) {
return false;
}
... | true |
7aed625dd00119cf450cf26a1b0620b467b7b3d4 | PHP | WillZWL/shop | /application/libraries/DtoPSR4/EventDto.php | UTF-8 | 219 | 2.78125 | 3 | [] | no_license | <?php
class EventDto
{
private $event_id;
public function setEventId($event_id)
{
$this->event_id = $event_id;
}
public function getEventId()
{
return $this->event_id;
}
}
| true |
19caf989a7f12d2967d84d2672eb1e1c43f72a3f | PHP | mikhailalexeev1990/simple_parser | /app/Console/Commands/CreateDatabase.php | UTF-8 | 1,256 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\Process;
class CreateDatabase extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'db:create';
/**
* The console comma... | true |
9c18da9ee23faafc8acdb06ca99de04169584371 | PHP | ren096358/musicbox | /Event.php | UTF-8 | 451 | 2.71875 | 3 | [] | no_license | <?php
class Event {
private $get = null;
private $post = null;
function __construct($get, $post) {
$this->get = $get;
$this->post = $post;
}
public function getGet() {
return $this->get;
}
public function getPost() {
return $this->post;
}
}
/*
* To change this license header, choose License Hea... | true |
d7b4d6dc326750a5efcb1a1e64463ac8c5387d41 | PHP | nima-vova/blog-dogs | /config/createDB.php | UTF-8 | 1,293 | 2.578125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: nima
* Date: 18.03.19
* Time: 14:32
*/
$dbParameters = file('db_info.txt', FILE_IGNORE_NEW_LINES);
//echo $dbParameters[0];
$host = $dbParameters[0];
$dbName = $dbParameters[1];
$user = $dbParameters[2];
$password = $dbParameters[3];
try {
$conn = new PDO("mysql:host=$h... | true |
c6162d14c2744687fd646467b3987882bfdee6fa | PHP | md-shefatul-islam/learning-web-technologies-spring-2020-2021-sec-h | /FINAL_LAB_TASK_02_DB/view/display.php | UTF-8 | 832 | 2.5625 | 3 | [] | no_license | <?php
$title= "Display";
require_once('header.php');
require_once('../model/productModel.php');
?>
<form method="POST" action="">
<fieldset>
<legend>DISPLAY</legend>
<table border="1" cellspacing="0">
<tr>
<td>id</td>
<td>name</td>
<td>profit</td>
</tr>
<?php
$product = getAllProduc... | true |
93e1645b5adcd39b29a33e23896c3d16aa578cb9 | PHP | phzao/teste-supero | /app/Services/Control/ResultControl.php | UTF-8 | 308 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Services\Control;
/**
* Class ResultControl
* @package App\Services\Control
*/
class ResultControl
{
/**
* @var string
*/
protected $result = "";
/**
* @return string
*/
public function getResult()
{
return $this->result;
}
}
| true |
7d8ed9b4520d13693f617fc37428324ca979624f | PHP | thiagorthomaz/ioniccourse-eng | /renton/Room.class.php | UTF-8 | 372 | 2.96875 | 3 | [] | no_license | <?php
/**
* Description of Room
*
* @author thiago
*/
class Room {
public $id;
public $price;
public $image;
public $title;
public $address;
function __construct($id, $price, $image, $title, $address) {
$this->id = $id;
$this->price = $price;
$this->image = $image;
$this->title = ... | true |
a4659c3b20e8c7bf0d109b87c7adbc92be45b4c2 | PHP | snowcap/SnowcapAdminBundle | /Datalist/Datasource/AbstractDatasource.php | UTF-8 | 2,906 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Snowcap\AdminBundle\Datalist\Datasource;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Snowcap\AdminBundle\Datalist\Filter\Expression\ExpressionInterface;
abstract class AbstractDatasource implements DatasourceInterface
{
/**
* @var int
*/
protected $page;
/**
... | true |
3af5f893abbb026dc8b7dbbaea595646e1668d8d | PHP | wizardspro/anticramsms | /sms_engine/application/controllers/sign_up.php | UTF-8 | 4,094 | 2.546875 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
*---------------------------------------------------------------
* SMS
*---------------------------------------------------------------
*
* An thesis project that allows AMI to get a jumpstart in managing
* their application, training ... | true |
5098b82a0243b7e702d42f6e6cec95139dfc426b | PHP | dwamatu/uap-app | /app/Http/Controllers/ImageController.php | UTF-8 | 1,236 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: black
* Date: 21/12/2016
* Time: 17:28
*/
namespace App\Http\Controllers;
use App\Utilities\LossUtilities;
use Log;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
class ImageController extends Controller
{
public static function getImag... | true |
cb3a664dabc739565f9130d8181ebe378820418c | PHP | fantao963/BNF-parser | /Parser/bnf/Rule.php | UTF-8 | 6,270 | 2.890625 | 3 | [] | no_license | <?php
class Rule {
public $rule;
private $Regexp;
private $RuleRepeat;
private $parsed = null;
public function __construct($RuleRepeat, $Regexp, $rule = false) {
$this->setRule($rule);
$this->Regexp = $Regexp;
$this->RuleRepeat = $RuleRepeat;
}
public function __clone() {
}
public fu... | true |
1036fb69b0b7b99d40efc7f151e068fad7b35c1d | PHP | jfrisella/Canvas | /src/Canvas/CanvasOutput.php | UTF-8 | 1,257 | 3.296875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Canvas Output
*/
namespace VJS\Canvas;
class CanvasOutput
{
/**
* Results
*
* @var array
*/
protected $results;
/**
* Status
* - 200 or 400
*
* @var int
*/
protected $status;
/**
* Get Message
*
* ... | true |
dd6f4152d6795594e856404f31e0907806f274d2 | PHP | huxiaohe/api-framework | /app/models/AbstractModels/AbstractBookingGoods.php | UTF-8 | 2,941 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace AbstractModels;
use Phalcon\Mvc\Model\Validator\Email as Email;
abstract class AbstractBookingGoods extends \ModelBase
{
/**
*
* @var integer
*/
public $rec_id;
/**
*
* @var integer
*/
public $user_id;
/**
*
* @var string
*/
publ... | true |
fe15d1bf6d08b94d4b5f59ccb5921232e1655192 | PHP | Hack-a-Tron/feelback-api | /app/FeelBack/Presentation/Controllers/EntitiesController.php | UTF-8 | 2,453 | 2.578125 | 3 | [] | no_license | <?php
namespace App\FeelBack\Presentation\Controllers;
use App\FeelBack\Persistence\ActiveRecord\Entity;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
/**
* Class EntitiesController
* @package App\FeelBack\Presentation\Controllers
*/
class EntitiesController extends... | true |
68b7e045ce43801eb371ebbe309034279810e04b | PHP | PeekAndPoke/psi | /src/Psi/IsScalar.php | UTF-8 | 493 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* File was created 29.05.2015 21:06
*
* @author Karsten J. Gerber <kontakt@karsten-gerber.de>
*/
namespace PeekAndPoke\Component\Psi\Psi;
use PeekAndPoke\Component\Psi\UnaryFunction;
/**
* IsScalar checks if the given value is scalar
*
* @see IsScalarIsNotScalarTest
*
* @author Karsten J. Gerbe... | true |
c5209d29cb4450066fa0492fe20701bd1e6b46dc | PHP | mandalornl/duo-cms | /src/Duo/CoreBundle/Entity/DraftInterface.php | UTF-8 | 1,034 | 2.5625 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace Duo\CoreBundle\Entity;
use Duo\CoreBundle\Entity\Property\DraftInterface as PropertyDraftInterface;
use Duo\CoreBundle\Entity\Property\IdInterface;
use Duo\CoreBundle\Entity\Property\TimestampInterface;
interface DraftInterface extends IdInterface, TimestampInterface
{
/**
* Set name
*
* @para... | true |
2fa0ed168b084681ad555278003407b051cd7a91 | PHP | Delphinus-dev/secondschoolproject | /src/Model/SignaluserManager.php | UTF-8 | 1,372 | 2.6875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: sylvain
* Date: 07/03/18
* Time: 18:20
* PHP version 7
*/
namespace App\Model;
use PDO;
class SignaluserManager extends AbstractManager
{
const TABLE = 'useralert';
public function __construct()
{
parent::__construct(self::TABLE);
}
public ... | true |
019022cb95e348c49a8c9991fd39b264c25554cd | PHP | robertobradley/CST-336-Internet-Programming-Files | /Homeworks/hw3/index.php | UTF-8 | 8,051 | 3.078125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title> Game Card Generator </title>
<style>
@import url("css/styles.css");
</style>
</head>
<body>
<header><h1>Game Card Generator</h1></header>
<div id = "game_options">
<form method = "POST">
<h... | true |
703c47dff61130a22fd4f0a4769f6394fcbd8058 | PHP | singh-harshit/Festa | /login_form.php | UTF-8 | 1,519 | 2.734375 | 3 | [] | no_license | <?php
$table = 'loging';
if(isset($_POST['username'])&&isset($_POST['password']))
{
$username = $_POST['username'];
$password = $_POST['password'];
if(!empty($username)&&!empty($password))
{
$password = md5($password);
$query = "SELECT `username` from `$table` WHERE `username` = '".mysqli_real_escape_s... | true |
af190c001b416f77dca604fc717ed3f6a5694321 | PHP | MohammedSalah96/M3rady | /app/Repositories/Api/Device/DeviceRepository.php | UTF-8 | 1,262 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories\Api\Device;
use App\Models\Device;
use Illuminate\Http\Request;
use App\Repositories\Api\BaseRepository;
use App\Repositories\Api\BaseRepositoryInterface;
class DeviceRepository extends BaseRepository implements BaseRepositoryInterface, DeviceRepositoryInterface
{
private $devic... | true |
6e8a32083ae8ad9d833a5255d0e42c1b86924f3f | PHP | link2arslan/travelport | /src/UProfile/DebitCard.php | UTF-8 | 1,614 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace FilippoToso\Travelport\UProfile;
class DebitCard
{
/**
* @var anonymous28 $IssueNumber
*/
public $IssueNumber = null;
/**
* @var string $ProfileID
*/
public $ProfileID = null;
/**
* @var typeRef $Key
*/
public $Key = null;
/**
* @param... | true |
3c2bf90caaeac023f0ca963271b67dfcd7cafd4e | PHP | Sathwik11/3-TIER-Service-Model | /services/pre-services/add4/add4.php | UTF-8 | 286 | 2.5625 | 3 | [] | no_license | <?php
class add4{
function add4($a,$b,$c,$d) {
return $a+$b+$c+$d;
}
}
ini_set("soap.wsdl_cache_enabled", "0");
$server = new SoapServer("http://localhost/providingservice/UDDI/add4.wsdl",array('soap_version' => SOAP_1_2));
$server->setClass("add4");
$server->handle();
?>
| true |
f2974677de60e0ada48b9b6b612650b2f0c01d18 | PHP | JustAHappyKid/php-spare-parts | /src/types.php | UTF-8 | 1,789 | 3.09375 | 3 | [] | no_license | <?php
# TODO: Phase this file out...
# * Move functions that should be available in global/base namespace to 'global-utils.php'.
# * Move other functions to more particular sub-libs/namespaces.
require_once dirname(__FILE__) . '/global-utils.php';
function asString($var, $singleLine = true) {
$exp = var_export... | true |
9ea10a3ce22f068e5bdbe36ce5ebed6437b681ad | PHP | YouInteract2015/dashboard-youinteract | /database/migrations/2015_03_06_020104_create_generic_configs_table.php | UTF-8 | 924 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGenericConfigsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('generic_configs', function(Blueprint $table)
{
$table->increments('i... | true |
1ac840830e1cc6e46e8d2aa3ad9dbecfdce98b99 | PHP | lichenglon/admin | /app/Models/Article.php | UTF-8 | 2,012 | 2.5625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/10/20 0020
* Time: 15:58
*/
namespace App\Models;
class Article extends Base
{
protected $table = 'tpc_article';//文章表
/**
* 获得文章列表
*
* @param array $search
* @return \Illuminate\Contracts\Pagination\LengthAwarePag... | true |
c2d3da03f0e52db480c36545d96c31feeb18650e | PHP | nawas5/web_course | /form/check_contact.php | UTF-8 | 2,261 | 2.5625 | 3 | [] | no_license | <?php
session_start();
unset($_SESSION['username']);
unset($_SESSION['email']);
unset($_SESSION['subject']);
unset($_SESSION['message']);
unset($_SESSION['error_username']);
unset($_SESSION['error_email']);
unset($_SESSION['error_subject']);
unset($_SESSION['error_message']);
... | true |
7e77fb0c62042fa93028cccdadd34e9b5c577e62 | PHP | MagnaChain/MagnaChain-dev-master | /browser/plugins/rainlab/builder/classes/FilesystemGenerator.php | UTF-8 | 4,489 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php namespace RainLab\Builder\Classes;
use Lang;
use File;
use October\Rain\Parse\Bracket as TextParser;
use ApplicationException;
use SystemException;
/**
* Generates filesystem objects basing on a structure provided with an array
* and using file templates and variables. Variables in template files use
* the ... | true |
3af28b1acd82c64b504cc01867821e7324c4d444 | PHP | yuyahiramoto/Camp-Challenge | /challenge/challenge_3/3_3challenge.php | UTF-8 | 1,128 | 3.953125 | 4 | [] | no_license | <?php
/*
課題3:引き数が3つの関数を定義する。1つ目は適当な数値を、2つ目はデフォルト値が5の数値を、最後はデフォルト値がfalse(bool値)の$typeを引き数として定義する。1つ目の引き数に2つ目の引き数を掛ける計算をする関数を作成し、$typeがfalseの時はその値を表示、trueのときはさらに2乗して表示する。
例)function sample($□□□, $△△△, $type) // 引数が3つの関数書き出し部分(デフォルト値なし)
*/
//関数名、変数名によく使用する英単語 http://d.hatena.ne.jp/knowledgefort/20111029/1319853730
... | true |
bffa365c84f20219409079fa8c97416cc0c1eea2 | PHP | julianpreiss/php-ecommerce-sports | /contenidos/recuperar_clave.php | UTF-8 | 2,131 | 2.515625 | 3 | [] | no_license | <?php
if(isset($_SESSION['usuario'])){
header('Location: index.php?seccion=home');
exit;
}
if (isset($_SESSION['errores']) && isset($_SESSION['errores']['emailerror'])) {
?>
<div class="alert alert-danger text-center fade show" role="alert">
<?= $_SESSION['errores']['emailerror']?>
<button type="bu... | true |
53b096e81eb954361c13d4713d376c8703f16553 | PHP | trombone8417/PHP_SMS | /app/Http/Controllers/ClassScheduleController.php | UTF-8 | 5,987 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateClassScheduleRequest;
use App\Http\Requests\UpdateClassScheduleRequest;
use App\Repositories\ClassScheduleRepository;
use App\Http\Controllers\AppBaseController;
use Illuminate\Http\Request;
use DB;
use Flash;
use Response;
use App\models\Batch;
use A... | true |
23f33d646c33f56b7cb4073f2300f0faf56970b5 | PHP | fadhliismail/databaseProject | /php files/update_student.php | UTF-8 | 749 | 2.640625 | 3 | [] | no_license | <?php
//report any error
error_reporting(E_ALL); ini_set('display_errors', 1); mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
//connect to database
include 'db_connect.php';
$pk = $_POST['pk']; //StudentNo
$name = $_POST['name']; //Column in database
$value = $_POST['value']; //Updated value
if(!empty(... | true |
eb45dc5d823906961b3ee47b8bc0ddbf7a56fa0c | PHP | PhpAutoDoc/parser | /src/Parse/ClassParser.php | UTF-8 | 21,032 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace PhpAutoDoc\Parser\Parse;
use PhpAutoDoc\Parser\Helper\NamespaceHelper;
use PhpAutoDoc\Parser\Helper\TokenMatchHelper;
use PhpAutoDoc\Parser\PhpAutoDoc;
use SetBased\Helper\Cast;
/**
* Parses a single class|interface|trait.
*/
class ClassParser
{
//-----------------------... | true |
ce613c3b03e315811d24bbe6c6671dd26c07b3c3 | PHP | rayku/rayku-v2 | /src/Rayku/UserBundle/Form/DataTransformer/CouponCodeTransformer.php | UTF-8 | 911 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Rayku\UserBundle\Form\DataTransformer;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Doctrine\Common\Persistence\ObjectManager;
use Rayku\ApiBundle\Entity\Coupon;
class CouponCodeTransformer implements DataTransformerInter... | true |
412aaa78b7e7257d334da164b8bb30807ddd56db | PHP | Gaetannicodeme/Give-Snippet-Library | /form-customizations/multilevel-recurring-text-separator.php | UTF-8 | 393 | 2.546875 | 3 | [] | no_license | <?php
/**
* Change the multilevel text separator on a recurring donation. "10 - Monthly" becomes "10 • Monthly" using this code.
*
* @description Requires recurring donations version 1.4
* @author support@givewp.com
*
*/
function my_change_recurring_multilevel_separator() {
return " • ";
}
add_filter('give_rec... | true |
8aed5e43b16f5a807beda1046ca7bd13c1446164 | PHP | ngoctam123/HQTCSDL | /Nhom11_BaoCaoMonDBMS/website/admin/core/Database.php | UTF-8 | 1,103 | 2.828125 | 3 | [] | no_license | <?php
//Lớp Database được kế thừa từ lớp WebConfig
class Database extends WebConfig
{
var $conn;
function __construct()
{
$this->conn = mysqli_connect($this->servername, $this->username,
$this->password, $this->database);
mysqli_set_charset($this->con... | true |
130e4876c6918fc93825531ecd09cb9fae8c1d99 | PHP | cikupamart/sisaga | /application/controllers/Katalog.php | UTF-8 | 15,056 | 2.703125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Katalog extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model(array('barang_m', 'kategori_m'));
$this->load->library(array('upload', 'pagination'));
$this->lo... | true |
ad7aa2eef2559e19e7899e19a2ca043d21427d8d | PHP | nixilla/api-logger-bundle | /src/Logger/ApiLogger.php | UTF-8 | 1,432 | 2.71875 | 3 | [] | no_license | <?php
namespace Nixilla\Api\LoggerBundle\Logger;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
class ApiLogger implements ApiInterface
{
/**
* @var LoggerInterface
*/
protected $logger;
/**
* @var array
*/
protected $calls = [];
/**
* @var bool
*/
protect... | true |
ce3dfc95533daa02e4d468443fb51c8afd04e55e | PHP | harshitapoojary/City_Life | /signin.php | UTF-8 | 915 | 2.5625 | 3 | [] | no_license | <?php
session_start(); // Starting Session
$error=''; // Variable To Store Error Message
if (isset($_POST['login'])) {
// Define $username and $password
$user_email=$_POST['user_email'];
$user_password=$_POST['user_password'];
// Establishing Connection with Server by passing server_name, us... | true |
d394d5d6587bc6563bc7aedf66598568d87a7cdc | PHP | FlTr/CDash | /app/cdash/app/Middleware/Queue/SubmissionService.php | UTF-8 | 7,175 | 2.578125 | 3 | [] | no_license | <?php
/**
* =========================================================================
* Program: CDash - Cross-Platform Dashboard System
* Module: $Id$
* Language: PHP
* Date: $Date$
* Version: $Revision$
* Copyright (c) Kitware, Inc. All rights reserved.
* See LICENSE or http://www.c... | true |
da7d0a982448c94342f56e72fd4394374e5c5919 | PHP | j-lindb73/stacko | /src/Tag/PostTag.php | UTF-8 | 1,522 | 2.796875 | 3 | [] | no_license | <?php
namespace Lefty\Tag;
use Anax\DatabaseActiveRecord\ActiveRecordModel;
/**
* A database driven model.
*/
class PostTag extends ActiveRecordModel
{
/**
* @var string $tableName name of the database table.
*/
protected $tableName = "posttags";
/**
* Columns in the table.
*
* @va... | true |
6a9b60e3180caf51606dcd272f6a2ba4b43ebeac | PHP | tsalufe/big-tests | /src/BigTests/AbstractBigTests.php | UTF-8 | 747 | 2.765625 | 3 | [] | no_license | <?php
namespace BigTests;
abstract class AbstractBigTests implements BigTestsInterface
{
use CanSaveStatuses;
public function runAll() : bool
{
foreach($this->getBigDatas() as $bigData) {
$this->run($bigData);
}
return $this->isAllSuccessful();
}
public functio... | true |
36d794ec4db8bc25dd3360894aeb5271a542d30c | PHP | iArcadia/magic-api-php-wrapper | /src/Exceptions/MapwCUrlException.php | UTF-8 | 3,471 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace iArcadia\MagicApiPhpWrapper\Exceptions;
use Exception;
/**
* RocketLeagueStats exception type for cURL request.
*
* @author Kévin Bibollet <bibollet.kevin@gmail.com>
* @license MIT
*
* @extends Exception
*/
class MapwCUrlException extends Exception
{
/**
* Constructor method.
*
... | true |
9c872d98fbe113c668dcdc901b7c49fdeff2cc0e | PHP | daliverse/hello-world | /src/shared/Database/mssql.php | UTF-8 | 9,952 | 2.9375 | 3 | [] | no_license | <?php
/********************************************************************
* Description: This is the primary database interface class. Provides a connection
* and basic database interaction functions.
* Parameters: $connectionInfo - array of strings:
* This parameter is built ... | true |
c54497a02785dc023ca057c7f1f112ed4954e40a | PHP | a-benelhiouel/tftic-php | /exos/chapitre04/exo2.php | UTF-8 | 789 | 2.9375 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lanceur</title>
</head>
<body>
<?php
$pret = $_POST["pret"];
$panierVide = $_POST["panierVide"];
if($pret == "true" && $panierVide == "fa... | true |
c83123851b6a2e62442fcc78120a48f5febdb6ef | PHP | ua4wne/newsmart | /app/Console/Commands/GetWeather.php | UTF-8 | 1,192 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use App\Http\Controllers\Lib\Weather;
use App\Models\SysConst;
use Illuminate\Console\Command;
class GetWeather extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'weather:file';
/**
... | true |
931810b1e50c9d378ea083092706262647d4d3cc | PHP | LEEHYUNKYU/newvid | /a_nopages/dw/test.php | UTF-8 | 382 | 2.640625 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script>
</script>
</head>
<body>
<?php
$myfile = fopen("testfile.html","w");
$txt = "123";
fwrite($myfile,$txt);
$txt = "456";
fwrite($myf... | true |
a011fe1d419d7538399fb6837b83b47a155f9f98 | PHP | richardbporter/acquia-php-sdk-v2 | /src/Endpoints/Code.php | UTF-8 | 2,060 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace AcquiaCloudApi\Endpoints;
use AcquiaCloudApi\Response\BranchesResponse;
use AcquiaCloudApi\Response\BranchResponse;
use AcquiaCloudApi\Response\OperationResponse;
/**
* Class Code
*
* @package AcquiaCloudApi\CloudApi
*/
class Code extends CloudApiBase implements CloudApiInterface
{
/**
*... | true |
15066b26449a3d7c0b87f756d69c3bef503f6e06 | PHP | forerunner111/Tecnologias-Para-La-Web | /Departamental2/php/validar-constancias.php | UTF-8 | 4,339 | 2.53125 | 3 | [] | no_license | <?php
//valida = -1 Todavia no está valida
//valida = 0 Constancia no válida
//valida = 1 Constancia válida
if(isset($_POST['accion']))
$accion = $_POST['accion'];
else if(isset($_GET['accion']))
$accion = $_GET['accion'];
include 'conexion.php';
switch($accion){
case 'Read':
acci... | true |
8782c26294cc09ae8b9830360b4cedc8aefefa55 | PHP | Balletti-Laurent/PHP-partie8-Exercice4 | /Exercice4.php | UTF-8 | 508 | 2.875 | 3 | [] | no_license | <?php
if (isset($_POST['login']) && isset($_POST['password'])) {
setcookie('login', htmlspecialchars($_POST['login']), time() + 60 * 60 * 24);
setcookie('password', htmlspecialchars($_POST['password']), time() + 60 * 60 * 24);
}
?>
<!DOCTYPE html>
<html>
<head lang="fr">
<meta charset="utf-8">
... | true |
9a19551d34a9e2639bd7575f0e22e2e75ad0f54d | PHP | jonSmith1961/brandCar | /backend/models/CityQuery.php | UTF-8 | 918 | 2.609375 | 3 | [] | no_license | <?php
namespace backend\models;
/**
* This is the ActiveQuery class for [[City]].
*
* @see City
*/
class CityQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return City[]|array
*/
public... | true |
a5ea970680f7ccb343f9023d15d40457747cdadb | PHP | responsiv/currency-plugin | /exchangetypes/EuropeanCentralBank.php | UTF-8 | 2,601 | 2.734375 | 3 | [] | no_license | <?php namespace Responsiv\Currency\ExchangeTypes;
use Http;
use Responsiv\Currency\Classes\ExchangeBase;
use SystemException;
use Exception;
use DOMDocument;
use DOMXPath;
class EuropeanCentralBank extends ExchangeBase
{
const API_URL = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml';
/**
* {@i... | true |
c9670c166f7bba84e539629c9373a5b5d8479e9f | PHP | dsathish/bizsoft | /lib/cls/class.receipt.php | UTF-8 | 3,628 | 3.03125 | 3 | [] | no_license | <?php
/**
* Purpose of the file : receipt functions
* @package Project Name or Module Name
* @author Initials | Date
* @todo Notes, If any
*/
class receipt
{
public $receipt_id;
/*
* purpose of the function : constructor function
* @todo Notes, if any
*/
function __construct($receipt_id)
{
$this->receipt... | true |
ca3c34e099059c524661130d48aa29002f7cca5c | PHP | nabab/bbn | /src/bbn/Api/Scaleway.php | UTF-8 | 2,297 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace bbn\Api;
use bbn\Cache;
use bbn\X;
use bbn\Str;
/**
* Scaleway API
* @category API
* @package Api
* @author Mirko Argentino <mirko@bbn.solutions>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://bbn.io/bbn-php/doc/class/Api/Scaleway
*/
class Scaleway
{
... | true |
c95b5e959fd0fbc51a1a4034d6e9557326fa5d04 | PHP | BialekM/training | /Eagles/TrainingTwo/jake/jakePeselValidation.php | UTF-8 | 3,393 | 3.25 | 3 | [] | no_license | <?php
require_once "../GhostRider/Homework/PeselValidation.php";
class jakePeselValidation extends PeselValidation
{
public function ValidatePesel($pesel)
{
//Sprawdzanie jakiego typu jest pesel - czy int czy string
if(gettype($pesel) == 'integer')
{
$pesel = (string)$pesel... | true |
9a81290a4b670cc3b1a61ba568ea40a1b47a16df | PHP | garethhudson07/stitch | /src/DBAL/Syntax/Grammar.php | UTF-8 | 2,545 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
namespace Stitch\DBAL\Syntax;
class Grammar
{
/**
* @return string
*/
public static function terminator()
{
return ';';
}
/**
* @return string
*/
public static function wildcard()
{
return '*';
}
/**
* @return string
*/
publ... | true |
6a6346f7dfcfab09b1b500d25ffcd27ee8cbf0d6 | PHP | XoZet/ns2 | /src/AppBundle/Provider/UserDataProvider.php | UTF-8 | 1,108 | 2.59375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace AppBundle\Provider;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\EntityRepository;
use AppBundle\Entity\Security\User as User;
use AppBundle\Entity\UserData as UserData;
class UserDataProvider extends EntityRe... | true |
ad5dff337d87fa9f25b9d026e85027c28bd35426 | PHP | pengpengp/upload3004 | /www/index.php | UTF-8 | 2,016 | 2.65625 | 3 | [] | no_license | <H2>just give me a jpg ,no php</H2>
<meta http-equiv="content-type" content="txt/html; charset=utf-8" />
<form action="" enctype="multipart/form-data" method="post"
name="uploadfile">上传文件:<input type="file" name="upfile" />
<input type="submit" value="上传" /></form>
<!--key在index.php中-->
<?php
error_reporting(0);
$ke... | true |
cc583fe8ba7fd0f748fb284e49f5a5955bf4ed23 | PHP | wpaulnew/mathgame | /app/controllers/LoginController.php | UTF-8 | 2,146 | 2.53125 | 3 | [] | no_license | <?php
use app\models\Login;
use vendor\libs\Session;
use vendor\core\Controller;
class LoginController extends Controller
{
public function indexAction($info = '')
{
if (Session::isSession('login')) {
$this->Redirect('/home/id/' . Session::get('id'), false);
} else {
i... | true |
5a0238bdf684f739d2a32df906ce53d01214eafe | PHP | HuddleHouse/China-Beds | /src/WarehouseBundle/Service/WarehouseService.php | UTF-8 | 1,749 | 2.640625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: jeremib
* Date: 11/15/16
* Time: 1:13 AM
*/
namespace WarehouseBundle\Service;
use AppBundle\Services\BaseService;
use InventoryBundle\Entity\Product;
use InventoryBundle\Entity\ProductVariant;
use OrderBundle\Entity\Orders;
use WarehouseBundle\Entity\Warehouse;
use Ware... | true |
eb7b2491ae17ab10889fb23e8f0ccce181b513bf | PHP | titon/titon | /base/Map.php | UTF-8 | 21,495 | 3.265625 | 3 | [] | no_license | <?php
/**
* Titon: A PHP 5.4 Modular Framework
*
* @copyright Copyright 2010, Titon
* @link http://github.com/titon
* @license http://opensource.org/licenses/bsd-license.php (BSD License)
*/
namespace titon\base;
use titon\base\Type;
use titon\utility\Hash;
use \Closure;
use \ArrayAccess;
use \Iterator;
use \... | true |
9126ca35af9139f311ff2bb8bfac0a494d97ba84 | PHP | zhu-jianhua/study | /PHP/PHP5 and Mysql bible/ch21/21-1.php | UTF-8 | 970 | 3.8125 | 4 | [] | no_license | <!-- Listing 21-1: Testing shuffle() -->
<?php
srand((double) microtime() * 1000000);
function run_tests() {
global $shuffle_counts;
$shuffle_array = array(0,1,2,3,4,5,6,7,8,9);
shuffle($shuffle_array);
$element_counter = 0;
foreach ($shuffle_array as $element) {
if (isSet($shuffle_counts[$element... | true |
e02cf86023e95e84bf6e1121d95ea4b1d607463c | PHP | videni/RapidGraphQLBundle | /GraphQL/Type/Definition/GlobalIdType.php | UTF-8 | 1,657 | 2.59375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Videni\Bundle\RapidGraphQLBundle\GraphQL\Type\Definition;
use Exception;
use GraphQL\Error\Error;
use GraphQL\Language\AST\Node;
use GraphQL\Type\Definition\ScalarType;
use Overblog\GraphQLBundle\Relay\Node\GlobalId;
class GlobalIdType extends ScalarType
{
/** @var strin... | true |
cdbd94781c4fcc97d1c89ed53f6dd0caa1978940 | PHP | devryank/laravel-starter-kit | /app/Http/Livewire/Admin/Role/Create.php | UTF-8 | 1,219 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Livewire\Admin\Role;
use App\Models\Role;
use Livewire\Component;
use App\Models\Permission;
class Create extends Component
{
public $name;
public $displayName;
public $description;
public $permissionId = [];
public function render()
{
return view('livewire.a... | true |
f128f8bca6b5c88d82066681f9332061243cf2dc | PHP | GOCDB/gocdb | /htdocs/web_portal/controllers/user/delete_user_identifier.php | UTF-8 | 3,167 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/*______________________________________________________
*======================================================
* File: delete_user_identifier.php
* Author: Elliott Kasoar
* Description: Removes a user's identifier
*
* License information
*
* Copyright 2021 STFC
* Licensed under the Apache License, Ver... | true |
534fee689089fa3b4bb23bbadf715b5cc98318f3 | PHP | IzoldaArchel/PHP-MVC | /controleurs/ControleurAdmin.class.php | UTF-8 | 11,289 | 2.8125 | 3 | [] | no_license | <?php
class ControleurAdmin {
private $item = "livre";
private $action = "get";
private $id = "";
/**
* Contrôle de l'URL pour exécuter l'action qui en découle
*
*/
public function __construct() {
session_start();
if (isset($_SESSION['i... | true |
aa500c3c40e4751e630453c47078d884ee922c6b | PHP | alperenersoy/filament-export | /src/Actions/Concerns/CanHaveExtraColumns.php | UTF-8 | 406 | 2.515625 | 3 | [] | no_license | <?php
namespace AlperenErsoy\FilamentExport\Actions\Concerns;
use Closure;
trait CanHaveExtraColumns
{
protected array | Closure $withColumns = [];
public function withColumns(array | Closure $columns): static
{
$this->withColumns = $columns;
return $this;
}
public function get... | true |
e2ade7c0c4294f5400e7b2c15ea952f47d29c183 | PHP | Sohib/categories | /app/Database/Seeds/CategoriesSeeder.php | UTF-8 | 1,952 | 2.9375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Database\Seeds;
use CodeIgniter\Database\BaseConnection;
use CodeIgniter\Database\Seeder;
use Config\Database;
use Faker\Provider\en_US\Address;
class CategoriesSeeder extends Seeder
{
public function __construct(Database $config, BaseConnection $db = null)
{
parent::__construct($... | true |
72e5740c03242483e800ee6ab66d1273d8ef11dd | PHP | Ferpeke/CRUD_con_PHP | /conexion.php | UTF-8 | 518 | 3.125 | 3 | [] | no_license | <?php
class conectar {
private $servidor = "localhost";
private $usuario = "root";
private $db = "crudpoo";
private $password = "";
public function conexion() {
$conexion = mysqli_connect($this -> servidor, $this -> usuario, $this -> password, $this -> db);
... | true |
3d1aa31b3aef9a113c6b1148253f88821a9dc39a | PHP | zayceva-nastya/Anonim-fun | /aa/index2.php | UTF-8 | 148 | 2.65625 | 3 | [] | no_license | <?php
declare(strict_types=1);//ожидается жесткая типизация
require_once 'fun.php';
echo div1(5,6);
// echo div2(3.1,6); | true |
a837751774a44f43046552fd4cc253b7a8262fb1 | PHP | Anelya609/db_project | /idus.php | UTF-8 | 5,348 | 2.78125 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<?php
$servername = "localhost";
$username="root";
$password="";
$dbname="dbms";
$id="";
$name="";
$age="";
$photo="";
$nationality="";
$potential="";
$club="";
$logo="";
$wage="";
$jersey="";
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
//connect to mysql database
... | true |
bc6b24d3a5de376cc0d4a295019f6cb288b4e070 | PHP | Nixono/dragons-bisontins.fr | /fr/admin/Actualite.detail.php | UTF-8 | 2,456 | 2.515625 | 3 | [] | no_license | <?php
require_once("../sections/admin/head.php");
require_once("../conf.php");
if(!isset($_SESSION['auth']) || $_SESSION['auth'] != 1){
header('Location: auth.php');
die();
}
$_e = (int)Misc::extractDataIfSet($_GET, 'e', 0);
$sql = "SELECT * from Actualite ORDER BY ac_date desc";
$sqlR = $db->query($sql);
... | true |
2e4a0e479920e929777db22a9c98d801d7f2fec8 | PHP | grueneschweiz/weblingservice | /tests/Unit/Repository/Member/Field/SelectFieldTest.php | UTF-8 | 2,522 | 2.6875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: cyrillbolliger
* Date: 14.10.18
* Time: 21:27
*/
namespace App\Repository\Member\Field;
use App\Exceptions\InvalidFixedValueException;
use Tests\TestCase;
class SelectFieldTest extends TestCase
{
private $key = 'internal';
private $weblingKey = 'webling key';
... | true |
37edc86da78357f19d3a16a8ed9c72f5caff69d6 | PHP | michaelquesado/projetoW | /app/models/Categorias.php | UTF-8 | 703 | 2.625 | 3 | [] | no_license | <?php
include_once(VENDOR . 'SqlInjection.php');
class Categorias extends Model {
private $categoria;
public function __construct() {
parent::__construct();
$this->setTabela("categorias");
}
public function inserir() {
return parent::insert($this->toArray());
}
pu... | true |
bb9092b96aded4da0081c77447d46eb5c82bfe5d | PHP | yasminezzz/projet-web-2A14 | /avis client/update.php | UTF-8 | 8,006 | 2.8125 | 3 | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | <?php
// Include config file
require_once "config.php";
// Define variables and initialize with empty values
$id_produit = $id_client = $nb_etoile = $commentaire = "";
$id_produit_err = $id_client_err =$nb_etoile_err =$commentaire_err = "";
// Processing form data when form is submitted
if(isset($_POST["id_avis"])... | true |
97e9c438be4a1bd9aa58dfece4af5bc7866b48d2 | PHP | AmauryCarrade/minutis-redcall-app | /symfony/src/Manager/CategoryManager.php | UTF-8 | 1,565 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Manager;
use App\Entity\Category;
use App\Repository\CategoryRepository;
use Doctrine\ORM\QueryBuilder;
class CategoryManager
{
/**
* @var CategoryRepository
*/
private $categoryRepository;
/**
* @param CategoryRepository $categoryRepository
*/
public function... | true |
182ac8921dcee310874c3c0952b0e28b3ca3b365 | PHP | KIlomeroSoft/CrudLocal | /modules/Application/src/Application/Model/db/putUser.php | UTF-8 | 844 | 2.578125 | 3 | [] | no_license | <?php
function putUser($id, $data, $config)
{
// Conectarse al DBMS
$link = mysqli_connect($config['host'],
$config['user'],
$config['password']
);
// Crear la consulta
$query = "UPDATE user SET
name = ... | true |