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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e2bbe4bcfbf758ea3a7d570c032398fa4b3782eb | PHP | vahagnnwsl/crm_nws | /app/Http/Repositories/LinkedinConversationRepository.php | UTF-8 | 1,482 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Repositories;
use App\Models\LinkedinConversation;
class LinkedinConversationRepository extends Repository
{
/**
* @return string
*/
public function model(): string
{
return LinkedinConversation::class;
}
/**
* @param array $requestData
* @r... | true |
e5e20970d6f9a75c337bdc17593754f5b47a1cd1 | PHP | rvmehta745/haynes_repo | /src/StructType/GetStoryInfoV5Response.php | UTF-8 | 1,329 | 2.75 | 3 | [] | no_license | <?php
namespace StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getStoryInfoV5Response StructType
* @subpackage Structs
*/
class GetStoryInfoV5Response extends AbstractStructBase
{
/**
* The getStoryInfoV5Return
* @var \StructType\ExtStoryListContainer
*/
... | true |
1056960c0b20f1ed57fabd11a38c3ea530567b43 | PHP | npabisz/shopify | /src/Resources/Products/Collect.php | UTF-8 | 1,300 | 2.53125 | 3 | [] | no_license | <?php
namespace Yorki\Shopify\Resources\Products;
use Yorki\Shopify\Criteria\Products\CollectCriteria;
use Yorki\Shopify\Resources\BaseResource;
use Yorki\Shopify\Resources\Traits\Counts;
use \Carbon\Carbon;
/**
* @property-read Carbon $created_at
* @property-read Carbon $updated_at
*
* @property int $id
* @pro... | true |
80f4503ba408df51d4b7d361670be46955d2fc35 | PHP | Lisa9740/debian-project | /src/Entity/LoginAttempt.php | UTF-8 | 1,195 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Entity;
use App\Repository\LoginAttemptRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LoginAttemptRepository::class)
* @ORM\Table(name="`loginattempt`")
*/
class LoginAttempt
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")... | true |
9355e0f10482c1ebb990873e22409c1a39c4b8b4 | PHP | matejvelikonja/SyncFS | /tests/SyncFS/Test/Configuration/ReaderTest.php | UTF-8 | 1,418 | 2.625 | 3 | [] | no_license | <?php
namespace SyncFS\Test\Configuration;
use SyncFS\Configuration\Configuration;
use SyncFS\Configuration\Reader;
use SyncFS\Test\TestCase;
/**
* Class ReaderTest
*
* @package SyncFS\Test\Configuration
* @author Matej Velikonja <matej@velikonja.si>
*/
class ReaderTest extends TestCase
{
/**
* Reader... | true |
288cbf4f804ccc0d55b43ba7d595fcd9ac073165 | PHP | DanielaGz/Proyecto | /presentacion/edicionUsuario/descargar.php | UTF-8 | 2,635 | 2.84375 | 3 | [] | no_license | <?php
$carpeta = $_GET["idPag"];
$zip = new ZipArchive();
// Ruta absoluta
$nombreArchivoZip = "paginas/" . $_GET["id"] . "/pagina.zip";
$rutaDelDirectorio = $carpeta;
if (!$zip->open($nombreArchivoZip, ZipArchive::CREATE | ZipArchive::OVERWRITE)) {
exit("Error abriendo ZIP en $nombreArchivoZip");
}
// ... | true |
a2beaff81f7c6e492bd9c86eae61f01c2e61042d | PHP | jbowens/jBBCode | /JBBCode/tests/visitors/HTMLSafeVisitorTest.php | UTF-8 | 2,440 | 3.078125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
require_once dirname(dirname(__DIR__)) . '/visitors/HTMLSafeVisitor.php';
/**
* Test cases testing the HTMLSafe visitor, which escapes all html characters in the source text
*
* @author astax-t
*/
class HTMLSafeVisitorTest extends PHPUnit_Framework_TestCase
{
/**
* Asserts that the given bbcode str... | true |
533d09b18d5f876734cd657ec42bfe6b239e9e0c | PHP | ntdu/Web_assignment2 | /src/API/login.php | UTF-8 | 3,347 | 2.734375 | 3 | [] | no_license | <?php
if(isset($_POST["rePassword"])) {
// signUp
$username = $_POST["username"];
$password = $_POST["rePassword"];
$phone = $_POST["phone"];
$email = $_POST["email"];
$address = $_POST["address"];
if (validation($username, $password, $phone, $email)) {
... | true |
62185b6bb0740c4ff01368379d707179b0f5ae6a | PHP | Necrowolf132/my-wee-plugin-elementor | /includes/wee_extra_functions.php | UTF-8 | 3,071 | 2.515625 | 3 | [] | no_license | <?php
namespace My_elementor_extencion;
use Elementor\Control_Media;
use Elementor\Group_Control_Image_Size;
final class wee_extra_functions extends Group_Control_Image_Size {
const VERSION = '1.0.0';
const MINIMUM_ELEMENTOR_VERSION = '2.0.0';
const MINIMUM_PHP_VERSION = '7.0';
private sta... | true |
5dcc01896cf3c7494800a046ae0fdb449967deef | PHP | shadoskill/yetonemorephpframework | /src/MySQLi/MysqliSelect.php | UTF-8 | 2,559 | 2.671875 | 3 | [] | no_license | <?php
namespace YAPF\MySQLi;
abstract class MysqliSelect extends MysqliRemove
{
/**
* selectV2
* for a full breakdown of all the magic
* please see the selectV2.readme
* @return mixed[] [dataset => mixed[mixed[]], status => bool, message => string]
*/
public function selectV2(
... | true |
170b36490414495e6613d199103a5971dc0a34c8 | PHP | stvhui/tbrpl | /prestasi/model/userModel.php | UTF-8 | 2,931 | 2.53125 | 3 | [] | no_license | <?php
require_once ("koneksi.php");
class userModel{
public function __construct(){
$koneksi = new koneksi();
$koneksi->connect();
}
public function getSesi($username,$password){
$query = "select username, pass, ket, user_jenis, fakultas.fakultas_id as fakultas_id from user, fakultas where userna... | true |
a0da30e9d0c2e52a357573ce05b5694a2e259a5f | PHP | nazihahismail94/phplaravel | /database/migrations/2018_03_23_202147_create_details_table.php | UTF-8 | 1,094 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('details', function (Blueprint $table) {
$t... | true |
682b21450110237c14ff9193786fe29fda1ac414 | PHP | Alioone1/MonProjetABM | /src/Entity/Promo.php | UTF-8 | 936 | 2.75 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Entity;
/**
* Class Promo
* @package App\Entity
* @Entity
* @ORM\Table(name="promos")
*/
class Promo
{
/**
* @var int
* @ORM\Column(name="id", type="integer")
* @... | true |
a2dfb39b863ad6b5d8ffcdc2d87ecc73effc68f6 | PHP | Wedeto/DB | /src/Query/OrderClause.php | UTF-8 | 3,191 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
/*
This is part of Wedeto, the WEb DEvelopment TOolkit.
It is published under the MIT Open Source License.
Copyright 2017, Egbert van der Wal
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software... | true |
71e82ae0bee6b394acbf69f68004253da8ac934c | PHP | jimitgandhi/training | /PHP form/form_send.php | UTF-8 | 1,027 | 2.875 | 3 | [] | no_license | <?php
include "db-connect.php";
global $connection;
$name = $_POST['name'];
$contact = $_POST["contact"];
$email=$_POST["email"];
$dob=$_POST["dob"];
$query = mysqli_query($connection,"SELECT * FROM information WHERE Contact='$contact'");
$count1 = mysqli_num_rows... | true |
246c5d90b3e9aaca8aee5ab2a731b67dddf34441 | PHP | Fomchenkov/PHP_Shop | /index.php | UTF-8 | 1,856 | 3.078125 | 3 | [] | no_license | <?php
// Установка кодировки
// mb_internal_encoding("UTF-8");
// При существовании view перекидываем на страницу товара
if (isset($_GET['view']))
{
$view = $_GET['view'];
header("Location: products/index.php?view=$view");
}
// Подключение файла конфигурации
require_once 'config.php';
// Соединяемся с DataBase
$my... | true |
ea45636622412f88b4362ddb503d5a884ebe282c | PHP | KlausBacker/anakeen-platform-4 | /fulltext-search/src/vendor/Anakeen/Fullsearch/SearchDomain.php | UTF-8 | 3,061 | 2.75 | 3 | [] | no_license | <?php
namespace Anakeen\Fullsearch;
use Anakeen\Core\Internal\SmartElement;
use Anakeen\Exception;
class SearchDomain implements \JsonSerializable
{
const NSPARAM = "Fullsearch";
public $name;
public $stem;
public $description;
/** @var SearchConfig[] */
public $configs = [];
/**
* ... | true |
b99a685785cb510292439681c7c8a7a8701e6023 | PHP | Adine07/belajar-php | /kondisi.php | UTF-8 | 485 | 2.765625 | 3 | [] | no_license | <html>
<head>
<title>Adine | Pengkondisian</title>
</head>
<body>
<?php
$nama = "aisyah";
//var_dump($tgl);
if ($nama == "supriyadi"){
echo "Supriyadi";
} elseif($nama == "sincan"){
echo "Dulmuji";
... | true |
698ed53a77fcd506af55e2017fa71433f720dd45 | PHP | yeqiuyong/linkage | /app/models/Driver.php | UTF-8 | 3,627 | 2.546875 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: uni
* Date: 16/4/5
* Time: 下午11:01
*/
namespace Multiple\Models;
use Phalcon\Di;
use Phalcon\Mvc\Model;
use Multiple\Core\Constants\Services;
use Multiple\Core\Constants\StatusCodes;
use Multiple\Core\Constants\ErrorCodes;
use Multiple\Core\Exception\DataBaseException;
... | true |
7e52fec69df8f0d7a72c891f7dd1dae1fed34dec | PHP | Eniid/scrore_bd | /models/match.php | UTF-8 | 727 | 2.921875 | 3 | [] | no_license | <?php
namespace Match;
function all(\PDO $connection): array
{
$matchesRequest = 'SELECT * FROM matches ORDER BY date ASC';
$pdoSt = $connection->query($matchesRequest);
return $pdoSt->fetchAll();
}
function find(\PDO $connection, string $id): stdClass
{
$matchRequest = 'SELECT * FROM match WHERE i... | true |
6e291518d4499a251d67c9a2e7ab30eefded0321 | PHP | ryantranvn/tannhatquang | /index.php | UTF-8 | 12,129 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
// understruction
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different l... | true |
cc0c6f5650cf6c5a957cf26102034b1fd19f3f09 | PHP | pdecrete/rektis | /yii2/modules/SubstituteTeacher/migrations/m171120_122634_operations.php | UTF-8 | 2,406 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
use yii\db\Migration;
class m171120_122634_operations extends Migration
{
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
// http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
... | true |
bdd5aef2a8ee2cd38842accd7c83bf502add4dce | PHP | sunding0308/SixD | /app/Http/Controllers/Admin/VersionController.php | UTF-8 | 3,012 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Admin;
use App\Version;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
class VersionController extends Controller
{
public function index()
{
$versions = Version::... | true |
c6c93e3a6199f49524316b8b2d3fd9a2587205dc | PHP | nosuchagency/allmaps-api | /app/Services/Models/UserService.php | UTF-8 | 2,087 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Services\Models;
use App\Models\Category;
use App\Models\Role;
use App\Models\Tag;
use App\Models\User;
use Illuminate\Support\Arr;
class UserService
{
/**
* @param array $attributes
*
* @return User
*/
public function create(array $attributes): User
{
$use... | true |
28a9682d524ba671c22615b32bdad22b012db6b2 | PHP | php-fp/php-fp-combinators | /test/ComposeTest.php | UTF-8 | 602 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace PhpFp\Combinators\Test;
use PhpFp\Combinators;
class ComposeTest extends \PHPUnit_Framework_TestCase
{
public function testCompose()
{
$inc = function ($x)
{
return $x + 1;
};
$halve = function ($x)
{
return $x / 2;
};
... | true |
fb9e8318ef6980fb1f6fe90e7e79c957f56b469c | PHP | jasondavis/shorty | /config.php | UTF-8 | 745 | 3.0625 | 3 | [
"MIT"
] | permissive | <?php
// Hostname for your URL shortener
$hostname = 'http://example.com';
// PDO connection to the database
$connection = new PDO('mysql:dbname=shorty;host=localhost', 'user', 'password');
// Choose your character set (default)
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
// The follow... | true |
98f3275ca2e86cea04da8fc52c8c4e67bbb52a99 | PHP | carlosbumba/php-zeero-framework | /src/Core/app.php | UTF-8 | 3,868 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
use Symfony\Component\HttpFoundation\Response;
use Zeero\Core\Registry as Collector;
use Zeero\Core\Timer;
use Monolog\Logger;
use Symfony\Component\VarDumper\VarDumper;
use Zeero\Core\Auth\Auth;
use Zeero\Core\Env;
use Zeero\Core\Router\Route;
use Zeero\Core\Router\URL;
/**
* respond the request
*
* @param... | true |
28f5db1116d52fc2adf53f7f16230fb4ce10db37 | PHP | 995933447/lott | /database/seeds/LotteryCategoryTableSeeder.php | UTF-8 | 783 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
use App\Models\LotteryCategory;
use Illuminate\Database\Seeder;
class LotteryCategoryTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$data = [
[
'id' => 1,
'name' => '快乐十分',
... | true |
4d3a5c908063b5c049b8de2c1c7db32711596801 | PHP | huanglietao/visitorshop | /app/Repositories/TempSizeRelationRepository.php | UTF-8 | 1,286 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
use App\Models\TempSizeRelation;
use App\Services\Helper;
/**
* 仓库模板
* 商印模板关联规格仓库
* @author: david
* @version: 1.0
* @date: 2020/8/20
*/
class TempSizeRelationRepository extends BaseRepository
{
protected $isCache = false; //是否使用缓存
public function __construct(TempSizeR... | true |
9e94ad9de73f6c16fbe6f9428312f7d23283371a | PHP | agushendriyawan/customer | /index2.php | UTF-8 | 966 | 2.671875 | 3 | [] | no_license | <?php
$coon = mysqli_connect("localhost", "root", "", "customer2");
//ambil data dari database
$result = mysqli_query($coon, "SELECT* FROM data_customer");
//ambil data dari obj result
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Data Mahasiswa</h1>
<table border="1" cellpadding="10" cellspaci... | true |
45ac102593e08f6f04965f33a63cdd2cfc47b50b | PHP | briansalodeveloper/crud_package | /src/commands/CreateService.php | UTF-8 | 3,036 | 2.828125 | 3 | [] | no_license | <?php
namespace Brian\Commands;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class CreateService extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'make:service {name}';
/**
* The console com... | true |
5c1617daaf7c2ca2ec2d45719f12dda034b682cc | PHP | nomoregrapes/ediblegiving | /app/Http/Controllers/MapController.php | UTF-8 | 611 | 2.6875 | 3 | [] | no_license | <?php namespace App\Http\Controllers;
use App\Models\Organisation;
class MapController extends Controller {
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
}
/**
* Show the application welcome screen to the user.
*
* @return Response
*/
public funct... | true |
2a8db21c2bc46b9c1287c20391f854bc3657bcfe | PHP | gorbunov/advent-of-code | /2020/shared/Documents/Passport.php | UTF-8 | 1,485 | 3.25 | 3 | [] | no_license | <?php declare(strict_types=1);
namespace Documents;
final class Passport
{
/** @var PassportProperty[] */
private array $properties;
/**
* Passport constructor.
*
* @param PassportProperty[] $properties
*/
private function __construct(array $properties)
{
foreach ($pro... | true |
1f1a2cac78bc32b27cd85562bdb3260047270a77 | PHP | Kedar-K/feedback-system | /logins/admin.php | UTF-8 | 1,499 | 2.890625 | 3 | [] | no_license | <?php session_start(); ?> // session starts with the help of this function
<?php
$servername="localhost";
$username="root";
$password="";
$dbname="login";
$connect=new mysqli($servername,$username,$password, $dbname);//Connection to DB
if(!$connect)
die("Connection failed:".mysql_error);
else
echo"connecte... | true |
dfd371f1d294915f5600b57daeb14d39249280f5 | PHP | satyanarain/bueno | /app/Listeners/SendOrderCreateRequestToRista.php | UTF-8 | 1,242 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Listeners;
use App\Events\OrderWasCreatedByUser;
use Bueno\Services\RistaAPI as Rista;
use Bueno\Loggers\JoolehLogger;
//use Illuminate\Queue\InteractsWithQueue;
//use Illuminate\Contracts\Queue\ShouldQueue;
use Bueno\Repositories\DbOrderRepository as OrderRepo;
class SendOrderCreateRequestToRist... | true |
b61b2a6ba8ee62604d314c40338ac9c9b1574225 | PHP | Tapi-Yano/restaurant | /src/application/models/UserModel.class.php | UTF-8 | 1,595 | 2.875 | 3 | [] | no_license | <?php
// sert à effectuer les requetes sql
class UserModel
{
public function create(array $values)
{
$sql='
INSERT INTO User
(Nom,
Prenom,
Adresse,
Date_de_naissance,
Ville,
Code_postal,
... | true |
dec69d631f45e53cf4db434052c337ad07a12957 | PHP | ynsingh/repos | /brihaspati/trunk/brihCI/application/SLCMS/views/student/studentsubject.php | UTF-8 | 6,045 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <!--
@name subject.php
@author Sharad Singh(sharad23nov.com)
-->
<?php defined('BASEPATH') OR exit('No direct script access allowed');
echo "<html>";
echo"<title>Add Subject</title>";
echo "<head>";
$this->load->view('template/header');
echo "</head>";
echo "<body>";
?>
<table style="margin-left:9px;">... | true |
0a9dff83066d2b88f780112863875a6c914983a6 | PHP | chrisgillis/slackwolf | /src/Game/Role.php | UTF-8 | 1,864 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php namespace Slackwolf\Game;
use Slackwolf\Game\Roles\Beholder;
use Slackwolf\Game\Roles\Bodyguard;
use Slackwolf\Game\Roles\Hunter;
use Slackwolf\Game\Roles\Lycan;
use Slackwolf\Game\Roles\Seer;
use Slackwolf\Game\Roles\Tanner;
use Slackwolf\Game\Roles\Witch;
use Slackwolf\Game\Roles\WolfMan;
use Slackwolf\Game\Ro... | true |
8a25307f00e37f2f959360e8a9c4f530a75c68eb | PHP | FasterThanIE/quantox_technology | /App/Entity/Grade.php | UTF-8 | 1,913 | 2.875 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use InvalidTypeException;
/**
* @ORM\Entity
* @ORM\Table(name="grades")
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({
* "csm" = "App\Entity\CSM",
* "csmb" = "App\Entity\CS... | true |
703327f34e00fc9fa366642678471e19ded0e5ce | PHP | bocheng47/hihealth | /database/migrations/2018_12_20_164852_change_doctors_experience_column_type.php | UTF-8 | 1,166 | 2.578125 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeDoctorsExperienceColumnType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('d... | true |
7f199a2f0e76c14ccfc11f928e976af2eab3d7ed | PHP | MennoHorde/pluto | /application/core/MY_Controller.php | UTF-8 | 1,415 | 2.78125 | 3 | [] | no_license | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
/**
*
* @var array $data The set data can be used through out the application
*/
public $data = array();
function __construct()
{
parent::__construct();
... | true |
fce04cc99c1ff4468042f635075ca7e86aeeff90 | PHP | dez-php/dez-view | /src/View/Engine/Php.php | UTF-8 | 555 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Dez\View\Engine;
use Dez\View\Engine;
/**
* Class Php
* @package Dez\View\Engine
*/
class Php extends Engine {
/**
* @param string $name
* @return null|string
*/
public function fetch( $name ) {
$path = $this... | true |
c0053019a000c873a35a9a29db1189c6b5f499dc | PHP | cri2net/placebook-framework-basic | /src/Core/SystemConfig.php | UTF-8 | 3,667 | 2.875 | 3 | [] | no_license | <?php
namespace Placebook\Framework\Core;
use Exception;
use cri2net\php_singleton\Singleton;
class SystemConfig
{
use Singleton;
public static $configPath;
private static $config;
private function __construct()
{
$this->init();
}
/**
* Initialization of a config (reading... | true |
a0dce4661ede3fe4d40544d2cdf483337a1e976f | PHP | AdminAnticaptcha/anticaptcha-php | /antibotcookie.php | UTF-8 | 1,333 | 2.796875 | 3 | [] | no_license | <?php
class AntiBotCookie extends Anticaptcha implements AntiCaptchaTaskProtocol {
private $websiteUrl;
private $proxyAddress;
private $proxyPort;
private $proxyLogin;
private $proxyPassword;
public function getPostData() {
return array(
"type" => ... | true |
6363277e81513e2a188569068e4ed4b0b75be31d | PHP | Hayder16/PHP-BASIC-C0 | /6-Functions/taak04 - return statement/index.php | UTF-8 | 268 | 3.234375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<body>
<?php
function geefTienProcent(){
$koopprijs = 75;
$korting = 10;
$kortingEuro = $koopprijs * $korting / 100;
$resultaat = $koopprijs - $kortingEuro;
return $resultaat;
}
echo geefTienProcent();
?>
</body>
</html> | true |
81685c340fee18d150a21dc68b93b0deca171139 | PHP | JRemkes/trainingfactory | /ao/php/framework/models/AbstractModel.php | UTF-8 | 2,648 | 3.09375 | 3 | [] | no_license | <?php
namespace ao\php\framework\models;
abstract class AbstractModel
{
protected $control;
protected $action;
protected $dbh;
public function __construct($control,$action)
{
$this->control = $control;
$this->action = $action;
$this->dbh = new \PDO(DATA_SOURCE_NAME,... | true |
c7610c8549d9ae82224931778987d9b74e6346fb | PHP | wp-plugins/facebook-fanbox-with-css-support | /facebook-fanbox-with-css-support.php | UTF-8 | 14,651 | 2.5625 | 3 | [] | no_license | <?php
/**
* Plugin Name: Facebook Fanbox (with CSS Support)
* Plugin URI: http://blog.ppfeufer.de/wordpress-plugin-facebook-fanbox-with-css-support/
* Description: Add a sidebarwidget with a fully css-customisable facebook fanbox to your WordPress-Blog.
* Version: 1.3.1
* Author: H.-Peter Pfeufer
* Author URI: ht... | true |
c89901636e2986c36fa4a27f4c9000184ec1fd8e | PHP | JGamboa/abogado | /app/Models/Upload.php | UTF-8 | 1,673 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Traits\OnSaveEmpresa;
/**
* Class Upload
* @package App\Models
* @version March 28, 2018, 1:21 pm CLST
*
* @property integer empresa_id
* @property string name
* @property string path
* @property string e... | true |
05bd02035d067e836a38a9ce7be5f1746d34a738 | PHP | MickaelLetour/CV | /App/HTML/Form.php | UTF-8 | 2,917 | 3.421875 | 3 | [] | no_license | <?php
namespace App\HTML;
/**
* class Form
* Permet de générer un formulaire
*/
class Form{
/**
* @var array Données utilisés par le formulaire
*/
protected $data;
protected $mail;
protected $to = 'mickael.letour@hotmail.fr';
/**
* @var string Tag utilisé pour entourer les ... | true |
9429b92dd5c4f1a342802bf569915eba978edd5c | PHP | DavidAllanDev/GeoService | /webservice/api/common/database/entity/tableMapper.php | UTF-8 | 890 | 2.6875 | 3 | [] | no_license | <?
require_once '../query.php';
require_once 'columnMapper.php';
class tableMapper
{
const _sql = "SHOW TABLES";
private $_resutl;
private $_query;
private $_tableName;
function __construct()
{
$this->_query = new query();
$this->_resutl = $this->_query->GetResult($this::_s... | true |
0edf00920b11302b6e9fa595564d9d1ab9935ddc | PHP | patrickaviel/random_word_generator_using_php_codeigniter | /application/controllers/Random.php | UTF-8 | 1,170 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Random extends CI_Controller {
public $counter;
public $characters=array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T',
'U','V','W','X','Y','Z','0','1','2','3','4','5','6','7',... | true |
1bef1d6027fcf18a36dd0fb41499f947f5cd93c3 | PHP | hutushen222/clean-old-branches | /src/Commands/CleanCommand.php | UTF-8 | 7,448 | 2.84375 | 3 | [] | no_license | <?php
namespace MilkyThinking\CleanOldBranches\Commands;
use Carbon\Carbon;
use GitElephant\Exception\InvalidRepositoryPathException;
use GitElephant\Objects\Branch;
use GitElephant\Objects\Remote;
use GitElephant\Repository;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Formatte... | true |
3250c1386394668d8f1df15d6af9102e2824796a | PHP | khaleelanjum/services | /database/migrations/v121/2021_08_08_155732_create_wallet_transactions_table.php | UTF-8 | 1,318 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
* File name: 2021_08_08_155732_create_wallet_transactions_table.php
* Last modified: 2021.08.10 at 18:04:14
* Author: SmarterVision - https://codecanyon.net/user/smartervision
* Copyright (c) 2021
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWall... | true |
e74b1a4e77824863a055a01227e4643ea8bc3efe | PHP | chsxf/mfx | /src/chsxf/MFX/MathTools.php | UTF-8 | 391 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Class and helper functions for math
*
* @author Christophe SAUVEUR <chsxf.pro@gmail.com>
*/
namespace chsxf\MFX;
/**
* Math helper class
*/
final class MathTools
{
/**
* Generates a randomly-generated float number
* comprised between 0.0 (inclusive) and 1.0 (inclusive)
*
* @return float
... | true |
55daf1e8d0fb8e9c8df442151960f419e0ce028b | PHP | amigoscs/SERG.CMS | /application/plugins/exp-csv/libraries/CsvFileLib.php | UTF-8 | 4,673 | 3.125 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* библиотека для работы с CVS файлами
*
* version 1.0
* UPD 2018-10-02
// Пример использования
$file = "file.txt";
$line = 1000000;
$count_line = 5;
$stream = new ReadFileLib($file);
// Укажем, что читать надо ... | true |
1b491d8a3d3e05c58cbafd835a3812d7eb35e8f8 | PHP | ReggieJacksonShore/Code-Library | /PHP_startSession.php | UTF-8 | 3,951 | 2.84375 | 3 | [] | no_license | <?php
// Restrict Access
if ($_SERVER['SCRIPT_NAME'] === '/startSession.php') { header('location:/Login.php?InvalidAccess=RestrictAccess'); die(); } else { }
// Restrict Access to HTTP (non-secure) Protocol.
if (isset($_SERVER['HTTPS'])
&& $_SERVER['HTTPS'] === 'on') { } else {
// h... | true |
7d5915170064c23bf4f99c397b4d498ffc7445b2 | PHP | BenJetson/CPSC462-term-project | /src/includes/types/HTTPStatus.php | UTF-8 | 1,567 | 2.84375 | 3 | [] | no_license | <?php
class HTTPStatus
{
// Success
const STATUS_OK = 200;
const STATUS_NO_CONTENT = 204;
// Redirects
const STATUS_MOVED_PERMANENTLY = 301;
const STATUS_FOUND = 302;
const STATUS_SEE_OTHER = 303;
// User Errors
const STATUS_BAD_REQUEST = 400;
const STATUS_NOT_AUTHORIZED = 401... | true |
db6a1bee569852b376cc1083a3eca3f6181301b5 | PHP | muliczki/php | /Programacion III/Ejercicio24_listadoJSON/listado.php | UTF-8 | 1,255 | 3.1875 | 3 | [] | no_license | <?php
// Aplicación No 24 ( Listado JSON y array de usuarios)
// Archivo: listado.php
// método:GET
// Recibe qué listado va a retornar(ej:usuarios,productos,vehículos,...etc),por ahora solo tenemos
// usuarios).
// En el caso de usuarios carga los datos del archivo usuarios.json.
// se deben cargar los datos en un a... | true |
b580e418c58eeaf569bb15af4562add61d18f4d6 | PHP | webegg/Zencart-CMS | /modules/user_account/deposit/classes/Pagination.php | UTF-8 | 2,956 | 3.296875 | 3 | [] | no_license | <?php
class Pagination
{
//huidige pagina
var $page;
//maximum aantal records
var $size;
//totaal aantal records
var $total_records;
//link voor de navigatie
var $link;
//class constructie
function Pagination($page = null, $size = null, $total_records = null)
{
$this->page = $page;
$this->size = $siz... | true |
218efd1c4f6f7a1fa5038a80ca3ca4497db79f49 | PHP | inboxroad/inboxroad-php | /test/Models/MessageAttachmentTest.php | UTF-8 | 3,941 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace Inboxroad\Test\Models;
use Inboxroad\Models\MessageAttachment;
use Inboxroad\Models\MessageAttachmentInterface;
use Inboxroad\Test\Base;
/**
* Class MessageAttachmentTest
* @package Inboxroad\Test\Models
*/
class MessageAttachmentTest extends Base
{
/**
* @var str... | true |
8f7a5fe777f35dfeb1b6958a288aef640c01cd58 | PHP | roccomuso/Simple-Didactic-CMS | /progetto/index.php | ISO-8859-1 | 16,716 | 2.515625 | 3 | [] | no_license | <?php // ATTENZIONE, IL CODICE QUA SOTTO POTREBBE URTARE LA VOSTRA SENSIBILITA'
############################################################################
###
### CMS DATABASE - ROCCO MUSOLINO - http://www.hackerstribe.com
###
############################################################################
//avviamo un... | true |
2bc0d676d0f375819699dc6bacff76f2e38ec618 | PHP | leonardootoni/echo-health | /classes/controllers/AppointmentDetailController.php | UTF-8 | 1,748 | 2.828125 | 3 | [] | no_license | <?php
namespace classes\controllers {
use \classes\business\AppointmentDetailBO as AppointmentDetailBO;
use \classes\util\AppConstants as AppConstants;
use \classes\util\base\AppBaseController as AppBaseController;
use \classes\util\exceptions\NoDataFoundException as NoDataFoundException;
/**
... | true |
9cfac629b9f810c6506eb093c049ad638c711ef7 | PHP | xiayishusheng/code | /php/Chapter 13/13-4.php | GB18030 | 355 | 2.9375 | 3 | [] | no_license | <?php
echo "<center> </center> ";
$string=" ";
if(ereg ("$", $string)){
echo "һ<br>";
}
else
if(ereg ("$", $string)){
echo "һ<br>";
}
else echo "һ"
?>
| true |
fd2e24e21503a20893e3212bfbef74f38db592a0 | PHP | melaniegardiner/class2012 | /photocards/index.php | UTF-8 | 1,713 | 2.546875 | 3 | [] | no_license | <?php
require_once('../adodb5/adodb.inc.php');//supports connection for 8080 port
require_once('../adodb5/adodb-active-record.inc.php');//needed to do insert from db
$db = null;
$db = NewADOConnection('mysql');
if($_SERVER['SERVER_PORT'] == 8080)//local host server
{
//$db = NewADOConnection('mysql://ro... | true |
835ac419593a5f8f762c997f25bda9467a11dd86 | PHP | manachyn/imshop | /modules/search/src/components/query/parser/entry/QueryEntryInterface.php | UTF-8 | 372 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace im\search\components\query\parser\entry;
use im\search\components\query\SearchQueryInterface;
/**
* Interface QueryEntryInterface.
*
* @package im\search\components\query\parser\entry
*/
interface QueryEntryInterface
{
/**
* Converts query entry to query.
*
* @return SearchQuer... | true |
9bf83aa3e28676efab69fbf8a61619c23e7bcfbf | PHP | mr-augustine/sensor-data-repo | /lab3/ha_lab3/WebContent/views/MasterView.class.php | UTF-8 | 1,049 | 2.796875 | 3 | [] | no_license | <?php
class MasterView {
private static $STD_FOOTER = <<<EOT
<footer>
<hr>
<nav>
<a href="">Tour</a> |
<a href="">About</a> |
<a href="">Help</a> |
<a href="">Terms</a> |
<a href="">Privacy</a>
| <a href="tests.html">TESTS</a>
| <a href="create">CREATE</a>
| <a href="show">SHO... | true |
801402a3b2f738a6ed89051974a59a869d9cd008 | PHP | fracz/refactor-extractor | /results/maximebf--php-debugbar/836050cea5494468d5889941b61415f7831963a9/before/RequestDataCollector.php | UTF-8 | 499 | 2.65625 | 3 | [] | no_license | <?php
namespace DebugBar\DataCollector;
class RequestDataCollector extends DataCollector
{
public function getName()
{
return 'request';
}
public function collect()
{
$vars = array('_GET', '_POST', '_SESSION', '_COOKIE', '_SERVER');
$data = array();
foreach ($vars... | true |
c335d02cab9ddabe842f066e6c0aed33e6095dcf | PHP | cone011/tesis | /ajusteProducto/excelCierre/descargar_reporte_bd.php | UTF-8 | 2,641 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
///// INCLUIR LA CONEXIÓN A LA BD /////////////////
include('conexion.php');
///// CONSULTA A LA BASE DE DATOS /////////////////
$alumnos="SELECT * FROM cierre where year(fecha_add) = 2018";
$resAlumnos=$conexion->query($alumnos);
?>
<html lang="es">
<head>
<title>Excel de Cierre Turno Realizadas</title>
<m... | true |
cf514c5374ed2cc2bfe4df0567a5bf39a4806b40 | PHP | dnohales/kindlenewsletter | /src/Eor/KnlBundle/Readability/Article.php | UTF-8 | 1,580 | 2.5625 | 3 | [] | no_license | <?php
/*
* This file is part of the KindleNewsletter.com package.
*
* (c) Damián Nohales <damiannohales@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eor\KnlBundle\Readability;
/**
* Description of Art... | true |
1bbe7ebe3e782ce740f6032c0b0b3c6d090165d7 | PHP | brenoroosevelt/ddd-agetalk | /src/Shared/Infrastructure/Delivery/Http/Application.php | UTF-8 | 1,208 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace AgetalkDDD\Shared\Infrastructure\Delivery\Http;
use AgetalkDDD\Shared\Infrastructure\Delivery\Http\Contracts\ErrorRenderInterface;
use Laminas\HttpHandlerRunner\Emitter\EmitterInterface;
use League\Route\Router;
use Psr\Http\Message\ServerRequestInterface;
use Throwable;
fina... | true |
41b87417e1af2f61c0717d09ea5b3d7e1b15f423 | PHP | hscale/curator | /Curator/Autoload.php | UTF-8 | 3,566 | 2.96875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
/*
* This file is part of the Curator package.
* Copyright © 2011 Quentin Hill <quentin@quentinhill.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Curator;
/**
* Autoload class
*
* @package Curator
* @s... | true |
34ef0ab8cc7bfa1105c1eb6e2d6381ea350e5777 | PHP | remp2020/remp | /Mailer/extensions/mailer-module/src/Repositories/MailTypeStatsRepository.php | UTF-8 | 1,779 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Remp\MailerModule\Repositories;
use Nette\Caching\Storage;
use Nette\Database\Explorer;
use Nette\Utils\DateTime;
class MailTypeStatsRepository extends Repository
{
protected $tableName = 'mail_type_stats';
public function __construct(
Explorer $database,
... | true |
0bdd123daca5ad5a9c418af769046ac834a6ad4a | PHP | zmshurik/project-lvl2-s173 | /src/Renderers/toPretty.php | UTF-8 | 2,563 | 3 | 3 | [] | no_license | <?php
namespace Differ\Renderers\ToPretty;
use function Funct\Collection\flatten;
use function Differ\Renderers\Renderer\toBoolStr;
define('NOT_FIRST_CALL', false);
function normalizeVaule($value)
{
return is_bool($value) ? toBoolStr($value) : $value;
}
function renderToPretty($ast, $isFirstCall = true)
{
... | true |
f82ebee981c04e19705688e4775430c5033a7c96 | PHP | phpcrazy/wpa23 | /ooproject/animal.php | UTF-8 | 1,318 | 3.953125 | 4 | [] | no_license | <?php
class Cat extends Animal {
public function __destruct()
{
echo "Cat Destruct!";
}
public function meon() {
echo "Meon!";
}
}
abstract class Animal {
public $name;
public function __construct($name)
{
$this->name = $name;
}
public function eat() {... | true |
7342c797a9ff75480a301c7eb0d40c8f656877b7 | PHP | luizdogado/cadastro-produtos-codeigniter | /application/controllers/login.php | UTF-8 | 1,050 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php if (! defined('BASEPATH')) exit ('No direct scrip access allowed');
class Login extends CI_Controller
{
public function autenticar()
{
$this->load->model("usuarios_model");
$email=$this->input->post("email");
$senha=md5($this->input->post("senha"));
$usuario = $this->us... | true |
04a14475ae19a7d9b6050ee3f337bdec5878f26b | PHP | FlorianLeveil/php | /Pokemon/pokemon.php | UTF-8 | 602 | 3.46875 | 3 | [] | no_license | <?php
abstract class pokemon
{
protected $name;
protected $life;
protected $level;
protected $type;
protected $strength;
protected $domage;
protected $max_life;
public function __construct ($name, $max_life, $life, $level, $type, $strength)
{
$this->name = $name;
$th... | true |
5b6cb189cec0e7e3868e720639e7cceb648e7ed2 | PHP | TheDeveloper/closeio-php-sdk | /lib/Closeio.php | UTF-8 | 2,826 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* CLOSEIO PHP SDK.
*
* Created: July 2013
* Version: 0.0.1
*/
namespace closeio;
require(dirname(__FILE__).'/Methods.php');
require(dirname(__FILE__).'/routes/Lead.php');
define('CLOSEIO_TRANSPORT_PROTOCOL', 'https');
define('CLOSEIO_HOST', 'app.close.io/api/v1');
if(!defined('CLOSEIO_DEBUG')){
def... | true |
8b2cc2713d8f81bcfa48e180d4429e395acd633a | PHP | ZxPedro/urionline | /Iniciante/uri-1007.php | UTF-8 | 178 | 3 | 3 | [] | no_license | <?php
$a = fgets(STDIN);
$b = fgets(STDIN);
$c = fgets(STDIN);
$d = fgets(STDIN);
$dif = (intval($a) * intval($b) - intval($c) * intval($d));
echo "DIFERENCA = ".$dif. PHP_EOL; | true |
87e5a76747c8e748a0fd019df53826fcd5b4dbb3 | PHP | dmoreno996/Student-Exchange-Website | /profile.php | UTF-8 | 6,891 | 2.65625 | 3 | [] | no_license | <?php
session_start();
// Connect Script
$host = "localhost";
$user = "group4";
$password = "studentexchange";
$datab = "group4";
// connect to the database
$db = mysqli_connect($host, $user, $password, $datab);
// generic check for error
if(mysqli_connect_errno... | true |
9e4ccd0db147afbef4e8ffa8895582c3552829e4 | PHP | ajitsnz/PMCRM | /app/Console/Commands/ReminderMainSend.php | UTF-8 | 1,147 | 2.875 | 3 | [] | no_license | <?php
namespace App\Console\Commands;
use App\Repositories\ReminderRepository;
use Illuminate\Console\Command;
/**
* Class ReminderMainSend
*/
class ReminderMainSend extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'send:r... | true |
ff88336b852956bab815d2baa32aec77cf9a62c0 | PHP | PitAnalytics/inventario-back | /app/src/Modules/Zona.php | UTF-8 | 865 | 3.015625 | 3 | [] | no_license | <?php
namespace App\Modules;
//clase madre de conexion a base de datos por inyeccion de dependencias
use App\Primitives\Connection as Connection;
//interface de tabla (metodo index)
use App\Interfaces\TableInterface as TableInterface;
class Zona extends Connection implements TableInterface{
//mostramos toda la ... | true |
ca13bcbc654c592b3a36dc49a9f694c61d068a96 | PHP | washingtonstateuniversity/wsuwp-theme-web-design-system | /includes/include-options.php | UTF-8 | 640 | 2.65625 | 3 | [] | no_license | <?php namespace WSUWP\Theme\WDS;
class Options {
protected static $option_key = 'wsu_site_option';
public static function get( $property ) {
switch ( $property ) {
case 'option_key':
return self::$option_key;
default:
return '';
}
}
public function init() {
// Do init Stuff here
}
... | true |
32be6d4565e80e61ecea014e54c2d293de4b0e7e | PHP | vikraml30/need-hlp | /webservices/vehicle_mechanic.php | UTF-8 | 1,011 | 2.515625 | 3 | [] | no_license | <?php
include './include/DbHandler.php';
$db = new DbHandler();
$response = array();
$response["error"] = false;
$mobile = $_REQUEST['mobile'];
$requirement = $_REQUEST['requirement'];
$service_date = $_REQUEST['service_date'];
$service_time = $_REQUEST['service_time'];
$service_address = $_REQUEST['service_address'... | true |
17128f37d252ea487192f7f4375cfd4ae4c5f263 | PHP | DaveLiddament/sarb | /tests/Unit/Core/Common/LocationTest.php | UTF-8 | 2,533 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Tests\Unit\Core\Common;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\AbsoluteFileName;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\LineNumber;
use DaveLiddament\StaticAnalysisResultsBaseliner\Do... | true |
3c3a23cec6b2500e946bafd6a3d560dc004f5b1f | PHP | Velhron/dadata-bundle | /src/Model/Response/Suggest/OktmoResponse.php | UTF-8 | 1,203 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Velhron\DadataBundle\Model\Response\Suggest;
class OktmoResponse extends SuggestResponse
{
/**
* @var string Код ОКТМО
*/
public $oktmo;
/**
* @var string Тип муниципального района
*/
public $areaType;
/**
* @var string Код муниц... | true |
30009ba813d53e516df5982af812c7c6e8bf1e82 | PHP | chaouchAbderraouf/design-patterns-php | /behavioral/state/Mood.php | UTF-8 | 310 | 2.984375 | 3 | [] | no_license | <?php
namespace behavioral\state;
abstract class Mood {
protected $context;
public function setContext (Person $context) {
$this->context = $context;
}
public abstract function insult ();
public abstract function hug ();
public abstract function getName (string $name);
} | true |
24a23d6ce12e8711ba694fe257c907737f559492 | PHP | santiagopampillo/enerapi.com | /app/Repositories/UserRepository.php | UTF-8 | 1,635 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
use App\User;
use InfyOm\Generator\Common\BaseRepository;
/**
* Class UserRepository
* @package App\Repositories
* @version November 10, 2017, 8:03 pm UTC
*
* @method User findWithoutFail($id, $columns = ['*'])
* @method User find($id, $columns = ['*'])
* @method User first($... | true |
070c49d19bc329e77a5eadf44c09981b9de7b077 | PHP | pedrobrazao/zf2-mail-module | /src/PhowerMailModule/Mail/MessageInterface.php | UTF-8 | 486 | 2.65625 | 3 | [] | no_license | <?php
namespace PhowerMailModule\Mail;
use Zend\Mail\Transport\TransportInterface;
interface MessageInterface
{
/**
* Set transport
*
* @param TransportInterface $transport
*/
public function setTransport(TransportInterface $transport);
/**
* Get transport
*
* @retu... | true |
dc7c5b2b917dff0880f086d1e9f7ca8ae6aeea53 | PHP | ninhcan1234/moduleCRUD | /Eav/Controller/Action/Save.php | UTF-8 | 2,080 | 2.515625 | 3 | [] | no_license | <?php
namespace AHT\Eav\Controller\Action;
use Exception;
class Save extends \Magento\Framework\App\Action\Action
{
private $_productResource;
private $_productFactory;
public function __construct(
\AHT\Eav\Model\ProductFactory $productFactory,
\Magento\Framework\App\Action\Context $conte... | true |
0dadeb2d91263bc1e4c17f9c3452a5c9ea189d9c | PHP | vegetka/SSWD-A1 | /php/app.php | UTF-8 | 1,924 | 3.078125 | 3 | [] | no_license | <?php
// imports
include('DBController.php');
// Database parameters and object
$host = "localhost";
$userName = "root";
$password = ""; // to change
$dbName = "sswda1";
// Create database object
$database = new DBController($host, $userName, $password, $dbName);
// work... | true |
fcae24674c4da44d776a08eebe665f0ca2e8e46d | PHP | iesgrancapitan-proyectos/202021daw_junio_SKB_api | /apiShikoba/src/Action/PartesAlumnoReadAction.php | UTF-8 | 994 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Action;
use App\Domain\Parte\Service\ParteReader;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
final class PartesAlumnoReadAction
{
private $parteReader;
public function __construct(ParteReader $parteReader)
{
$this->parteReader = $part... | true |
0455340ed096c3c5ba6a6209466250e7b2aa6b40 | PHP | afflatus/afflatus | /src/Afflatus/Component/Router/RegexRoutingStrategy.php | UTF-8 | 1,795 | 2.875 | 3 | [
"Unlicense"
] | permissive | <?php
namespace Afflatus\Component\Router;
/**
* RegexRoutingStrategy
*
* @author András Kántor <andr.kantor@gmail.com>
* @since 2014.02.09. 21:06
*/
class RegexRoutingStrategy implements RoutingStrategyInterface
{
/**
* @var RegexRoutePatternInterface[]
*/
protected $patterns;
/**
* @... | true |
4382cc563c18dd6a7e40e884e7e382a8ae2fa154 | PHP | google-code/aframework | /aFramework/Lib/FormHandler.php | UTF-8 | 5,503 | 3.078125 | 3 | [] | no_license | <?php
class FormHandler {
private $fields = array();
private $values = array();
private $errors = array();
private $method;
private $action;
private $submitTitle;
private $validators = array();
public function __construct ($method = 'post', $action = '', $submitTitle = false, $validators = array()) ... | true |
c64897943d6703d80ae3b23ba90a23a7a1fd4fac | PHP | Nesnomis90/Project-workFLOW | /cron/minimumOnceAnHour.php | UTF-8 | 1,734 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
// Include functions
include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/helpers.inc.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/magicquotes.inc.php';
// PHP code that we will set to be run at a certain interval, with CRON, to interact with our database
// This file is set to run minimum once an hou... | true |
f19c6be570f06fc38d5474fe375f85d763058ecd | PHP | tetrium/EroticStoriesNeoApp | /app/src/main/assets/entities/UserAccountActionData.php | UTF-8 | 854 | 2.65625 | 3 | [] | no_license | <?php
namespace vanci_core\entities;
use vanci_core\libs\Common;
use vanci_core\libs\Globals;
/*
SCHEMA
file:///C:\xampp\htdocs\vanci\vanci_db\schema\user_account_action.sql
*/
class UserAccountActionData
{
/**
* @var int
*/
public $userAccount... | true |
3fefce4d7fc72cbb780707e03aeeac0c03140c9b | PHP | PierW/php-crud-hotel-adv | /getAddress.php | UTF-8 | 790 | 2.8125 | 3 | [] | no_license | <?php
if ($_POST["id"]) {
$id = $_POST["id"];
$server = "localhost";
$username = "root";
$password = "******";
$database = "Hotel";
$conn = new mysqli($server, $username, $password, $database);
if ($conn -> connect_errno) {
echo "Errori di connessione " . $conn -> connect_error;
... | true |
dc7aed4c04d849f2be3dbcdd8b3900347bb91d78 | PHP | MadLab/FPVRank.com | /app/Result.php | UTF-8 | 3,092 | 2.59375 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Result extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'eventId', 'pilotId', 'position', 'notes',
];
/**
* The primary key associated with the t... | true |
fe0995c5386c3113b6b65d84bf735c1483c84632 | PHP | captainkcodes/ITC492Project | /insert.php | UTF-8 | 507 | 2.796875 | 3 | [] | no_license | <?php include 'database_connect.php'; ?>
<?php
//create variables
$userName = $_POST['username'];
$userPass = $_POST['pass'];
//execute query
mysqli_query($conn, "INSERT INTO users (username, password) VALUES ('$userName', '$userPass')");
if(mysqli_affected_rows($conn) > 0){
echo "<p>Account added</p>";
//echo "<a... | true |
3af3b5f4527f34a609ab6bdb9ec6266dc485f74b | PHP | cutewebapps/webapps-shipper-lib | /classes/Shipper/model/Company/Dhl.php | UTF-8 | 808 | 2.625 | 3 | [] | no_license | <?php
class Shipper_Company_Dhl implements Shipper_Company
{
public function getName()
{
return 'Dhl';
}
public function getServices()
{
return array(
// 'Shipping Label',
);
}
public function getAccountFields()
{
return ar... | true |
0063d426ed20bb869130babf696f553e824528ec | PHP | hschulz/php-fpm-status-lib | /src/Model/Entry.php | UTF-8 | 2,094 | 3.078125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Hschulz\FpmStatus\Model;
/**
* Description of Entry
*/
class Entry
{
/**
* @var int
*/
public const PRIORITY_LOWEST = 0;
/**
* @var int
*/
public const PRIORITY_LOW = 25;
/**
* @var int
*/
public const PRIORITY_MEDIUM ... | true |