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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1dc8021db0c5c660854e0f8bb725df360d50a939 | PHP | BattleHack2014/kopek_web | /crm/src/Crm/Model/Feedback/Feedback.php | UTF-8 | 1,449 | 2.546875 | 3 | [] | no_license | <?php
namespace Crm\Model\Feedback;
use \Crm\Model\Model;
use \Crm\Model\Moderated;
use Crm\Model\User\User;
class Feedback extends Model implements Moderated {
const MODERATION_TYPE = 'feedback';
const TABLE_PROMO_CAMPAIGN_USER_FEEDBACK = 'promo_campaign_user_feedback';
public $id;
public $campaig... | true |
702816fb5f390e2acffac8b865e31f9f4a214f85 | PHP | OlafGroh/OOP | /PHP/Liane.php | UTF-8 | 748 | 3.140625 | 3 | [] | no_license | <?php
require_once('Gehoelz.php');
/*
* autor: Olaf Groh
* date: 17/02/2016
* version: 1.0
*/
class Liane extends Gehoelz {
/* Keine zusätzlichen Attrubute */
/* No additional attributes */
/* Konstruktor:Alle Parameter in den Attrubuten der Basisklasse speichern, Konstruktor der Basiklasse aufrufen *... | true |
538f466cac3d151be320fce3f6badf84274a66e2 | PHP | LifePlacing/Lifeplacing | /app/Http/Controllers/Auth/LoginController.php | UTF-8 | 955 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Mail;
use App\Mail\VerifyMail;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $redirectTo = '/home';
publ... | true |
17cb9bb0c9cfe24f5e0235a2211c184b1000e78b | PHP | invita/sistory4 | /app/Console/Commands/Si4FieldsReseed.php | UTF-8 | 15,303 | 2.859375 | 3 | [] | no_license | <?php
namespace App\Console\Commands;
use App\Models\Si4Field;
use Illuminate\Console\Command;
use App\Helpers\Si4Util;
class Si4FieldsReseed extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'si4:fieldsReseed';
/**
... | true |
0ce2638f77199bba142fdbfb474883c91a9bd354 | PHP | clarnjan/implementacija-na-sistemi-so-otvoren-kod | /vezbaK1/vezba1.php | UTF-8 | 674 | 3.40625 | 3 | [] | no_license | <?php
$numericko=[2, 5, 6, 10, 41, 24, 32, 9, 16, 19];
$asociativno=["Damjan"=>"Damjan","Anakiev"=>"Anakiev","Blatec"=>"Blatec"];
$povekedimenzionalno=[[1,2,3],[1,2,3]];
foreach ($numericko as $key=>$value)
{
echo $value." ";
}
echo "<br>";
$pogolemiOd20=[];
foreach ($numeric... | true |
30b756624b004bed287833b118736baa2765b7b7 | PHP | luigif/WsdlToPhp | /samples/ebay-trading/Get/Type/EbayTradingTypeGetSuggestedCategoriesResponseType.php | UTF-8 | 2,367 | 2.96875 | 3 | [] | no_license | <?php
/**
* Class file for EbayTradingTypeGetSuggestedCategoriesResponseType
* @date 04/07/2012
*/
/**
* Class EbayTradingTypeGetSuggestedCategoriesResponseType
* Documentation : Returns a list of categories with the highest number of listings whose titles or descriptions contain the keywords specified in a GetSug... | true |
f0064282ff76cbe2315e13d7941585230026ac15 | PHP | FastyBird/fastybird | /src/FastyBird/Connector/Tuya/src/API/LocalApiFactory.php | UTF-8 | 892 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | <?php declare(strict_types = 1);
/**
* LocalApiFactory.php
*
* @license More in LICENSE.md
* @copyright https://www.fastybird.com
* @author Adam Kadlec <adam.kadlec@fastybird.com>
* @package FastyBird:TuyaConnector!
* @subpackage API
* @since 1.0.0
*
* @date ... | true |
30aa225c2e1250f4547baab73d05cdb6452cf6a0 | PHP | WAME-IS/Core | /entities/columns/CreateDate.php | UTF-8 | 652 | 2.796875 | 3 | [] | no_license | <?php
namespace Wame\Core\Entities\Columns;
trait CreateDate
{
/**
* @var \DateTime
* @ORM\Column(name="create_date", type="datetime", nullable=true)
*/
protected $createDate;
/** get ***********************************************************************************************************/
public fun... | true |
d38711706c597cd94eab034e85a19d261e13fa8c | PHP | connb/CIS371 | /AJAX/checkout.php | UTF-8 | 2,576 | 2.671875 | 3 | [] | no_license | <html>
<head>
<title>Busterblock Checkout</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<h1 id = 'businessName'>Busterblock</h1>
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
session_start();
requ... | true |
ccd3e8c1c8da98c7df501f4d58cadaf60c379aa5 | PHP | putao1/gitInit | /htdocs/test/textarea.php | UTF-8 | 478 | 2.875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>"textarea软回车和硬回车"</title>
</head>
<body>
<form action="textarea.php" method="post">
<textarea cols=20 rows=3 wrap="soft" name="a">我使用的是软换行,换行符不传递 </textarea>
<textarea cols=20 rows=3 wrap="hard" name="b">我使用的是硬换行,换行符传递给你啦</textarea>
<input type="submit" value="提交">
<?php
echo nl2br... | true |
e45ac67e1160ffbea593ed68dd36f532c738d44c | PHP | Br-Castro/projeto2019-html-php | /campeonato-download/projeto-campeonato/organizaçao.php | UTF-8 | 1,916 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
include_once ('conexao.php');
$sql="SELECT nome_time,responsavel,tecnico,senha_time FROM tb_time";
$result=conexao()->query($sql);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Organizadores</title>
<style type="text/css">
#tab{
color: #000;
font-family: "Arial black",Arial, Helvetico,... | true |
a8941f61e8a3ddf2282c2dcf53d138a0e9714acd | PHP | viggi2004/datacollector-backend | /citibytes/persister/S3Persister.php | UTF-8 | 3,221 | 2.921875 | 3 | [] | no_license | <?php
namespace citibytes\persister;
use Aws\S3\S3Client;
class S3Persister
{
private static $AWS_KEY = "";
private static $AWS_SECRET_KEY = "";
private static $BUCKET_NAME = "passionflick-photos";
const REGION = "ap-southeast-1";
private static $CONFIG_FILE;
private static function init()
{
S3Per... | true |
b40a83c2890aca5a424f987afb5bbaf93490dc27 | PHP | Rizky92/rime | /database/factories/UserShipmentFactory.php | UTF-8 | 933 | 2.515625 | 3 | [] | no_license | <?php
namespace Database\Factories;
use App\Models\User;
use App\Models\UserShipment;
use App\Models\Village;
use Illuminate\Database\Eloquent\Factories\Factory;
class UserShipmentFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $... | true |
970a391a777648d3b7ca81ca30eb8f041a0e19bc | PHP | qq361834029/EDA_Htao | /YttPHP/FrameWork/Extend/Library/DHL/Bank/Card/DHLStructBankCard.php | UTF-8 | 4,112 | 2.890625 | 3 | [] | no_license | <?php
/**
* File for class DHLStructBankCard
* @package DHL
* @subpackage Structs
* @author WsdlToPhp Team <contact@wsdltophp.com>
* @version 20150429-01
* @date 2016-03-21
*/
/**
* This class stands for DHLStructBankCard originally named BankCard
* Documentation : If a bank card shall be used for verifying id... | true |
e35a321526231262041249aca0c9f922824158fd | PHP | djmarland/securities | /src/AppBundle/Resources/views/Presenter/Organism/BenchmarkGraph/BenchmarkGraphPresenter.php | UTF-8 | 3,492 | 2.59375 | 3 | [] | no_license | <?php
namespace AppBundle\Presenter\Organism\BenchmarkGraph;
use AppBundle\Presenter\Presenter;
use SecuritiesService\Domain\Entity\Entity;
use SecuritiesService\Domain\Entity\Security;
class BenchmarkGraphPresenter extends Presenter
{
private $axisFormat = '£#m';
private $scale = 1;
private $securities... | true |
75d6a7b01b992bf9e86b129a138a24068fb22937 | PHP | celsojunior87/minha-grana-back | /app/Repositories/PermissionRepository.php | UTF-8 | 1,533 | 2.78125 | 3 | [] | no_license | <?php
namespace App\Repositories;
use App\Models\Permission;
use Illuminate\Validation\ValidationException;
class PermissionRepository extends AbstractRepository
{
protected $model;
/**
* Instantiate a new instance.
*
* @return void
*/
public function __construct(Permission $permissio... | true |
f1fff418e9e2b21ea41dd2b937dfe1793b3788fd | PHP | maxmillernunes/api-dev-insta | /Models/Users.php | UTF-8 | 8,245 | 2.828125 | 3 | [] | no_license | <?php
namespace Models;
use \Core\Model;
use \Models\Jwt;
use \Models\Photos;
class Users extends Model
{
private $idUser;
public function create($name, $email, $pass)
{
if (!$this->emailExists($email)) {
$hash = password_hash($pass, PASSWORD_DEFAULT);
$sql = "INSERT INTO
... | true |
e470c0d5af76e0d6150adec6685f2fcf6876f140 | PHP | uweb/UW-2013 | /inc/widgets/intro.php | UTF-8 | 1,150 | 2.8125 | 3 | [] | no_license | <?php
/**
*
* Headline Horizontal Rule Widget
*
*/
class UW_Intro_Widget extends WP_Widget
{
function UW_Intro_Widget()
{
parent::WP_Widget( 'headline-separator', __('Intro block of text'), array(
'description' => __('This widgets creates a italicized block of intro text'),
'classname' => '... | true |
755657f274ce2f7084a446ae1f5d9663047e36aa | PHP | leon-mbs/zstore | /www/app/modules/shop/comparelist.php | UTF-8 | 1,364 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Modules\Shop;
use App\System;
//класс списка сравнения
class CompareList // implements \Zippy\Interfaces\DataSource
{
public $list = array();
public static function getCompareList() {
$comparelist = System::getSession()->comparelist;
if (!isset($comparelist)) {
... | true |
655418605694d569253defe2fce6d4b57942e418 | PHP | samir-louni/tdl | /tdl.php | UTF-8 | 6,361 | 2.78125 | 3 | [] | no_license | <?php
class tdl
{
private $login;
private $password;
public $tache;
public $_db;
/// Fonction pour se connecter a la base de données.
public function dbconnect()
{
$db = new PDO("mysql:host=localhost; dbname=tdl", 'root', '');
$this->_db= $db;
}
public f... | true |
d5e96cf7c92b949669eb18e969db0b7b6d0ac8b6 | PHP | foxbow/ebm | /bm2ebm.php | UTF-8 | 1,540 | 2.625 | 3 | [
"BSD-2-Clause"
] | permissive | <?PHP
require("commands.php");
$loguser=currentUser(true);
require("setter.php");
if($loguser=="ebm") $ebm_user="PUBLIC";
else $ebm_user=$loguser;
require("header.php");
echo "<h1>$ebm_user</h1>\n";
function parseline( $line, $key, $open, $close ){
$pos=strpos( $line, $key )+strlen( $key );
$start=strpos( $line, ... | true |
ee70ae8db7bea61578a44c64643c29eb3b300e7a | PHP | phpbench/phpbench | /tests/Unit/Report/Model/BarChartTest.php | UTF-8 | 2,154 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace PhpBench\Tests\Unit\Report\Model;
use PhpBench\Report\Model\BarChart;
use PhpBench\Report\Model\BarChartDataSet;
use PHPUnit\Framework\TestCase;
class BarChartTest extends TestCase
{
public function testCreateEmpty(): void
{
$chart = new BarChart([
], 'Bar Chart One', 'foo');
... | true |
993a50566c918c9dff4d8c6d16e712bae2727201 | PHP | eawogni/enchere | /model/CategorieManager.php | UTF-8 | 2,318 | 2.984375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: awogn
* Date: 10/02/2019
* Time: 11:43
*/
/**
*
* Class CategorieManager
*/
class CategorieManager
{
public static function addCategorie($nomCategorie){
$bdd = Bdd::getPDO()->prepare('insert into categorie values (:idCategorie, :nomCategorie)');
$idC... | true |
481002e66106208d649704b180dbe0a8ad52673c | PHP | rplsukses/WebEZPrint | /admin/api/objects/transaksi.php | UTF-8 | 3,036 | 3.125 | 3 | [] | no_license | <?php
class Transaksi{
private $conn;
private $table_name = "transaksi";
private $path = "../upload/file/";
private $url_file = "";
//object properties
public $id_transaksi;
public $status;
public $tgl_pesan;
public $tgl_selesai;
publ... | true |
35e3121eb8cf6fca18f496ccada950c94b2ff98c | PHP | BrandConstantin/php | /cursos/sesiones/acceso.php | UTF-8 | 853 | 2.53125 | 3 | [] | no_license | <html>
<head>
<title>Acceso con logins</title>
<meta charset = "utf-8">
</head>
<body>
<?php
if($_GET['error'] == "si"){
echo "Tu usuario o contraseña no es correcta!";
}else if($_GET['error'] == 'fuera'){
echo "No inte... | true |
51ce321602f5399bf23e302dfbb4c4e96a41c68d | PHP | Kogalloh043/Nunua-Shop | /viewproducts.php | UTF-8 | 2,421 | 2.578125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Nunua | Viewproducts</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
</head>
<body>
<div class="con... | true |
441b9a0740ebe8e81e003004d65e12ad634de277 | PHP | lsv/gtfs | /src/Model/Transfer.php | UTF-8 | 3,021 | 2.546875 | 3 | [
"WTFPL"
] | permissive | <?php
/*
* (c) Martin Aarhof <martin.aarhof@gmail.com>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace Lsv\Gtfs\Model;
use JMS\Serializer\Annotation as JMS;
/**
* Rules for making connections at transfer points between... | true |
f7c034af927423e860fb98a363fc5c729ed57c4f | PHP | xxxxssxxxx/fortune | /index.php | UTF-8 | 6,177 | 2.75 | 3 | [] | no_license | <?php
$year = 0;
$month = 0;
$day = 0;
for ($i=1990; $i <= 2021; $i++) {
$year .= '<option value="'.$i.'">'.$i.'年</option>';
}
for ($i=1; $i <= 12; $i++) {
$month .= '<option value="'.$i.'">'.$i.'月</option>';
}
for ($i=1; $i <= 31; $i++) {
$day .= '<option value="'.$i.'">'.$i.'日</option>';
}
$y... | true |
9c23a455b203d3866efefc7b09a243290e99c5c8 | PHP | arevaloleo/FormularioEncuentro | /models/login.php | UTF-8 | 906 | 3 | 3 | [] | no_license | <?php
class Login{
private $usuario;
private $clave;
private $db;
public function __construct()
{
$this->db = Database::connect();
}
public function getUsuario(){
return $this->usuario;
}
public function setUsuario($usuario){
$this->usuario = $this->db->real_escape_string($u... | true |
fd7551c8e0bbb31e0ec764d3ff92621832827921 | PHP | kimjjeonghwa80/Store | /_/admin/model/opentshirts/product_export.php | UTF-8 | 35,076 | 2.515625 | 3 | [] | no_license | <?php
class ModelOpentshirtsProductExport extends Model {
private $languages = array();
public function get_files($product_id)
{
$files = array();
$query = $this->db->query( "SELECT * FROM " . DB_PREFIX . "product WHERE product_id = '".$product_id."' ");
if($query->row['image'] && file_exists(DIR_IMAGE . ... | true |
7f5429336e2e421b06d05c635751248d373c81fc | PHP | VinSey1/projet-capture | /service/statistique/statistiques-mois.php | UTF-8 | 2,060 | 2.828125 | 3 | [] | no_license | <?php
include "../accesseur/statistiqueDAO.php";
$mois = $_GET['mois'];
$annee = $_GET['annee'];
$statDao = new StatistiqueDAO;
$listeCapteursMois = $statDao->recevoirListeCapteurMois($mois, $annee);
$listeCapteursJour = $statDao->recevoirListeCapteurJourMois($mois, $annee);
$jourValeurMax = $stat... | true |
aaa1a815ee490641b3e98f40105e1553734a4448 | PHP | Otlichno/WebUI | /public/assets/includes/getZone.php | UTF-8 | 2,860 | 2.578125 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
/*
* SEGS - Super Entity Game Server
* http://www.segs.io/
* Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*/
session_start();
// if(strcasecmp($_SERVER['REQUEST_ME... | true |
e1d15b57fc8c7d8094cb5c9bc9b4af139862789f | PHP | moehrenzahn/scripturekit-php | /src/Data/VerseRequest.php | UTF-8 | 5,253 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
namespace Moehrenzahn\ScriptureKit\Data;
use JsonSerializable;
/**
* Contains information needed to render a verse.
*
* Use \Moehrenzahn\ScriptureKit\VerseRequestBuilder to create
*
*/
class VerseRequest implements JsonSerializable
{
const COLLECTION_TANAKH = 0;
const COLLECTION_OT = 1;
const ... | true |
df4b14876b16c05ebcba53a6685f5e1ce8811f9f | PHP | DorneaRebeca/art-exhibition | /src/Model/Persistence/Mapper/TierMapper.php | UTF-8 | 1,826 | 2.875 | 3 | [] | no_license | <?php
namespace Art\Model\Persistence\Mapper;
use Art\Model\DomainObject\Tier;
use PDO;
class TierMapper extends AbstractMapper
{
private const PRICE = 'price';
private const PATH_WITH_WATERMARK = 'pathWithWatermark';
private const PATH_WITHOUT_WATERMARK = 'pathWithoutWatermark';
private const SIZE = ... | true |
79a2fda80968d20f6dc0b464b2cd01b038b4bb11 | PHP | tac-tro-tan/web_crud_php | /test.php | UTF-8 | 1,265 | 2.671875 | 3 | [] | no_license | <?php
// Khởi tạo session PHP nếu chưa khởi tạo
if (session_id() === '')
session_start();
$_SESSION["user_id"] = "TT123456";
$_SESSION["username"] = "david123";
if( isset( $_SESSION['countr'] ) )
{
// Đếm mỗi lần truy cập
$_SESSION['countr'] += 1;
}
else
{
// ... | true |
931f565ab749a31c345eb6180e63cc6b9e6d4e0b | PHP | mairaperezale/proyecto30 | /Proyecto/productos.php | UTF-8 | 1,011 | 2.515625 | 3 | [] | no_license | <?php
//session_start();
include_once 'conecto.php' ;
$consulta="SELECT * FROM producto";
//$consulta2="select * from codigo_producto";
$resultado=mysqli_query($conn, $consulta);//extreamos el resultado, es decir ejecutamos la consulta
//$resultado2=mysqli_query($conn, $consulta2);
$row=mysqli_fetch_row($resultado... | true |
74eb2c26e187fc323295ab74dba72e70febef3e2 | PHP | dgeneva/eventizr | /app/models/er_exhibitor_category.php | UTF-8 | 506 | 2.8125 | 3 | [] | no_license | <?php
class ER_Exhibitor_Category extends CI_Model{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function getAllObjects(){
$query = $this->db->get('er_exhibitor_category');
return $query->result();
}
public function getAllCategories(){
$rawData ... | true |
1d275532d8246e34433cffc702321f943efc435b | PHP | harddownloader/laravel-jquery-dota-app-2019 | /app/Promo.php | UTF-8 | 825 | 2.546875 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB;
class Promo extends Model
{
protected $table = 'promo';
protected $fillable = [
'promo',
'money',
'count'
];
protected $hidden = [
'created_at',
'updated_at'
];
... | true |
a3b409fda623435ff81081d6357ded117f5bc3e5 | PHP | miguelci/pokemon-movement | /src/Pokemons/provider/PokemonBasket.php | UTF-8 | 691 | 3.359375 | 3 | [] | no_license | <?php
namespace Pokemons\provider;
class PokemonBasket
{
/**
* The amount of pokemons currently in the basket.
* @var int
*/
private $amount;
/**
* PokemonBasketController constructor.
*
* @param int $amount
*/
public function __construct($amount = 0)
{
... | true |
cdfe7d38b4e6e1f41dc775c36d8a15373828f355 | PHP | MandyPh/SmartSolar | /weekfetchrt.php | UTF-8 | 1,985 | 2.640625 | 3 | [] | no_license | <?php
$servername = "localhost";
$username = "root";
$password = "password";
$db = "SmartSolar";
//$myquery = "SELECT CONCAT(Date, ' ', Time) as Datetime , Voltage*Current as Power FROM systemdata_nov WHERE Date in ('2016-11-29') ORDER BY id DESC LIMIT 20";
$myquery = "SELECT CONCAT... | true |
10efde3dfcc50c4a98844b81389bc8970187971f | PHP | lzy-best/lzy-best.github.io | /bbs/SpeedPHP/Extensions/spHttp.php | UTF-8 | 2,327 | 2.765625 | 3 | [] | no_license | <?php
/***********************************************
* SpeedPHP网络请求类扩展类
* 文件: /Extensions/spHttp.php
* 说明: 网络请求类扩展类
* 作者: Myxf
* 更新: 2015年5月14日
***********************************************/
/**
* 网络请求类扩展类
*/
class spHttp {
/**
* post方法
* @access public
* @param string $url 请求地址
* @param stri... | true |
f4dfe8461f9532e1ac79062d9a203bbae6beef1c | PHP | topalek/shop-yii2 | /core/migrations/product/m181002_193520_create_product_table.php | UTF-8 | 1,618 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
use yii\db\Migration;
/**
* Handles the creation of table `product`.
*/
class m181002_193520_create_product_table extends Migration {
/**
* {@inheritdoc}
*/
public function safeUp(){
$this->createTable('product', [
'id' => $this->primaryKey(),
'title' => $this->string(255)->notNul... | true |
c22c09cd3b5eaf5c45b100cbda6af821cc332bad | PHP | nphilipsen/cannaduh | /addcart.php | UTF-8 | 998 | 2.71875 | 3 | [] | no_license |
<?php
// Get the current list of products
session_start();
include 'include/db_connect.php';
$productList = null;
if (isset($_SESSION['productList'])){
$productList = $_SESSION['productList'];
} else{ // No products currently in list. Create a list.
$productList = array();
}
// Add new product selecte... | true |
14ba6eb398ce99edef651699c97ea941f3b8f84d | PHP | FlawlessPT/ParkAtHome-Back_End | /Vehicules/InsertVehicule.php | UTF-8 | 2,231 | 2.875 | 3 | [] | no_license | <?php
$servername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "parkathome_mobile";
// Cria a ligação à BD
$conn = mysqli_connect($servername, $dbUsername, $dbPassword, $dbName);
// Verifica se a ligação falhou (ou teve sucesso)
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());... | true |
dbe337feb2d73ae41f6db46e2270f7db3546a6a0 | PHP | MBoretto/Nostickers | /database/migrations/2016_09_25_175011_first_version.php | UTF-8 | 3,049 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the nostikers bot.
*
* (c) Marco Boretto <marco.bore@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migratio... | true |
304ea66988b0e675ef616a60d2ce8ee6b0309dd0 | PHP | HidalgoRides/intersect-blog | /src/Models/Tag.php | UTF-8 | 657 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace Intersect\Blog\Models;
use Intersect\Database\Model\Model;
use Intersect\Database\Model\Validation\Validation;
class Tag extends Model implements Validation {
protected $connectionKey = 'ib_conn';
protected $tableName = 'ib_tags';
public function getValidatorMap()
{
return [... | true |
0d8574eea11f681164b0e9b30a6825f5bc423a40 | PHP | coderpick/skiitn-webdev-laravel-batch | /Class-9-27-08-2020/Excersize/UserClass.php | UTF-8 | 408 | 3.5 | 4 | [] | no_license | <?php
class User{
public $name ;
function __construct($name)
{
$this->name = $name;
}
// public function setName($name="")
// {
// $this->name = $name;
// }
public function getName()
{
echo "User name is $this->name";
}
... | true |
ca1d1045dfc17b3a99adf5c2c9d42e9d492fd879 | PHP | jinoxst/kidsup_php | /application/models/DAO.php | UTF-8 | 869 | 2.640625 | 3 | [] | no_license | <?php
require_once 'DbManager.php';
class DAO {
protected function getSelectConnection(){
return DbManager::getConnection(0);
}
protected function getUpdateConnection(){
return DbManager::getConnection(1);
}
public function getMemberClassList($member_id){
$con = $this->getUpda... | true |
2acc2d43ff15a9e5f4aa0add821162e42e516af0 | PHP | zuses/zuses.github.com | /php_2/13-2.php | UTF-8 | 582 | 3.71875 | 4 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Php 数组 - 关联数组</title>
</head>
<body>
<?php
$age = array('Bill'=>'35','Steve'=>'37','Peter'=>'43');
/*
或者:
$age['Bill'] = '35';
$age['Steve'] = '37';
$age['Peter'] = '43';
*/
echo "Peter is ".$age["Peter"]." years old.<br><b... | true |
c50830356c87ddc0346c1be1101f177cb8cd0820 | PHP | dophu17/shishi | /app/View/Helper/JapaneseHelper.php | UTF-8 | 583 | 2.96875 | 3 | [] | no_license | <?php
App::uses('AppHelper', 'View/Helper');
class JapaneseHelper extends AppHelper {
/**
*
* Format input value to japanese money format
*
* @param string/int $number
* @return string
*/
public function moneyFormat($number) {
$tenHundred = intval($number / 10000);
if ($tenHundred > 0) {
... | true |
3bff4109cc2689d287d9c3ba995e3f25155dac0a | PHP | augustomauro/LARAVEL-Appstore-ecommerce | /database/seeds/ApplicationSeeder.php | UTF-8 | 2,131 | 2.59375 | 3 | [] | no_license | <?php
use Illuminate\Database\Seeder;
class ApplicationSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('applications')->insert(array(
array(
'user_id' => 1,
'category_id' => ... | true |
768382c6a926b2dbcb5d4f97d3663b8c00e0e3a4 | PHP | sirodas1/ghcare-sys | /database/migrations/2021_09_23_130042_create_medications_table.php | UTF-8 | 1,333 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMedicationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('medications... | true |
11d74b4135c74ade3505362b76b940b56e80e077 | PHP | boytaweesup/PDO | /connect.php | UTF-8 | 371 | 2.796875 | 3 | [] | no_license | <?php
$db_host = "localhost";
$db_user = "root";
$db_pass = "12345678";
$db_name = "test";
try{
$con = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pass);
$con->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
}catch(PDOException $err){
ec... | true |
8a4c272a504c62b84974b0c74e25eb330d8868e2 | PHP | Sylius/PayPalPlugin | /src/Exception/OrderNotFoundException.php | UTF-8 | 541 | 2.65625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Sylius\PayPalPlugin\Exception;
final class OrderNotFoundException extends \Exception
{
public function __construct(?string $message = null)
{
parent::__construct($message ?? 'Order not found');
}
public static function withToken(string $token): self
... | true |
909f25e788479b60f4715fc2165eb07073bdf595 | PHP | tarunkumar1391/ikpsoftwaremanagement | /server/main.php | UTF-8 | 1,999 | 2.8125 | 3 | [] | no_license | <?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "ikp";
//define variables
$Sname = $Dop = $Tol = $Price = $Vname = $Nok = $Order = $kostenstelle = $Description = "";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connec... | true |
e627c42adae6832b8eceb8822a6afccc09d1e4c9 | PHP | e13v3n-0xb/CRUD-Application | /update.php | UTF-8 | 4,537 | 2.65625 | 3 | [] | no_license | <?php
include_once "connection.php";
?>
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://aja... | true |
e5f403b3c781d6a88dbc7a5193ecf3e2dd94bc73 | PHP | stweil/slx-admin | /inc/trigger.inc.php | UTF-8 | 7,023 | 2.515625 | 3 | [] | no_license | <?php
/**
* This is one giant class containing various functions that will generate
* required config files, daemon instances and more, mostly through the Taskmanager.
* Most function *should* only actually do something if it is required to do so.
* eg. a "launchSomething" function should only launch something if ... | true |
c4b8479516aed5db06debe1942f4d320b465e631 | PHP | vietdevs/site-2 | /app/code/Amasty/Stripe/Gateway/Response/RefundHandler.php | UTF-8 | 2,429 | 2.546875 | 3 | [] | no_license | <?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2020 Amasty (https://www.amasty.com)
* @package Amasty_Stripe
*/
namespace Amasty\Stripe\Gateway\Response;
use Amasty\Stripe\Gateway\Helper\SubjectReader;
use Magento\Payment\Gateway\Response\HandlerInterface;
use Magento\Sales\Model\Order\Payment;
/**
... | true |
14eb3755de788caacffb9919e374f258d589ed2b | PHP | mmdm95/sim-form | /src/Validations/PersianAlphaValidation.php | UTF-8 | 617 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace Sim\Form\Validations;
use Sim\Form\Abstracts\AbstractValidation;
class PersianAlphaValidation extends AbstractValidation
{
protected $error_message = 'String is not valid persian alpha .';
/**
* Please specify [numeric value] to validate
*
* {@inheritdoc}
*/
public fu... | true |
16b87e97eaf63d7f69effb8cc3b1d44a48352333 | PHP | phpbe/mf | /src/Plugin/Form/Item/FormItemInputNumberInt.php | UTF-8 | 1,865 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Be\Mf\Plugin\Form\Item;
/**
* 表单项 整型
*/
class FormItemInputNumberInt extends FormItem
{
public $valueType = 'int'; // 值类型
/**
* 构造函数
*
* @param array $params 参数
* @param array $row 数据对象
*/
public function __construct($params = [], $row = [])
{
paren... | true |
b32607c3832d5d2e9d39b35aefd5f5a734122df9 | PHP | a402539/personalhistory | /win-sql3.php | WINDOWS-1251 | 3,639 | 2.78125 | 3 | [] | no_license | <?php
error_reporting(E_ALL);
global $text;
print("<b><font size=-1> . 3.2 08.01.2011 17:10:57</font></b>");
if (isset($base)):
$charset = $db->character_set_name();
printf ("Current character set is %s\n", $charset);
printf("<br>$s\n"," ");
$result = mysql_list_tables($base,$db);
while ($row = mysql_fetc... | true |
e418e1002fc0997a77852d9273d840a3b4cd6ca1 | PHP | ardianjafar/web-laravel-blog | /routes/breadcrumbs.php | UTF-8 | 7,336 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php // routes/breadcrumbs.php
// Note: Laravel will automatically resolve `Breadcrumbs::` without
// this import. This is nice for IDE syntax and refactoring.
use Diglactic\Breadcrumbs\Breadcrumbs;
// This import is also not required, and you could replace `BreadcrumbTrail $trail`
// with `$trail`. This is nice fo... | true |
d7d5bac881683929ddfea308fc6f5eaf1be528fa | PHP | rstgroup/jira-tempo-api-client | /src/Domain/Model/Issue.php | UTF-8 | 1,067 | 3.265625 | 3 | [] | no_license | <?php
namespace JiraTempoApi\Domain\Model;
class Issue
{
/** @var string */
private $self;
/** @var string */
private $key;
/** @var string */
private $id;
public function __construct($self, $key, $id)
{
$this->self = $self;
$this->key = $key;
$this->id = $id... | true |
4fae1a48d6848810a769b18b2a9b47dee747b9ca | PHP | yakoffka/Example-State-Design-Pattern | /documents/Invoice.php | UTF-8 | 864 | 3.109375 | 3 | [] | no_license | <?php
require_once __DIR__ . '/../states/DraftState.php';
/**
* Class Invoice
*/
class Invoice extends ADocument
{
private int $sum;
private string $partner;
public function __construct(int $sum, string $partner)
{
$this->sum = $sum;
$this->partner = $partner;
$this->changeS... | true |
5da4cafb20ddeebee4d7b7c95b148761ce5ac35e | PHP | InWeCrypto/cms | /app/Http/Middleware/authJWT.php | UTF-8 | 1,135 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use Tymon\JWTAuth\Facades\JWTAuth;
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\Exceptions\TokenExpiredException;
use Tymon\JWTAuth\Exceptions\TokenInvalidException;
class authJWT
{
public function handle($request, \Closure $next)
{
try {
... | true |
2d3a9bd05760b7fc898386961d17792cf2b91b67 | PHP | happyfridayM2/pruebasgit | /code/Amasty/Base/Model/ModuleListProcessor.php | UTF-8 | 3,103 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2020 Amasty (https://www.amasty.com)
* @package Amasty_Base
*/
namespace Amasty\Base\Model;
use Magento\Framework\Module\ModuleListInterface;
use Amasty\Base\Helper\Module;
class ModuleListProcessor
{
/**
* @var \Magento\Framework\Module\Module... | true |
f349a007f06b40f507f075b4678b9976ff0b0ec5 | PHP | lpampolini/sonWeb | /database/connection_source.php | UTF-8 | 3,160 | 2.90625 | 3 | [] | no_license | <?php
class connectionSource {
var $linkDatabaseSrc="";
function newConnectionSource(){
$host = "localhost";
$user = "root";
$pass = "root";
$database = "son_project_Dan";
$this->linkDatabaseSrc = mysql_connect($host, $user, $pass);
$selectDatabase = mysql_select_db($database,... | true |
dbe33291f89049cfc971ce221e1d5ef1f716ef96 | PHP | Kasiyliy/news-portal | /app/Http/Forms/Web/V1/System/Content/Survey/QuestionWebForm.php | UTF-8 | 1,671 | 2.578125 | 3 | [] | no_license | <?php
namespace App\Http\Forms\Web\V1\System\Content\Survey;
use App\Core\Interfaces\WithForm;
use App\Http\Forms\Web\FormUtil;
use App\Models\Entities\Content\Survey\QuestionType;
class QuestionWebForm implements WithForm
{
public static function inputGroups($value = null): array
{
$types = Questi... | true |
2d6b7b2ac5954417c628a2fe3ccb73a7c84f809f | PHP | jamie00170/social_network | /htdocs/upload.php | UTF-8 | 2,276 | 3.0625 | 3 | [] | no_license | <head>
<title>Upload a Profile Picture</title>
</head>
<body>
<?php
/**
* Created by PhpStorm.
* User: Jamie
* Date: 19/08/2016
* Time: 16:09
*/
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_FILES['upload'])) {
/*
if ($_FILES['upload']['size'] > $_POST['MAX_FILE_SIZE']){
... | true |
cac74bd702c0d443112773c0579f5933c65fc849 | PHP | Mesa/Loot-Manager | /JackAssPHP/Logger/FileLogger.php | UTF-8 | 1,321 | 3.265625 | 3 | [] | no_license | <?php
/**
* Loot-Manager
*
* @author Mesa <daniel.langemann@gmx.de>
*/
namespace JackAssPHP\Logger;
class FileLogger implements \JackAssPHP\Logger\LoggerInterface
{
protected $file_handle = null;
protected $file_path = null;
/**
* Constructor
*
* @param [String] $file_path path to l... | true |
313b38164777e59d78b622d01343d502ae8d9c4e | PHP | hackshackers/hh-hugo-cli | /tests/test-migrate-images.php | UTF-8 | 5,671 | 2.578125 | 3 | [] | no_license | <?php
class HH_Hugo_Test_Migrate_Images extends WP_UnitTestCase {
function setUp() {
$this->migrator = new HH_Hugo\Migrate_Images( null );
$this->to_delete = array();
$this->test_images = array();
$this->test_images['exists'] = array(
'url' => 'http://hackshackers.com/wp-content/uploads/2014/06/notarealima... | true |
6141b07068bc64e0db03f9a2c3bca545a9256be0 | PHP | oodies/oc_blog | /src/blogpost/Infrastructure/Service/BodyWriteService.php | UTF-8 | 1,454 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of oc_blog project
*
* @author: Sébastien CHOMY <sebastien.chomy@gmail.com>
* @since 2017/12
*/
namespace Blogpost\Infrastructure\Service;
use Blogpost\Domain\Model\Body;
use Blogpost\Domain\ValueObject\PostID;
use Blogpost\Infrastructure\Persistence\CQRS\BodyWriteRepository;
/**
... | true |
201c4e0592ae3153b20a9fa4020da336779712db | PHP | mikelOAMK/HomeExer | /Student.php | UTF-8 | 756 | 3.203125 | 3 | [] | no_license | <?php
/**
*
*/
class Student extends Person
{
function __construct($fn=null, $ln=null, $yob=null, $sc=array(), $cp=null)
{
$this->setFname($fn);
$this->setLname($ln);
$this->setAge($yob);
$this->setYOB($yob);
$this->selectedCourses=$sc;
$this->creditPoints=$cp;
}
private $selectedCo... | true |
a5cbb9755f30d6d5f7d07c4839ce4e24df52ac6d | PHP | samdubey/ads2 | /controller/orderitemctrl.php | UTF-8 | 1,315 | 2.578125 | 3 | [] | no_license | <?php
require_once "../db/general.php";
class OrderItemCtrl{
public static function get(){
return function($request, $response){
$user_id = $request->session('id');
if($user_id){
$id = $request->id;
$item = OrderItem::findById($id);
if($item){
$response->json($item->as_array());
}el... | true |
90720fd90472158381d156953090edfecff8ed78 | PHP | pmads/sql_practice | /index.php | UTF-8 | 685 | 2.921875 | 3 | [] | no_license | <?php
echo'<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>Guest Database List</p>';
#adding an account
$servername = "localhost";
$username = "Prajna";
$password = "password";
$dbname = "Prajna";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
i... | true |
b41798f84fd438ffd9354e4d8b9c0cfee3f42e11 | PHP | damaera/RO-Framework | /masterClass/controller.php | UTF-8 | 5,971 | 2.703125 | 3 | [] | no_license | <?php
abstract class controller{
/**
* - controller = string, mengatur nama controller
* - $title = (string) mengatur judul
* - layout = (string) mengatur layout yang digunakan
* - head = (array)
* - model = (object) mengatur model yang digunakan oleh class ini
* - lib = (array) ... | true |
08c68c4d9e74152eda58208fa1da3060515334b0 | PHP | reiver/SkinnyMVC | /parts/_create_module.php | UTF-8 | 2,758 | 2.828125 | 3 | [
"MIT"
] | permissive | function _create_module($module_name)
{
if (!file_exists('modules')) {
echo "Invalid SkinnyMVC installation.\n";
exit;
}
if(empty($module_name)) {
echo "Usage: ".$argv[0]." createMod module\n";
return;
... | true |
229bc329191203697a042f2445bbf2f65f2b0706 | PHP | ZsgsDesign/NOJ | /app/Console/Commands/Babel/Install.php | UTF-8 | 2,627 | 2.734375 | 3 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | <?php
namespace App\Console\Commands\Babel;
use Illuminate\Console\Command;
use Exception;
use Symfony\Component\Console\Output\BufferedOutput;
class Install extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature='babel:install {exte... | true |
538159d810e6a9bf150e9255feb647aa506dcd0d | PHP | nrc725/IntroToWebDevFinalProject | /debughelp.php | UTF-8 | 1,947 | 3.09375 | 3 | [] | no_license | <?php
# debughelp.php - useful debugging stuff for PHP
#
# To use this file, just put "include( 'debughelp.php' );" at the
# top of your PHP code.
#
# D Provine
# (revision of 16 October 2018)
# turn on all error reporting
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reportin... | true |
453fc850e7c6170e3712e737135c8bae666e02da | PHP | lyrasoft/luna | /src/User/UserEntityInterface.php | UTF-8 | 663 | 2.609375 | 3 | [] | no_license | <?php
/**
* Part of luna project.
*
* @copyright Copyright (C) 2021 .
* @license MIT
*/
namespace Lyrasoft\Luna\User;
/**
* Interface UserEntityInterface
*
* @since 2.0.0
*/
interface UserEntityInterface
{
public function getId(): mixed;
public function getName(): string;
/**
* Is us... | true |
1470ec69838af02367a3b7bdc7552f7c7a90a49d | PHP | praniz/qrcode | /protected/models/Product.php | UTF-8 | 4,110 | 2.734375 | 3 | [] | no_license | <?php
/**
* This is the model class for table "tb_product".
*
* The followings are the available columns in table 'tb_product':
* @property integer $id_product
* @property string $name_product
* @property string $barcode_product
* @property string $detail_product
* @property string $pic1
* @property string $p... | true |
448f4436fe5ef8b3fcc5d3720fa4191cff23e1c0 | PHP | bellows-io/Request | /src/Curl/Request.php | UTF-8 | 3,186 | 2.75 | 3 | [] | no_license | <?php
namespace Request\Curl;
use Request\AbstractRequest;
use Request\Response;
use Request\Cookie;
class Request extends AbstractRequest {
const USER_AGENT_STRING = "Bellows cURL";
protected $opts = array();
public function setOpt($curlOpt, $value) {
$this->opts[$curlOpt] = $value;
}
protected function ... | true |
bd3bb16432eed6cec29446b646bd5e4934fc78bc | PHP | hoangth/sample_code | /saas_server_api/SaaS_API.php | UTF-8 | 8,776 | 2.6875 | 3 | [] | no_license | <?php
// First, include Requests
include('library/Requests.php');
// Next, make sure Requests can load internal classes
Requests::register_autoloader();
class SaaSApplication {
private $host;
private $port;
private $protocol;
private $username;
private $password;
private $key;
public function __c... | true |
5cb3022963f8f76047757a279ae25ae0931144ff | PHP | flashindatrash/reprolk | /core/Util.php | UTF-8 | 825 | 2.75 | 3 | [] | no_license | <?php
class Util {
public static function inc($type, $file) {
$config = Application::$config;
if (is_null($config) || is_null($type) || !isset($config['app'][$type])) return;
$path = $config['app'][$type] . $file;
if (file_exists($path)) {
include_once($path);
}
}
public static function httpQuery($... | true |
195387ce54effd4d445a88c33fd99f0150680ee7 | PHP | tieroneco/productpath | /models/forms/LogoUpload.php | UTF-8 | 948 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models\forms;
use yii\base\Model;
use yii\web\UploadedFile;
use Yii;
use yii\imagine\Image;
use Imagine\Gd;
use Imagine\Image\Box;
use Imagine\Image\BoxInterface;
class LogoUpload extends Model
{
/**
* @var UploadedFile
*/
public $logoFile;
public function rules()
{
... | true |
520a99718f37fa8c51f525bda415d4bb7101450c | PHP | omoefizy/E-commerce | /DatabaseTesting.php | UTF-8 | 1,045 | 3.21875 | 3 | [] | no_license | <?php
include "../../config/config.php";
/*** create a new mysqli connection object ***/
$connection = new mysqli($db["hostname"],$db["username"],$db["password"],$db["database"]);
/* check connection */
if(mysqli_connect_errno()){
die('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect... | true |
3297eb1e96b66c7b33a3f980adb87831439e495f | PHP | AlexisBattagli/VirtualDemande | /model/DAL/Distrib_AliasDAL.php | UTF-8 | 8,182 | 2.875 | 3 | [] | no_license | <?php
/*
* Description of Distrib_AliasDAL
*
* @author Alexis
* @author Aurelie
*/
/*
* IMPORT
*/
require_once('BaseSingleton.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/VirtualDemande/model/class/Distrib_Alias.php');
class Distrib_AliasDAL {
/*
* Retourne l'alias d'une d... | true |
2d7941190f4c025013f4d1307adc1d1d3866f84c | PHP | H-Mason/CS313-php | /web/Week06/teamActivity06.php | UTF-8 | 1,029 | 2.78125 | 3 | [] | no_license | <?php
require './dbConnect.php';
$db = get_db();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scriptures</title>
</head>
<body>
<h1>Enter Scriptures</h1>
<form id="scriptureEntry" action="teamActivit... | true |
030c83d65c45f0f7756453983ac8b00a68474eef | PHP | dnsoftware/bara2 | /protected/models/UserPhones.php | UTF-8 | 6,394 | 2.53125 | 3 | [] | no_license | <?php
/**
* This is the model class for table "{{user_phones}}".
*
* The followings are the available columns in table '{{user_phones}}':
* @property integer $ph_id
* @property integer $u_id
* @property integer $c_id
* @property string $phone
* @property string $date_add
* @property integer $verify_kod
* @pr... | true |
3d3c5655c8b4716164655d49341acfd634f0a6a7 | PHP | front-commerce/magento1-elasticsuite-indexer | /src/app/code/community/Smile/VirtualCategories/Model/Rule.php | UTF-8 | 8,735 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Virtual categories rule
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Smile Searchandising Suite to newer
* versions in the future.
*
* This work is a fork of Johann Reinke <johann@bubblecode.net> previous module
* available at https://github.com/jreinke/magento-elastics... | true |
0d45727d5fe518bfd0946b2a534dfad4c096b9eb | PHP | infira/wolo | /src/Regex.php | UTF-8 | 853 | 3.46875 | 3 | [
"MIT"
] | permissive | <?php
namespace Wolo;
class Regex
{
/**
* Get the string matching the given pattern.
*
* @param string $pattern
* @param string $subject
* @return string
*/
public static function match(string $pattern, string $subject): string
{
preg_match($pattern, $subject, $ma... | true |
df19623f724b2711ad568b7598cb937a2f4cd367 | PHP | mrSelian/showcase-catalog | /app/Domain/ProductRepositoryInterface.php | UTF-8 | 496 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Domain;
interface ProductRepositoryInterface
{
public function getById(int $id): ?Product;
public function save(Product $product);
public function delete(Product $product);
public function mapToProduct();
public function getAllFiltered(array $filterRules, array $sortRules);
... | true |
e4bf7d83a5bfb3ee0c300be85d6eb0f4d120ea79 | PHP | aaron-ng/Hikers_Guide | /hikers_guide_php/PHP_Files/pages/display_all_trails.php | UTF-8 | 1,087 | 2.625 | 3 | [] | no_license |
<html>
<?php
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
$link = mysqli_connect("localhost", "root", "");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$db_s... | true |
cc704024eda6508e8832edd548fbd7b8ca3052ac | PHP | cjango/chain33-php | /src/Chain33/Manage/Client.php | UTF-8 | 1,587 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Jason\Chain33\Manage;
use Jason\Chain33\Kernel\BaseClient;
use Jason\Chain33\Kernel\Consts;
/**
* Class Client
* @package Jason\Chain33\Manage
*/
class Client extends BaseClient
{
/**
* Notes: 添加/删除一个token-finisher
* @Author: <C.Jason>
* @Date : 2020/5/2 21:41
* @param s... | true |
d8c28d00d0798c39d06c70e4a0c5dcb3ef4174e3 | PHP | aberardinelli/FAME | /sitefiles/owner/newmanager.php | UTF-8 | 1,175 | 2.890625 | 3 | [] | no_license | <html>
<head>
<title>
Welcome to the new FAME!
</title>
</head>
<body>
<h1>FAME: Artist Management Enterprises</h1>
<h2> Add new artist manager </h2>
<?php
include '../dbconn.php';
// All strings that come from user input need to be
// "escaped" first - they need to be prepared to... | true |
d3b1ba96eccd01b659f5d19ce215c53f3e2205ac | PHP | ricwein/PushNotifications | /src/PushNotification.php | UTF-8 | 2,549 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Richard Weinhold
*/
namespace ricwein\PushNotification;
use RuntimeException;
class PushNotification
{
/**
* @var array<string, Handler>
*/
private array $handlers;
/**
* PushNotification constructor.
* @param array<string, Handler> $handlers
*/
public ... | true |
ba55593b490ccb8698072dffd6ad18a5e12903d8 | PHP | fat7i/parking-lot | /app/Parkables/ParkableInterface.php | UTF-8 | 191 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Parkables;
interface ParkableInterface
{
/**
* @return string
*/
function getName();
/**
* @return int
*/
function getLaneSize();
} | true |
e2b167a61e97b493ab87a8858bfeaa2a637bebaf | PHP | geissebn/php-visitor-counter | /php/Configuration.class.php | UTF-8 | 1,351 | 2.796875 | 3 | [] | no_license | <?php
/**
* Configure the counter herein
*/
class Configuration {
/**
* Datasource URL for counter
*
* @see http://php.net/manual/en/pdo.construct.php
*/
public static function getDataSourceName() {
// Example: Use a local SQLite3 database
return 'sqlite:' . dirname(__FILE__) . '/... | true |
db44651bcc25a8b1c89a218eb194c35bc7581aec | PHP | 1nv4d3r5/livelessons-php-mysql | /livelessons/Lesson12/Application/DataCore.php | UTF-8 | 1,209 | 2.96875 | 3 | [] | no_license | <?php
class PSDatabaseErrorException extends Exception
{
public function __construct($msg, $query)
{
parent::__construct("Database error $msg ocurred when executing $query");
}
}
define('DB_HOST', 'localhost');
define('DB_USER', 'psa_user');
define('DB_PASSWORD', 'secret_password');
define('DB_DA... | true |
70c00ffba8c4c5d3c2b815b4ab91d79b2dbb673a | PHP | jandersen65/Volleyball | /KTV-Homepage-ResultatVermittlung/php/mvc/model/GruppeListe.php | UTF-8 | 1,451 | 3.3125 | 3 | [] | no_license | <?php
class GruppeListe {
private $gruppeListe;
function __construct() {
$this->gruppeListe = array();
}
public function addGruppe(Gruppe $gruppe) {
if (is_null($this->getGruppe($gruppe->getGruppeNo()))) {
array_push($this->gruppeListe, $gruppe);
}
return $this;
}
public functi... | true |