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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
06ac7fd1ca0e0aa7c6f2a1cc3ee4d5ec3c9f8a68 | PHP | ircmaxell/php-cfg | /lib/PHPCfg/Func.php | UTF-8 | 1,559 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
* This file is part of PHP-CFG, a Control flow graph implementation for PHP
*
* @copyright 2015 Anthony Ferrara. All rights reserved
* @license MIT See LICENSE at the root of the project for more info
*/
namespace PHPCfg;
use PHPCfg\Op\CallableOp;
class Func extends Op
{
... | true |
41f7a7c5870ac5dea9125880ad957656084e45e2 | PHP | strayobject/AddressingBundle | /Command/TestFormattingCommand.php | UTF-8 | 2,262 | 3.015625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Markup\AddressingBundle\Command;
use Markup\Addressing\Address;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* A console command that allows entering an address in order... | true |
fa897685125435ff69fb000874349398ecac1f88 | PHP | padman009/farm | /Animal/FarmAnimal.php | UTF-8 | 123 | 2.546875 | 3 | [] | no_license | <?php
namespace Farm\Animal;
abstract class FarmAnimal
{
const ANIMAL_TYPE = '';
public function produce(){}
} | true |
6b3a1f3c6b29c3cf41ad4dae18b9b5d7fa36c868 | PHP | RobertoAraujo/Recol-Ouvidoria-Backend | /src/model/NoticiaFactory.php | UTF-8 | 4,020 | 2.671875 | 3 | [] | no_license | <?php
namespace Ouvidoria\model\factory;
require("Conexao.php");
require_once("Noticia.php");
class NoticiaFactory
{
public function listarNoticias()
{
global $conexao;
$noticias = array();
$query = "SELECT * FROM noticia";
try {
$resultado = mysqli_query($conexao... | true |
38b8d68f5d4be5d9772f9aacb8d22ccab058da7e | PHP | YohanesDoank/sharingdoank.com | /app/Helper.php | UTF-8 | 3,226 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Helpers;
use App\Artikel;
class Helper {
public static function displayString($string){
return $string;
}
// public static function indonesian_date ($timestamp = '', $date_format = 'l, j F Y | H:i', $suffix = 'WIB') {
public static function indonesian_date ($... | true |
f30821dfc46ca7c14969b5d1a145797f9dad2bff | PHP | ikoncoders/ikonizercore | /src/UserManager/Security/Middleware/Before/IsAlreadyLogin.php | UTF-8 | 1,134 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace IkonizerCore\UserManager\Security\Middleware\Before;
use Closure;
use IkonizerCore\Auth\Authorized;
use IkonizerCore\Middleware\BeforeMiddleware;
class isAlreadyLogin extends BeforeMiddleware
{
/**
* Prevent access to the login form is the user is already logged.
... | true |
43f8f0b7d7e7f3da2d2041e85bbce0483e3e0d37 | PHP | JosephsPlace/Papyruss-PHP | /core/view/Templating.php | UTF-8 | 1,700 | 3.3125 | 3 | [] | no_license | <?php
/*
* Class that allows the user of {{variable}} in the views
*/
class Templating {
public function __construct($functions) {
$this->functions = $functions;
}
/*
* Add in the pre-defined helper functions
*
* @params: &$view - gets the memory address of t... | true |
947541599e86344ea2c05fde097fd3900317970e | PHP | ktakayama/swa | /src/SWA/Request.php | UTF-8 | 1,369 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace SWA;
use \Exception;
final class Request
{
private $jwt;
public function __construct($jwt)
{
$this->jwt = $jwt;
}
public function getAuthorizationCode($code, $redirect_uri)
{
return $this->authTokenRequest([
'code' => $code,
'grant_typ... | true |
c3f62331acd066cc57ec0ec6cb44750a6911adc8 | PHP | christopher-leal/proyecto_investigacion | /includes/funciones/anuncios_bd.php | UTF-8 | 1,337 | 2.75 | 3 | [] | no_license | <?php
function consultarAnuncios(){
try {
//importamos la conexion a la base de datos
require_once('bdconexion.php');
//Se genera y envia la consulta
$query = "SELECT id_anuncio, Cantidad_alumnos, Perfil,Semestre,Recompensa, anuncios.id_proyecto,link_imagen,titulo_proyecto from anuncios inner join p... | true |
84bd41702d365aee69795bd587face1a3abb9c66 | PHP | Shadojin/shadojin.github.io | /src/BrizyDeploy/Modal/Deploy.php | UTF-8 | 2,659 | 3.015625 | 3 | [] | no_license | <?php
namespace BrizyDeploy\Modal;
class Deploy
{
/**
* @var boolean
*/
protected $execute;
/**
* @var int
*/
protected $deploy_timestamp;
/**
* @var boolean
*/
protected $update;
/**
* @var int
*/
protected $zip_info_timestamp;
/**
... | true |
203f6cb80c1a3f95e819622fada9372d1cfada4e | PHP | vladimirnovakovic2868/MetHotels | /functions/hotels.php | UTF-8 | 955 | 2.90625 | 3 | [] | no_license | <?php
include("config.php");
function findAllHotels(){
global $conn;
$sql = "SELECT * FROM hotels";
$query = $conn->prepare($sql);
$query->execute();
$query->store_result();
$query->bind_result($id, $name, $city, $stars, $description, $image);
$rooms = [];
while ($query->fetch()) {
... | true |
e48dfbb598b025dec66a2c8bfe02a19a771069af | PHP | china8036/prpc | /Client/Response.php | UTF-8 | 1,136 | 2.625 | 3 | [] | no_license | <?php
namespace Witgame\Rpc\Client;
/*
* 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 Response
*
* @author wang
*/
use Witgame\Rpc\RpcException;
... | true |
ae89205a9a10f413f69e0a74558a2674bf121968 | PHP | ambroisehdn/gestion_de_note | /core/Helpers/FlashMessage.php | UTF-8 | 337 | 2.640625 | 3 | [] | no_license | <?php
namespace Synext\Helpers;
class FlashMessage{
public static function success(string $message){
Session::checkSession();
$_SESSION['flash']['succes'] = $message;
}
public static function erreur(string $message){
Session::checkSession();
$_SESSION['flash']['error'] = ... | true |
dd675a1e8baa3a8a87e402a30e1c2fa1ac445516 | PHP | johnnykatz/prueba_s_s | /app/Repositories/Admin/DiseniadorRepository.php | UTF-8 | 657 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories\Admin;
use App\Models\Admin\Diseniador;
use InfyOm\Generator\Common\BaseRepository;
/**
* Class DiseniadorRepository
* @package App\Repositories\Admin
* @version August 13, 2018, 6:13 pm UTC
*
* @method Diseniador findWithoutFail($id, $columns = ['*'])
* @method Diseniador find... | true |
26319450a9865da58e0986be3f567989fa2f6fd7 | PHP | vickykimani/Car-Parking-Automation | /user.php | UTF-8 | 10,341 | 2.953125 | 3 | [] | no_license | <?php
include_once 'account.php';
session_start();
class User implements Account{
//Login & Register
private $fullName;
private $user_token;
private $UserPassword;
private $inputPass;
//User Details and Car Details
private $userType;
private $... | true |
4709187fb7dec0d3c9eb86e979af277b99940794 | PHP | phpv8/v8js | /tests/issue_250_002.phpt | UTF-8 | 740 | 2.6875 | 3 | [
"MIT"
] | permissive | --TEST--
Test V8::executeString() : Issue #250 (early free of array)
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
class TestObject {
var $data;
public function setData($data) {
$this->data = $data;
}
public function getData() {
return $this->dat... | true |
81a02194ad47abd8efeecf91c0c2d76635a76230 | PHP | derrickshowers/housefinder | /public_html/controller/storedata.php | UTF-8 | 1,283 | 2.71875 | 3 | [] | no_license | <?php
include('../config/config.php');
session_start();
// Redirect home if data not part of request
if (empty($_POST['address'])) {
header("Location: /?msg=error");
exit;
}
else if (!isset($_SESSION['firstname'])) {
echo "Login Needed";
exit;
}
// Store important variables
$address = $_POST['addr... | true |
7367984a3c6ecc5f804e202baeb162a8580acfae | PHP | hasibbd/Simple-PHP-OOP | /add.php | UTF-8 | 829 | 2.59375 | 3 | [] | no_license | <?php
include_once ("func.php");
$obj = new TestOop;
if (!empty($_POST['name'])) {
$name = $_POST['name'];
$obj->insertData ($name, "oop_test");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, max... | true |
2ac9de6dcbbb301574b12351670dfe2f83fcd3c4 | PHP | sirdiego/whiskers | /workbench/source/Pages.php | UTF-8 | 1,689 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Connect\Whiskers;
use CallbackFilterIterator;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use SplFileInfo;
class Pages
{
use ApplicationAware;
/**
* @var array
*/
protected $pages;
/**
* @return Page
*/
public function getLayout()
{
$context = $this->a... | true |
3cc95172a210ede0a1a282efa76eb193505cb08a | PHP | letsomecode/laravel | /tests/Unit/ExampleTest.php | UTF-8 | 449 | 2.640625 | 3 | [] | no_license | <?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$user = new User;
foreach ($user as $key => $value)... | true |
d14387c84cd6ff5b311f19a6e025ea092cc88b3f | PHP | Flikimax/wp-fworm | /src/BaseModels/Posts.php | UTF-8 | 355 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Modelo Posts
*
*/
namespace Fworm\BaseModels;
use Fworm\MainModel as Model;
class Posts extends Model
{
public string $primaryKey = 'ID';
protected array $columns = [
'ID' => 'id',
'post_title' => 'Título',
];
# Opcional.
// public int $limit = 1;
# Opcional.... | true |
3708b1dd95fd057c9026dec1a852e6f6d916c98c | PHP | marissacollins/beehive | /v1/routeutilqueries.php | UTF-8 | 931 | 2.5625 | 3 | [] | no_license | <?php
$app->put('/renamefile', function() use($app) {
error_log( print_R("before request", TRUE ));
$request = $app->request();
$body = $request->getBody();
$student = json_decode($body);
error_log( print_R($student, TRUE ));
//global $user_id;
$LastName = $student->LastName;
$Firs... | true |
8203a6af057661b3eab427f8bad18d8377a478e6 | PHP | newday-me/think-cms-framework | /library/core/interfaces/StorageInterface.php | UTF-8 | 802 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace cms\core\interfaces;
interface StorageInterface
{
/**
* 文件是否存在
*
* @param string $path
*
* @return boolean
*/
public function exists($path);
/**
* 文件链接
*
* @param string $path
*
* @return string
*/
public function url($path)... | true |
d81b7744393a0ae15a049478b56a0385df4222e3 | PHP | Nolent/phpProject | /indexbackup.php | UTF-8 | 3,100 | 2.5625 | 3 | [] | no_license | <?php
function ListePays()
{
include ("fonc_oracle.php");
$login = 'ETU2_53';
$mdp = 'ETU2_53';
$instance = 'spartacus.iutc3.unicaen.fr:1521/info.iutc3.unicaen.fr';
// ce code ne doit pas être dans le <select> … </select>
$conn = OuvrirConnexion($login, $mdp,$instance);
$req = 'SELECT * FROM CDI_PAYS order by no... | true |
b6485ec31f3ab4324dc1ac6615a8dd20af208cb7 | PHP | nerds-and-company/tobiasax | /controllers/TobiasAxController.php | UTF-8 | 6,212 | 2.53125 | 3 | [] | no_license | <?php
namespace Craft;
/**
* Tobias AX controller.
*/
class TobiasAxController extends BaseController
{
/**
* Element index.
*/
public function actionAdvertisementIndex()
{
$variables['types'] = craft()->tobiasAx_advertType->getAllTypes();
$this->renderTemplate('tobiasax/advert... | true |
1ff6978be7bdb7cc5052d843453041bcb4a5dfc6 | PHP | Northie/XF2 | /app/libs/factory/iProcessStepUI.interface.php | UTF-8 | 154 | 2.515625 | 3 | [] | no_license | <?php
namespace libs\factory;
interface iProcessStepUI {
public function setForm($form);
public function getForm($form);
public function getUI();
}
| true |
7e8ae5c6e146268732e4f8552f97e353de716f8e | PHP | alexishida/aquaino | /Interface/classes/libs/ConverteDinheiro.class.php | UTF-8 | 572 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | <?php
class ConverteDinheiro {
public static function americana_brasileira($dinheiro)
{
//$dinheiro = str_replace(".", ",", $dinheiro);
// setlocale(LC_MONETARY, 'pt_BR');
// $dinheiro = money_format('%.2n', $dinheiro);
$dinheiro = number_format($dinheiro, 2, ',', '.');... | true |
244471ebf2ffd2ad43ff1fa3f140425dc72b1668 | PHP | ulamnet/sprinkster | /application/modules/Pin/Traits/Util.php | UTF-8 | 386 | 2.6875 | 3 | [] | no_license | <?php
namespace Pin\Traits;
trait Util
{
public function getProductNumber(\Core\Db\Select $sql) {
$where = $sql->getPart(\Core\Db\Select::WHERE);
$product = null;
if($where) {
foreach($where AS $w) {
$w = str_replace('`', '', $w);
if(preg_match('~(pin.)?product\s?=\s?([\d]{1,})~', $w, $m)) {
$p... | true |
52dac5cd334f026692adaa46191461f9b2afe982 | PHP | bbroger1/SimplePOS | /app/Http/Controllers/AdminController.php | UTF-8 | 3,151 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Role;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class AdminController extends Controller
{
public function __construct()
{
$this->middleware('auth');
// if (Auth::id() != 1) {
//// thro... | true |
d02aaf687e64673f0a074b5cb44abfd3be70c6d7 | PHP | gmartiifp/jumper-heroku | /web/php/testbbdd.php | UTF-8 | 1,021 | 2.75 | 3 | [] | no_license | <?php
/* Servidor antiguo Freemysqlhosting.net, cuenta inactiva */
$servername = "sql11.freemysqlhosting.net";
$dbdname = "sql11409601";
$username = "sql11409601";
$password = "K7C9EmrCjn";
/* Nueva base de datos de prueba en remotemysql.com */
$servername = "remotemysql.com";
$dbdname = "b7FkF4V4fU";
$u... | true |
ce3e7c1fd97bedf528072403efbd03c0c651cf66 | PHP | bandungmall/bandungmall | /app/models/Size.php | UTF-8 | 740 | 2.6875 | 3 | [] | no_license | <?php
class Size extends Eloquent{
protected $table = 'template_size';
protected $primaryKey = 'id';
public function getAll(){
$data_size = DB::table('template_size')->get();
return $data_size;
}
public function insertSize($category_id, $nama, $size, $level){
$data_size = new Size();
$data_si... | true |
de71e63a87798ea32d2044cf7c08821e5abc9ad5 | PHP | jobhub/thebestsong | /app/models/UserPlaylist.php | UTF-8 | 5,252 | 2.5625 | 3 | [] | no_license | <?php
class UserPlaylist extends \Phalcon\Mvc\Model
{
use Error;
/**
*
* @var integer
*/
public $id;
/**
*
* @var integer
*/
public $user_id;
/**
*
* @var string
*/
public $playlist_name;
/**
*
* @var string
*... | true |
73a3cfdf247503ece1a7a932ec44a5134d372aaa | PHP | SKorbean/sortir | /src/Entity/Event.php | UTF-8 | 5,349 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\EventRepository")
*/
class Event
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/... | true |
fab9fc5450ae8732c25aa80ecdf8534987819a7a | PHP | wgxh5201/TP32 | /Application/Home/Controller/AmqpPublishController.class.php | UTF-8 | 1,364 | 2.53125 | 3 | [] | no_license | <?php
namespace Home\Controller;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
use PhpAmqpLib\Exchange\AMQPExchangeType;
class AmqpPublishController extends BaseController
{
private $conn;
CONST HOST = '127.0.0.1';
CONST PORT = 5672;
CONST USER = 'gues... | true |
a03547bd73c9420375f20ef674a2fc6203f5f5d4 | PHP | ksacha23/Skylightv2.0 | /comments.inc.php | UTF-8 | 5,319 | 2.65625 | 3 | [] | no_license | <?php
// Comment Section Functions
// Kamil Sacha
// Last Update: April 30, 2021
// This file helps present the comment sections on each app page
"<link rel='stylesheet' href='style.css' type='text/css'>";
include_once 'header.php';
function setComments($conn, $commentDb){
if(isset($_POST['commentSubmit'])){
... | true |
127a7dbba9bfb81cd19ddad7ed6368f378f662c4 | PHP | kusumajati51/lini-ultraklin-laravel | /app/Repositories/Criteria/Order/InRegion.php | UTF-8 | 419 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Repositories\Criteria\Order;
class InRegion {
protected $filter;
public function apply($model, $filter)
{
$this->filter = $filter;
if (count($this->filter['region']) > 0) {
$model = $model->whereHas('region', function ($region) {
$region->w... | true |
7a406fe1fd6e0d06629d407bd6b94132054cec40 | PHP | aorti017/CS180-Project | /updateuserinfo.php | UTF-8 | 2,696 | 2.640625 | 3 | [] | no_license | <?php
include "./database.php";
session_start();
$userVar = "";
if (isset($_COOKIE['username'])) {
$userVar = $_COOKIE['username'];
}
else {
header('Location: index.php');
}
$sql = "SELECT * FROM Users WHERE username = '".$userVar."'"; //following lines extracts all of current users info
$results =... | true |
e685783fe7a4d47e66e31fea6f477a04ad9935cd | PHP | skie/eav_shop | /Controller/Component/Auth/ShopAuthorize.php | UTF-8 | 463 | 2.609375 | 3 | [] | no_license | <?php
App::uses('BaseAuthorize', 'Controller/Component/Auth');
class ShopAuthorize extends BaseAuthorize {
/**
* Returns whether a user is authorized to access an action
*
* @param array $user
* @param CakeRequest $request
* @return boolean
*/
public function authorize($user, CakeRequest $request) {
if (!e... | true |
dbf759616b62c3f64351670a48ac6ddd6338a9a9 | PHP | brokenicedeveloper/laravel-mysql-partition | /src/Models/Partition.php | UTF-8 | 1,261 | 3.3125 | 3 | [
"MIT"
] | permissive | <?php
namespace Brokenice\LaravelMysqlPartition\Models;
use Brokenice\LaravelMysqlPartition\Exceptions\UnexpectedValueException;
class Partition{
const RANGE_TYPE = 'RANGE';
const LIST_TYPE = 'LIST';
/**
* @var string
*/
public $name;
/**
* @var string HASH|LIST|KEY|RANGE
... | true |
61424df88a5caacff2ddafbf518c7017f9c5c388 | PHP | rosanpoudel/php-projects-intern | /cms/admin/controller/add-new-image.php | UTF-8 | 923 | 2.625 | 3 | [] | no_license | <?php
include 'databaseconnect.php';
global $conn;
if(isset($_POST['submit'])){
$title = $_POST['title'];
$description = $_POST['description'];
$filename = $_FILES['uploadfile']['name'];
$tempname = $_FILES['uploadfile']['tmp_name'];
$page_id=$_POST['select-page'];
$folder = "../uploads/".$filename;
... | true |
573e99c2ea04102cc068de712caa0700a3a37d25 | PHP | djelejorde/djelejordesera | /src/Entities/EuropeanUnionMembers.php | UTF-8 | 1,292 | 3.078125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace DenverSera\CommissionTask\Entities;
use DenverSera\CommissionTask\ErrorHandlers\EmptyDataErrorException;
/**
* EuropeanUnionMembers
*/
class EuropeanUnionMembers
{
private $memberCountryCodes;
public function __construct()
{
$this->memberCountryCodes =... | true |
818dddba8ff1452ead73c982452b7c20b1f3d5b0 | PHP | liserven/tp-drj | /application/common/service/UserNoticeService.php | UTF-8 | 978 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/4/19
* Time: 19:41
*/
namespace app\common\service;
use app\common\model\UserNotices;
use app\lib\exception\ParameterException;
class UserNoticeService
{
protected $userId;
protected $topic;
protected $content;
protected $im... | true |
75f4c471b3e7f1a4e4692bb1e9b3f3ccd5679425 | PHP | JaySoftwareSolutionsLLC/homebase | /resources/ajax/clear-started-habits.php | UTF-8 | 1,248 | 2.75 | 3 | [] | no_license | <?php
// File to be called via ajax to delete all started habit logs
// Include resources
include($_SERVER["DOCUMENT_ROOT"] . '/homebase/resources/resources.php');
// Connect to DB
$conn = connect_to_db();
$date = $_POST['date'] ?? $_GET['date'] ?? null;
$habit_id = $_POST['habit_id'] ?? ... | true |
25f85e350f3e37200b19fb2ea0442501b1682970 | PHP | curtisw-/trainapp | /uploadcsv.php | UTF-8 | 957 | 3.03125 | 3 | [] | no_license | <?php
// Parse the given csv file and insert the data in the database
require_once 'inc/CSV.php';
require_once 'inc/DataSource.php';
try {
if(isset($_FILES['csv'])) {
$filename = $_FILES['csv']['tmp_name'];
$csv = new CSV($filename);
// The first row should be a header row containing the following
// in... | true |
7d6d1f34e79542650955b3cd8b17a91e2702aa1b | PHP | jamesduffy/analytics-app | /application/models/people.php | UTF-8 | 2,741 | 2.53125 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class People extends CI_Model {
function __construct()
{
parent::__construct();
// Load the caching driver
$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
}
public function getUser($user_id... | true |
fd95d6feedca83ad4f2122b9032179df57ac251a | PHP | easybill/zugferd-php | /src/zugferd10/Model/Trade/Tax/TaxRegistration.php | UTF-8 | 1,125 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Easybill\ZUGFeRD\Model\Trade\Tax;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\XmlElement;
class TaxRegistration
{
/**
* @var Registration
* @Type("Easybill\ZUGFeRD\Model\Trade\Tax\Registration")
* @XmlElement(cdata... | true |
43e197116ff87038c201cf9193262e23f83dd40c | PHP | albetnov/asmvc | /App/Core/Containers/ContainerNotBootedException.php | UTF-8 | 486 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Asmvc\Core\Containers;
use App\Asmvc\Core\Exceptions\DetailableException;
class ContainerNotBootedException extends DetailableException
{
public function __construct()
{
parent::__construct("Container not started.");
}
public function getDetail(): string
{
ret... | true |
cc7c7bb3e9f4bc7a4fa9bcf895981a6f006296f5 | PHP | ronssemaxim/sessionI | /example.php | UTF-8 | 443 | 2.65625 | 3 | [] | no_license | <?php
include 'sessioni.php';
$si = new sessioni(); // create the object
/*some testing*/
echo 'sessioni id: '.$si->sessioniId.'<br />'; // print the sessioni id (alternative: getSessioniId())
echo $si->getVar("test", null, null, false).'<br />';
echo 'Expires on: '.$si->getVarExpiration("test", '', null, false, $si-... | true |
954b918e9990702cc8d5ec949bca4f9dc5d10dcd | PHP | yertaysharipkanov/cse | /database/seeds/ExpertiseRegionsTableSeeder.php | UTF-8 | 1,436 | 2.71875 | 3 | [] | no_license | <?php
use Illuminate\Database\Seeder;
use App\ExpertiseRegion;
class ExpertiseRegionsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$seeders = [
['name' => 'г. Астана'],
['name' => 'г. Алматы'],
... | true |
6fd17eb4a234dd59791ac1d235f331d84e0234e1 | PHP | pierredup/rector | /src/NodeFinder/NodeUsageFinder.php | UTF-8 | 2,107 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Rector\Core\NodeFinder;
use PhpParser\Node;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\Variable;
use Rector\Core\PhpParser\Node\BetterNodeFinder;
use Rector\NodeCollector\NodeCollector\NodeRepository;
use Rector\NodeNameResolver\NodeNameResolver;
final cl... | true |
b860c26a76ee57672f07076d7e5707f35a61fa34 | PHP | sarathiscookie/backend | /classes/manage_offers.class.php | UTF-8 | 27,148 | 2.5625 | 3 | [] | no_license | <?php
require_once "dbconnection-class.php";
class ManageOffers
{
/**
* list all offers of - particular hotel
* @return string
*/
public function listOffers()
{
global $mysqli, $_GET;
$typ_opt =["offer-discount"=>"Rabatt auf reguläres Angebot", "offer"=>"Eigenständiges Angebo... | true |
e187e1b1a1773d0b6c3153ae6d7ce0bbad9bdfce | PHP | jjbc93/EntornoServidor | /html/bombitas/logica/Coordenada.php | UTF-8 | 314 | 3.359375 | 3 | [] | no_license | <?php
class Coordenada{
private $ejeX;
private $ejeY;
public function __construct($ejeX,$ejeY){
$this->ejeX=$ejeX;
$this->ejeY=$ejeY;
}
public function getEjeX(){
return $this->ejeX;
}
public function getEjeY(){
return $this->ejeY;
}
} | true |
b561bda2f30b8174eec607ca8b3df53e41f49951 | PHP | dandynaufaldi/modul-kurikulum | /apps/modules/kurikulum/application/LihatDaftarMataKuliahService.php | UTF-8 | 663 | 2.5625 | 3 | [] | no_license | <?php
namespace Siakad\Kurikulum\Application;
use Siakad\Kurikulum\Domain\Model\MataKuliahRepository;
class LihatDaftarMataKuliahService
{
private $mataKuliahRepository;
public function __construct(MataKuliahRepository $mataKuliahRepository)
{
$this->mataKuliahRepository = $mataKuliahRepository;... | true |
ca6d709099fc0a4a8d1785874e7c67034dbc09c1 | PHP | kcb0126/TouricoHolidaysApi | /HotelAPI/Request/BookHotelV3.php | UTF-8 | 602 | 2.578125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: kcb01
* Date: 8/8/2018
* Time: 1:11 AM
*/
namespace HotelApi\Request;
class BookHotelV3 extends BaseObject
{
/**
* @var BookV3Request
*/
public $request;
/**
* @var ArrayOfFeature
*/
public $features;
/**
* BookHotelV3 const... | true |
d99c94b88c024ecf22f9912a49ef4a901c15921b | PHP | quanzo/x51-frontend | /src/Resources.php | UTF-8 | 3,540 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
/* Аккумуляция ресурсов для подключения в страницу сайта
Собираем имена файлов.
Добавляем:
$res->add('/css/base.css');
$res->add('/css/script.js');
echo $res->output();
*/
namespace x51\classes\frontend;
use \x51\functions\funcFileSystem;
class Resources extends \x51\classes\Base implements \x51\interfaces\... | true |
37025cb7326df1da0b77b69799358b98457582a4 | PHP | mafudelaptu/battlegrounds_dev | /app/models/Region.php | UTF-8 | 322 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
class Region extends Eloquent {
protected $guarded = array();
public static $rules = array(
'name' => 'required',
'active' => 'required'
);
public function users(){
return $this->hasMany("User");
}
public static function getAllActiveRegions(){
return Region::where("active", 1)->remember(60);
}
... | true |
b77ea9507e1ca72db5d754e288133cee9da2f2a0 | PHP | dcortez/phaxio-php | /lib/Phaxio/ATA.php | UTF-8 | 460 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace Phaxio;
class ATA extends AbstractResource
{
public static function init($phaxio, $id) {
return new self($phaxio, array('id' => $id));
}
public function retrieve() {
if (!isset($this->id)) throw new Exception("Must set ID before getting fax");
$result = $this->pha... | true |
8edd2f6cd4dea4315af97e27df4d0a698290ea67 | PHP | lordride/projectWIN | /trabalho ITM/trabalho2P.php | UTF-8 | 745 | 2.71875 | 3 | [] | no_license | <?php
echo '<pre>';
var_dump($_POST);
if (isset($_FILES['foto'])){
$img = $_FILES['foto'];
$imgTamanho = $img['size'];
$imgNome = $img['name'];
$arrImage = getimagesize($img['tmp_name']);
$imgLargura = $arrImage['0'];
$imgAltura = $arrImage['1'];
$imgTipo = $arrImage['2'];
$imgMi... | true |
c2afb36bc4db911cb9440c2fc70bbaf490d1a13d | PHP | ComuneFI/LdapBundle | /src/Tests/DependencyInjection/FiLdapTest.php | UTF-8 | 1,417 | 2.515625 | 3 | [] | no_license | <?php
namespace Tests\LdapBundle;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Fi\LdapBundle\DependencyInjection\FiLdap;
class FiLdapTest extends KernelTestCase
{
private $container;
public function setUp()
{
self::bootKernel();
$this->container = self::$kernel->getContai... | true |
fbed3d144c9facd94cc6b795124b7a8fbf0b2569 | PHP | Sergisoing/online_meal_ordering | /Application/Admin/Model/DishModel.class.php | UTF-8 | 594 | 2.515625 | 3 | [] | no_license | <?php
namespace Admin\Model;
use Think\Model;
class DishModel extends Model {
protected $tableName = 'dish';
protected $_validate = array(
array('name', 'require', '请输入菜品名'),
array('store_id','require','请选择店铺'),
array('kind','require','请选择属于菜系'),
array('picture', 'require', '请上传... | true |
072b07b75bd0976a4fda530e72a13093ddbc717a | PHP | cgdsoftware/api | /src/Resource.php | UTF-8 | 670 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace LaravelEnso\Api;
use Illuminate\Support\Collection;
abstract class Resource
{
abstract public function toArray(): array;
public function resolve(): array
{
$value = fn ($argument) => $argument instanceof self
? $argument->resolve()
: $argument;
re... | true |
24cc8524f637af9af08c883268d652b8fa7e0c3f | PHP | nasiroff/expfinder | /app/Controllers/Admin/Category.php | UTF-8 | 6,480 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Controllers\Admin;
use App\Models\CategoryModel;
use App\Models\ProductModel;
use CodeIgniter\Database\Exceptions\DataException;
class Category extends \App\Controllers\BaseController
{
public function index()
{
if ($this->request->isAJAX()) {
$categories = new Cate... | true |
0fb060f768ef566391ce5d56bcbf22dbfe65adff | PHP | cristiansk8/tattoo | /mostrar_datos.php | UTF-8 | 514 | 2.71875 | 3 | [] | no_license | <?php
$usuario = "root";
$contraseña = "";
try {
$mbd = new PDO('mysql:host=localhost;dbname=tattotatto', $usuario, $contraseña);
echo '<p>Artista</p><select name="artista">';
foreach ($mbd->query('SELECT * from artista where estado = 1')as $fila) {
echo '
<option value="' . $fila['nombre']... | true |
0dc7a3064a06a546bd5008c67e69b740a71a4077 | PHP | alma/alma-monthlypayments-magento2 | /Helpers/QuoteHelper.php | UTF-8 | 5,678 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
/**
* 2018 Alma / Nabla SAS
*
* THE MIT LICENSE
*
* 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 without restriction, including without limitation
* the rights to use, copy, modif... | true |
1637bd63da8df66262361c5ecbc6138afad51049 | PHP | szymonk1101/Nexia | /application/models/Comapnies_model.php | UTF-8 | 912 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Companies_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function getCompanyById($company_id)
{
return $this->db->where('id', $com... | true |
c3141dfba8e613279f9fd342e137ce46491800db | PHP | zclott/lottery-for-laravel | /src/Lottery.php | UTF-8 | 5,979 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace Zclott\Lottery;
use Illuminate\Support\Facades\Redis;
use Zclott\Lottery\Models\LotteryPrize;
use Zclott\Lottery\Models\LotteryActivity;
use Zclott\Lottery\Models\LotteryRecord;
class Lottery
{
/**
* Lottery lottery. 抽奖主方法
* @param $uid int 用户id
* @param $activityId int 活动id
* @... | true |
6d2d8c7aaf5ed8b84492c703fd88eb873b85436e | PHP | Abdullatif20/Control-Motors | /result.php | UTF-8 | 959 | 2.953125 | 3 | [] | no_license | <?php
$con = mysqli_connect("localhost","root","");
if (!$con)
{
die('could not connect:'.mysqli_error());
}
mysqli_select_db($con,"motors");
$q="select * from motors";
$result=mysqli_query($con,$q);
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table align ="center" border ="1px" style ="width:700p... | true |
c20d19a4ec93230bf680341364f2bdafb1ea344c | PHP | https-github-com-heobeophi2001/php3 | /app/Http/Requests/Admin/User/StoreRequest.php | UTF-8 | 1,373 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests\Admin\User;
use Illuminate\Foundation\Http\FormRequest;
class StoreRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|max:100',
'email' =>... | true |
ffaba2046257a3cd8e0fb2a53e5835e457a34b90 | PHP | khaled-elbardawell/live-chat-AJAX- | /ajaxchat.php | UTF-8 | 1,400 | 2.75 | 3 | [] | no_license | <?php
include "db.php";
session_start();
$id_first= $_SESSION['id'];
$id_second= $_SESSION['id_se'];
if( isset($_POST['m'])){
$msg=$_POST['m'];
if($msg !=""){
$zone= date_default_timezone_get();
date_default_timezone_set($zone);
$time_msg=date('h:i');
$sql="INSERT INTO message (i... | true |
d454881688bbace5c39314e685bb73ec9b31b9c4 | PHP | mindplay-dk/sql | /src/model/types/JSONType.php | UTF-8 | 782 | 2.796875 | 3 | [] | no_license | <?php
namespace mindplay\sql\model\types;
use mindplay\sql\model\schema\Type;
use RuntimeException;
class JSONType implements Type
{
/**
* @var int options for json_encode()
*
* @see json_encode()
*/
public $json_encode_options = JSON_UNESCAPED_UNICODE;
public function convertToSQL($... | true |
cd9bd32299445d52754f2d17900de3475e9ff557 | PHP | webkingdev1/webking.xt | /adm/core/contr/ajax_seotext.php | UTF-8 | 556 | 2.6875 | 3 | [
"Unlicense"
] | permissive | <?if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'){
header('Content-Type: text/javascript; charset=utf-8');
$Seo = new SEO();
if(isset($_POST['action'])){
switch($_POST['action']){
case "get_word":
//Вернуть слова начинающиеся с приходящей строки
$str... | true |
f84a3a626ee8b5ec9fc9781c12d7b22315b30002 | PHP | skule/lockers | /admin/locker.php | UTF-8 | 5,548 | 2.578125 | 3 | [] | no_license | <?php
session_start();
require 'session.php';
$title = "Skule™ Lockers Admin | Manage Lockers";
include 'navbar.php';
require '../model/db.php';
$msg = $msgClass = '';
// Form handling
if (filter_has_var(INPUT_POST, 'submit')) {
// Get form data
$id = mysqli_real_escape_string($conn, $_POST['i... | true |
2cad09857907c0826540f51ac908ff4324bce154 | PHP | liwenwei/Easeframe | /core/library/crypt.php | UTF-8 | 608 | 3.453125 | 3 | [] | no_license | <?php
/**
* 加密解密类
* XOR算法加密/解密
* @version 1.0
*/
class Crypt {
public function encrypt($string, $key) {
$str_len = strlen ( $string );
$key_len = strlen ( $key );
for($i = 0; $i < $str_len; $i ++) {
for($j = 0; $j < $key_len; $j ++) {
$string [$i] = $string [$i] ^ $key [$j];
}
}
return $str... | true |
2c78dafffa5b9c583917c1b92d2b97259c2daea2 | PHP | kako-ogura/Ecommerce_website | /ecsite/favorite_change.php | UTF-8 | 658 | 2.625 | 3 | [] | no_license | <?php
session_start();
session_regenerate_id(true);
require('common.php');
//安全対策
$post = sanitize($_POST);
//商品の数を$maxにコピーする
$max = $post['max'];
//現在のカートの内容をコピー
$favorite = $_SESSION['favorite'];
//逆ループで減らす指定した配列を一つずつ抜いていくループを作る
for ($i=$max; 0<=$i; $i--) {
//もし、deleteボタンが押された時
if (isset($_POST['delete'.$i])) {... | true |
3a0216f1cd01f92d2b3da2daac75cd29de394166 | PHP | erlinumardani/tes_erlin | /karyawan/insert_karyawan.php | UTF-8 | 2,865 | 2.734375 | 3 | [] | no_license | <?php
$con=mysqli_connect("localhost","root","infonusa","db_hr");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if($_POST['nama']){
$insData = $_POST;
$columns = implode(", ",array_keys($insData));
$escaped_va... | true |
a0447bc6c5e22d382d7d59eadc40cf65a1a5551c | PHP | MinePoS/Backend | /app/Gateways/Gateway.php | UTF-8 | 509 | 2.859375 | 3 | [] | no_license | <?php
namespace App\Gateways;
use App\Order;
abstract class Gateway{
abstract protected function name();
abstract public function loadOrderData();
abstract public function requestPayment($request);
abstract public function processPayment($payment);
public function loadOrder(Order $_order){
$this->order = $... | true |
06dd0a76b44566bd3a1e7b9a7616eac371dc9958 | PHP | rvillegas505/tpfinalweb2 | /helper/Configuration.php | UTF-8 | 4,073 | 2.625 | 3 | [] | no_license | <?php
include_once("helper/MysqlDatabase.php");
include_once("helper/Render.php");
include_once("helper/UrlHelper.php");
include_once("model/RegistroModel.php");
include_once("model/SesionModel.php");
include_once("model/ProformaModel.php");
include_once("model/TractorModel.php");
include_once("model/ArrastradoModel... | true |
129532bea2fe5304049c3ad8697f545eda7cb936 | PHP | linuxserver/Heimdall | /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Casts/AsStringable.php | UTF-8 | 857 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
namespace Illuminate\Database\Eloquent\Casts;
use Illuminate\Contracts\Database\Eloquent\Castable;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Support\Str;
class AsStringable implements Castable
{
/**
* Get the caster class to use when casting from / to this cast target.... | true |
6bb4b4d67611d898b26a2ff4012cd8979fba9d21 | PHP | shankajarajapakse/QPGSystem | /tests/Feature/UserTest.php | UTF-8 | 1,566 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Tests\Feature;
use Tests\TestCase;
use App\User;
use App\Question;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class UserTest extends TestCase
{
use DatabaseMigrations;
//test ... | true |
709cb95f2cda62d218ccd70d40e2be1746c883a7 | PHP | EggieCode/audio-cp | /php/login.php | UTF-8 | 1,575 | 2.59375 | 3 | [] | no_license | <?php
require_once(__DIR__ . "/../init.php");
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
require_once("auth.php");
$stmt = $conn->prepare("
SELECT users.id_users, users.username, users.nickname, users.password, permissions.edit_all, permissions.see_all
FROM users
INNER JOIN permissions
ON users.id_users=... | true |
715d16a700188b98ea676cd5647eb0630ba6bf75 | PHP | tafiaalifianty/Tugas-Besar-Layanan-STI | /detail_food.php | UTF-8 | 2,841 | 2.578125 | 3 | [] | no_license | <?php include_once 'lib/header.php';
if(!isset($_GET['id'])){
echo '<script>window.location.href = \''.BASE_URL.'\';</script>';
exit;
}
$data = explode("/",$_GET['id']);
$id = $data[0];
$sql = "SELECT * FROM `food` WHERE `id` = $id;";
$data = mysqli_query($conn, $sql);
$total_row = mysqli... | true |
c289ed69285f719d2dff2116e6742aa554740d8d | PHP | Adis123/Laravelproj | /app/Coding/Functions.php | UTF-8 | 4,538 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: adomas
* Date: 17.3.7
* Time: 11.49
*/
namespace App\Coding;
use App\Content;
use Goutte\Client;
use Illuminate\Support\Facades\DB;
use Symfony\Component\DomCrawler\Crawler;
class Functions
{
function getcontent($url)
{
$filter = '#content > div';
... | true |
3400c2fbaaa720e7721e984d8d51b5ff7a6e2a93 | PHP | wangweirock/psrmvc | /psrmvc/vendor/bob/framework/src/Verify.php | UTF-8 | 4,128 | 3.28125 | 3 | [] | no_license | <?php
namespace Framework;
/**
* 这是一个俺写的验证码类,牛
*/
class Verify
{
private $verifyCode; //验证码字符串
public $verifyNums; //验证码字符串个数
public $verifyType; //验证码的字符类型(1.数字、2.字母的、3.混合的)
public $bgColor;
public $fontColor;
public $width; //图片的宽度
public $height; //图片的高度
public $imgType; //验证码图片类型(jpg、jpeg、png、bmp....)
... | true |
7fc268cd41712da8d2759443a71693f1b8f899aa | PHP | 318097/code | /2k17/Php Sandbox/cookie.php | UTF-8 | 393 | 3.09375 | 3 | [] | no_license | <?php
if(isset($_GET["mehul"])){
echo "set";
setcookie("name", "mehul", time() + (60*60), "/");
}
echo "<pre>";
echo print_r($_GET);
echo "</pre>";
?>
<!DOCTYPE html>
<html>
<head>
<title>Cookie</title>
</head>
<body>
<?php
if(isset($_COOKIE["name"]) && $_COOKIE["name"] == "mehul")... | true |
80693dd313bf9168cf1418f5e87b586f215f8f7b | PHP | joegattnet/joegatt.net | /www/_etc/exe/test/temp.php | UTF-8 | 505 | 2.546875 | 3 | [] | no_license | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?php
$string = "Encyclopédie | Vološinov";
$output = i... | true |
8cec2cda0f5ce7eeb470dc591dc7ad2cfd37612a | PHP | PatrickGeyer/social_network | /Scripts/email.class.php | UTF-8 | 882 | 2.765625 | 3 | [] | no_license | <?php
class Email {
public function send($receivers, $subject, $content){
$headers = "From: social_network < patrick.geyer1@gmail.com >\n";
$headers .= "Cc: social_network < patrick.geyer1@gmail.com >\n";
$headers .= "X-Sender: Patrick Geyer < patrick.geyer1@gmail.com >\n";
$headers .= 'X-Mailer: P... | true |
3763be8779094b1b3b8d7e24c0a05b44f0b58a6f | PHP | Olexafort/PHP-Object-Oriented-User-registration-and-Login | /login.php | UTF-8 | 901 | 2.796875 | 3 | [] | no_license | <?php
if (isset($_POST['submit']) && !empty($_POST['submit'])) {
require_once('php/classes.php');
$person = new Classes();
$email = $person->security($_POST['email']);
$password = $person->security($_POST['password']);
if (!empty($email)) {
$person->user_login($email, $password);
}
}
?>
... | true |
19901c22e9f28fe9cb6a13a3e483bb782e4d6265 | PHP | arphie/caps | /functions/stats.php | UTF-8 | 8,826 | 2.828125 | 3 | [] | no_license | <?php
/**
*
*/
class stats
{
public static function connectme()
{
$con = mysqli_connect(DBHOST,DBUSER,DBPASS,DBNAME);
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
} else {
return $con;
}
}
public static function getcoilsbysku($sta... | true |
2bacd5ce8252a9e773f8dada34809fc4029abbd6 | PHP | cloudinary/php-transformation-builder-sdk | /src/Transformation/Video/Transcode/Codec/VideoCodec.php | UTF-8 | 2,778 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the Cloudinary PHP package.
*
* (c) Cloudinary
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cloudinary\Transformation;
use Cloudinary\ArrayUtils;
use Cloudinary\Transformation\Qualifi... | true |
a3c83696167568c5f7a397e278eee509966332c7 | PHP | cosnics/cosnics | /src/Chamilo/Core/Repository/Integration/Chamilo/Libraries/Calendar/Event/EventParser.php | UTF-8 | 4,912 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Chamilo\Core\Repository\Integration\Chamilo\Libraries\Calendar\Event;
use Chamilo\Core\Repository\Storage\DataClass\ContentObject;
use Chamilo\Libraries\Architecture\ClassnameUtilities;
use Chamilo\Libraries\Architecture\Exceptions\ClassNotExistException;
use Chamilo\Libraries\Translation\Translation;
... | true |
ea2bd5ef049143945e4f6858a789972ff4d3c8c6 | PHP | sergeychernyshev/DBUpgrade | /lib.php | UTF-8 | 8,082 | 3.234375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* DBUpgrade database schema migration tool
*/
class DBUpgrade {
/**
* @var mysqli MySQLi database object
*/
private $db;
/**
* @var string Table name for schema version metadata
*/
private $version_table;
/**
* Versions array holds upgrade and downgrade scripts for each version
* keys of ... | true |
b25635e1a19079e2ee405aa370938fab1e1a4609 | PHP | DevBaka/ampel | /templates/register.php | UTF-8 | 1,614 | 2.84375 | 3 | [] | no_license | <?php
header("<title>Secure Login: Registration Form</title>");
try{
require_once('user.php');
$udb = new UDB();
if (!file_exists('user.php' ))
throw new Exception ('userSql.php does not exist');
else
require_once('user.php' );
}
catch(Exception $e) {
echo "Message : " . $e->getMessag... | true |
40d03c2d551c5afee0dc44ecc6f0a9a3845e64ed | PHP | AndyDune/ok62.ru | /!_dune/_command/ver_1/modules.php/Hypothec/op/System/op/make_hyp_db_glossary/index.php | WINDOWS-1251 | 4,652 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
require "functions.php";
define('NUM_ID', 0);
define('NUM_NAME', 1);
define('NUM_NOTICE', 2);
define('NUM_TEXT', 3);
define('NUM_creditperiod', 9);
define('NUM_loansecurityid', 10);
$current_bank = 0;
$this->messageText['result'] = ' ';
$this->messageText['mis... | true |
13f2667e01883b83da0852fc46d237330e2e71e2 | PHP | sgemeny/kdc | /master/includes/displayButtons.php | UTF-8 | 4,900 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
require_once("defines.php");
require_once("logError.php");
function displayButtons($btns)
// -------------------------------------
{ // display button bar. Only show buttons requested in $btns
echo '<div class="btnBar navigation" id="btnLine">';
// member level overrides initState
if ( $_SESSIO... | true |
a372327a3901fcd095262878b8a8b2d3091fda0b | PHP | exender/projet-php | /indeed_ynov_2021/src/DataFixtures/OffresFixture.php | UTF-8 | 2,424 | 2.5625 | 3 | [] | no_license | <?php
namespace App\DataFixtures;
use App\Entity\Contrats;
use App\Entity\Offres;
use App\Entity\Typecontrats;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use Faker\Factory;
class OffresFixture extends Fixture
{
public function load(ObjectManager $manager)
{
$f... | true |
d5233aa83bf8ec875bb95770885369854545a7d0 | PHP | MisterFring/ProjetWeb | /modules/functions.php | UTF-8 | 6,503 | 2.96875 | 3 | [] | no_license | <?php
require "bdd.php";
function send_mail($email){
$to = $email;
$subject = '[ITEFY] Thank you for registering on our website.';
$message = 'Thank you for registering on our website.';
$headers = array(
'From' => 'support@itefy.com',
'Reply-To' => ... | true |
f240d235779c12617bf744e8ab7245cbb44daafc | PHP | sebastian-inzunza/Legacy | /php/cplaylist.php | UTF-8 | 625 | 2.5625 | 3 | [] | no_license | <?php
session_start();
include 'conexion.php';
$nombre = $_POST['nombre'];
$usuario = $_SESSION['usuario'][0]['ID'];
$query = "INSERT INTO playlist(titulo, idUsuario) VALUES ('$nombre', '$usuario')";
$ejecutar = mysqli_query($conexion, $query); ///mandamos la conexion junto al Insert... | true |
8ad219aad046654d5ddf57f76c4cb85c1ce047ba | PHP | cristianpontes/zoho-crm-client-php | /Request/UpdateRecords.php | UTF-8 | 2,451 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace CristianPontes\ZohoCRMClient\Request;
use CristianPontes\ZohoCRMClient\Response\MutationResult;
/**
* UpdateRecords API Call
*
* You can use the updateRecords method to update or modify the records in Zoho CRM
*
* @see https://www.zoho.com/crm/help/api/updaterecords.html
*/
class UpdateRecords e... | true |
b1097ebc291da803bad49f55cc0de28fdf1ca128 | PHP | kittenphp/pack | /src/email/EmailConfig.php | UTF-8 | 1,500 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
namespace kitten\pack\email;
class EmailConfig
{
private $smtpServer='';
private $port=25;
private $username='';
private $password='';
private $fromEmail='';
private $formName='';
/**
* EmailConfig constructor.
* @param string $smtpServer
* @param string $username
... | true |
1331e80ac5c36d8784f9b0f966f905464f826250 | PHP | SidhantBatra04/Luncheon---Tiffin-Sevice | /Php/login_user.php | UTF-8 | 3,354 | 2.578125 | 3 | [] | no_license | <?php
include 'header.inc.php';
require './connect.inc.php';
require './config.user.inc.php';
$http_referer = $_SERVER['HTTP_REFERER'];
if($http_referer=="http://localhost:8000/registration_page_user.php")
{
showMessage("You have been successfully registered!!");
}
if(isset($_POS... | true |