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
5809532507720b08328c1600ef0b5c18f960c58d
PHP
tiagodevweb/lab-mailgun-zf3
/src/CodeEmailMKT/Domain/Entity/Customer.php
UTF-8
1,802
2.875
3
[]
no_license
<?php declare(strict_types=1); namespace CodeEmailMKT\Domain\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; class Customer { /** * @var integer */ protected $id; /** * @var string */ protected $name; /** * @var str...
true
5a86e2a7b2394222170392e86d9db22069cc5371
PHP
mlovell82/php_files
/addressEntry.php
UTF-8
4,991
2.515625
3
[]
no_license
//addressEntry.php <?php include("address_include.php"); if (!$_POST) { $display_block = " <form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\"> <p><strong>First/Last Names:</strong><br/> <input type=\"text\" name=\"f_name\" size=\"30\" maxlength=\"75\"> <input type=\"text\" name=\"l_name\" size=\"30\" maxle...
true
77c7dc66c73dab23b5e97d8b7d37235d4cbe553d
PHP
cgallardo/design-patterns
/src/cgallardo/state/NoQuarterState.php
UTF-8
867
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace Cgallardo\State; class NoQuarterState implements State { /** * @var GumballMachine */ private $gumballMachine; public function __construct(GumballMachine $gumballMachine) { $this->gumballMachine = $gumballMachine; } public function ...
true
d2f0c0a0a8d4afb47c2a4e20919f0bbab67e0aab
PHP
MartinaSprong/FHLogger
/Psr/MartinaLogger/TestMartina.php
UTF-8
631
2.890625
3
[ "MIT" ]
permissive
<?php require('LoggerInterface.php'); require('MartinaLogger.php'); require('FileStrategy.php'); require('DbStrategy.php'); //$logger = new \Psr\MartinaLogger\MartinaLogger(new \Psr\MartinaLogger\FileStrategy()); $logger->info('Logging to FileStrategy may be useful for testing'); $logger->error('This is an error');...
true
c5eda510c27dac6bc4eb4cc38a1309f35e6b7228
PHP
khaledst/A4C-Khal
/app/controllers/BaseController.php
UTF-8
2,155
2.640625
3
[ "MIT" ]
permissive
<?php class BaseController extends Controller { public $domain = NULL; public $jtable = NULL; public $company = NULL; public $root = ''; public $master_company = NULL; public $mango_instance = NULL; public function __construct() { ...
true
4a95f9eba1af5dfb29a2cca306c4623fcf5cb12b
PHP
progand/socialmarket
/protected/controllers/RegisterController.php
WINDOWS-1251
1,675
2.71875
3
[]
no_license
<?php class RegisterController extends Controller { public function actionCustomer() { // if(isset($_POST['user'])) { // , $user = new User(User::SCENARIO_SIGNUP); $customer = new Customer(); // $user->attributes = $_POST['user']; $customer->attributes = $_POST['cust...
true
752f6373fd59167a7ef2222a50ba5705cf7254e7
PHP
chybaDapi/exchange
/website/models/Exchange.php
UTF-8
6,505
2.890625
3
[]
no_license
<?php class Exchange { /** * Gets current exchange rate from external API. * * @param string $apiUrl * @return bool|mixed */ public function getCurrentExchangeRate($apiUrl) { $headers = ['Accept: application/json']; $ch = curl_i...
true
ff585228b2bdb9b14b0ec5e9c7625da2b53c034c
PHP
brenogcota/jenitur-bus
/app/Format.php
UTF-8
377
2.96875
3
[]
no_license
<?php Namespace App; use Carbon\Carbon; class Format { private $date; private $hour; public function formatDate($date) { $this->date = Carbon::parse($date)->format('d/m/Y'); return $this->date; } public function formatHour($hour) { $this->hour = Carbon::parse($h...
true
6a40da82c851bfd9cc62824bfb19d7bbfd216d2c
PHP
Tithugues/CodinGame
/PHP/6-community/ilsSontFousCesRomains.php
UTF-8
2,864
3.265625
3
[]
no_license
<?php define('DEBUG', true); function _d($var, $force = false) { if (DEBUG || $force) { error_log(var_export($var, true)); } } abstract class RomNumber { protected static $romFiguresList = [ 'I' => 1, 'V' => 5, 'X' => 10, 'L' => 50, 'C' => 100, 'D' ...
true
beeea34f48f542a2ecfd8cb45e6173fe164f8e0b
PHP
vaibhav-vsh/school-database-management
/public_html/show_all_results.php
UTF-8
4,509
2.640625
3
[]
no_license
<?php require("includes/common.php"); $group = $_GET['group']; $student = $_POST['students_list']; $query = "SELECT id,subject,max_marks FROM school.exams WHERE exams.exam_group='$group'"; $result2 = mysqli_query($con, $query) or die(mysqli_error($con)); ?> <!DOCTYPE html> <!-- Results page for Trinity High School --> ...
true
61db86d43153c99520bd254a4a221622a83626bb
PHP
xtmmm1988/myRepository
/4_File and Dir/day01/10_function_copy.php
UTF-8
860
2.9375
3
[]
no_license
<?php header("content-type:text/html;charset=utf-8"); $old_dir="test"; $new_dir="test01"; copyDir($old_dir,$new_dir); function copyDir($old_dir,$new_dir){ //判断$new_dir是否存在 if(file_exists($new_dir)){ //如果存在,且有一个同名的文件 if(is_file($new_dir)){ echo "目标是文件,无法拷贝 "; exit; } }e...
true
2630a1e123026ecfaa195b154525a4654c4c3513
PHP
Flyingmana/PieCrust
/src/PieCrust/Command/Commands/ThemesCommand.php
UTF-8
6,822
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace PieCrust\Command\Commands; use \Exception; use \Console_CommandLine; use \Console_CommandLine_Result; use Symfony\Component\Yaml\Yaml; use PieCrust\IPieCrust; use PieCrust\PieCrustException; use PieCrust\Command\Context; use PieCrust\Command\Commands\PluginsCommand; use PieCrust\Repositories\ThemeInst...
true
a3cdfdca5c0a66189ad83d4e0960dd30400bcf31
PHP
OguBoz/quizzerMCQ
/process.php
UTF-8
1,235
2.859375
3
[]
no_license
<?php include 'database.php'; ?> <?php session_start();?> <?php // See if score is set_error_handler if(!isset($_SESSION['score'])) { $_SESSION['score'] = 0; } if($_POST) { $num = $_POST['number']; $choice_made = $_POST['choice']; $next = $num+1; // Reset score...
true
9e055ad746f62d03f3622a0619b3e064f281bf57
PHP
WhiteZane/cs313-php
/web/home/assignments/prove03/Survey.php
UTF-8
3,622
2.5625
3
[]
no_license
<?php //start session session_start(); if ($_COOKIE["submit"] == "yes") { header('Location: http://lit-refuge-30680.herokuapp.com/home/assignments/prove03/results.php'); <<<<<<< HEAD <<<<<<< HEAD exit(); ======= exit(); // for security use exit function after redirect >>>>>>> 984b8c07fc2e6adea532f...
true
b40726a3f08257d4dc530005dc0916af916781bb
PHP
adelukman45/laravel-store
/database/seeds/ProductPhotosSeeder.php
UTF-8
413
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Product; class ProductPhotosSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $products = Product::all(); $no = 1; foreach ($products as $product) { $product->photos()-...
true
00c290286a3d7f03229508e4ec9abce745a43350
PHP
jose1914luis/finder
/Modelos/Expedientes.php
ISO-8859-3
1,838
2.734375
3
[]
no_license
<?php /* Clase encargada de administrar la informacin relacionada con los expedientes existentes en Finder */ class Expedientes { var $conn; function __construct() { $this->conn = pg_connect($GLOBALS ["db1"]); if (!$this->conn) { echo "Error de Conexin clase Expedientes.\n"; return 0; } ...
true
f52954284cd5ca7bda7245bfc7dc6199280e873a
PHP
AirtonViniciusFerreira/prog
/Fslocacoes/app/Http/Controllers/AuthController.php
UTF-8
1,143
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\LoginRequest; use Illuminate\Support\Facades\Auth; use App\User; class AuthController extends Controller { // public function login() { return view("user.login"); } public function authenticate(Login...
true
c7364080912a4eb95500f7a10379ea2b6a2a57d4
PHP
Easyroomrom/SimpleBankWebApp
/loginexec.php
UTF-8
1,273
2.796875
3
[]
no_license
<?php if (isset($_COOKIE["name"])) { header('Location: index.php'); print "Ya"; } else { $matched = false; $servername = "127.0.0.1"; $username = "dbuser"; $password = "\$Jasper123"; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if (...
true
1919fb0e56e2243a3ca99121d028c120279d1b09
PHP
AlexanderHMagno/netify
/includes/classes/User.php
UTF-8
5,359
2.8125
3
[]
no_license
<?php class User { private $user; private $user_id; private $con; public function __construct (&$con, $user_id, $user_name = false){ $this->con = $con; if ($user_name == false) { $user_details_query = mysqli_query($con,"SELECT * FROM users WHERE id = '$user_id'"); } else { $user_details_query ...
true
992b1fe3014e61e62bba50d6965b06bd67479593
PHP
jankichaudhari/yii-site
/docroot/protected/components/BaseSuperAdminController.php
UTF-8
1,010
2.53125
3
[]
no_license
<?php /** * Controller is the customized base controller class. * All controller classes for this application should extend from this base class. */ class BaseSuperAdminController extends AdminController { /** * @var string the default layout for the controller view. Defaults to '//layouts/column1', * meaning u...
true
d344b18f8ded4d5d55cb3131edaa300b6132813e
PHP
temoffey/classes
/curl.php
UTF-8
9,009
2.640625
3
[]
no_license
<?php class curl { private $curl = null; private $host = ''; private $path = ''; private $auth = ''; private $method = ''; private $head = array(); private $cookie = ''; public function host($host) { $this->host = $host; return $this; } public function path($path) { if (!empty($path) a...
true
68bcad5d1efdf10d48c734e52d8628d9ea96b0f8
PHP
guelland/test
/projektdateien_objektorientierte_programmierung_mit_php/Kap5/kap5_fertig/trait.php
UTF-8
749
3.578125
4
[]
no_license
<!DOCTYPE html><html><head><meta charset="UTF-8"></head><body> <?php trait Hello { public function sayHello() { echo 'Hallo '; } } trait World { public function sayWorld() { echo ' Welt'; } } class MyHelloWorld { use Hello, World; public function sayWorld() ...
true
90467f6fcc38649735c2eda267561973665a645d
PHP
jurgenromeijn/wordpress-plugin-projects-rest
/src/Repository/Mapper/ImageSizeVariantMapperInterface.php
UTF-8
872
2.765625
3
[]
no_license
<?php /** * @author Jurgen Romeijn <jurgen.romeijn@gmail.com> */ namespace JurgenRomeijn\ProjectsRest\Repository\Mapper; use JurgenRomeijn\ProjectsRest\Model\Rest\Image; use JurgenRomeijn\ProjectsRest\Model\Rest\ImageSizeVariant; /** * All functionality to map an array of metadata to the ImageSizeVariant entity. ...
true
365554187fe52a6b18daa011166486c9c6ca246a
PHP
WXiangQian/laravel-api
/database/seeds/CreateArticleTypesSeeder.php
UTF-8
749
2.796875
3
[]
no_license
<?php use Illuminate\Database\Seeder; class CreateArticleTypesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $articleTypes = [ '0' => 'php', '1' => 'html5', '2' => 'java', '3' => ...
true
348ccd361ac0a6dc0dd3deaadd33bf73363f6fbe
PHP
sreckokuz/twitter
/src/EventSubscriber/FollowNotificationSubscriber.php
UTF-8
1,429
2.6875
3
[]
no_license
<?php namespace App\EventSubscriber; use App\Entity\FollowNotification; use App\Event\FollowNotificationEvent; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class FollowNotificationSubscriber implements EventSubscriberInterface { /** * @var EntityMa...
true
bd26d0da23fdbaac218ab02339bf87f0c072aadd
PHP
milosb793/student-web-service
/include/class.Predmet.php
UTF-8
4,420
3.109375
3
[]
no_license
<?php require_once "class.Baza.php"; require_once "class.Izuzetak.php"; require_once "class.Metode.php"; class Predmet { private $predmet_id; private $naziv; private $opis; /** * Predmet constructor. * @param $predmet_id * @param $naziv * @param $opis */ ...
true
94447d597d3f54e64f72f49cccb1f54c97c8de80
PHP
szeber/figured_blog
/app/Http/Controllers/BlogController.php
UTF-8
1,382
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Category; use App\Post; class BlogController extends Controller { const ITEMS_PER_PAGE = 10; public function listPosts($page = 1, $categorySlug = null) { $page = max(1, (int)$page); $postQuery = Post::where('is_published', '=', 1) ...
true
991ee4ecb5d53bf3d9d5508261b2b8a48b7401df
PHP
EvgeniiGl/test_movavi
/tests/Helpers/CountTest.php
UTF-8
1,135
2.890625
3
[ "MIT" ]
permissive
<?php namespace Course\Test\Helpers; use Course\Helpers\Count; use PHPUnit\Framework\TestCase; /** * Class CountTest * @package Course\Test\Helpers */ class CountTest extends TestCase { /** * @dataProvider conversionProvider */ public function testConversionReturnCorrectValue($val, $res) { ...
true
fe951614f93427e03df3b90ea8962bf214fe04b5
PHP
haimerb/PruebaProcesix
/PruebaProcesixAngular/src/app/core/app/tipoUsuario.php
UTF-8
708
2.546875
3
[]
no_license
<?php /** * logica registro servicio web rest */ require_once '../config/database.php'; $arrayOut=array(); $dbConfig = new Database(); $db=$dbConfig->getConnection(); $rawdata = array(); $i=0; $listOut=array(); $method = $_SERVER['REQUEST_METHOD']; if($method=="GET"){ $sql="SELECT * FROM tipousuario"; $st...
true
ca2948ba6d1cb060d29842e7f03ae301c80caac6
PHP
n8finch/my-code-snippets
/wp-nav-menu/wp-nav-menu-customizations.php
UTF-8
2,267
2.609375
3
[]
no_license
<?php // Mostly from http://www.wpbeginner.com/wp-themes/how-to-add-custom-items-to-specific-wordpress-menus/ // add_filter( 'wp_nav_menu_items', 'your_custom_menu_item', 10, 2 ); function your_custom_menu_item ( $items, $args ) { if (is_single() && $args->theme_location == 'primary') { $items .= '<li>Sho...
true
64b7edbe0f804f795e12284b74967e28f0198170
PHP
hguochen/algorithms
/php/cracking_coding_interview/chapter9/chapter8/power_set.php
UTF-8
943
4.09375
4
[]
no_license
<?php /** * Write a method to return all subsets of a set. */ /** * Brute Force. * Time: O(n^2) * Space: O(n^2) */ function getSubsets($arr) { if (empty($arr)) { return []; } $result = []; for ($i=0; $i < sizeof($arr); $i++) { $subArr = array_slice($arr, $i); ...
true
37046a586f194d17b23231722ef8ceaae34ea6dd
PHP
andyboxer/TeeTree
/tests/CallLimitTest.php
UTF-8
920
2.703125
3
[]
no_license
<?php /** * @package TeeTree * @author Andrew Boxer * @copyright Andrew Boxer 2012 * @license Released under version 3 of the GNU public license - pls see http://www.opensource.org/licenses/gpl-3.0.html * */ require_once __DIR__. "/../testServices/TeeTreeConfiguration.php"; require_once __DIR__ . "/../bootstrap/...
true
da34008ae43974127bf659d255216dc6d85abc4e
PHP
arikazukitomaharjan/fcims
/app/Http/Controllers/ArticleController.php
UTF-8
4,674
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Repository\ArticleRepository as Article; use App\Repository\UserRepository as User; use Folklore\Image\Facades\Image; use Illuminate\Http\Request; use App\Http\Requests\CreateArticleRequest; use Session; class ArticleController extends Controller { ...
true
7acb03ef8516d6ddcfdba00ad6af561024edb4fd
PHP
mohammedkhalf/shapelist
/app/Http/Controllers/Backend/Subscription/SubscriptionsTableController.php
UTF-8
1,680
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend\Subscription; use Carbon\Carbon; use App\Http\Controllers\Controller; use App\Models\Delivery\Delivery; use Yajra\DataTables\Facades\DataTables; use App\Repositories\Backend\Subscription\SubscriptionRepository; use App\Http\Requests\Backend\Subscription\ManageSubscriptionR...
true
e779379ddc3ca1dd4e19f146b2bdb49678843748
PHP
risen-king/baojia
/api/models/Product.php
UTF-8
808
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\models; use yii\db\ActiveRecord; class Product extends \common\models\Product { // 明确列出每个字段,适用于你希望数据表或 // 模型属性修改时不导致你的字段修改(保持后端API兼容性) public function fields() { parent::fields(); return [ 'id', 'symbol', 'name', ...
true
f1d2108320935ae298431fb65a347980a72a506a
PHP
gabisajr/recapster.com
/app/Model/Facebook/Account.php
UTF-8
3,800
2.765625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Class Model_Facebook_Account Аккаунт Facebook * * @property string $fb_user_id - id пользователя Facebook * @property string $firstname - Имя * @property string $lastname - Фамилия * @property int $bi...
true
1f3dd6898cf77edb9064f19c5f1f54257fc20e57
PHP
erwanncordon/cvetechtest
/Library/Helpers/Config.php
UTF-8
854
2.984375
3
[ "MIT" ]
permissive
<?php namespace Cve\Helpers; use Cve\Exceptions\MissingConfigException; /** * Created by PhpStorm. * User: eco06 * Date: 24/03/2016 * Time: 14:48 */ class Config { protected static $config = array(); /** * Sets the config, if it is already set an error is thrown * @param array $config ...
true
5130be2c4b6c4df806d5a86f9cd0ea4b3abc62d1
PHP
rahulnbhandari/phone.com
/arbitration.php
UTF-8
2,010
2.984375
3
[]
no_license
<?php /* Arbitration algorithm. This can be achived in several differnt ways. Using tools like Gearman hwich involves using job server This approach is just based on db to handle conflicts. Its simple :). */ //this is a cron script that will be running on each server to process cron tasks //each server can be use...
true
d91571b13945e5e3fff429b250935222f8f01cfa
PHP
warma2d/LinkReducer
/tests/ReducerTest.php
UTF-8
668
2.515625
3
[]
no_license
<?php declare(strict_types=1); use LinkReducer\Core\Service\JsonDataValidator; use LinkReducer\Core\Service\LinkReducer; use PHPUnit\Framework\TestCase; final class ReducerTest extends TestCase { public function testGetShortLink(): void { $inputData = '{ "sourceLink": "https://github.com/ph...
true
c545854ba70de514fff21284a7db6b9486ebead1
PHP
kfheigel/grupait
/src/Regexp/CompanyRegexp.php
UTF-8
296
2.71875
3
[]
no_license
<?php namespace App\Regexp; use App\Enum\Regexp; class CompanyRegexp { public function checkCompanyFromEmail($email): string { if (preg_match_all(Regexp::COMPANY_REGEXP(), $email, $matches)) { return ucfirst(str_replace('@', '', $matches[0][0])); } } }
true
a6cbde278f1d5e34985430e5dc9321f20ebadffa
PHP
Sami0412/DEEPer
/exercises/week-05/lecture/product_create.php
UTF-8
280
2.84375
3
[]
no_license
<?php require_once 'db.php'; //gives us dbh connection handle $newProductTitle = 'New Product'; $stmt = $dbh->prepare( 'INSERT INTO product (title) VALUES (:title)' ); $stmt->execute([ 'title' => $newProductTitle ]); echo '# rows affected: ' . $stmt->rowCount();
true
0c6f9c157c16ce92e7dea51b0217b8c9852f08a8
PHP
bartosz25/symfony-inversed-marketplace
/src/Ad/ItemsBundle/Repository/AdsModifiedRepository.php
UTF-8
2,862
2.5625
3
[]
no_license
<?php namespace Ad\ItemsBundle\Repository; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Query\ResultSetMapping; use Ad\ItemsBundle\Entity\AdsModified; class AdsModifiedRepository extends EntityRepository { /** * Checks if $ad exists in the table. * @access public * @param int $ad Ad id. * @ret...
true
965dc29be72c0efa4071a22f4c82961f0f044add
PHP
JeffreyDavidson/Employ
/tests/Unit/CompanyTest.php
UTF-8
1,400
2.53125
3
[]
no_license
<?php namespace Tests\Unit; use App\User; use App\Company; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; class CompanyTest extends TestCase { use RefreshDatabase; /** @test */ public function a_company_has_a_name() { $company = factory(Company::class)->create(['name'...
true
58f5fd5e92887c796a4c81aff408dee0418fa148
PHP
Acer-leader/ersanli
/ThinkPHP/Library/Org/Rongyun/methods/Group.php
UTF-8
9,357
2.9375
3
[ "Apache-2.0" ]
permissive
<?php namespace Org\Rongyun; class Group{ private $SendRequest; public function __construct($SendRequest) { $this->SendRequest = $SendRequest; } /** * 创建群组方法(创建群组,并将用户加入该群组,用户将可以收到该群的消息,同一用户最多可加入 500 个群,每个群最大至 3000 人,App 内的群组数量没有限制.注:其实本方法是加入群组方法 /group/join 的别名。) * * @param userId:...
true
1e8260abbe1068b89679949de2495f61355b9809
PHP
polyu-webapp-2015/webapp-social-connection
/server/api/actor/CreateSessionReplyActor.php
UTF-8
1,629
2.515625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: beenotung * Date: 11/18/15 * Time: 11:45 AM */ class CreateSessionReplyActor extends Actor { public $name = "CreateSessionReply"; public $params = array( SessionReply_Fields::__event_id => 123, SessionReply_Fields::__message => "What is great s...
true
0139a7c9700a5bbaece71d62d39bf9111ad681ee
PHP
gugugit/expertsystem
/library/functions.php
UTF-8
2,395
3
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: horsley * Date: 12-12-18 * Time: 下午10:01 * To change this template use File | Settings | File Templates. */ /** * 从前端提交规则数组中得到标准的规则对象数组 * @param $rules_array * @return array */ function convert_rules($rules_array) { $rules = array(); foreach($rule...
true
c82a02e8299b939deeb234ad65cede259048f176
PHP
confusingSmile/Veilinghuis
/Veilinghuis/Bod.php
UTF-8
2,254
3.140625
3
[]
no_license
<?php namespace Veilinghuis; /* * 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 Bod * * @author Walter */ class Bod { //put your code here private $bied...
true
db9916c2e1a239319745eb2b0aec1ae2f9693ecb
PHP
maxiVidarte/Guia-Programacion-3
/Aplicacion34/index.php
UTF-8
1,514
3.59375
4
[]
no_license
<?php /*Se quiere realizar una aplicación que lea un archivo (../misArchivos/palabras.txt) y ofrezca estadísticas sobre cuantas palabras de 1, 2, 3, 4 y más de 4 letras hay en el texto. No tener en cuenta los espacios en blanco ni saltos de líneas como palabras. Los resultados mostrarlos en una tabla. */ ?> <html> ...
true
f5c9877c9a2dfbaaea17710901c4e48d91b67101
PHP
DInnaD/Max1
/app/Organization.php
UTF-8
1,851
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Http\Request; /** * @property int creator_id */ class Organization extends Model { use SoftDeletes; /******* Properties *******/ protected $hidden = [ 'api_token', 'de...
true
23f84b006a910d229fdb966bf1f9a744c426e366
PHP
florenciano/estudos-PHP
/aula6/function2.php
UTF-8
657
3.8125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Funções em PHP</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> </head> <body> <?php // fn com múltiplos parâmetros function soma() { $p = func_get_args(); // cria um array [veto...
true
c911a984868d24c9d1e949e3737895e66d3d6d87
PHP
werberman/FFXIV_Store
/upload.php
UTF-8
1,021
2.765625
3
[]
no_license
<?php $target_dir = "imgs/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); $response = 1; $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); // Check if image file is a actual image or fake image $check = getimagesize($_FILES["file"]["tmp_name"]); if($check !== false) { $...
true
b471523e45fe6b58719686dc5001c96eb3fdd79e
PHP
jormin/miaosha
/src/app/Services/BaseService.php
UTF-8
327
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Libs\Redis; use Illuminate\Redis\Connections\Connection; class BaseService { /** * @var Connection $redisConnection */ protected $redisConnection; public function __construct() { $this->redisConnection = Redis::getDefaultRedisConnection(); ...
true
eed8c82282d987714aece65b8817221f717916af
PHP
kenzo2017/mytesttask
/knowledge/login-class.php
UTF-8
512
2.9375
3
[]
no_license
<?php class login { private $database; function __construct($dbcon){ $this->database = $dbcon; } public function register($firstName,$lastName,$email) { try{ $stmt = $this->database->prepare("INSERT INTO `users` (`id`, `firstName`, `lastName`, `email`) VALUES (NULL, '$firstN...
true
75da83e1851eaf58295b5ea054fb7bdc21e69ea0
PHP
Rashmichaturvedi/PHP-MYSQL-codes
/LoginEX/changepassword.php
UTF-8
1,426
2.765625
3
[]
no_license
<?php Session_start(); $user = $_SESSION['username']; if($user){ if($_POST['submit']) { $oldpassword = md5($_POST['oldpassword']); $newpassword = md5($_POST['newpassword']); $repeatnewpassword = md5($_POST['repeatnewpassword']); $connect = mysqli_connect("localhost","root","") or die ("not connected");...
true
9acfa66cf3bc30ec137ecd65a5f2c799a4a6ee43
PHP
rumur/pimpled
/src/Foundation/Compat.php
UTF-8
1,484
3.1875
3
[ "MIT" ]
permissive
<?php namespace Pmld\Foundation; class Compat { /** * Check if current WP has minimal required version. * * @since 0.0.1 * * @param $minVersion string Version in 0.0.0 format. * * @return bool True if WordPress version is higher or equal to min version, false otherwise. */ ...
true
8dfb92e3fb34a353bdef0400ad5a0a4f02a5c7b5
PHP
akanmayowa/kulmonogram_inventory_management_system-
/app/Http/Controllers/ServiceController.php
UTF-8
923
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Service; class ServiceController extends Controller { public function index() { $service = Service::all(); return view('products.index')->with('service', $service); } public function destroy($id) ...
true
7b75a69be2f5c359d77a0a2874c22c1c7a6b92d0
PHP
dexit/fin
/library/Fin/Model.php
UTF-8
2,541
3.125
3
[]
no_license
<?php class Fin_Model { protected $id, $create, $update, $showed, $orderby; public function __construct(array $options = null) { if (is_array($options)) { $this->setOptions($options); } } public function __set($name, $value) { $method = 'set' . $name; ...
true
e6a230651395317bbc0ed6bb03c0cfe6c1d89da7
PHP
kotofeika/mediaS
/Service/SendTo.php
UTF-8
165
2.515625
3
[]
no_license
<?php namespace Localhost\Service; class SendTo { public static function SendTo(string $file) { header('Location: ' . $file); exit; } }
true
4871587f0b94cc885a0384361e6e01205f8e4c60
PHP
MadickeTHIANE/PHP-Application-mortal-kombat
/index.php
UTF-8
7,469
3
3
[]
no_license
<?php //* index.php //? http://localhost/POO/04-TP_mortal_kombat //* tester l'autoload aussi function chargerClasse($classname) { require $classname . '.php'; } spl_autoload_register('chargerClasse'); //* initier la session session_start(); //todo On appelle session_start() APRÈS avoir enregistré l'autoload. /...
true
7b4da0890a028cc61ea9a52402152b623556bd17
PHP
jsilva-br/ReservaSalaV1
/ReservaSalaV1/sala_gravar.php
UTF-8
1,350
2.65625
3
[]
no_license
<?php require_once "config.php"; ?> <?php echo "<center>"; $numsala= $_POST["numsala"]; $nomesala= $_POST["nomesala"]; //Verifica se os campos estão em branco if (($numsala =='') || ($nomesala=='')){ echo "Verifique os campos em branco ! "; echo "AGUARDE REDIRECIONANDO PARA O PAINEL! "; echo ...
true
037b25410c0f8047ee817a67e7ecbd9d4e5601a1
PHP
YToTY/finalwork
/class_management-master/model/Course.php
UTF-8
1,379
2.828125
3
[]
no_license
<?php include_once('model/Model.php'); class Course extends Model { public function exists($courseNo) { $statment = $this->pdo->prepare("select * from courses where subject_no = ?"); $statment->execute([$courseNo]); $user = $statment->fetch(); if ($user) { return true; ...
true
34f4342420a379c9020719939bb23f2a09a3e4d8
PHP
ModernTimes/ModernTimes
/protected/models/Battleeffect.php
UTF-8
11,037
2.828125
3
[]
no_license
<?php Yii::import('application.models._base.BaseBattleeffect'); Yii::import('application.components.battleeffects.*'); /** * Defines basic Battleeffect behavior, which includes * - basic blocking mechanics (chance, types of actions, number of blocks, * active for a number of turns) * C...
true
f1e94a842c0694e9fb64809e84133d99e45eb6a2
PHP
xRubin/redis
/tests/SetTest.php
UTF-8
4,283
2.5625
3
[]
no_license
<?php class SetTest extends PHPUnit_Framework_TestCase { /** @var \RedisWrapper\Connection */ protected $connection; public function setUp() { $this->connection = new RedisWrapper\Connection('127.0.0.1'); } /** * @return \RedisWrapper\Set */ public function testAssignmen...
true
004f4cb88f45e7bd70f97bc3d53022e2675f35e3
PHP
Alisson-Frota-Soares/phpTraining
/php9.php
UTF-8
194
3.78125
4
[]
no_license
<?php $frase = "Estou a aprender a programar em Java"; echo $frase."<br>"; echo "a) ".str_replace("Java", "PHP", $frase); echo "<br>"; echo "b) ".strrev($frase); ?>
true
8491f1e0ee949e1edc91d92de31b863edf471140
PHP
LMDWEB/Sporty
/src/Controller/Back/EventController.php
UTF-8
3,451
2.578125
3
[]
no_license
<?php namespace App\Controller\Back; use App\Entity\Event; use App\Form\EventType; use App\Repository\EventRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation...
true
2820042ca0560118e028fc8f209d5529964cd3a6
PHP
Nir-J/Classroom_Management
/Classroom/Profile.php
UTF-8
3,750
2.53125
3
[ "MIT" ]
permissive
<?php session_start(); include 'dblink.php'; if( !isset($_SESSION['usr'])) { header("Location: index.php"); } $u = $_SESSION['usr']; $s_info = "SELECT * FROM staff, department WHERE s_initial = '$u' AND staff.d_id = department.d_id"; $result_info = mysql_query($s_info) ...
true
8b7909210301b70e3d2cc18d6f3446de3b7a044f
PHP
yukinoli/Site_php_IUT
/connexion.php
UTF-8
4,403
2.734375
3
[]
no_license
<?php // Debut de la session session_start(); //require_once './config/init.conf.php'; // Inclure si le fichier n'est pas deja charge le script php bdd.conf.php require_once './config/bdd.conf.php'; // Inclure si le fichier n'est pas deja charge le script php fonction.inc.php require_once './includes/fonction.inc.php...
true
aa5e2a7812fb42bf72f12095a8cc32a30e341a8b
PHP
blueswn/xpp
/alpha2018/src/Blog/Http/ViewComposers/ProfileComposer.php
UTF-8
796
2.609375
3
[]
no_license
<?php namespace App\Http\ViewComposers; use Illuminate\Contracts\View\View; use Modules\Site\Controllers\SidebarRepository as SidebarRepository; class ProfileComposer { /** * 用户仓库实现. * * @var UserRepository */ protected $sidebars; /** * 创建一个新的属性composer. * * @param Us...
true
9beb1a0d190e943fe41f0d903d6c9d9c586e120d
PHP
account931/yii2_REST_and_Rbac_2019
/models/RestAccessTokens.php
UTF-8
2,280
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php //Model to SQL tables that stores users token for REST api request namespace app\models; use Yii; /** * This is the model class for table "rest_access_tokens". * * @property string $rest_tokens * @property int $r_user */ class RestAccessTokens extends \yii\db\ActiveRecord implements \yii\web\IdentityInterf...
true
51c7a715f6bd43659efb633842069dc6d4b04e19
PHP
marcioap82/horusgps
/app/model/horusgps/cadastro/Cliente.class.php
UTF-8
810
2.796875
3
[]
no_license
<?php class Cliente extends TRecord { const TABLENAME = 'cliente'; const PRIMARYKEY= 'id'; const IDPOLICY = 'max'; // {max, serial} private $endereco; /** * Constructor method */ public function __construct($id = NULL) { parent::__construct($id); parent::addA...
true
e92f8815eb0da5297a2f2d4fa1493723d3bd2cc7
PHP
mafazans/Kulina-Test
/CRUD/UserReview.php
UTF-8
1,374
2.84375
3
[]
no_license
<!-- This is model UserReview --> <?php namespace CRUD; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Directory extends Model { protected $table = 'user_review'; public static function add($data) { DB::table('user_review') ->insert($data); } public static functi...
true
427a5fdc71708343a5cf763bf44ece1c27dcfa54
PHP
IliaGorodkov/Solyanka
/Task/Task_four.php
UTF-8
1,425
3.0625
3
[]
no_license
<?php session_start(); require('index.php'); ?> <!DOCTYPE html> <html lang="ru"> <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/style.css" > ...
true
3fcaebb28783ae6b6da1652344c0c895e1cd739c
PHP
medinae/searcher
/src/KGzocha/Searcher/Criteria/Collection/NamedCriteriaCollection.php
UTF-8
1,206
2.921875
3
[ "MIT" ]
permissive
<?php namespace KGzocha\Searcher\Criteria\Collection; use KGzocha\Searcher\Criteria\CriteriaInterface; /** * @author Krzysztof Gzocha <krzysztof@propertyfinder.ae> */ class NamedCriteriaCollection extends CriteriaCollection implements NamedCriteriaCollectionInterface { /** * @param string $name *...
true
36e0ea0c6070c4ea275f4cf286a4981a769174fa
PHP
astambi/Software-Technologies
/06 XAMPP and PHP First Steps - Exercises/13-prime-numbers-from-n-to-1.php
UTF-8
935
3.875
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Prime Number From N to 1</title> </head> <body> <form> <form> Number: <input type="text" name="num"> <input type="submit"> </form> </form> <?php if (isset($_GET['num'])) { $num = intval($_GET['num']); // positive n...
true
ea9ed2880101876568da6993f30f43f3da13fb2e
PHP
mediatechnologie/Expo2013
/lib/Project.php
UTF-8
4,178
3.171875
3
[]
no_license
<?php namespace Expo; /** * Class representing a project */ class Project { /** @var int */ protected $_id; /** @var string */ protected $_name = ''; /** @var string */ protected $_location = ''; /** @var string */ protected $_description = ''; /** @var array */ protected $_teams = array();...
true
b79b83758502fc5e333006aa77687176942fdd30
PHP
snipertomcat/PhoneSubscriber3000
/app/Utilities/Model/Searchable.php
UTF-8
334
2.75
3
[]
no_license
<?php namespace Apithy\Utilities\Model; /** * Interface Searchable * @package Apithy\Utilities\Model */ interface Searchable { /** * Scope the query by the search term. * * @param \Illuminate\Database\Eloquent\Builder $query * @param string $term */ public function scopeSearch($que...
true
68d36a1bfa34c63d9d24078b5bd1b7b8dd24d9d7
PHP
infoservio/fast-sendnote
/src/models/Mail.php
UTF-8
1,164
2.703125
3
[ "MIT" ]
permissive
<?php namespace infoservio\fastsendnote\models; use craft\base\Model; /** * Card Model * * Models are containers for data. Just about every time information is passed * between services, controllers, and templates in Craft, it’s passed via a model. * * https://craftcms.com/docs/plugins/models * * @author ...
true
e0dfb50748a9f6e897da7369c913658b23b13243
PHP
firepaperapp/firepaper-v3
/app/Model/SubjectEducator.php
UTF-8
901
2.53125
3
[]
no_license
<?php class SubjectEducator extends AppModel { var $name = 'SubjectEducator'; var $useTable= "subject_educators"; var $errMsg=array(); var $err=0; var $belongsTo = array( 'User' => array( 'className' => 'User', 'foreignKey' => 'user_id' ) ); /**...
true
97da7ead18f9a6f01faaa3386491726993774a63
PHP
psiphp/content-type
/tests/Unit/Standard/View/DateTimeTypeTest.php
UTF-8
2,593
2.515625
3
[ "MIT" ]
permissive
<?php namespace Psi\Component\ContentType\Tests\Unit\Standard\View; use Psi\Component\ContentType\Standard\View\DateTimeType; class DateTimeTypeTest extends TypeTestCase { public function getType() { return new DateTimeType(); } /** * It should provide a formatted view. * * @d...
true
46ca5e16e73e7d97b248913d6d359d0e77a65400
PHP
dantleech/run-logger-5000
/src/Entity/Run.php
UTF-8
1,093
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use DateTimeImmutable; use DateTime; /** * @ORM\Entity() */ class Run { /** * @ORM\GeneratedValue() * @ORM\Id() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Route") ...
true
4d845806b1f43ebc6fe0afc0580ffa0c57a77b79
PHP
andykey-krsk/PHP-algoritm
/Lesson_1/Task_3.php
UTF-8
392
3.1875
3
[]
no_license
<?php if (empty($_GET['path'])) { $path = "/"; } else { $path = $_GET['path']; } $dir = new DirectoryIterator(realpath($path)); foreach ($dir as $item) { if ($item->isDot()) continue; if ($item->isDir()) { echo "<p>DIR <a href='?path=" . $item->getPathname() . "'>" . $item . "</a></p>"; }...
true
626f73930769bf894c32c84d10d7edefa5407bf9
PHP
ktei/notedown
/app/shared/utilities.php
UTF-8
2,751
2.75
3
[]
no_license
<?php static $_alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', ...
true
e953460a6e5579ac9ac4108912e77c4fa5aee49a
PHP
faballacisse/codingjob
/MVC & Laravel/Day 1 - DesignPatterns_MVC/MVC OOP Way (advanced)/Controller/MovieController.php
UTF-8
830
2.84375
3
[]
no_license
<?php require_once './Model/MovieModel.php'; class MovieController { private $model; public function __construct() { $this->model = new MovieModel(); } function handleMovies() { $movies = $this->model->getAllMovies(); $title = 'Movies Page'; if (count($movie...
true
4bc9be231081e775d2c7c2d2d16e772f76502d32
PHP
TripRips/Talavija
/database/migrations/2020_07_10_085716_create_bio_tables.php
UTF-8
909
2.640625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateBioTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('birth_bios', funct...
true
23586784a9cc7a9912ef3c7d6d30580a922ee49d
PHP
nortan/vk-api
/src/ZxCoder/Methods/Photos.php
UTF-8
1,253
2.75
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: zx-coder * Date: 18.04.17 * Time: 0:59 * To change this template use File | Settings | File Templates. */ namespace ZxCoder\Methods; use ZxCoder\Method; class Photos extends Method { public function get( $count, $offset, $ownerId = null, $albumId = nu...
true
9bd6d793487ef1738aa6cb587f16f9eff7d12c3d
PHP
kamisaberi/school-system-php
/Users/AssignQuestionsToExam.php
UTF-8
2,528
2.640625
3
[]
no_license
<?php require_once '../Classes/ExamEx.inc'; require_once '../Classes/QuestionEx.inc'; require_once '../Classes/OptionEx.inc'; ?> <?php include_once 'Template/header.php'; include_once 'Template/menu.php'; ?> <?php $cm = "add"; if (isset($_GET['exam'])) { $cm = "edit"; $id = $_GET['exam']; $exam = new Exam...
true
5ff971eda32ce97808356704f87c248445280317
PHP
rahulbile/PivotalFeedback
/includes/classes/UIException.php
UTF-8
423
2.859375
3
[ "MIT" ]
permissive
<?php namespace feedback; class UIException extends \Exception { private $valErrors; public function __construct($message = NULL, $valErrors = NULL, $code = 0, \Exception $previous = NULL) { $this->valErrors = $valErrors; parent::__construct($message, $code, $previous); ...
true
9fe623679bf535e8b2a04e2966a007832bae4a70
PHP
LIVEtag/Livetag-Backend
/backend/models/Stream/UploadArchiveTrait.php
UTF-8
5,657
2.515625
3
[ "MIT" ]
permissive
<?php /* * Copyright © 2021 GBKSOFT. Web and Mobile Software Development. * See LICENSE.txt for license details. */ declare(strict_types=1); namespace backend\models\Stream; use common\components\validation\ErrorList; use common\components\validation\ErrorListInterface; use common\helpers\FileHelper; use common\he...
true
fb15e57981eb94164c27cd80d33c668960660e85
PHP
zealerFT/fermi
/Application/Home/Controller/BaseApiController.class.php
UTF-8
3,654
2.640625
3
[]
no_license
<?php /** * 算法管理 * @author fermi php接口api验证基本设计模式 */ namespace Home\Controller; use Think\Controller; class BaseApiController extends Controller { private $appid; //请求token所需要的参数一 private $appsecret; //请求token所需要的参数一 private $appip; //请求端ip限制,暂时搁置 protected $clienttime; //客户端请求时间 private $s...
true
261ed5c4d06c56b2ca77f8c01645a9bb2a3884bd
PHP
MehulSherdiwala/event_management
/model/Location.php
UTF-8
3,734
2.8125
3
[]
no_license
<?php require_once 'autoload.php'; class Location extends Database { public function getCountry($id = 0){ if ($id == 0){ $sql = "select * from country"; $res = $this->connect()->query($sql); $country = []; while ($row = $res->fetch_object()){ $country[] = array( 'country_id' => $row->country_i...
true
99b5e8bb2b6e87b79bc9fdea26c267bd3e083917
PHP
WillianKelvin/MyBlog---Sertifikasi-Web
/application/models/Model_aktivitas.php
UTF-8
3,712
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Model_aktivitas extends CI_Model { public function createAktivitas() //mengupload ke dtbase { $image = $_FILES['image']; if ($image = '') { } else { $config['upload_path'] = './image/imgjourney'; $config['allowed_types'] = 'jpg|jpeg|png|gif'; ...
true
63a19c6cfc87169e2bc938142a3972acca124b44
PHP
josephjlee/pw-mvc-boilerplate
/lib/Presenter.php
UTF-8
420
2.71875
3
[ "MIT" ]
permissive
<?php class Presenter { protected $controller; protected $object; protected $options; public function __construct($controller, $view, $object, $options = array()) { $this->controller = $controller; $this->view = $view; $this->object = $object; $this->options = $opti...
true
8141dd6899267de9df96efa1fa88ff5839a6740e
PHP
paulgin18/SISTIN_V1
/config/autoload/conexion.php
UTF-8
753
2.96875
3
[]
no_license
<?php /** * Clase de conexion con la base de datos * * */ class Conexion{ private $host; private $user; private $password; private $db; private $port=5432; // Por defecto es 5432 private $con=null; public function Conexion($host="172.16.0.152",$user="user_geresa",$password="user_geresa2017", $db="si...
true
dbb323b655c34e677b963b8b4e2688b0e25c380a
PHP
quangbahoa/fusioninvoice
/docs/api/2017/examples/invoice_create.php
UTF-8
2,159
2.96875
3
[ "Apache-2.0" ]
permissive
<?php // Require the API class. require __DIR__ . '/../fiapi.php'; // Require our API config variables. require 'apiconfig.php'; // Create an instance of the API client library. $fiapi = new fiapi($baseURL, $apiPublicKey, $apiSecretKey); // Issue the command to create the new invoice. // Required fields: client_nam...
true
5f8ebb04d36af0f4b4461e7d41aa1dd077d3ae4d
PHP
pqzhou2005/finale
/Tests/TestClient.php
UTF-8
538
2.875
3
[]
no_license
<?php $succ = 0; for($i=0;$i<1000;$i++) { $ret = send_message('192.168.40.128','2500','message to send...'); if($ret) $succ++; } echo $succ; //自定义函数,发送信息 function send_message($ipserver,$portserver,$message) { $fp=stream_socket_client("tcp://$ipserver:$portserver", $errno, $errstr); if(!$fp) { ech...
true
b89d6e54b3586f9875fc892c629cfc373f1f995a
PHP
TimbreDesignStudio/WooComm
/Cat-Cond-Shipping.php
UTF-8
1,422
2.75
3
[]
no_license
// a function to check if the cart has product from organge and it's sub category id function cart_has_product_with_orange_cats() { //Check to see if user has product in cart global $woocommerce; //assigns a default negative value $product_in_cart = false; // start of the loop that fetches the cart items forea...
true
ccc17e911d78a822fd0f4e43ca8108dea1d192bb
PHP
Liubavin/webseo11.dev
/lesson18-phpGD/login.php
UTF-8
1,303
2.953125
3
[]
no_license
<? session_start(); if(isset($_POST['login'])) { $errors = []; $messages = []; $login = $_POST['login']; $pass = $_POST['pass']; $captcha = $_POST['captcha']; if(strtolower($captcha) == strtolower($_SESSION['captcha'])) { $_SESSION['username'] = $login; $messages[] = "You succ...
true
b7a62930d78d81350dfdfa92448c3be17dd30b13
PHP
utlib/BatchUpload
/libraries/BatchUpload/Form/CollectionCreate.php
UTF-8
736
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * Form used in step #1 of the wizard for importing to new collections. * * @package Form */ class BatchUpload_Form_CollectionCreate extends Omeka_Form { /** * Set up elements in the form. */ public function init() { // Top-level parent parent::init(); $this->...
true
8181b2515b62b121976a78c61e1910a4fe6568fb
PHP
iasp-sena/-ficha_1966781_B
/herencia_poo/modelo/Administrativo.php
UTF-8
702
3.109375
3
[]
no_license
<?php require_once("Usuario.php"); abstract class Administrativo implements Usuario { protected static $propiedadClase = 77777777; protected $salario; public function ingresar(){ echo "Valor prop. clase: ". self::$propiedadClase . "<br/>"; echo "Ingresamos desde administrativo...<br/>"; ...
true
88cd7b11492f613c85bf0eb902d0a7525e0dcc4b
PHP
mkrdeptcreative/ProjectCapstone
/ProjectM6/M6P/Controller/JobManager.php
UTF-8
850
2.71875
3
[]
no_license
<?php namespace M6P\Controller; use M6P\Models\entity\Job; use M6P\Models\data\jobManagerDB; class jobManager { public function saveJob(Job $job){ JobManagerDB::saveJob($job); } public function getJobByTitle($title){ return JobManagerDB::getJobByTitle($title); } ...
true