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
89ab9a6ac52c05c86a07ae18aa3924fb4183e12a
PHP
mvenkat777/server-api
/se/Collab/Commands/ShareMessageCommand.php
UTF-8
639
3
3
[]
no_license
<?php namespace Platform\Collab\Commands; /** * To share a message with another user */ class ShareMessageCommand { /** * Chat Id * @var number chatId */ public $chatId; /** * Message Id * @var number messageId */ public $messageId; /** * Share Id * @var number shareId */ public $shareId; /...
true
7b6668333e5752fcee013685a460e0415f78304b
PHP
liu-jack/tcht
/logic/core/function.inc.php
UTF-8
748
2.53125
3
[]
no_license
<?php function __autoload($classname){ if(!strstr($classname,'auto')){ return true; } if(is_file(AClass.$classname.'.class.php')){ require_once(AClass.$classname.'.class.php'); if (!class_exists($classname, false)) { common::printlog($classname.'Class not found'); } }else{ common::printlog('./class...
true
6f42add2772be2d727370d7f7b2c2fe7c9f14b94
PHP
megaps29/Tugas-3
/index.php
UTF-8
773
2.78125
3
[]
no_license
<?php //membuat koneksi ke database $host = 'localhost'; $user = 'root'; $password = ''; $database = 'akademik'; $konek_db = mysql_connect($host, $user, $password); $find_db = mysql_select_db($database) ; ?> <center> DATA MAHASISWA <br> <br> <?php // Perintah un...
true
74dc525b2d0ce32e32fb3c04883ab85036dc0710
PHP
viktortat/senao_design_pattern
/src/Decorator/Order.php
UTF-8
759
3.25
3
[]
no_license
<?php declare(strict_types=1); namespace App\Decorator; /** * Class Order * @package App\Decorator */ final class Order { /** @var int */ private $totalPrice; /** @var array */ private $events; /** * @return int */ public function getTotalPrice(): int { return $this...
true
2ab061a7a4be0ee852da10a2a2f95062dcf31e22
PHP
BarashKa01/blog_playground
/app/Database/MySqlDatabase.php
UTF-8
1,800
3.234375
3
[]
no_license
<?php namespace App\Database; use \PDO; class MySqlDatabase extends Database { private $db_name; private $db_host; private $db_username; private $db_pass; private $pdo; public function __construct($db_name, $db_host, $db_username, $db_pass) { $this->db_name = $db_name; $this->db_host = $db_host; ...
true
08d642d31a024cd83c19b2efae27a82967adeab8
PHP
XarigamiND/xarigami-modules-articles
/xaruserapi/getpubcatcount.php
UTF-8
3,178
2.625
3
[]
no_license
<?php /** * Articles module * * @package modules * @copyright (C) 2002-2007 The Digital Development Foundation * @license GPL {@link http://www.gnu.org/licenses/gpl.html} * @link http://www.xaraya.com * * @subpackage Articles Module * @link http://xaraya.com/index.php/release/151.html * @author mikespub */ /...
true
6b10559a2334ecf591ae7d99158fa8481674bf97
PHP
wahyu28/mahasiswa
/modul/nilai/matkul.php
UTF-8
724
2.515625
3
[]
no_license
<?php $mysqli = new mysqli('localhost','root','','mahasiswa'); $nip = $_POST['nip']; $sql = $mysqli->query("SELECT tb_matakuliah.kode_matkul, tb_matakuliah.matakuliah,tb_matakuliah.kode_matkul, tb_jadwal.nip FROM tb_jadwal, tb_matakuliah WHERE tb_jadwal.matakuliah=tb_matakuliah.kode_matkul and tb_jadwal.nip = '$nip'...
true
c1180f378bade09daff870ec78ff2e02bda9f94e
PHP
darochafernandesbismarque/prova-satollo
/library/Consulta.php
UTF-8
313
2.65625
3
[]
no_license
<?php error_reporting(E_ALL); include "Conexao.php"; class Consulta { public static function consultar($sql) { $conexao = Conexao::conectar(); $stmt = $conexao->prepare($sql); $stmt->execute(); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); return $result; } }
true
b8d18b486bbb93b6e15e525b7641921490f4e73c
PHP
Dragonqos/wholesale
/src/Processor/PriceStrategy/PriceStrategyInterface.php
UTF-8
267
3
3
[]
no_license
<?php namespace App\Processor\PriceStrategy; interface PriceStrategyInterface { /** * @param float $sellerCost * @param float $retailPrice * * @return float */ public function process(float $sellerCost, float $retailPrice): float; }
true
5c449e9340610d1a096c45934e86132e4b9c5102
PHP
AditiShree22/Clues_Commute
/commute/fetchForPassenger.php
UTF-8
1,100
2.6875
3
[]
no_license
<?php require_once 'include/DB_Functions.php'; $db = new DB_Functions(); // json response array $response = array("error" => FALSE); if (isset($_GET['employee_id'])){ $employee_id = $_GET['employee_id']; $passengerArray = $db->fetchForPassengers($route); $number = count($passe...
true
7232d044fd556491bc27b99824e7fa214b28ca85
PHP
aladrach/Bluefoot-Craft-Starter
/craft/plugins/market/services/Market_ShippingMethodService.php
UTF-8
5,285
2.578125
3
[]
no_license
<?php namespace Craft; use Market\Helpers\MarketDbHelper; /** * Class Market_ShippingMethodService * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @copyright Copyright (c) 2015, Pixel & Tonic, Inc. * @license http://buildwithcraft.com/license Craft License Agreement * @see http://buildw...
true
f015887ce193dd4ae35d18740ba4372ffb92520a
PHP
metafework/homework4
/analyze.php
UTF-8
720
3.453125
3
[]
no_license
<!DOCTYPE html> <html> <head>Text Analysis/ File management</head> <body> <br> <?php $inputFile=fopen("input.txt","r"); $fileContentString= fread($inputFile,filesize("input.txt")) or die("Cannot find input file."); $wordArray= explode (",", $fileContentString); /*foreach ($wordArray as $key => $word) { echo $word; }...
true
390ab8bae6d2b3a930829d54bd4c76a97ae4fbff
PHP
WebCF2m2017/RevisionMVC
/c/adminController.php
UTF-8
4,510
2.765625
3
[]
no_license
<?php // on est connecté en tant qu'admin // dépendances pour le CRUD des tableaux require_once 'm/Tableau.class.php'; require_once 'm/TableauManager.class.php'; require_once 'm/Artiste.class.php'; require_once 'm/ArtisteManager.class.php'; require_once 'm/Pagination.class.php'; $manageArtiste = new ArtisteManager($c...
true
c28f474f56d16c48c3ca0fc1aad4aee72251d6e6
PHP
linuxserver/mod-list
/index.php
UTF-8
8,231
2.625
3
[]
no_license
<?php class LsMods { private $url = 'https://linuxserver.github.io/docker-mods/mod-list.yml'; public $yaml; public $mods; public $validmods; public function __construct() { $this->yaml = $this->getList(); $mods = []; foreach($this->yaml['mods'] as $modname => $mod) { if($mod['mod_count...
true
8a219f113796fe28e291c82ed3bfcc3289075dcd
PHP
jepihumet/jepifw
/JepiFw/System/Model/MySqlModel.php
UTF-8
2,210
3
3
[ "MIT" ]
permissive
<?php /** * MySqlModel.php * * @package JepiFW * @author Jepi Humet Alsius <jepihumet@gmail.com> * @link http://jepihumet.com */ namespace Jepi\Fw\Model; use Jepi\Fw\Exceptions\ModelException; class MySqlModel implements ModelInterface { /** * @var \PDO */ protected $pdo; ...
true
7c0390daead809900c1a222c3320d804d96d5e42
PHP
meikieruputra/khub
/old/kh/backend/models/Post.php
UTF-8
3,208
2.625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "post". * * @property int $id * @property string $title * @property string $slug * @property int $post_category_id * @property string $description * @property string $future_image * @property string $content * @property int $t...
true
54ee2544b1702eb6c846e69cfb2e893122b291d7
PHP
andy521/yii2-system
/src/behaviors/LanguageQueryBehavior.php
UTF-8
2,054
2.59375
3
[ "MIT" ]
permissive
<?php /** * @link https://github.com/creocoder/yii2-taggable * @copyright Copyright (c) 2015 Alexander Kochetov * @license http://opensource.org/licenses/BSD-3-Clause */ namespace yuncms\system\behaviors; use yii\base\Behavior; use yii\db\Expression; /** * LanguageQueryBehavior * * @property \yii\db\ActiveQue...
true
bf9479a2bad991fce6df51f7b48449f1127dc2fe
PHP
Eoras/WCS_HACKATHON_3_Emoovz
/src/AppBundle/Entity/Room.php
UTF-8
2,596
2.609375
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Room * * @ORM\Table(name="room") * @ORM\Entity(repositoryClass="AppBundle\Repository\RoomRepository") */ class Room { /** * @ORM\OneToMany(targetEntity="AppBundle\Entity\MoveOutRoom", mappedBy="room") */ private $moveOu...
true
65223085329b1a63c76c851e301263d411799760
PHP
mzcoding/laravel-crud
/app/Http/Controllers/StaffController.php
UTF-8
2,329
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\StaffRequest; use App\Staff; use Illuminate\Http\Request; class StaffController extends Controller { /** * Display a listing of the resource. * * @return Staff[]|\Illuminate\Database\Eloquent\Collection */ public function index()...
true
b3db61bcf061f13157408fb8b7df43c04f5fe77b
PHP
maria364/webdev
/register-check.php
ISO-8859-7
1,371
2.703125
3
[]
no_license
<?php include('connect.inc'); $firstname = mysql_real_escape_string( $_POST['firstname'] ); $lastname = mysql_real_escape_string( $_POST['lastname'] ); $email = mysql_real_escape_string( $_POST['e-mail'] ); $username = mysql_real_escape_string( $_POST['username'] ); $password = md5( mysql_real_escape_string( $_POST['...
true
bb486836cf29df38a28d66c32d95c81d7da43e64
PHP
hoanganhquang/web-application-development-labs
/labs/Lab03/Practical1/post.php
UTF-8
178
3.484375
3
[]
no_license
<?php if(isset($_POST["name"]) && isset($_POST["age"])){ echo "Name: " . $_POST['name'] . "<br>"; echo "Age: " . $_POST['age']; } ?>
true
70f579eeea52871e4f8c3ea81df3554343d49d09
PHP
Konstanta100/onBoarding
/www/app/src/ArgumentValueResolver/ArgumentValueResolver.php
UTF-8
2,346
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace App\ArgumentValueResolver; use App\Dto\ValidationError; use App\Exception\ValidationException; use JMS\Serializer\SerializerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; use Symfony\Compone...
true
568e1bace7a48cd5f291b63b0a66dfa872140db7
PHP
sam110386/insurance
/database/migrations/2019_07_12_051543_add_more_vehicle_columns.php
UTF-8
10,319
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddMoreVehicleColumns extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('leads', funct...
true
395b802554bbfa7604a7b1842dec269b84824c8b
PHP
barrozaum/projetoArrecadacao
/site/recursos/includes/retornaValor/retornaSituacaoValorM2Terreno.php
UTF-8
786
2.828125
3
[]
no_license
<?php include_once '../estrutura/controle/validarSessao.php'; $cod = $_REQUEST['cod']; // chamo a conexao com o banco de dados include_once '../estrutura/conexao/conexao.php'; // preparo para realizar o comando sql $sql = "select * from Utilizacao where Codigo = '" . $cod . "'"; $query = $pdo->prepare($sql);...
true
7b46b66f5a95fee28d2ff8f71f27a9eaa491845b
PHP
google-code/baseappframework
/baseapp/libraries/mail.php
UTF-8
2,498
2.90625
3
[]
no_license
<?php /** * Mail class for sending E-Mails * * A tiny mailing class will use php mailer if it exists. * * @version $Id: validation.php 7 2009-03-04 22:18:40Z vikaspatial1983 $ * @package BaseApp Framework (v0.1) * @link http://code.google.com/p/baseappframework/ * @copyright Copyright (C) 20...
true
59b6fc5d7ae757a649ab2110e1cfb15a75839e76
PHP
harryak/jc_intern
/app/Http/Controllers/FileAccessController.php
UTF-8
7,046
2.59375
3
[ "AGPL-3.0-only" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Controllers\Auth\AuthController; use Carbon\CarbonInterval; use Illuminate\Http\Request; use Carbon\Carbon; use GuzzleHttp; use Illuminate\Support\Facades\Cache; /*use Psr\Http\Message;*/ class FileAccessController extends Controller { /** * Create a new co...
true
e327b9543d8038fb1a096fd87dc5446f7b904fc8
PHP
RyoIshiguro/FDCI-TRAINING-RYO
/6_php/exercise15/hw3.php
UTF-8
1,547
3.828125
4
[]
no_license
<?php class Sort{ public $numbers_from = [0,0,0,0,0]; // public $numbers = [0,0,0,0,0]; function __construct($numbers_from) { $this -> numbrers_from = $numbers_from; // $this -> numbers_to = $numbers; } function sortNumber($numbers_from = [5,12,28,19,20]) { ...
true
bb33d17d3cc8823e39c2f0d9d351e9917af4bcf8
PHP
velebak/Clubhouse
/application/models/User/UserLogin.php
UTF-8
805
2.578125
3
[]
no_license
<?php if (!defined('FARI')) die(); /** * Clubhouse, a 37Signals' Campfire port * * @copyright Copyright (c) 2010 Radek Stepan * @license http://www.opensource.org/licenses/mit-license.php The MIT License * @link http://radekstepan.com * @category Clubhouse */ /** * User authentication. * * @copyri...
true
c8145322e2467298476fc4eee4837ab2dfc6447c
PHP
paranoiq/datadog-client
/tests/DatadogClient_test.phpt
UTF-8
1,175
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php require __DIR__ . '/boot.php'; use Tester\Assert; use DataDog\DatadogClient; $c = new DatadogClient(123, 456); Assert::same('', $c->serializeTags(array())); Assert::same('tag1:123,tag2:456,tag3', $c->serializeTags(array('tag1' => 123, 'tag2' => 456, 'tag3' => TRUE,))); $c->setTags(array('tag2' => 456, 'tag...
true
97bc9a33eb643e1b990b03e93a1a34908f090063
PHP
sawkea/multiplication
/5_super_revision.php
UTF-8
3,762
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Multiplication</title> <link rel="icon" type="image/png" href="img/favicon.png" /> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&dis...
true
4f7ba6840b322e5571097070bc3d2b2b1e34b78b
PHP
silasrm/redirector
/index.php
UTF-8
3,366
2.625
3
[]
no_license
<?php if (!isset($_GET['url']) || !filter_var($_GET['url'], FILTER_VALIDATE_URL) || strpos($_GET['url'], 'http') === false) { return false; } /* gets the data from a URL */ function getData($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETUR...
true
ec64b900bd7b25c4269b4ece014af294c4b6c737
PHP
EM-Creations/101CMS
/cms/pages/admin.Ranks.inc.php
UTF-8
6,122
2.765625
3
[ "MIT" ]
permissive
<?php if ($_currUser->type() == "guest") { // If the user isn't logged in, redirect them header("Location: ../"); exit; } if (!$_currUser->checkPermission("ranks")) { // If this user doesn't have the Super Admin permission, redirect them header("Location: ./"); exit; } if (isset($_GET['rank'])) { // If we're edit...
true
e1b1b66b8f89e5c68ff22cf5ddce56fe2dc8a535
PHP
jesusangelmateos/empleados1920-22
/empaltaemp.php
UTF-8
2,653
2.921875
3
[]
no_license
<?php require 'funciones.php'; $conn=conectarBD(); if (!isset($_POST) || empty($_POST)) { /*Función que obtiene el DNI de los empleados de la empresa*/ $departamentos = obtenerDepartamentos($conn); echo '<form action="" method="post"'; ?> <h1>ALTA EMPLEADO</h1><br><br> <div> DNI <input type...
true
0532f2337be2b90fc5fefc46359e617bfb06a6a4
PHP
kerem12345/IMSE-Project
/db_connection.php
UTF-8
333
2.609375
3
[]
no_license
<?php $servername = "localhost:3306"; $username = "root"; $password = "1111"; $db = "hotel"; // Create connection $db = new mysqli($servername, $username, $password, $db); if ($db->connect_error) { die("Connection failed: " . $db->connect_error); } //echo "Hello Hotel-DB :...
true
1b917c60a3fa563fe5df4b013d409accabc0de5e
PHP
rahmuna/test
/tests/Stub/Clock.php
UTF-8
454
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace FeeCalcApp\Stub; use DateTime; use FeeCalcApp\Helper\Clock\ClockInterface; class Clock implements ClockInterface { private ?DateTime $dateTime = null; public function getCurrentDateTime(): DateTime { return $this->dateTime ?? new DateTime(); } p...
true
a99aae5baeda8787eed485c70e3d73692ae8b306
PHP
php-ddd/command
/src/Handler/CommandHandlerInterface.php
UTF-8
700
3.109375
3
[ "MIT" ]
permissive
<?php namespace PhpDDD\Command\Handler; use PhpDDD\Command\CommandInterface; /** * A Command Handler aims to act on a specific command. * To respect the single responsibility principle, we force one command handler to handle one and only one command. */ interface CommandHandlerInterface { /** * Tells whe...
true
64d5c224bcd7ff892fec9c15bccb48be0f6357df
PHP
itfan/android-and-php-zuijia-shijian
/hush-framework/hush-lib/Hush/Process/Storage.php
UTF-8
991
2.921875
3
[]
no_license
<?php /** * Hush Framework * * @category Hush * @package Hush_Process * @author James.Huang <shagoo@gmail.com> * @license http://www.apache.org/licenses/LICENSE-2.0 * @version $Id$ */ /** * @package Hush_Process */ abstract class Hush_Process_Storage { /** * Create storage...
true
6137f12865d512d5905655925510eb19cdadb3f4
PHP
Malopla/SDD-Project
/resources/database/install.php
UTF-8
4,897
2.59375
3
[]
no_license
<?php //The default password for all accounts created here is "admin" try { include 'db.php'; $users_tbl = "CREATE TABLE users ( username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, salt VARCHAR(255) NOT NULL, PRIMARY KEY(username) ) ENGINE=INNODB"; $...
true
d57633c97e7964a31d00a6e814779c714df3a7fd
PHP
bread-tan/Blurbspot
/crawlForBio.php
UTF-8
735
2.515625
3
[]
no_license
<?php if(empty($_POST['q'])) return; $bandname = $_POST['q']; $handle = fopen("config/config.txt", "r"); $contents = fread($handle, filesize("config/config.txt")); $configurations = explode("\r\n", $contents); foreach($configurations as $config) { $parts = explode("=", $config); if($parts[0] == "python") ...
true
fb9a28037e2289234febce62764793855031daf7
PHP
bsvm7/cs4380-final-project
/www/api/upload.php
UTF-8
6,297
2.8125
3
[]
no_license
<?php // Include reference to sensitive databse information include("../../../../../db_security/security.php"); $db_user = constant("DB_USER"); $db_host = constant("DB_HOST"); $db_pass = constant("DB_PASS"); $db_database = constant("DB_DATABASE"); // First connect to the database using values from the inclu...
true
1b7af4b6c4373962c0ed78834a855dd7dd57d661
PHP
opdavies/gmail-filter-builder
/tests/Unit/Console/Command/GenerateFiltersTest.php
UTF-8
2,755
2.546875
3
[ "MIT" ]
permissive
<?php namespace Opdavies\Tests\GmailFilterBuilder\Console\Command; use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Filesystem\Filesystem; class GenerateFiltersTest extends TestCase { const I...
true
8a5bf2eb2054d05a40514c003b63b86856d4adc0
PHP
akbardhany/Project-Manajemen
/config/incoming-order.php
UTF-8
2,388
2.578125
3
[]
no_license
<?php require '../config/connection.php'; session_start(); if (empty($_SESSION['username'])){ header("Location:../login.php"); }else{ if ($_SESSION['username']) { # echo "Log in as ".$_SESSION['username']; }else { header("Location:../login.php"); } } ...
true
91aec2f5e9ec8d0001c04065e544eb21a8759fc6
PHP
fatman2021/phpstorm-plugin-piwikstorm
/testData/inspection/nonApi/allUsingNonApiCases/src/TestCases.php
UTF-8
2,323
2.78125
3
[]
no_license
<?php namespace Piwik\Plugins\MyPlugin; use Piwik\Something\ClassWithApiMembers; use Piwik\NonApiClass; use Piwik\NonApiInterface; use Piwik\Something\NonApiClass as SomethingNonApiClass; use Piwik\Plugins\AnotherPlugin\NonApiClass as AnotherNonApiClass; use Piwik\Something\NonApiClassImplementsApiInterface; class My...
true
1b04385ac886103942430ecdfb789c3b5c29fae4
PHP
hung-nv/bdsmydinh
/protected/models/News.php
UTF-8
7,120
2.59375
3
[]
no_license
<?php /** * This is the model class for table "news". * * The followings are the available columns in table 'news': * @property integer $id * @property string $title * @property string $alias * @property string $tag * @property string $meta_title * @property string $meta_description * @property string $meta_...
true
0fb75c60394befab9993907ff616f4ba1fd22deb
PHP
madisvorklaev/vrakendused1
/7_tagurpidilugeja.php
UTF-8
961
2.578125
3
[]
no_license
/* <?php error_reporting(E_ALL); ini_set('display_errors', 1); ?> <!DOCTYPE html> <head> <style type="text/css"> </style> <link type="text/css" rel="stylesheet" href="stiilifail.css" /> <meta charset="UTF-8"> <title>7.nädala harjutused</title> </head> <body> <?php // prints e.g. 'Curr...
true
b542e665a91f9afe9baab69392681f9a6774f6bf
PHP
code-generators/trident
/src/Builders/Crud/Controller.php
UTF-8
2,296
2.6875
3
[ "MIT" ]
permissive
<?php /** * Tuhin Bepari <digitaldreams40@gmail.com> */ namespace j0hnys\Trident\Builders\Crud; use Illuminate\Support\Facades\Storage; class Controller { /** * Controller Name prefix. * If Model Name is User and no controller name is supplier then it will be User and then Controller will ...
true
db70012e704c404997abc5fce480ac098fb40cae
PHP
VedranSagodic/hellopp21
/zadaci/zadatak7_08.php
UTF-8
359
3.265625
3
[]
no_license
<?php // Funkcija prima broj i vraća ukupan zbroj svih brojeva od 1 // do primljenog broja (uključujući primljeni broj) // rekurzija function zbroj($broj){ if($broj===1){ return 1; } return $broj-- + zbroj($broj); } // prvo slaže ovako // 100 + 99 + 98 + ... + 2 + 1; // a konkterno zbrajanje ide ...
true
cf3caca0c4a8b974fca4628cccc93ea16f472223
PHP
NVerine/old
/src/entity/ObjectGUI.php
ISO-8859-1
3,464
3.09375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Cleiton * Date: 25/01/2019 * Time: 11:01 */ namespace src\entity; abstract class ObjectGUI implements InterfaceGUI { public $handle; // -----------------------------------------------------------------------------------------------------------------...
true
fb9266965ff6f51e57666cb0e1f2b21d83b6b187
PHP
antlogist/oop
/examples/basic/student/Student.php
UTF-8
1,031
3.765625
4
[]
no_license
<?php class Student { public $marks = array(); function examResults($marks) { // Check the entry data format if(!is_array($marks)) { echo "Entry data is not an array"; return; } $total = array_sum($marks); // If array length less than 3 if (count($marks) < 3) { ...
true
81d7977ebca8227fb94595de4ab88526ec15262d
PHP
jonphipps/registry2
/app/Http/Controllers/ElementsController.php
UTF-8
4,828
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Element; use Illuminate\Http\Request; use Illuminate\Support\Facades\Gate; use App\Http\Requests\StoreElementsRequest; use App\Http\Requests\UpdateElementsRequest; use Yajra\Datatables\Datatables; class ElementsController extends Controller { /** * Display a lis...
true
f1f29bbd21705e6f05e9f8ccf35c576054008065
PHP
dereckson/zed
/includes/story/hook_demo.php
UTF-8
1,984
2.84375
3
[]
no_license
<?php /** * Story hook class: example code * * Zed. The immensity of stars. The HyperShip. The people. * * (c) 2010, Dereckson, some rights reserved. * Released under BSD license. * * This class illustrates how to use the StoryHook class. * * @package Zed * @subpackage Story * @author Sébastien S...
true
3354d7f4a64c582d6e3b809698434a91bd328244
PHP
flavioribeirojr/design-patterns-study
/Creational/AbstractFactory/LondonToyFactory.php
UTF-8
228
2.765625
3
[]
no_license
<?php class LondonToyFactory implements ToyFactory { public function makeMaze() { return new Toys\LondonMazeToy(); } public function makePuzzle() { return new Toys\LondonPuzzleToy(); } }
true
65217ec9553aa6268c8c0f04bf544f80f1961d8d
PHP
vladkudinov89/bsa-2018-php-10
/app/Mail/RateChanged.php
UTF-8
1,084
2.671875
3
[]
no_license
<?php namespace App\Mail; use App\Entity\Currency; use App\User; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class RateChanged extends Mailable { use Queueable, SerializesModels; protected $user; protected...
true
3920bfde381d0321d040975a070e69be13baf834
PHP
ArneAmeye/laravel-stagevinder
/app/Services/SocialFacebookAccountService.php
UTF-8
2,120
2.796875
3
[]
no_license
<?php namespace App\Services; use App\User; use App\Student; use Illuminate\Support\Facades\Hash; use Laravel\Socialite\Contracts\User as ProviderUser; use File; class SocialFacebookAccountService { public function createOrGetUser(ProviderUser $providerUser) { //Check if user already exists from FB lo...
true
f068745ddf9826747bdab396dfdc6aa35d453f96
PHP
PeeHaa/feedme
/src/Response/NewArticle.php
UTF-8
542
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PeeHaa\FeedMe\Response; use PeeHaa\FeedMe\Entity\Article; final class NewArticle implements Response { /** @var Article */ private $article; public function __construct(Article $article) { $this->article = $article; } public function toJson()...
true
89ca06507d70c7d777f839a08fb9292388d5163d
PHP
ferch01991/BlogLaravel
/app/Http/routes.php
UTF-8
1,911
2.71875
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
true
9a1d88da1bf8dd34f318cc5060dbc69177182387
PHP
shurik2k5/sitemap
/src/File.php
UTF-8
10,162
2.890625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link https://github.com/yii2tech * @copyright Copyright (c) 2015 Yii2tech * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) */ namespace yii2tech\sitemap; use yii\base\InvalidArgumentException; /** * File is a helper to create the site map XML files. * Example: * *...
true
b2c01cb8e793f2703eeff4039f0543028a054a11
PHP
vgates/Campus-Infocom
/photo.php
UTF-8
849
2.875
3
[]
no_license
<?php class photoClass { function photo($newwidth,$newheight,$newname,$oldname) { if ($_FILES["file"]["error"] > 0) $msg = "Return Code: " . $_FILES["file"]["error"] . "<br />"; else { $photo=$oldname.".jpg"; if (file_exists("upload/".$photo)) { $xxff="upload/".$...
true
a679e70703bbe2c00344f4513cbafd58da1a8645
PHP
alessandroverao/likeTiziana
/php/agrega_cliente.php
UTF-8
2,451
2.546875
3
[]
no_license
<?php include('../php/conexion.php'); $id = $_POST['id-clien']; $proceso = $_POST['pro']; $nombre = $_POST['nombre']; $tipo = $_POST['tipo']; $direccion = $_POST['direccion']; $celular = $_POST['celular']; $fecha = date('Y-m-d'); $cuil = $_POST['cuil']; $email = $_POST['email']; //VERIFICAMOS EL PROCESO $sql = "SELEC...
true
9f97a1ddb219507db3f90df0602288e9545f3942
PHP
2rch/Turch-MyLog
/src/MyLogger.php
UTF-8
2,234
2.703125
3
[]
no_license
<?php namespace vendor\Turch; use Monolog\DateTimeImmutable; class MyLogger implements LoggerInterface { public string $name; public static string $WrongId; private bool $microsecondTimestamps = true; protected $timezone; public function __construct(string $name = '') { $this->name =...
true
2a179f92ac87819e5a4760f46abb2521d83f6b9c
PHP
xiaohongyang/work_clock
/app/WorkClock.php
UTF-8
976
2.65625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class WorkClock extends Model { // public $table = 'loaddata_worktime'; public function getForMonth($month, $year=null){ $year = is_null($year) ? date('Y', time()) : $year; $dateBegin = $year.'-'.$month.'-'.'01'; $da...
true
b1e5d64e617fd8f33c672b9eb006c42285f628cb
PHP
milkcreation/presstify-events
/Query.php
UTF-8
8,688
2.59375
3
[]
no_license
<?php namespace tiFy\Plugins\Events; class Query { /* = CONSTRUCTEUR = */ public function __construct() { add_filter( 'query_vars', array( $this, 'query_vars' ), 1 ); add_filter( 'posts_clauses', array( $this, 'posts_clauses' ), 99, 2 ); add_filter( 'posts_results', array( $this, 'posts_results' ), 10, 2 )...
true
429b48225fa7125452977f536e2636b1a22bcc61
PHP
Symfony-Plugins/csDoctrineSlideshowPlugin
/lib/widget/sfWidgetFormJQuerySortableListMany.class.php
UTF-8
1,924
2.578125
3
[ "MIT" ]
permissive
<?php /** * */ class sfWidgetFormJQuerySortableListMany extends sfWidgetFormJQuerySortableList { public function addRelationsOptions($options) { foreach (Doctrine::getTable(get_class($options['object']))->getRelations() as $relation) { if ($relation['alias'] == $options['hasMany']) { ...
true
0d17ddf3823746bd14cc001806cfa115dcfac2d0
PHP
securia/api
/app/commands/Bootstrap.php
UTF-8
2,787
2.640625
3
[]
no_license
<?php use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; /** * This is script to Bootstrap * * php artisan script:Bootstrap * */ class Bootstrap extends Command { /** * The console command name. * * @var stri...
true
b5efc8b045b2a255b734715298934a9ffca10647
PHP
ruslanix/code-samples
/1_CatalogParser/Application/CatalogParser/Tests/Parser/Rozetka/ParserUnit/PageProductItemsTest.php
UTF-8
1,876
2.53125
3
[]
no_license
<?php namespace Application\CatalogParser\Tests\Parser\Rozetka\ParserUnit; use Application\ParserChain\Container\ResultContainer; use Application\CatalogParser\Parser\Rozetka\ParserUnit\PageProductItems; use Application\CatalogParser\Tests\Parser\Rozetka\ParserUnit\DataFixtures\ProductItemsTestData; class PageProduc...
true
5cf0260bee5303198add379aa32dfd3eb12b2e9a
PHP
kemalyen/azurehelper
/src/Logger.php
UTF-8
1,586
2.859375
3
[ "MIT" ]
permissive
<?php namespace Gazatem\Phpfunc; class Logger { private $messages = []; public function getMessages() { $return = []; foreach($this->messages as $message){ $return[] = $message[0] .': '. $message[1]; } return $return; } function information(string ...
true
ce2201508d1f0cc3379eef480abe8ed95166ef61
PHP
rmit-s3378684-Pavitra-Vathsalaraj/project1
/app/Registered_user.php
UTF-8
1,264
2.78125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Input; use Hash; use Illuminate\Foundation\Auth\User as Authenticatable; class Registered_user extends Authenticatable { // protected $table="registered_users"; public static function formstore($data){ //echo "here model is"; // //va...
true
01e55f3632ff39ff23df3e6e845f4245c368b470
PHP
BobMcHenry/php-mysqli-demo
/db-connection.php
UTF-8
1,168
3.46875
3
[]
no_license
<?php require('credentials.php'); // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //Make a SELECT query $searchFor = "'McHenry'"; $selectQuery = "...
true
86e9c3c56aff95aaad0924689505293d424e9c32
PHP
shivam13juna/web_app
/my_pdo/thanks.php
UTF-8
1,044
2.953125
3
[]
no_license
<?php // header('Content-Type: text/enriched/font-woff'); // echo "<pre>"; // echo "This is $_GET"; // echo "</pre>"; require_once "pdo.php"; if (isset($_GET['name']) && isset($_GET['habit'])){ $nam = $_GET['name']; $hab = $_GET['habit']; echo "Thank you, the name $nam and their $hab have been inserted i...
true
973651bd39fff81d6609097893ea3e3b48de656b
PHP
bapplistudio/SAF
/locale/Locale.php
UTF-8
6,831
2.84375
3
[ "MIT" ]
permissive
<?php namespace SAF\Framework; use SAF\Framework\Locale\Date_Format; use SAF\Framework\Locale\Loc; use SAF\Framework\Locale\Number_Format; use SAF\Framework\Locale\Translator; use SAF\Framework\Plugin\Configurable; use SAF\Framework\Reflection\Interfaces\Reflection_Method; use SAF\Framework\Reflection\Interfaces\Refle...
true
f1a98d05bff2f0e306d6491d03ed3474cf72f0d0
PHP
miguelcostero/tesis-api
/enviroment/authentification.php
UTF-8
1,196
2.609375
3
[]
no_license
<?php require __DIR__ . '/token.php'; $token = new Token; $headers = getallheaders(); if (isset($headers['Access-Token'])) { $access_token = $headers['Access-Token']; try { $decoded = $token->decode($access_token); if ($decoded->exp < time()) { http_response_code(401); echo json_encode(array('e...
true
57287b355bb423a2eb3c371e6ff48819a8371c41
PHP
quan4399/thi_module2
/App/Models/ProductModel.php
UTF-8
2,373
3.09375
3
[]
no_license
<?php namespace App\Models; class ProductModel { public $pdo; public function __construct() { $database = new DBConnect("root", ""); $this->pdo = $database->connect(); } public function getAllProduct() { $sql = "SELECT * FROM products"; $stmt = $this->pdo->prep...
true
fa0e55bd54ac6877ddf9752a24d897d6424c464a
PHP
williamRS061/PRW
/POO/includes/atividade1.inc.php
UTF-8
347
3.453125
3
[]
no_license
<?php //declaração da classe class Item { //atributos da classe var $nome; var $preco; var $categoria; function __construct($nome, $preco, $categoria){ $this->nome = $nome; $this->preco = $preco; $this->categoria = $categoria; } function mostrarCategoria(){ return $this-...
true
27e149982c9ce01372dc7e8b8ecc457817a0a9b6
PHP
aurovrata/Savi-Admin-Tool
/enquiry-review.php
UTF-8
10,527
2.71875
3
[]
no_license
<?php if(!class_exists('WP_List_Table')){ require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); } class Enquiry_Review_List_Table extends WP_List_Table { function __construct(){ global $status, $page; //Set parent defaults parent::__construct( array(...
true
f0c4896b0f8007da61c1c92c69708b859c112024
PHP
isabella232/vagrant-catalog
/src/Vube/VagrantCatalog/DirectoryScan.php
UTF-8
2,205
2.9375
3
[ "MIT" ]
permissive
<?php /** * @author Ross Perkins <ross@vubeology.com> */ namespace Vube\VagrantCatalog; use Vube\VagrantCatalog\Exception\HttpException; /** * DirectoryScan class * * @author Ross Perkins <ross@vubeology.com> */ class DirectoryScan { private $dir; private $ignoreList; public function __construct($dir) { ...
true
bc32a7d90e49f546253614f944e892db73d28390
PHP
kakaye-mkubwa/tweet-s
/UserProcessors/Register.php
UTF-8
5,498
2.875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php include_once '../utils/DBConnection.php'; $connection = new DBConnection(); $link = $connection->connection(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = test_input($_POST["register_email"]); $username = test_input($_POST["register_name"]); $password = test_input($_POST["password"]); $...
true
4c7c5aad9e54105c4c36541f927c39c2584aefdb
PHP
djinorm/djin
/src/Helpers/GetModelByAnyTypeIdHelper.php
UTF-8
1,873
2.828125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @author Timur Kasumov (aka XAKEPEHOK) * Datetime: 27.09.2017 20:07 */ namespace DjinORM\Djin\Helpers; use DjinORM\Djin\Exceptions\InvalidArgumentException; use DjinORM\Djin\Exceptions\LogicException; use DjinORM\Djin\Exceptions\NotFoundException; use DjinORM\Djin\Id\Id; use DjinORM\Djin\Model\ModelInt...
true
61896d89cded1762a3dd92fbdf54ee47c0b1dbd1
PHP
troycaeser/ReviseITWeb
/php/admin/datesReport.php
UTF-8
4,187
2.59375
3
[]
no_license
<?php include '../getConnection.php'; require '../check_logged_in.php'; include '../check_role.php'; checkRoleStudent($_SESSION['Role']); ?> <!DOCTYPE html> <html> <head> <?php include '../header_container.php'; ?> <title>ReviseIT - Dates</title> </head> <body> <?php include 'admin_menu_bar.php'; ?> <br /> <br /...
true
09acf470ad9d4f6474d82c8f64f2f65d92083313
PHP
Szandra01/AFP2_Genshin
/Frontend/php/protected/admin/edit_user.php
UTF-8
1,654
2.75
3
[]
no_license
<?php if(!isset($_SESSION['isadmin']) || $_SESSION['isadmin'] != 1) : ?> <h1>Hozzáférés megtagadva!</h1> <?php else : ?> <?php if (isset($_GET["e"])) { $id = $_GET["e"]; } ?> <?php if(isset($_GET["e"]) && !empty($_GET['e'])) { $query = "SELECT id, username, isregistered FROM users WHERE id = '$id'"; requ...
true
9265557ab431a5409cb0bfd83acb9ee2c838ae06
PHP
kimich7/kimicmuh
/page_1.php
UTF-8
2,563
2.921875
3
[]
no_license
<?php //分頁程式 function page($page,$total,$phpfile,$pagesize=10,$pagelen=7){ $pagecode = '';//定義變數,存放分頁生成的HTML $page = intval($page);//避免非數字頁碼 $total = intval($total);//保證總記錄數值類型正確 if(!$total) return array();//總記錄數為零返回空數組 $pages = ceil($total/$pagesize);//計算總分頁 //處理頁碼合法性 if($page<1) $page = 1;...
true
2dfbc0d00b6066f38a84a06a61ceaae77c27ce80
PHP
homework-bazaar/SnakePHP
/lib/system/function/function.get.php
UTF-8
2,173
3.109375
3
[]
no_license
<?php /** * SnakePHP URL parser. * This is a multifunction with 3 uses, to be used for URL slash-separated parameters. * 1) no parameter : returns URI * 2) 1 parameter (integer) : returns one specific URI parameter * 3) 2 parameters : replace specified URI parameter with $replace param. * * @param Integ...
true
3bba0946187d5eec823c29c2757feec5dc43f2a6
PHP
Daniel1147/php-design-pattern
/app/src/CompositePattern/Todo.php
UTF-8
360
3.40625
3
[]
no_license
<?php namespace DesignPattern\CompositePattern; class Todo implements TodoComponent { private $todo; public function __construct(string $todo) { $this->todo = $todo; } public function rendor(string $prefix = ''): string { $rendor = sprintf("%s<li>%s<\\li>\n", $prefix, $this->...
true
02a3f2fcf1d11155ec7409ef57e1edeb845516dd
PHP
heldercosta9027/redes
/At10/At10-ex2.php
UTF-8
524
3.078125
3
[]
no_license
<?php $Dados=array(2,5,10, 'Maria',2.5,'Rui',8,); echo "Valores do array"; for($i=0; $i<10; $i++) echo $Dados[$i]. " "; echo "<br>"; echo"<br> Valores do array: <br>"; for ($i=0; $i<10; $i++) echo $Dados[$i]. "<br>"; echo "<br>"; $Dados[]=7; $Dados[]="Carlos"; $Dados[1]="Pedro"; $Dados[4]=50; $Dados[5]="Rui...
true
eb3106b373aab3f204f94e72481a5fd58e4c5396
PHP
eHealth4everyone/owid-grapher
/app/Http/Controllers/LogosController.php
UTF-8
4,008
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use URL; use Input; use Validator; use Redirect; //use ARequest; //use Session; //use App\Setting; use Illuminate\Http\Request; use App\Logo; use Cache; class LogosController extends Controller { public function index() { $logos = Logo::all(); return view...
true
e6e02547417f77fd6cf6c9c2a597425d1870bf80
PHP
thonixon321/designhouse-api
/app/Jobs/UploadImage.php
UTF-8
4,180
3.015625
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use Image; use File; use App\Models\Design; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Storage; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; //ShouldQu...
true
4e5ebb0a4ea3a531cf8615b360450395db3db1c5
PHP
edenolam/bilsoc
/src/Bilan_Social/Bundle/ConsoBundle/Services/BsConsoPrecedentPreparator.php
UTF-8
9,999
2.65625
3
[]
no_license
<?php namespace Bilan_Social\Bundle\ConsoBundle\Services; use Symfony\Component\Config\Definition\Exception\Exception; use PDO; /** * Service BsConsoPrecedentPreparator * */ class BsConsoPrecedentPreparator { private $config_base_path = __DIR__.'/../Resources/config/bsPrecedentConfig/'; private $jsonFile...
true
6d848eae48188659a4e933246d00402f5e0dddf7
PHP
sanjayaharshana/thingerbits_core
/vendor/spatie/once/src/Cache.php
UTF-8
2,014
2.8125
3
[ "MIT" ]
permissive
<?php namespace Spatie\Once; class Cache { /** @var array */ public static $values = []; /** * Determine if a value exists for a given object / hash. * * @param mixed $object * @param string $backtraceHash * * @return bool */ public static function has($object, ...
true
675bc8be88988fafd4dd01cb807e4bbb357e1edd
PHP
moeinxyz/nodes
/modules/embed/models/Embed.php
UTF-8
1,954
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\embed\models; use Yii; /** * This is the model class for table "{{%embed}}". * * @property string $id * @property string $hash * @property string $url * @property string $type * @property string $frequency * @property string $response * @property string $created_at * @property s...
true
06836c4828579ec44638b7bdd92648bafd5c8be9
PHP
boyonglab/theresia-core
/src/Http/Router.php
UTF-8
3,809
3.265625
3
[ "MIT" ]
permissive
<?php namespace Boyonglab\Theresia\Core\Http; class Router { /** * The request we're working with. * * @var string */ public $request; private $httpMethods = ['get', 'post', 'put', 'delete']; /** * The $routePaths array will contain our URI's. * @var array */ pu...
true
db0849cad7abe63419a743aa129b5a79783ac0e9
PHP
MrStein01/Website
/system/classes/animeform.php
UTF-8
2,475
2.78125
3
[]
no_license
<?PHP class AnimeForm { public function displayAll () { $rows = DataBase::Current()->ReadRows("SELECT * FROM {'dbprefix'}anime;"); $anime = new Anime(); if($rows) { foreach ($rows as $row) { $noLeer = str_replace(' ','',$row->name); $anime->getAnime($row->name); ...
true
f91aae4c65d1f54ef5861004738ac2964f2e4631
PHP
felixlonald99/Proyek_FPW_2020
/database/seeds/RoomSeeder.php
UTF-8
2,052
2.953125
3
[ "MIT" ]
permissive
<?php use App\RoomModel; use Illuminate\Database\Seeder; class RoomSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //101-120 single standard for ($i = 1; $i <= 20; $i++) { $room = new RoomModel(); ...
true
c2ab2a6f700c3cc948929dc5c0c504e80997c2c6
PHP
tarikmanoar/xenforo
/src/XF/Repository/Phrase.php
UTF-8
3,433
2.5625
3
[]
no_license
<?php namespace XF\Repository; use XF\Mvc\Entity\Repository; use function count; class Phrase extends Repository { /** * @param \XF\Entity\Language $language * * @return \XF\Finder\PhraseMap */ public function findEffectivePhrasesInLanguage(\XF\Entity\Language $language) { /** @var \XF\Finder\PhraseMap...
true
09e5a42f62b8d05d13c5fd00010d07725880979e
PHP
stym06/project_web2017001
/timesjobs/action.php
UTF-8
6,064
2.65625
3
[]
no_license
<?php include('dbconnect.php'); //For SIDEBAR CATEGORIES if(isset($_POST['get_cat'])){ $sql="SELECT * FROM industry"; $run_query=mysqli_query($conn,$sql); $numrows=mysqli_num_rows($run_query); echo ' <div class="nav nav-pills nav-stacked" > <li class="active"><a href="#"><h4>Categories</h...
true
2a86bcc413a8492d8d3c6303eaa3cf5dfad0a637
PHP
molodoi/Contacts
/Ticme/Contacts/Controller/Test/Registry.php
UTF-8
1,164
2.578125
3
[]
no_license
<?php namespace Ticme\Contacts\Controller\Test; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; class Registry extends Action { /** * @var \Magento\Framework\Registry */ protected $_registry; public function __construct( Context $context, \Mage...
true
17e6751c59c11e486b449d3628f0b090a14695ed
PHP
MatheusTomaz/sisqrcode
/model/cliente/clienteModel.php
UTF-8
3,180
2.65625
3
[]
no_license
<?php session_start(); require_once("../../config/config.php"); require_once("../../bean/cliente/clienteBean.php"); Class ClienteModel{ function getCliente($campos, $tabela, $options=" "){ $query = "SELECT $campos FROM $tabela $options"; // die($query); retu...
true
b393c7f96e641c0ca827338eecf36e78dc1f0488
PHP
JeremyDps/forum
/logout/logout.php
UTF-8
518
2.59375
3
[]
no_license
<?php session_start(); if ($_SESSION['connecte'] == true) { // Supression des variables de session et de la session $_SESSION = array(); session_destroy(); // Supression des cookies de connexion automatique setcookie('login', ''); setcookie('pass_hache', ''); header('Location: ../accueil...
true
7a7f1f9a452ab549f843b133b7f972368527352a
PHP
StefanCsPurge/Web-Programming
/Exam_practice/php-channels-2020/back.php
UTF-8
4,401
2.65625
3
[]
no_license
<?php include ('connection.php'); //include ('Asset.php'); try { if ($_SERVER['REQUEST_METHOD'] === 'POST') { $con = OpenConnection(); $json = json_decode(file_get_contents('php://input'), true); $uid = $json['userid']; // $names = $json['name']; // $descriptions = $json['des...
true
0488793bc95a62931ab42bd55bffe4558d315072
PHP
btrebach/wp-auto-pins
/views.php
UTF-8
23,536
2.515625
3
[]
no_license
<?php /* * General directory views */ if (!class_exists('WPBDP_DirectoryController')) { class WPBDP_DirectoryController { public $action = null; public function __construct() { add_action( 'wp', array( $this, '_handle_action'), 10, 1 ); $this->_extra_sections = array(); } public f...
true
80cc71b931fa6989910ccb07cf04d025baca6b50
PHP
sigitsurendra/magangcake
/app/Controller/JobcategoriesController.php
UTF-8
6,124
2.546875
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Jobcategories Controller * * @property Jobcategory $Jobcategory * @property PaginatorComponent $Paginator * @property SessionComponent $Session */ class JobcategoriesController extends AppController { public function beforeFilter() { parent::b...
true
e4038789638ad758c9d64367a975961f00be341e
PHP
saiprasadbanda/chatboat
/rest/application/third_party/mailer/mailer.php
UTF-8
2,821
2.515625
3
[]
no_license
<?php //error_reporting(E_ALL); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; function sendemail($toid,$subject,$message) { $mail = new PHPMailer(true); try { //Server settings $mail->isSMTP(); ...
true