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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5058026777b1228723259a37a6f6ee3f9a31b4b2 | PHP | thiloshon/AdvancedServerCW | /application/libraries/Cart_library.php | UTF-8 | 2,110 | 3.421875 | 3 | [] | no_license | <?php
/**
* Library for simple cart manipulations.
*/
class Cart_library
{
function __construct()
{
$this->ci = &get_instance();
}
/**
* Add a book to the cart.
*
* @param $book_id
* @param $quantity
* @param $title
* @param $price
* @param $url
*/
public function add_book_to_cart($book_id, $... | true |
ba4bf13488d7191a1e29359899098efa46aea728 | PHP | yozedens/PHPInCom | /cryptEx.php | UTF-8 | 550 | 3.1875 | 3 | [
"MIT"
] | permissive | <?php
$str = 'This is an example!izd';
echo '加密前的字符串为:'.$str;
$crypttostr = crypt($str,'_S4..some');
echo '<p>加密后的字符串为:'.$crypttostr;
echo "<br>";
$otherStr = "This is an example!izd";
echo '加密前的字符串为:'.$otherStr;
$crypttootherstr = crypt($otherStr,'_S4..some');
echo '<p>加密后的字符串为:'.$... | true |
6834c7ed8faa3dd0d817c3458aa06108b62a73a6 | PHP | yooper/php-text-analysis | /src/Tokenizers/SentenceTokenizer.php | UTF-8 | 4,560 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace TextAnalysis\Tokenizers;
/**
* Tokenize on periods, question marks and exclamations
* @package Tokenizers\SentenceTokenizer
* @source http://stackoverflow.com/questions/34881790/split-string-into-sentences-using-regex
*/
class SentenceTokenizer extends TokenizerAbstract
... | true |
7a631e81c3e2b0a39054f0ac68f10e979e7b5069 | PHP | yixiongng/phpTutorial2 | /controllers/HomeController.php | UTF-8 | 1,804 | 3 | 3 | [] | no_license | <?php
/*requirement
- create a form for user to fill in
- store details into database
*/
namespace App\Controllers;
use User;
use League\Plates\Engine;
use OpenCon;
require(__DIR__.'/../models/user.php');
require(__DIR__.'/../helpers/dbConnection.php');
class Home... | true |
1d027aff4134f4a0c76a132e6fad05ab29c2ca0f | PHP | milos-tomasevic-devtech/webshop | /app/api/shopapi.php | UTF-8 | 1,846 | 2.6875 | 3 | [] | no_license | <?php
require_once 'api.class.php';
require_once 'config/db.php';
class ShopAPI extends API
{
public function __construct($request, $origin) {
parent::__construct($request);
$this->db = Database::getInstance();
$this->mysqli = $this->db->getConnection();
}
protected function pr... | true |
3df2b921f88da6fb15bb7231c7f12d520123d5db | PHP | boparaiamrit/extendable | /src/Boparaiamrit/Extendable/ExtendableModel.php | UTF-8 | 4,085 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace Boparaiamrit\Extendable;
use Boparaiamrit\Extendable\CustomField\CustomField;
use Boparaiamrit\Extendable\CustomField\TCustomField;
use Illuminate\Database\Eloquent\Model;
/**
* Class CustomFieldModel
*
* @property int id
* @package Boparaiamrit\Extendable
*/
class ExtendableModel extends Model
... | true |
85c280479964d05d5f86ccfb293daa19d27e449e | PHP | Louis-joseph/Landing-page | /Espace admin/delete.php | UTF-8 | 1,445 | 2.765625 | 3 | [] | no_license | <?php
session_start();
if(!$_SESSION['mdp']){
header('location:login.php');
}
$Serveur="localhost";
$NomBdd="portfolio";
$login="root";
$pass="";
if(isset($_GET["IdDelete"])){
//si la variable existe je fait la modification
$idProjet = $_GET["IdDelete"];
echo "<h1>... | true |
5e7157b3c6d9e33b04fb7aed2574fc450027c3a8 | PHP | Scouts-Sint-Joris/SIJOT-4.x | /app/Repositories/UserRepository.php | UTF-8 | 1,882 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
namespace Sijot\Repositories;
use Sijot\User;
use ActivismeBE\DatabaseLayering\Repositories\Contracts\RepositoryInterface;
use ActivismeBE\DatabaseLayering\Repositories\Eloquent\Repository;
use Spatie\Permission\Models\Role;
use Illuminate\Pagination\Paginator;
/**
* Class UserRepository
*
* @package Sijot... | true |
be617d639db679afcf520faf708d13bf0d54eb09 | PHP | TerbiumLibs/dbConfig | /src/Terbium/DbConfig/Interfaces/DbProviderInterface.php | UTF-8 | 566 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php namespace Terbium\DbConfig\Interfaces;
interface DbProviderInterface {
/**
* Load the given configuration collection.
*
* @param string $collection
* @return array
*/
public function load($collection = null);
/**
* Save item to the database or update the existing one
*
* @param string $key... | true |
8cc81f3433631a374e4d63f476e37d16c97b4c22 | PHP | poeticmatter/dbconnect | /PHP/get_cards.php | UTF-8 | 1,153 | 2.53125 | 3 | [] | no_license | <?php
$con = mysqli_connect('localhost', 'root', 'root', 'keyforgedb');
if (mysqli_connect_errno())
{
echo "1 - connection failed";
exit();
}
$expansionName= $_POST["expansion"];
$house = $_POST["house"];
$expansionNumber = 0;
if ($expansionName == "Call of the Archons") {
$expansionNumber = 341;
}
... | true |
699aa0b23a3c5b924f106ab413d908b195440159 | PHP | ArnoldZurbito/VarChar | /admin/getproduct.php | UTF-8 | 2,974 | 2.875 | 3 | [] | no_license | <?php
$mysqli = new mysqli("localhost", "root", "", "varchar");
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli->connect_error;
}
$sql="SELECT * FROM product";
$result = $mysqli->query($sql);
echo "<table id='product' class='table table-bordered table-striped'>
<tr>
<th> ID</th>
<th> N... | true |
9dac16fd5d58c19ae4c3c4e781701837e38b1203 | PHP | ProtonMail/vobject | /lib/TimezoneGuesser/FindFromOutlookCities.php | UTF-8 | 1,067 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
declare(strict_types=1);
namespace Sabre\VObject\TimezoneGuesser;
use DateTimeZone;
class FindFromOutlookCities implements TimezoneFinder
{
/**
* Example: TZID:(UTC+01:00) Bruxelles\, København\, Madrid\, Paris
*/
public function find(string $tzid, bool $failIfUncertain = false): ?DateTimeZo... | true |
36afa6c8dd98198f4ebc8324634425b8bcd5903b | PHP | suchartorr/orr-code | /setup_db.php | UTF-8 | 2,388 | 3.09375 | 3 | [
"MIT"
] | permissive | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of setup_db
* เพื่อใช้ทดสอบการเชื่อมต่อฐานข้อมูล
* @author suchart.orr@gmail.com
*/
class setup_db {
... | true |
525b9b725176c3f0d5c115ede8d393b18fad317a | PHP | ClemOz-Dev/Shop | /app/Controllers/CatalogController.php | UTF-8 | 4,429 | 2.75 | 3 | [] | no_license | <?php
namespace OShop\Controllers;
use OShop\Models\Brand;
use OShop\Models\Product;
use OShop\Models\Type;
use OShop\Models\Category;
class CatalogController extends CoreController
{
// méthode pour afficher la page de category
public function category($capturedByAltoRouterVariables)
{
// récup... | true |
4e68038b66df1028a37e9b859455561d026bd85d | PHP | sonvq/phpunittraining | /demo/visualphpunitui/app/test/Test/DependencyTest.php | UTF-8 | 1,137 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace Test;
class DependencyTest extends \PHPUnit_Framework_TestCase
{
//because OPS is sum total of on base percentage plus sluggin average, we can use the depends annotation
public function testSlugging() {
$baseball = new Baseball();
$slg = $baseball->calc_slg(389, 106, 12, 4... | true |
e7383d8cf5ce409a90c41377bcc498b1fa780c70 | PHP | ThierryAlves/IFSP-Provas | /app/Http/Requests/LoginRequest.php | UTF-8 | 793 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... | true |
f28e8e92b5dba8e7a3540b3010f071d5f6cca49e | PHP | bosunski/picbcms | /includes/mods/catm.php | UTF-8 | 2,574 | 2.6875 | 3 | [] | no_license | <?php
/**
*
*/
class catm extends Elyon_model
{
function __construct()
{
parent::__construct();
}
//Gets all the Categories that exists
public function get_all_categories($col = null, $limit = null) {
$field = ($col == null) ? '*' : $col;
$qryAppend = ($limit == null)... | true |
6c9201ab3214ba3d86640e07393de16130f57904 | PHP | JeroenBoersma/php-template-bridge | /src/Engine/EngineInterface.php | UTF-8 | 1,542 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Srcoder\TemplateBridge\Engine;
use Srcoder\TemplateBridge\Data;
use Srcoder\TemplateBridge\Content;
use Srcoder\TemplateBridge\Exception\NotFoundException;
interface EngineInterface
{
/**
* Does a file exists
*
* @param string $filename
* @return boo... | true |
74b616b3a50f71c7b4f5796dbbfff05120f99021 | PHP | gilcleis/research-module | /app/Services/DimensionService.php | UTF-8 | 3,253 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Services;
use App\Http\Requests\DimensionRequest;
use App\Models\Dimension;
use App\Repositories\DimensionRepository;
use Exception;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use \Illumi... | true |
b1be680dde6d969f4903b4354684ea3e72c57648 | PHP | nullvar/QuestionAndAnswer | /src/Presentation/Common/Core/User/Command/ChangeUserPasswordCommand.php | UTF-8 | 703 | 2.8125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Presentation\Common\Core\User\Command;
use App\Core\Application\User\CommandService\ChangeUserPasswordCommand as ChangeUserPasswordCommandInterface;
use App\Core\Domain\User\UserId;
final class ChangeUserPasswordCommand implements ChangeUserPasswordCommandInterface
{
... | true |
cbd66ff919798111ca4d5c2c24ebb8f45d8e3324 | PHP | ASDAFF/kit-bitrix-packages | /constructor/source/intec.constructor/classes/Module.php | UTF-8 | 278 | 2.578125 | 3 | [] | no_license | <?php
namespace intec\constructor;
/**
* Class Module
* @package intec\constructor
*/
class Module
{
/**
* Является облегченным модулем.
* @return boolean
*/
public static function isLite()
{
return false;
}
} | true |
6047176f3b43af62928167f45ec3ee16a073e698 | PHP | sunnynewlife/mamiwin | /luna_sdk/lib/report/LunaReport.php | UTF-8 | 1,324 | 2.53125 | 3 | [] | no_license | <?php
LunaLoader::import("luna_lib.util.IReportMsgFormat");
LunaLoader::import("luna_lib.util.IReportPersist");
LunaLoader::import("luna_core.LunaConfigMagt");
class LunaReport
{
const _REPORT_CONFIG_SECTION ="DataReport";
private static $_instance=null;
public static function GetInstance()
{
if(!isset(self:... | true |
9b4f6bf9d2da2cc8312f11dac88f45993a54f2eb | PHP | BrandonPorras/TIVY | /database/migrations/2019_09_14_234214_create_tivies_table.php | UTF-8 | 1,203 | 2.578125 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTiviesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tivies', functio... | true |
a3582df350437b8eb579c97ed402e26cc76199e2 | PHP | esmircm/poa | /protected/models/poa/VswPersonal.php | UTF-8 | 4,011 | 2.625 | 3 | [] | no_license | <?php
/**
* This is the model class for table "poa.vsw_personal".
*
* The followings are the available columns in table 'poa.vsw_personal':
* @property integer $id_persona
* @property string $nacionalidad
* @property integer $cedula
* @property string $apellidos
* @property string $nombres
* @property string ... | true |
a27bafcfece687b45fbc650c8d8a605cf2efcfe7 | PHP | mattw65/iManage | /ProjectsExport.php | UTF-8 | 1,377 | 2.8125 | 3 | [] | no_license | <?php
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 'On');
echo "hi"
if (isset($_SESSION['username'])) {
$user= $_SESSION['username'];
}else {
header("Location: http://cs.virginia.e... | true |
130d15772c4e05335a52915d0de8edca4551e7ab | PHP | jbenastey/sigaka-1 | /application/controllers/JabatanController.php | UTF-8 | 2,179 | 2.609375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
*
*/
class JabatanController extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('JabatanModel');
}
function index()
{
$data['jabatan'] = $this->JabatanModel->tampildata();
$this->load->view('templates/header');
... | true |
6e965cd597a4853f69faa697e71dba8164fdc209 | PHP | pivovarcik/cms-gambik | /server/core/library/Gambik/DirOrganizator.php | UTF-8 | 4,841 | 3.140625 | 3 | [] | no_license | <?php
class FolderIteratorLog
{
/**
* Vrací název logovacího souboru
*
* @return String
*/
private static function __logfile()
{
return PATH_IMG.'folder.log';
}
/**
* Vymaže všechny zprávy z logu
*
*/
public static function getLastIndex()
{
//@file_put_contents(self::__logfile(), '');
i... | true |
18a562cbe864ea237e31c26780814696874fc4d2 | PHP | hanswestman/WPToolkit-2 | /modules/ModuleBase.class.php | UTF-8 | 810 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Abstract class that can be used to extend normal modules with extra automatic functionality.
* @package WP Toolkit 2
* @author Hans Westman <hanswestman@gmail.com>
*/
abstract class ModuleBase {
var $name = '';
var $version = '';
var $author = '';
var $description = '';
var $helpfile = false;
va... | true |
6626158473c45a10be6d9cc061b8c4b0275c0fcb | PHP | edvariables/edQ | /pages/edQ/_format/csv/from rows.php | UTF-8 | 4,441 | 2.734375 | 3 | [] | no_license | <?php /* Conversion de données en fichier .csv
Les données peuvent être fournies sous forme de tableau ou sous forme html.
Le fournisseur est désigné par la propriété $arguments['node'].
Ce noeud est appelé en transmettant la variable $arguments.
Ce noeud fournit les données en retour d'après l'existence de l'argum... | true |
6446c886d38d52a0a8916c0ab07ea2a70626f603 | PHP | Larriche/laranews | /app/News.php | UTF-8 | 760 | 2.53125 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
class News extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'news';
protected $fillable = ['title','body','intro','published_at','user_id','image_url'];
... | true |
af13f62e80f39b41af179586bf132dbecaa5bb7d | PHP | ASKJR/firefly | /app/Http/Controllers/PlaylistSongController.php | UTF-8 | 2,616 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Vagalume\Vagalume;
use App\Playlist;
use App\Song;
class PlaylistSongController extends Controller
{
/**
* @return JSON
*/
public function ajaxSearchSong()
{
$data = request()->validate([
'artistName' => 'requ... | true |
2a55a7e0bd4fbb16750267f4d3d4f5303da44d7a | PHP | damenjs/hhvm | /hphp/hack/src/h2tp/resources/containers/pair.php | UTF-8 | 1,239 | 2.796875 | 3 | [
"BSD-3-Clause",
"Zend-2.0",
"PHP-3.01"
] | permissive | <?php
// Copyright 2004-present Facebook. All Rights Reserved.
namespace HH {
require_once(__DIR__.SEP.'interfaces.php');
require_once(__DIR__.SEP.'helper_traits'.SEP.'hacklib_immVectorLike.php');
require_once(__DIR__.SEP.'pairIterator.php');
final class Pair implements \ConstVector, \ArrayAccess, \Stringish... | true |
4a480c933f8c8ebb50f12743b83a3d8f9316712a | PHP | Pkanere/Information-Retrival-and-Web-Search-Engine-CSCI-572 | /Enhancing Your Search Engine/UI.php | UTF-8 | 6,062 | 2.515625 | 3 | [] | no_license | <?php
ini_set('memory_limit',-1);
//ini_set('max_execution_time', -1);
include 'SpellCorrector.php';
include 'textSnippet.php';
// make sure browsers see this page as utf-8 encoded HTML
header('Content-Type: text/html; charset=utf-8');
$limit = 10;
$query = isset($_REQUEST['q']) ? $_REQUEST['q'] : false;
$so... | true |
a037bc8e4267301fafc9f435dc84e5844a7b4a99 | PHP | takwasouihi/bibliotheque_techno | /controller/categories.php | UTF-8 | 2,845 | 3.109375 | 3 | [] | no_license | <?php
include_once "config.php";
class categories
{
function ajoutercategorie($categorie)
{
$sql = "insert into categories(name) values (:name)";
$db = config::getConnexion();
try {
$req = $db->prepare($sql);
$name = $categorie->getName();
$req->bi... | true |
01391141b723c3a7b9dc766dfd5da862ee534a6c | PHP | GlobaTech/YourVoice | /Result.php | UTF-8 | 679 | 3.015625 | 3 | [] | no_license | <?php session_start();?>
<html>
<head><title>Elections result</title></head>
<body>
<h1>Elections result</h1>
<p>Here you can see the result of the election, when the election has been counted</p>
<table>
<tr><td>Option</td><td>Result</td></tr>
<?php
include_once("Database.php");
// Now ... | true |
4d1e6ce68a036aeccd6f476961870e77208debb4 | PHP | jhonatasFelipe/mundo_wap | /src/Controllers/UsuarioController.php | UTF-8 | 1,594 | 2.671875 | 3 | [] | no_license | <?php
namespace src\Controllers;
use League\Container\Container;
use motor\Controller;
use motor\Router;
use src\Repositories\DataBase\UsuarioDataBaseRepository;
use src\Singleton\ContainerSingleton;
use Twig\Environment;
class UsuarioController extends Controller
{
protected $view;
public function __con... | true |
6b3bf83167298786ca61cadcc1f62f67e778697e | PHP | cloner3000/website-penelitian | /config/koneksi.php | UTF-8 | 386 | 2.546875 | 3 | [] | no_license | <?php
//membuat deklarasi variable
$hostname = "localhost";
$username = "root";
$password = "";
$database = "website_penelitian";
//create variable connectin
$connection = mysqli_connect($hostname, $username, $password, $database);
//checking connection
if($connection) // TRUE
{
//echo "koneksi berhasil!";
}el... | true |
518890fe640d8d557402e82561ff150baa69d5ca | PHP | xgerrmann/schoonmaakrooster | /src/verborgen/indeling.php | UTF-8 | 11,593 | 2.96875 | 3 | [] | no_license | <?php
function indeling($conn, $week_start, $jaar_start, $aantalweken)
{
echo "Enter indeling()";
#### OUTPUT UIT
//ob_start();
for ($teller = 0; $teller < $aantalweken; $teller++) {
// Berekenen van de eerste dag van de schoonmaakweek
$week = weekMod($week_start + $teller);
$j... | true |
9de2e050bb959fd6e7204e85381847bfa9454f11 | PHP | masthan8/NexoPOS-v4 | /app/Services/CustomerService.php | UTF-8 | 7,758 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Services;
use Exception;
use Illuminate\Support\Facades\Auth;
use App\Models\Customer;
use App\Models\CustomerAddress;
use Tendoo\Core\Exceptions\NotFoundException;
use Tendoo\Core\Exceptions\NotAllowedException;
class CustomerService
{
/**
* get all the defined customers
* @param ar... | true |
64946ee75242667f86efdf7a28c63c846e4123ec | PHP | ymartin951/sirmartin | /SDA/add_district.php | UTF-8 | 3,227 | 2.578125 | 3 | [] | no_license | <?php
$location = "";
$crimeT = "";
$date = "";
$desc = "";
$Station = "";
$error_messsage = array();
$time = "";
//if the submit button is clicked
if(isset($_POST['add_district'])){
if (isset($_SESSION['station_id'])) {
... | true |
05c8bf87062ba48cea21919d93430ad615787d56 | PHP | jost125/koala-php-aop | /src/Koala/AOP/Pointcut/Compiler/MethodMatcherCompiler.php | UTF-8 | 2,359 | 2.671875 | 3 | [] | no_license | <?php
namespace Koala\AOP\Pointcut\Compiler;
use Koala\AOP\Pointcut\Parser\Lexer;
use Koala\AOP\Pointcut\PointcutExpression;
use Koala\IO\Storage\FileStorage;
use Koala\IO\Stream\StringInputStream;
use Koala\Reflection\Annotation\Parsing\AnnotationResolver;
use Koala\Reflection\MethodMatcher;
class MethodMatcherComp... | true |
dd32ada0d9843be050e8fc36328e7b078f1109db | PHP | MobileIA/mia-authentication-zf3 | /src/Controller/LoginController.php | UTF-8 | 6,242 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace MIAAuthentication\Controller;
... | true |
76b62b2304641253ea6eb2489416e13a338dc9f3 | PHP | Anderssorby/softenowebtool | /lib/Node.class.php | UTF-8 | 7,289 | 3.09375 | 3 | [] | no_license | <?php
//
// Node.php
// softenowebtool
//
// Created by anders on 2011-09-03.
// Copyright 2011 anders. All rights reserved.
//
/**
* Node is a component in a Document of the DOM stucture.
*/
class Node {
private $position = 0;
protected $attributes = array();
protected $nodeType = 0;
protected $type = "";
... | true |
5eef0e8d861e885827ace32fd52f163e1f22bc77 | PHP | Jeket/xml | /tests/Xml/Reader/Configurator/ParserOptionsTest.php | UTF-8 | 1,004 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace VeeWee\Tests\Xml\Reader\Configurator;
use PHPUnit\Framework\TestCase;
use ValueError;
use VeeWee\Xml\Reader\Reader;
use XMLReader;
use function VeeWee\Xml\Reader\Configurator\parser_options;
use function VeeWee\Xml\Reader\Matcher\node_name;
final class ParserOptionsTest exte... | true |
21b0d369cf51fa2e94bb8c96a27c10a4832f7ed3 | PHP | liyingfu14/liyingfu | /application/common/model/BaseModel.php | UTF-8 | 4,238 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by TianQi.
* User: weblinuxgame
* Email: 994685563@qq.com
* Date: 2018-05-09
* Time: 11:42
*/
namespace app\common\model;
use app\common\lib\Utils;
use think\Log;
use think\Model;
use think\Config;
class BaseModel extends Model
{
// 查询 限定 fields 字段 配置
protected $area = [];
// ... | true |
97d5b686b619490fc27ea778765b67bba3fc027e | PHP | hoangnhonline/game | /app/Models/LinkSite.php | UTF-8 | 584 | 2.515625 | 3 | [] | no_license | <?php namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LinkSite extends Model {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'link_site';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timest... | true |
cf41095ad3998fdf301fbfdc7b078d65ec970fad | PHP | guilhemVB/Pegase | /src/CalculatorBundle/Service/CRUD/CRUDVoyage.php | UTF-8 | 2,367 | 2.828125 | 3 | [] | no_license | <?php
namespace CalculatorBundle\Service\CRUD;
use AppBundle\Entity\Destination;
use AppBundle\Entity\User;
use CalculatorBundle\Entity\Voyage;
use CalculatorBundle\Service\GoogleUrlShortener\GoogleUrlShortenerApiInterface;
use CalculatorBundle\Service\Journey\JourneyService;
use Doctrine\ORM\EntityManager;
class CR... | true |
3c92e77d1234515898f43cad78527e501f787d01 | PHP | amirsanni/php-ews-wrapper | /vendor/php-ews/php-ews/src/Enumeration/AggregateType.php | UTF-8 | 681 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Contains \jamesiarmes\PhpEws\Enumeration\AggregateType.
*/
namespace jamesiarmes\PhpEws\Enumeration;
use \jamesiarmes\PhpEws\Enumeration;
/**
* Indicates the maximum or minimum value of a property that is used for
* ordering groups of items.
*
* @package php-ews\Enumeration
*/
class AggregateType ... | true |
cbe6ecf1f109106a385b3168bc7036ba34770509 | PHP | huyIttos2/product-repo | /app/Http/Controllers/ProductController.php | UTF-8 | 1,435 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Http\Services\ProductService;
use http\Env\Response;
use Illuminate\Http\Request;
class ProductController extends Controller
{
protected $productService;
public function __construct(ProductService $productService)
{
$this->productService =$productServ... | true |
eee4bf1fa9966c7ddb4e2fe564a14ddcc70214e0 | PHP | cabiria-cooperativa/wordpress-searching-custom | /cabi-searching-custom.php | UTF-8 | 10,298 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Plugin Name: Cabiria Plugin Searchin'custom
* Plugin URI: https://www.cabiria.net
* Description: Plugin per la ricerca in custom post / custom field.
* Version: 1.0.0
* Author: Simone Alati
* Author URI: https://www.cabiria.net
* Text Domain: cabi
*/
class CabiSearchingCustom {
private $data =... | true |
4f7874eeb59cfe86bf392388c3c92b10e70ba811 | PHP | jonathan-banon/Gambin | /src/Entity/Image.php | UTF-8 | 1,980 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entity;
use App\Repository\ImageRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ImageRepository::class)
*/
class Image
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(t... | true |
f39c6e078775d78930dbfb9bf1fd136c7b402aa4 | PHP | hongphat134/Do_An_Web | /classes/Provider.class.php | UTF-8 | 4,164 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
class Provider extends Db
{
private $_page_size = 5;//Một trang hiển hị 5 cuốn sách
private $_page_count;
public function setPageSize($page_size){
$this->_page_size = $page_size;
}
public function getProductCount($mancc){
$sql = "SELECT COUNT(*)
FROM product
WHERE `product`.provider... | true |
9ee63ad9ff854a93201dc55e7949d96ed86d73fb | PHP | uwehornnet/fewo-occupancy-plugin | /public/dependencies.php | UTF-8 | 1,317 | 2.578125 | 3 | [] | no_license | <?php
class FewoOccupancyDependencies{
public function __construct()
{
add_action( 'admin_enqueue_scripts', array($this, 'enqueue_fewo_occupancy_plugin_admin') );
add_action( 'wp_enqueue_scripts', array($this, 'enqueue_fewo_occupancy_plugin') );
}
public function enqueue_fewo_occupancy... | true |
f15f325f628ed997fc506090c72378f4032c9dee | PHP | BiveGpe/Php_poradnik | /Strona/warunkowe.php | UTF-8 | 1,212 | 3.375 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Instrukcje Warunkowe (IF, ELSE)</ti... | true |
99d56399703234cc92f73c4f290964253d603cd5 | PHP | gierszewska/programowanie | /Programowanie/PHP/Lekcja_3/ex_1/ex_1_data.php | UTF-8 | 520 | 2.796875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wynik</title>
</head>
<body>
<h4>Wynik</h4>
<?php
if (!empty($_GET['city'])&& !empty($_GET['age'])) {
echo <<<T
Mia... | true |
625418fe17dec6f9d584d8ed7d6a22708e90e741 | PHP | sghsgm99/symfony-tsk | /src/TSK/PaymentBundle/Ruler/DiscountRulesEngine.php | UTF-8 | 3,085 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace TSK\PaymentBundle\Ruler;
use Ruler\Context;
use Doctrine\ORM\EntityManager;
use TSK\RulerBundle\Ruler\RulesEngine;
use TSK\RulerBundle\Model\RuleGroup;
use TSK\RulerBundle\Ruler\RulesEngineInterface;
use TSK\RulerBundle\Ruler\RewardsEngineInterface;
use TSK\StudentBundle\Form\Model\StudentRegistration;... | true |
e563db5e30182c5930b4a4fa01441d77cf238df5 | PHP | sunaoka/omise-php | /tests/omise/SchedulerTest.php | UTF-8 | 5,983 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
require_once dirname(__FILE__).'/TestConfig.php';
class SchedulerTest extends TestConfig
{
/**
* @test
*/
public function existing_methods()
{
$this->assertTrue(method_exists('OmiseScheduler', 'every'));
$this->assertTrue(method_exists('OmiseScheduler', 'days'));
$th... | true |
2b0dc43d78947ce5d68aa2f12b94b969afd112fc | PHP | shaffay/wwww | /create.php | UTF-8 | 3,396 | 2.609375 | 3 | [] | no_license | <!doctype html>
<html lang="en">
<head>
<title>Add Student</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/b... | true |
7e273b68a9b9e1d2228e890b3fbb901f48504102 | PHP | HDNET/hdnet-standards | /src/Linter/JsonLinter.php | UTF-8 | 404 | 2.625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace HDNET\Standards\Linter;
use Seld\JsonLint\JsonParser;
class JsonLinter implements LinterInterface
{
public function lint(string $filename): bool
{
$jsonParser = new JsonParser();
return null === $jsonParser->lint(file_get_contents($filename));
}
... | true |
0b2f025f7bb4109bebe9aedb1f59a5932f3de9f1 | PHP | rustagiadi95/Student-Result-Management | /student_dbhandler.php | UTF-8 | 4,088 | 2.84375 | 3 | [] | no_license | <?php
class ConnectionProvider{
function getDBConnection(){
$conn = new mysqli("localhost","root","","srms");
if($conn->connect_error){
die("Connection to the db failed".$conn->connect_error) ;
}else{
return $conn ;
}
}
... | true |
6be2f4a555a288a3b7bb66cee86c0f8d5b724c5b | PHP | felixacdc/EcommerceLaravelOja.la | /Ecommerce-ojala/app/database/seeds/LibrosTableSeeder.php | UTF-8 | 685 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
class LibrosTableSeeder extends Seeder {
public function run()
{
// Uncomment the below to wipe the table clean before populating
DB::table('libros')->truncate();
$faker = Faker\Factory::create();
for ($i=0; $i < 10; $i++) {
Libro::create([
'titulo' => $faker->text(40),
'isbn' => $fa... | true |
ad2d141742a23be6e18350f227302335c71d3d5a | PHP | erdivyang10/php-test | /task4/task4.php | UTF-8 | 237 | 3.140625 | 3 | [] | no_license | <?php
error_reporting(0);
Class Task4
{
function sum($argv){
$number =str_replace('\\', ';', $argv);
echo 'Sum = ' . array_sum(explode(';',$number));
}
}
$value=getopt(null, ["n:"]);
Task4::sum($value['n']);
?> | true |
b9412e680d56aade308ef95ded4a45b170d6d509 | PHP | alanjhonnes/activitystream-poc | /src/AppBundle/Entity/Timeline.php | UTF-8 | 2,247 | 2.65625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: alanjhonnes
* Date: 10/8/2015
* Time: 3:57 PM
*/
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mappi... | true |
ee19284a441b8a032c3cd73f74de4701acaff2cc | PHP | Ciolo2002/FoodBlog | /InsertNewRecipe.php | UTF-8 | 26,450 | 2.625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<?php ob_start(); //non so cosa sia ma mi risolve un bug legato a header(refresh:0)
?>
<?php
require_once("header.php");
if (isset($_SESSION['modifyByAdmin']) && isset($_SESSION['modifyByAdmin']) == true) {
$_SESSION['modifyByAdmin'] = false;
}
... | true |
3da8f8548230b6263cfd37ffc8c1bcc417e2722a | PHP | oma378501/juez-virtual-olimpistas | /module/Problem/src/Problem/Model/TestCaseTable.php | UTF-8 | 1,168 | 2.640625 | 3 | [] | no_license | <?php
namespace Problem\Model;
use Zend\Db\TableGateway\TableGateway;
class TestCaseTable {
protected $tableGateway;
public function __construct(TableGateway $tableGateway) {
$this->tableGateway = $tableGateway;
}
public function get($id) {
$id = (int) $id;
$rowset = $t... | true |
d834b2046dd8ec73cae311c1ad6c277c0abe36aa | PHP | Dionisiy/first_repository | /w3schools/php/16_php_form_handling/ex1.php | UTF-8 | 425 | 2.65625 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<body>
<form method="get" action="check_request.php" autocomplete="off">
First Name:<input type ="text" name="firstName">
<br>
<input type="submit">
</form>
<?php
if($_SERVER['REQUEST_MEHTOD']=="POST"){
//
$name =$_POST['name'];
if(empty($name)){
... | true |
4dafecd98000e882fc98fd133d1003029fa6cce0 | PHP | baagas0/buku-induk | /app/Teacher.php | UTF-8 | 1,829 | 2.59375 | 3 | [] | no_license | <?php
namespace App;
use App\Notifications\Teacher\Auth\ResetPassword;
use App\Notifications\Teacher\Auth\VerifyEmail;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Teacher extends Authenticatable
{
use Notifiable;
/**
* The attributes that are m... | true |
31b718681dc7965a0b79ac8ac4e0cfb87f2148cb | PHP | rousan22/110533430663 | /PHP - Modul 2/tugasprak-1a.php | UTF-8 | 333 | 3.296875 | 3 | [] | no_license | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Passing By Value</title>
</head>
<body>
<h3><p> Passing by Value </p></h3>
<?php
function jumlah($nilai) {
$nilai++;
}
$input=4;
jumlah($input);
echo $input;
?>
</b... | true |
631490b7b011bdbf4cbbe0ac15bea81858ba114b | PHP | LucasDev173/tpe | /app/controllers/auth.controller.php | UTF-8 | 1,907 | 2.625 | 3 | [] | no_license | <?php
include_once 'app/view/auth.view.php';
include_once 'app/models/user.model.php';
include_once 'app/view/books.view.php';
include_once 'app/models/books.model.php';
include_once 'app/models/category.model.php';
include_once 'app/helpers/auth.helper.php';
class AuthController {
private $view;
private $mo... | true |
9543002a46c1890833838e9ae324f1eb093c08bc | PHP | RenanCardoso/training-core-painel | /src/database/seeders/ObjetivoTreinoSeeder.php | UTF-8 | 809 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ObjetivoTreinoSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$objetivo_treino = [
0 => [
"i... | true |
a2277e83b24908728c1db57b98be9fddd88a936f | PHP | gandro/yafu4 | /includes/user.php | UTF-8 | 2,976 | 2.921875 | 3 | [] | no_license | <?php
define("user_INFO", "/info");
class user_info_struct extends struct_fixed_array {
var $Password = null;
var $EMail = null;
var $RegisterDate = 0;
var $Remembered = false;
}
function user_create($username, $password, $email) {
if(($basePath = @user_get_basedir($user... | true |
0f763177444806630fa18935acf72415802097ed | PHP | Swestr/Projet-Dev.-Web | /Partie Design/Chat_BD/Objet_BD.php | UTF-8 | 5,693 | 2.71875 | 3 | [] | no_license | <?php
require_once("Chat.php");
require_once("Chat_Global.php");
require_once("Chat_Partie.php");
require_once("Chat_Prive.php");
require_once("Joueur.php");
require_once("Partie.php");
require_once("Message.php");
function importerChatGlobal($conn){
$requete_messages = "";
... | true |
a54fcc6f27b4d181d53bd23efa1dc6cd29571e7e | PHP | bluemanos/consoler | /src/Consoler/Provider/Console/ContainerAwareApplication.php | UTF-8 | 1,544 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Consoler framework.
*
* (c) Szymon Bluma <szbluma@gmail.com>
*/
namespace Consoler\Provider\Console;
use Symfony\Component\Console\Application;
/**
* Consoler Pimple Console Application.
*
* @author Szymon Bluma <szbluma@gmail.com>
*/
class ContainerAwareApplication exten... | true |
0d9ebd503820c5c1d593785d63586b9da6422548 | PHP | neenujosephmm/test | /Faq/Api/Data/FaqInterface.php | UTF-8 | 1,289 | 2.625 | 3 | [] | no_license | <?php
/**
* @author Ceymox Team
* @copyright Copyright (c) 2019 Ceymox (https://ceymox.com)
* @package Ceymox_Faq
*/
namespace Ceymox\Faq\Api\Data;
use Magento\Framework\Api\ExtensibleDataInterface;
interface FaqInterface extends ExtensibleDataInterface
{
const FAQ_ID = 'faq_id';
co... | true |
4dea09b2ae405e884e4ee8eb111ce8b4b075dca0 | PHP | dshafik/Squiz-Framework | /Systems/GUI/Widgets/ScreenSwitcher/GUIScreenSwitcherActions.inc | UTF-8 | 3,851 | 2.578125 | 3 | [] | no_license | <?php
/**
* Actions for the GUI Screen Switcher Widget System.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be us... | true |
7f914b81e7e35f6db94237214b512af680694446 | PHP | juliocsantaman/php-notes | /blog-proyect/show-blog.php | UTF-8 | 1,279 | 2.875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="">
<link rel="icon" type="image/jpg" href="">
<title>Mostrando Blog</title>
</head>
<body... | true |
15257e1feb31280f6c762b4c95eebc5053646203 | PHP | wanglinglingyb/php | /html/008.php | UTF-8 | 373 | 3.21875 | 3 | [] | no_license | <!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<?php
function te(&$a){
$a++;
echo $a.'<hr>';
}
$abc=123;
te($abc);
echo $abc;
// print_r($_SERVER);
// print_r($_GET);
// $abc=123;
// $aaa=456;
// $text=789;
// $a='abc';
// echo $$a;
// //
// $a='aaa';
// $$a... | true |
d78f6e0f257248c1ae84acfde3353c6907221187 | PHP | lck3nny/WebPractice | /php/www/objects.php | UTF-8 | 1,668 | 3.9375 | 4 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Objects and Classes</title>
</head>
<body>
<?php include "basicHeader.html";?>
<?php
class Book {
public $title;
public $author;
public $pages;
private $rating;
// this private attribute cannot be changed outside of the clas... | true |
08005506352e72cac500ad526721c198668b752d | PHP | jefersonalmeida/api-php-contacts | /app/Validators/PersonValidator.php | UTF-8 | 543 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Jas\Validators;
use Prettus\Validator\Contracts\ValidatorInterface;
use Prettus\Validator\LaravelValidator;
/**
* Class PersonValidator
* @package Jas\Validators
*/
class PersonValidator extends LaravelValidator
{
/**
* Validation Rules
*
* @var array
*/
protected $rule... | true |
ec1c355d4fd432f47d40aecf1da674091c70cb6f | PHP | shadow7412/azaka | /include/bandwidth.php | UTF-8 | 599 | 2.875 | 3 | [] | no_license | <?php
/*
NOTE THAT THIS CLASS WILL TAKE A FULL SECOND TO LOAD.
This is because the ifstat runs for one second. This will hit load times drastically - so only use this when needed, and preferably via ajax to prevent having to wait.
*/
class Bandwidth {
public $upload;
public $download;
function __construct(){
ex... | true |
0238b6ff763e75dd44222b621d30517a3615e10a | PHP | dapodix/dapodik-2022 | /app/dataweb/apps/src/DataDikdas/Model/map/JadwalTableMap.php | UTF-8 | 8,791 | 2.6875 | 3 | [] | no_license | <?php
namespace DataDikdas\Model\map;
use \RelationMap;
use \TableMap;
/**
* This class defines the structure of the 'jadwal' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER ... | true |
5e99a6566f12d5c4830ac9fa6815c195a2a7a409 | PHP | bblackcblackc/rontetest | /classes/DataFetcherClass.php | UTF-8 | 912 | 3.4375 | 3 | [] | no_license | <?php
/**
* Data fetcher collector class
*
* Aggregates all data collectors
*/
class DataFetcherClass
{
/**
* @var array of DataFetchers objects
*/
private static $dataFetchersObjects = [];
/**
* Adds a DataFetcher object to pool
*
* @param IDataFetcherClass data fetcher objec... | true |
7dc1a029f85d06628b02f55918e6cfd588ac2af2 | PHP | dennisenderink/jira-tempo-sdk-php | /src/TempoSDK.php | UTF-8 | 1,974 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Spacetab\TempoSDK;
use Amp\Http\Client\HttpClient;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use Spacetab\TempoSDK\API\Worklog;
use Spacetab\TempoSDK\API\WorklogInterface;
class TempoSDK implements Lo... | true |
9b9d8693ed6d0a930f57a6afdf8ab935ab34d9e8 | PHP | itsnilay/studentbooks10 | /SpindleTree/logout.php | UTF-8 | 708 | 2.53125 | 3 | [] | no_license | <?php
/*
*logout.php
*/
require_once('include/config.php');
$page_title = 'SpindleTree | Logout';
include('include/header.php');
//if no email session variable exist, redirect the user
if(!isset($_SESSION['email'])){
$url = GLOBAL_BASE_URL . 'index.php';// define the url
ob_end_clean();//delete th... | true |
7cd30c46987785f8700fa6095ed7f32498115eb8 | PHP | andyb2000/sbx-tools | /functions.php | UTF-8 | 14,210 | 2.515625 | 3 | [] | no_license | <?php
// Functions for sb-schedule+ by Andy Brown (C) 2008 andy@broadcast-tech.co.uk
// ----------------------------------------------------------------------------------------
$dbhost = "localhost";
$dbusername = "admin";
$dbpassword = "atomic";
$dbdb = "sbschedule";
$studio1="192.168.2.194";
$studio2="192.168.2.17... | true |
29383adce62f1d8f92881b4139f010a561720e5b | PHP | HelfanzaNanda/dipinjamin | /app/Traits/UploadFileTrait.php | UTF-8 | 435 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Traits;
trait UploadFileTrait {
public function uploadImage($image)
{
return cloudinary()->upload($image->getRealPath())->getSecurePath();
}
public function uploadImageLocal($image, $folder)
{
$filename = date('ymdyis'). '.' .$image->getClientOriginalExtension()... | true |
e033b392aa1c287bcd5cbe4a9c8844af3e170489 | PHP | smira/pohody.ru | /system/std.php | UTF-8 | 7,515 | 2.890625 | 3 | [] | no_license | <?php
/*
* std - Функции базового назначения
* Не требует других модулей.
*/
/**
* std_redirect()
* Редиректит на другую страницу и прекращает выполнение php-скрипта. std_finish не вызывает
* @param $location url для редиректа
*/
function std_redirect($location)
{
header("Location: ".$location);
... | true |
fa6e7fafcb8cc175d5fcf9fff1389a7f4b4db096 | PHP | okaruto/cryptonator | /src/Values/LanguageValue.php | UTF-8 | 703 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Okaruto\Cryptonator\Values;
/**
* Class LanguageValue
*
* @package Okaruto\Cryptonator\Values
* @author Okaruto Shirukoto <okaruto@protonmail.com>
* @license http://opensource.org/licenses/MIT
*/
final class LanguageValue extends AbstractValue
{
public const LANGUAG... | true |
a5ced9c6852db4a87007902f514732919e575359 | PHP | mariembarfa/Apollo | /core/clientC.php | UTF-8 | 3,246 | 2.59375 | 3 | [] | no_license |
<?php
require_once "C:/wamp64/www/crud_livraison/core/config.php";
class clientC
{
function ajouterclient($client)
{
$sql="insert into user (
nom,prenom,email,username,adresse,tel,password,date_crea,role) values (:nom,:prenom,:email,:username,:adresse,:tel,:password,:date_crea,:role)";
$db = config... | true |
179ad14d5936ed15f9fa61b096422c36910c6a5a | PHP | marcoscodnet/codnet_services | /cose/src/main/php/Cose/utils/AES.php | UTF-8 | 4,094 | 2.984375 | 3 | [] | no_license | <?php
namespace Cose\utils;
/**
Aes encryption
*/
class AES {
const M_CBC = 'cbc';
const M_CFB = 'cfb';
const M_ECB = 'ecb';
const M_NOFB = 'nofb';
const M_OFB = 'ofb';
const M_STREAM = 'stream';
protected $key;
protected $cipher;
protected $data;
protected $mode;
protected $IV;
/**
*
* @param type ... | true |
9dd7d3b8692f91506c3a2167e7c5daeb02a2f616 | PHP | encry2024/chigo-inventory | /app/Providers/RouteServiceProvider.php | UTF-8 | 3,553 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Providers;
use App\Models\Access\User\User;
use App\Models\Inventory\Item\Aircon\Aircon;
use App\Models\Inventory\Item\Peripheral\Peripheral;
use App\Models\Inventory\Customer\Customer;
use App\Models\Inventory\Technician\Technician;
use App\Models\Inventory\Referral\Referral;
use App\Models\Wor... | true |
0c690e4a11ec41a3c9d4b471ef8ede7694a0386a | PHP | jchbar/tf3 | /copia/pdf2php.php | UTF-8 | 1,874 | 2.703125 | 3 | [] | no_license | <?php
/*
$imagick = new Imagick();
$imagick->readImage('reportesprestamos/2013-05-03amortizacion.pdf');
$imagick->writeImage('reportesprestamos/salida.jpg');
*/
/*
exec("imagen/ImageMagick-i686-pc-cygwin/ImageMagick-6.8.8/bin/convert reportesprestamos/2013-05-03amortizacion.pdf reportesprestamos/salida.jpg");
*... | true |
9b802c619450e1c6a3f38a2c8f54a27136c8832e | PHP | RedFoss/Projet | /covoiturage/classes/ParcoursManager.class.php | UTF-8 | 4,285 | 3.171875 | 3 | [] | no_license | <?php
/**
* La Classe ParcoursManager.
*
* Cette Classe permet la gestion en base de données de l'objet Parcours.
*
* @author tristan
*/
class ParcoursManager{
public function __construct($db){
$this->db=$db;
}
/**
* fonction getList;
*
* @return la liste complete des parcours contenues ... | true |
df019c2e49e59b4703d22320a0c02b2e5c817d7c | PHP | flaviojrSalviano/receiv-debts | /application/app/Model/Client.php | UTF-8 | 2,748 | 3 | 3 | [] | no_license | <?php
namespace App\Model;
use App\DB;
class Client {
public static function selectAll($id = null) {
$where = '';
if (!empty($id)) { $where = 'WHERE id = :id'; }
$sql = sprintf("SELECT * FROM clients %s ORDER BY name ASC", $where);
$DB = new DB; $stmt = $DB->prepare($sql);
... | true |
fc483f728aa39c33ca15780bf32fd1f757fed0b9 | PHP | adziemba/DNG-LCARS | /core/classes/environment/DNGSystem.php | UTF-8 | 1,906 | 2.90625 | 3 | [] | no_license | <?php
/**
* LCARS is a framework for the RPG - ST - DNG
*
* @package LCARS
* @version 0.1
* @author Andreas Dziemba
* @license DNG-Bluegreen License
* @copyright 2016 - 2017 Star Trek - Die neue Grenze
* @link http://www.die-neue-grenze.de
*/
namespace core\classes\environment;
use core\dto\Char... | true |
ed7ae20886b3fba087bd1b26603ccc6595d51212 | PHP | Tontsu/Tsoha | /listaustesti.php | UTF-8 | 579 | 2.59375 | 3 | [] | no_license | <?php
require 'libs/tietokantayhteys.php';
$yhteys = getTietokantayhteys();
$sql = "SELECT nimi from kortit";
$kysely = getTietokantayhteys()->prepare($sql);
$kysely->execute();
$tulokset = array();
foreach($kysely->fetchAll(PDO::FETCH_OBJ) as $tulos) {
$tulokset[] = $tulos->nimi;
}
?><!DOCTYPE HTML>
<h... | true |
79bc1a9e52f8a0fc95e751939f1324b7f3fbd387 | PHP | joychoinjapan/sampleOfPHP | /LearningPHP/ch4/4-21. Making a string from an array with implode().php | UTF-8 | 358 | 2.890625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: baobaochu
* Date: 2017/08/15
* Time: 23:23
*/
$dimsum=array('Chicken Bun','Stuffed Duck Web','Turnip Cake');
$menu=implode(', ',$dimsum);
print $menu;
//To implode an array with no delimiter, use the empty string as the first argument to implode():
$letters = array('A','B'... | true |
6c044725826e749699f5143b299f127a60ae0ea6 | PHP | SaberMashiro/News | /model/Comment.php | UTF-8 | 1,594 | 3.296875 | 3 | [] | no_license | <?php
class Comment {
private $database;
/**
* 构造函数
* 功能:建立数据库连接
* 参数:无
* 返回值:无
*/
public function __construct() {
require_once "Database.php";
$this->database = new Database();
}
private function decouple($pairs) {
$fields = [];
$values = [];
... | true |
73a6189ca65c3b7893ca0c62306abf3bdd28ffe9 | PHP | SLONline/packages | /src/Helper/SyncHelper.php | UTF-8 | 2,117 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
/*
* Copyright (c) Terramar Labs
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace Terramar\Packages\Helper;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Terramar\Packages\Entity\Remote;
use Te... | true |
12a04c6138608c9457507ca71a0d6127101df704 | PHP | yixinx/SBTsystem | /admin/admin_operation/editannce.php | UTF-8 | 2,222 | 2.59375 | 3 | [] | no_license | <?php require_once 'conn.php' ?>
<?php
session_start();
if($_SESSION["Student_ID"]){
}else{
header("location:../../index.php");
}
?>
<!DOCTYPE html>
<html>
<body>
<head>
<meta charset = "UTF-8">
<title> Edit bulletins </title>
<link rel="stylesheet" href="../../css/main.css"/>
</head>
<h1>Edit Announcement</... | true |