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
a6dde10e8f764b92796ec931cb70e759080d6858
PHP
maulidannashuha/laravel-simple-blog
/app/Models/Category.php
UTF-8
680
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Category extends Model { use HasFactory; protected $fillable = ["title", "slug"]; public function posts(){ return $this->hasMany(Post::class); } // this is a ...
true
cf149a24a6dcec7020e3f21be5e89d6c97b0cb89
PHP
nyonor/parsers
/db/MysqlDbController.php
UTF-8
29,406
2.578125
3
[]
no_license
<?php require_once 'base/IDbController.php'; /** * Created by PhpStorm. * User: NyoNor * Date: 21.10.15 * Time: 12:03 */ class MysqlDbController implements IDbController { const MYSQL_DSN = "mysql:host=localhost;dbname=4tochki;charset=utf8"; const MYSQL_USER_LOGIN = "mysqlUser"; const MYSQL_PASSWORD = "iddqd";...
true
1bd5992ebf041dd247d997903c638674701cc736
PHP
CCreek96/UT-coursework
/Web-Development/projectVI/scripts/signup.php
UTF-8
1,210
2.84375
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } if(isset($_POST["submit"])) { $uname = $_POST["username"]; $pwd = $_POST["passwd"]; $check = $_POST["checkPasswd"]; if (($uname == "") || ($uname == null) || ($pwd == "") || ($pwd == null) || ($check == "") || ($check == null)) { session_regenerate_id(tru...
true
46a3996fa37f16dfa088ef37474f9fa1fd5fd849
PHP
zlikavac32/beanstalkd-lib
/spec/Runner/CompositeJobObserverSpec.php
UTF-8
3,466
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace spec\Zlikavac32\BeanstalkdLib\Runner; use Exception; use PhpSpec\ObjectBehavior; use Zlikavac32\BeanstalkdLib\JobHandle; use Zlikavac32\BeanstalkdLib\Runner\CompositeJobObserver; use Zlikavac32\BeanstalkdLib\Runner\JobObserver; class CompositeJobObserverSpec extends ObjectBe...
true
e424993fc3ccb4747afc3ccd6a66b87ab3c1c462
PHP
Markvdpoll/pandaac
/app/models/SchemaObject.php
UTF-8
1,066
3.109375
3
[]
no_license
<?php class SchemaObject { /** * Returns a schema-based object. * * @param string $object * @param mixed ... * @access public * @return instance **/ public static function create($object) { // Get the parameters. $arguments = func_get_args(); unset($arguments[0]); // Declare the schema names...
true
a2115942d4cf222a6d4a209472ca53b8b87ce274
PHP
frak/s3bk
/src/S3Bk/Command/RestoreCommand.php
UTF-8
952
2.671875
3
[ "MIT" ]
permissive
<?php namespace S3Bk\Command; use Humbug\SelfUpdate\Updater; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * RestoreCommand. */ class RestoreCommand extends Command { protected function configure() ...
true
7a714f6c66071f6863cbc6b6ad399a5f7a7bde3d
PHP
moonlightpoet/SimpleExcelXmlAffair
/litb/upload.php
UTF-8
5,251
2.53125
3
[]
no_license
<?php require('litbheader.php'); header("Content-Type: text/html; charset=utf-8"); //echo "<pre>"; //print_r($_FILES); //echo "</pre>"; $utmcampaign = $_POST['utmcampaign']; $username = $_POST['username']; $filename = $_POST['filename']; //echo 'file name : '.$filename.'<br />'; //echo ...
true
a6c3f5f80997449101c4e4b3975b1ea31189f115
PHP
silvermine/silverstripe-views
/code/query-results/PredicateCondition.php
UTF-8
1,126
2.578125
3
[]
no_license
<?php /** * A predicate condition is a rule that is used to determine if a given query * predicate should be used for a query. For instance, if you have a field * predicate that uses a query string parameter in its value, you can define a * condition that the query string parameter must be present for that predic...
true
82fefbcaf9b83f165761f759100800fc4ce5c271
PHP
webbhuset/schema
/examples/one-of.php
UTF-8
730
3.1875
3
[ "MIT" ]
permissive
<?php use Webbhuset\Schema\Constructor as S; // Create a OneOfSchema. $schema = S::OneOf([ S::Int(), S::String(), ]); // Test with a valid value. $data1 = 1; $result1 = $schema->validate($data1); var_dump($result1->isValid()); // bool(true) // Test with an invalid value. $data2 = 1.0; $result2 = $schema->...
true
4a4296ecc1006787a0c5f0eb31f3856b987b5065
PHP
davidsolanes2/php
/PhpProject/Project1/index.php
UTF-8
3,296
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: david * Date: 4/07/17 * Time: 23:49 */ require_once('./MongodbDatabase.php'); $db = new DatabaseContabilidad; //print_r($db->insertNewItem([ // 'videoTitle' => 'Interestelar', // 'videoLink' => 'http://paramont', // 'videoID' => '1A25B58G...
true
e52d8fbe53245f17c295f33145dbbdadc9b443c4
PHP
damikag/Waasi.lk
/Website/app/controllers/RegisterController.php
UTF-8
7,777
2.546875
3
[]
no_license
<?php class RegisterController extends Controller { public function __construct($controller, $action){ parent::__construct($controller,$action); $this->load_model('Users'); $this->view->setLayout('default'); } public function loginAction() { // echo password_hash...
true
e59ec776db35fb82e97b6b267d9442301ae8227b
PHP
bridaltk/mina24h
/wp-content/themes/theme3us/inc/widgets/top-footer.php
UTF-8
2,331
2.875
3
[]
no_license
<?php /** * Adds Widget_Info_footer widget. */ function register_Info_footer() { register_widget( 'Info_footer' ); } add_action( 'widgets_init', 'register_Info_footer' ); class Info_footer extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'Info_fo...
true
dccb401be7cbac0b85e0856950166f639edfe52d
PHP
webgriffe/lib-quipago
/src/PaymentInit/DefaultUrlGenerator.php
UTF-8
3,437
2.828125
3
[ "MIT" ]
permissive
<?php namespace Webgriffe\LibQuiPago\PaymentInit; use Psr\Log\LoggerInterface; use Webgriffe\LibQuiPago\Signature\Signer; use Webgriffe\LibQuiPago\Signature\DefaultSigner; class DefaultUrlGenerator implements UrlGenerator { /** * @var Signer */ private $signer; /** * @var LoggerInterface ...
true
e3674729a0b3b24389400657c3dc1200085bcd16
PHP
mosbth/htmlphp-v1
/museum_objekt_db_populate.php
UTF-8
4,479
3.015625
3
[]
no_license
<?php $title = "Formulär (SQLite) för att arbeta med Museum Objekt"; $bodyId = "begr-formdb"; include("header.php"); include("header_begravning.php"); // --------------------------------------------------------------------------------------------- // // SET ERROR REPORTING TO ON // Always set error reporting to on, ...
true
99422cd6fb9ce10ff4321afe1a10349920c7262a
PHP
deniskoronets/ZNU-Journals
/protected/controllers/PagesController.php
UTF-8
1,927
2.59375
3
[]
no_license
<?php class PagesController extends Controller { public function filters() { return array( 'accessControl', ); } public function accessRules() { return array( array('allow', 'actions' => array('index','view'), 'users' => array('*'), ), array('allow', 'actions' => array('create','...
true
4ecfc7b5b11d0c6a4d683dfbb901785abeb1aeb8
PHP
victordekker/aoc
/app/Console/Commands/Year2015/Day6Puzzle2.php
UTF-8
1,851
3.140625
3
[]
no_license
<?php namespace App\Console\Commands\Year2015; class Day6Puzzle2 extends Day6Puzzle1 { protected int $part = 2; const INSTRUCTION_TURN_ON = 'turn on'; const INSTRUCTION_TURN_OFF = 'turn off'; const INSTRUCTION_TOGGLE = 'toggle'; /** * Solve the puzzle. * * @param string $data ...
true
04b1e0437e8abfc046815a0d00d67b135cc090f4
PHP
james-voong/evaluate_equation
/phpunit/division_multiplication_integration_tests.php
UTF-8
1,391
2.890625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use Solution2\Solution; final class DivisionMultiplicationIntegrationTest extends TestCase { public function testOneOfEachMultiplicationFirst() : void { $this->assertEquals( solution::eq("3*4/12"), 1 ); } public function testO...
true
b98d581f31dd5c75b98b11e0aedbb8ee3cda4fa6
PHP
fanzhaogui/goodgoodstudydaydayup
/ObjectAdapter/Adapter.php
UTF-8
546
2.96875
3
[ "Apache-2.0" ]
permissive
<?php /** * User: Andy * Date: 2018/12/28 * Time: 22:44 */ namespace Fan\DesignPatterns\ObjectAdapter; /** * 源类 * * Class Adapter * @package Fan\DesignPatterns\ObjectAdapter */ class Adapter implements Target { public function __construct(Adaptee $adaptee) { $this->adaptee = $adaptee; ...
true
0bb0aa191dee7dde63e3392b1b1dfd4f3db75cf9
PHP
grasenhiller/silverstripe-wkhtmltox
/src/WkController.php
UTF-8
4,362
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Grasenhiller\WkHtmlToX; use mikehaertl\wkhtmlto\Command; use SilverStripe\Control\Controller; use SilverStripe\Control\Director; use SilverStripe\ORM\FieldType\DBHTMLText; use SilverStripe\View\Requirements; class WkController extends Controller { private static $url_segment = 'gh-wkhtmltox'; pri...
true
2159f0e93d7568527fbbeb51f93b9893a4fafcee
PHP
boutell/SillyCMS
/src/vendor/symfony/src/Symfony/Bundle/ZendBundle/Logger/DebugLogger.php
UTF-8
1,135
2.625
3
[ "MIT" ]
permissive
<?php namespace Symfony\Bundle\ZendBundle\Logger; use Zend\Log\Writer\AbstractWriter; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * This source file is subject to the MIT license tha...
true
07fa268cdc567405ad5e5425ebf9ff4037075579
PHP
IBVPD/Nuvi
/src/NS/ImportBundle/Formatter/ArrayChoiceFormatter.php
UTF-8
1,482
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: gnat * Date: 16/03/17 * Time: 10:45 AM */ namespace NS\ImportBundle\Formatter; use Exporter\Formatter\DataFormatterInterface; use NS\UtilBundle\Form\Types\ArrayChoice; use Symfony\Component\PropertyAccess\PropertyPath; use Symfony\Component\Translation\TranslatorInterface...
true
f2528c4f7bb139b49fd066a5d1c20dd908152cd2
PHP
hulkthedev/timetrackerservice
/src/Usecase/DeleteEntity/DeleteEntityInteractor.php
UTF-8
931
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Usecase\DeleteEntity; use App\Repository\Exception\DatabaseException; use App\Usecase\BaseInteractor; use App\Usecase\BaseResponse; use App\Usecase\ResultCodes; use PDOException; use Throwable; /** * @author ~albei <fatal.error.27@gmail.com> */ class DeleteEntityInteractor extends BaseInteracto...
true
b845ef953a8b5d436a2019461ffffe3bf64d6b8a
PHP
BlinkAppleStar/webStone
/vendor/protoBuf/SLG/PB_Tech.php
UTF-8
4,428
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Auto generated from Common.proto at 2016-12-05 10:43:26 */ namespace { /** * PB_Tech message */ class PB_Tech extends \ProtobufMessage { /* Field index constants */ const ID = 1; const LEVELUP_TIME = 2; const BEHELPED_TIMES = 3; const HELP_ASKED = 4; const TOTAL_TIME = 5; /...
true
5921075808bdffe42af628ec7673f8daa0bb7011
PHP
lin2772/parking_master
/chooseGarage.php
UTF-8
932
2.984375
3
[]
no_license
<?php session_start(); $GARAGES=$_SESSION['Garages']; $CUSTOMERID=$_SESSION['CustomerID']; $EVENTID=$_SESSION['EventID']; $DATE=$_SESSION['Date']; echo "Garages with available parking spaces are: ","<br>"; foreach($GARAGES as $garageid=>$garagename){ echo $garagename.'('.$garageid.')'."<br>"; } $_S...
true
27d2d14e6151981616c6dca284928dfc952e5c4f
PHP
temp/phlexible
/src/Phlexible/Component/MediaTemplate/File/Loader/XmlLoader.php
UTF-8
1,959
2.75
3
[ "MIT" ]
permissive
<?php /* * This file is part of the phlexible package. * * (c) Stephan Wentz <sw@brainbits.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Phlexible\Component\MediaTemplate\File\Loader; use Phlexible\Component\Med...
true
6bb8be719b410a95ea8bda739fa48337810280af
PHP
mrpawan-gupta/LearnWeb-Dev
/002].PHP/15].AssociativeArray.php
UTF-8
166
3.28125
3
[]
no_license
<?php $age = [ "bill" => 25, "steve" => 28, "elon" => 22, ]; echo "<pre>"; print_r($age); echo "</pre>"; ?>
true
5236e4d215a3a26df17669fd873b563378a37f0a
PHP
Soelor/real-time-chat-laravel-vue
/app/Models/Traits/Contactable.php
UTF-8
1,740
2.609375
3
[]
no_license
<?php namespace App\Models\Traits; use App\Models\User; trait Contactable { public function requestsOut() { return $this->belongsToMany(User::class , 'contacts' , 'user_id' , 'contact_id'); } public function waitingRequestsOut(){ return $this->requestsOut()->whereNotIn('user_id' , $this->...
true
913dbed5292575a214ceeba012c45cb771bd53b7
PHP
geodesicsolutions-community/geocore-community
/src/setup/sql.php
UTF-8
4,676
2.78125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php function sql($db, &$template) { include("product.php"); // Check for how many sql files are in the directory if ($handle = opendir('../sql/')) { $file_array = []; $ignore = [ '.', '..', '.htaccess', 'index.php', ]; while ...
true
5a1db5e931fcf1c88669c61bb85116614c9b0402
PHP
SavioMacedo/Prova1Tassio
/avaliacao.php
UTF-8
5,011
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: avaliacao * Date: 16/03/2018 * Time: 21:16 */ include_once "estrutura/Template.php"; require_once "db/avaliacaoDAO.php"; require_once "classes/avaliacao.php"; $template = new Template(); $object = new avaliacaoDAO(); $template->header(); $template->sidebar(); $template->...
true
e56eda83358c9a28066a46308aaa82d0015c265b
PHP
JulieNobody/projetTestGit
/src/Entity/Test.php
UTF-8
927
2.53125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\TestRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=TestRepository::class) */ class Test { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type...
true
7b535b1957b5d39ee7f944629cc471abab6095ef
PHP
Iolandap/Curso2018
/Modulo 3/01 - PHP/EjercPHP/Exam/Libreria/funciones.php
UTF-8
1,475
2.578125
3
[]
no_license
<?php // Funcion inicializacion usuarios function initCfg(){ // Nivel usuario $cfg['user'] = ""; $cfg['pass'] = ""; // Nivel standar $cfg['saved_st_user'] = "jose"; $cfg['saved_st_pass'] = "1234"; $cfg['saved_st_hash'] = md5($cfg['saved_st_pass']); // Nivel admin $cfg['saved_adm_user'] = "pepito"; ...
true
7babf71fab21d062e37cf0eab2a0fc3a02d72cc8
PHP
horde/Injector
/test/Horde/Injector/InjectorTest.php
UTF-8
11,025
2.515625
3
[]
permissive
<?php class Horde_Injector_InjectorTest extends PHPUnit_Framework_TestCase { public function testShouldGetDefaultImplementationBinder() { $topLevel = $this->getMock('Horde_Injector_TopLevel', array('getBinder')); $topLevel->expects($this->once()) ->method('getBinder') ->w...
true
22ab4d803d3014ef85a10ccc73c58266f2120f4f
PHP
bsisic/PolnPy
/Backend/polnpy/src/Controller/HistoryController.php
UTF-8
6,080
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Document\PolenRecord; use App\Document\PolenDocument; use Symfony\Component\HttpFoundation\Request; use Doctrine\Bundle\MongoDBBundle\ManagerRegistry; use Monolog\Logger; use App\Response\CrossJsonResponse; use Swagger\Annotations as SWG; use Symfony\Component\Cache\Adapter\Adap...
true
674a288d9d4efcaf297c88b92d65249641a87edb
PHP
robialakbar/Sepakat_Berkawan
/model/model_sk.php
UTF-8
1,629
2.953125
3
[]
no_license
<?php // CLASS MODEL PENDUDUK class model_sk extends database { // DIGUNAKAN UNTUK MENJADI OBJEK SAAT INSTANSIASI DI SINI // METHOD // FUNCTION __CONSTRUCT UNTUK MENANGANI INSTANSIASI CLASS DARI MODEL function __construct() { // INSTANSIASI CLASS KONEKSI parent::__construct(); } ...
true
abf6e357d148c6956c25c98f7ffe6116121d3705
PHP
pedroac/routing4php
/php/tests/src/HttpRouterTest.php
UTF-8
4,632
2.578125
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use pedroac\routing\HttpRouter; use pedroac\routing\MethodsRouter; use pedroac\routing\PathRouter\HashRouter; /** * HttpRouter class tests. * * @author Pedro Amaral Couto * @license MIT */ class HttpRouterTest extends TestCase { /** * @covers pedroac\routing\HttpRo...
true
42a3c759dd21b0d7b0bcd59f503c2ae8aae3e6c0
PHP
Graziee6/store-management-PDO
/connection.php
UTF-8
282
2.578125
3
[]
no_license
<?php $servername = "localhost"; try { $connection = new PDO("mysql:host=$servername;dbname=stock", "root", "*souvenir#"); $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { echo "Connection failed: " . $e->getMessage(); }
true
d846c53e2bee2120244f2e32225c7b1d30d1c9c8
PHP
NaumJefferson/blog
/src/Entity/Category.php
UTF-8
2,471
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; /** * @ORM\Entity(repositoryClass="App\Repository\CategoryRepository") * @ORM\Table(schema="blog", name="categories") */ class Category { /** * @ORM\Id...
true
9b21ffd35cd16252ec4fd4d53018c3b525663cd1
PHP
Sugar-Lee/yii2-wechat
/wechat/src/core/AccessToken.php
UTF-8
2,089
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2018/10/11 * Time: 17:56 */ namespace common\components\wechat\src\core; use common\components\wechat\src\config\Config; use common\utils\ClientUtils; class AccessToken { public $appId; public $appSecret; public $cacheKey = 'wx-access-token'; ...
true
d43a27b4f1cfb2e4d18b540071f0da41e6fe50a7
PHP
sgabison/website
/views/scripts/widget/footer.php
UTF-8
944
2.53125
3
[]
no_license
<?php if($this->editmode) { // styles only for editmode ?> <link rel="stylesheet" href="/static/css/global.css"> <?php } ?> <footer class="footer"> <div class="container"> <?php echo $this->areablock("content"); ?> <?php echo $this->wysiwyg("text"); ?> <ul class="footer-links"> <?p...
true
8fe99013b5851251a877760c0eb9745da3186faa
PHP
cristoffert/farmaciacdo
/DepositoLozada-master/app/Proveedor.php
UTF-8
1,531
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use App\TipoDocumento; use Illuminate\Database\Eloquent\Model; class Proveedor extends Model { protected $primaryKey = 'number_id'; //cambiar nombre de llave primaria // public static $rules = [ 'name' => 'required|string|max:255', 'number_id' => 'required|max:30', ...
true
78dbc1bd6627d6f95899fa791fd0eb2be45e6b52
PHP
uestla/Simplex-Calculator
/Simplex/Task.php
UTF-8
3,659
2.734375
3
[]
no_license
<?php /** * This file is part of the SimplexCalculator library * * Copyright (c) 2014 Petr Kessler (https://kesspess.cz) * * @license MIT * @link https://github.com/uestla/Simplex-Calculator */ namespace Simplex; final class Task { /** @var Func */ private $function; /** @var Restriction[] */ priv...
true
6464db9081849a0fb1489ad19a446196e807a28f
PHP
sitphp/benchmarks
/src/BenchManager.php
UTF-8
3,330
3.25
3
[]
no_license
<?php namespace SitPHP\Benchmarks; use InvalidArgumentException; use SitPHP\Helpers\Format; use SitPHP\Helpers\Text; class BenchManager { private $benchmarks = []; /** * Return a new bench * * @param string|null $name * @return Bench */ function benchmark(string $name = null){ ...
true
23e934e1fc322f5cca6f1b176fda47ed1392b47c
PHP
minhnguyen-balance/oro_platform
/vendor/oro/platform/src/Oro/Bundle/OrganizationBundle/Form/EventListener/OwnerFormSubscriber.php
UTF-8
3,811
2.53125
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\OrganizationBundle\Form\EventListener; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Doctrine\Common\Util\ClassUtils; use Doctrine\Common\Persistence...
true
a9e7e19bebdf7d583476fc5fa5e9fdbd7a867426
PHP
BloodyPainter978/Web
/classes/User.class.php
UTF-8
1,006
3.234375
3
[]
no_license
<? class User extends UserAbstract{ public $name; public $login; public $password; static public $countUser=0; function __construct($name,$login,$password){ $this->name=$name; $this->login=$login; $this->password=$password; ++self::$countUser; echo ""....
true
73856ec82605853e2fa26886618da3f68c4d263d
PHP
Carlosho23/sitegames
/altera.php
UTF-8
3,662
2.78125
3
[]
no_license
<?php echo "<br><h3>.:: ALTERA ::.</h3>"; $acao=$_GET["acao"]; if($acao == "alterar"){ include 'aluno_recuperaForm.php'; include 'banco/conecta.php'; $id=$_GET["id"]; $altera = ("update tb_aluno set nome='$nome', data_nasc='$data_nasc', email='$email', celular='$celular', pais='$pais', plataform...
true
b762ec1410ae52f5355c37214bdc2d94571afc7c
PHP
slopjong/component_zenduri
/UnixHttp.php
UTF-8
4,320
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
true
d8e08fdc720fe544a94006b75eed14533d7ed8b1
PHP
kemiedon/2018cake_house
/sendmail.php
UTF-8
1,283
2.71875
3
[]
no_license
<?php include("PHPMailerAutoload.php"); //匯入PHPMailer類別 $message = '<html><body>'; $message .= '<table><tr><td>'. strip_tags($_POST['message']) .'</td></tr></table>'; $message .= '</body></html>'; $mail= new PHPMailer(); //建立新物件 $mail->IsSMTP(); //設定使用SMTP方式寄信 $mail->SMTPAuth = true; //設定SMTP需要驗證 $mail->SMTPSecure = "...
true
ba984d7f1260a62e79b1810015925153851e87f7
PHP
nemodaattila/BookWebShop-With-CustomFramework-old
/core/backend/database/querySource/TablesAndAttributesClass.php
UTF-8
2,134
3.09375
3
[]
no_license
<?php namespace core\backend\database\querySource; use core\backend\model\RequestResultException; /** * Class TablesAndAttributesClass PDO lekérdezéshez tárolja a táblaneveket és attributumokat * @package core\backend\database\querySource */ class TablesAndAttributesClass { /** * @var array ...
true
28cc452c686e709a016e98f968803c6b70b500a9
PHP
KNIGHTTH0R/BaseXMSApp
/tests/ContentHandlerTest.php
UTF-8
2,350
2.734375
3
[]
no_license
<?php use BaseXMS\Stdlib\DOMDocument; use BaseXMS\DataObjectHandler\ContentObject; include_once 'BaseXMSTest.php'; class ContentHandlerTest extends BaseXMSTest { private $contentHandler; public function setUp() { parent::setUp(); // Getting contentHandler $this->contentHandler = new ContentObject();...
true
f0fb8cfbd7925f7445fc305aef9037a53ee49f06
PHP
cultuurnet/udb3-search-service
/src/Http/Parameters/ArrayParameterBagAdapter.php
UTF-8
6,064
3
3
[]
no_license
<?php declare(strict_types=1); namespace CultuurNet\UDB3\Search\Http\Parameters; use CultuurNet\UDB3\Search\UnsupportedParameterValue; final class ArrayParameterBagAdapter implements ParameterBagInterface { /** * @var array */ private $parameterBag; /** * @var string */ private ...
true
13d2cb186f991deb6e190a78e9340c1ebf8df7f1
PHP
mahigupta/simpleBlog
/application/models/user.php
UTF-8
1,645
2.65625
3
[ "MIT" ]
permissive
<?php class user_model extends base_model { public function login($username, $password) { $sql = "Select * from users where username = ?"; $rows = $this->database->query($sql, array($username)); if ($rows->num_rows === 0) { return ajaxErrorResponse("Invalid username or password"); } $resu...
true
719b48444a2c7732f4b09343c739166a5465d8d7
PHP
AmiraAli/RAAESY
/app/Http/Controllers/SectionsController.php
UTF-8
2,895
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Section; use App\Log; use Request; use App\Category; use Auth; class SectionsController extends Controller { /** * Notify when category is spam/delete (called by AJAX). * * @param object $model_obj...
true
e4e73640438002dd083b7339d26a62ab722cac2d
PHP
frozensheep/synthesize
/src/Exception/UnknownTypeException.php
UTF-8
643
3.140625
3
[ "MIT" ]
permissive
<?php /** * This file contains the Unknown Type Exception Class. * * @package Frozensheep\Synthesize * @author Jacob Wyke <jacob@frozensheep.com> * @license MIT * */ namespace Frozensheep\Synthesize\Exception; /** * Unknown Type Exception Class * * Exception for attempting to create an unknown synthesize object type...
true
534952419d03d572dade7e87a6f9eea87f87c961
PHP
gulijiang/dataviz
/service/util.php
UTF-8
254
2.609375
3
[]
no_license
<?php function paramPost($paramName){ if(isset($_POST[$paramName])){ return $_POST[$paramName]; } return ""; } function paramGet($paramName){ if(isset($_GET[$paramName])){ return $_GET[$paramName]; } return ""; } ?>
true
5a5056bb74bb2c5624d1ff70c85e23710f39a27a
PHP
Kirill-Shkidin/guest.book
/app/Http/Controllers/HomeController.php
UTF-8
3,917
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Helpers\General\CollectionHelper; use App\Models\Review; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() ...
true
3738b4fed6c534992993447f30444748e985ec7f
PHP
LoraMS/ProgrammingBasicsPHP
/ExamPreparation/Exam07-05-2017/alcohol-market.php
UTF-8
481
3.109375
3
[ "MIT" ]
permissive
<?php $wiskyPrice = readline(); $bira = readline(); $wine = readline(); $rakia = readline(); $wisky = readline(); $wiskiAmount = $wiskyPrice * $wisky; $rakiaPrice = $wiskyPrice / 2; $winePrice = $rakiaPrice - $rakiaPrice*0.4; $biraPrice = $rakiaPrice - $rakiaPrice*0.8; $biraAmount = $bira * $biraPrice; $rakiaAmount...
true
30a691c51aa3a3c2c2fa40109af762b9b561737a
PHP
nofh/nealoca
/src/admin/includes/renders/AccueilRENDER.php
UTF-8
4,443
2.578125
3
[]
no_license
<?php class AccueilRENDER {//TODO mettre les controls ds les metabox private $post_type; public function __construct( $post_type ) { $this->post_type = $post_type; add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) ); add_action( 'save_post', array( new AccueilSAVE(), 'save'...
true
99559dbca8dcf13e9a74a6f5e6a71c9a74cb1ec4
PHP
andriyevski/old-apeha.com
/works.php
WINDOWS-1251
7,556
2.515625
3
[]
no_license
<? $now=time(); include("inc/db_connect.php"); $stat = mysql_fetch_array(mysql_query("select * from players where user='".addslashes($user)."' and pass='".addslashes($pass)."'")); mysql_query("SET CHARSET cp1251"); if ($stat[bloked]=="1") echo"<script>top.location='index.php?action=logout'</script>"; if ($stat[t_tim...
true
60f94f3a8e8789ee0909ae082474ef4dc556bba0
PHP
TheOnlySpeedy/AdventOfCode-2019
/day-2.php
UTF-8
1,612
3.328125
3
[]
no_license
<?php $input = getInputForDay(2, 'string'); // echo($input.'<br>'); $intCodes = explode(',', $input); $intCodesSize = count($intCodes); for ($noun = 0; $noun < 100; $noun++) { for ($verb = 0; $verb < 100; $verb++) { $intCodes = explode(',', $input); $intCodes[1] = $noun; $intCodes[2] = $v...
true
a8af5c680e613225f61fb7f51ff184313f9a7496
PHP
mrhegemon/elation
/include/datamanager_class.php
UTF-8
23,171
2.703125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php /** * class DataManager * Abstraction object for any type of queryable data source. * Anything which supports or can emulate the standard CRUD * functions can be used here. Implements caching layer. * @package Framework * @subpackage Utils */ include_once("include/ormmanager_class.php"); class DataMa...
true
a3b83186dcbde1bba771d7cc96b3a35cb6da6d3a
PHP
chrisjbaik/psalted
/migrations/20130816172253_AddInvitesTable.php
UTF-8
846
2.796875
3
[]
no_license
<?php use Phpmig\Migration\Migration; class AddInvitesTable extends Migration { /** * Do the migration */ public function up() { $statements = array( "CREATE TABLE IF NOT EXISTS invite (id INTEGER NOT NULL, key TEXT NOT NULL, email TEXT NOT NULL, admin_approved BOOLEAN DEFAUL...
true
51b4ef8fcc82e6b78bbc13a0a35689181d0aef54
PHP
eduardohurtado/avianca-laravel
/database/seeders/FabricanteSeeder.php
UTF-8
833
2.953125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Faker\Factory as Faker; use App\Models\Fabricante; class FabricanteSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Creamos una instancia de Faker ...
true
54ce0dbacdb678ece23f5fdda47fc79ce2209133
PHP
ingFis/PHP-
/modulo03/aula04/index.php
UTF-8
2,435
4.3125
4
[]
no_license
<?php //FUNÇÕES NATIVAS DE ARRAY 1/2 //contar itens - count() $lista = ['nome1', 'nome2', 'nome3', 'nome4', 'nome5']; echo "Quantidade de itens: ".count($lista)."<br><br>"; //Diferença de arrays - retorna o resto - array_diff() $listaAlunos = ['Pedro', 'Jorge', 'Paula', 'Ingrid', 'Yasmi...
true
835f9e0673a2b8a03a11d1871a4f48c10ac20736
PHP
robinscholz/better-rest
/vendor/sebastian/finder-facade/src/Configuration.php
UTF-8
2,985
2.984375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Finder Facade package. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\FinderFacade; use TheSeer\fDOM\fDOMDocument;...
true
7ae3f68dcec9714ce3be6b0219ee0872b3a0b264
PHP
Lidbetter/articulate
/src/Attributes/BoolAttribute.php
UTF-8
393
2.71875
3
[]
no_license
<?php namespace Sprocketbox\Articulate\Attributes; class BoolAttribute extends BaseAttribute { /** * @param $value * @param array $data * * @return bool */ public function cast($value, array $data = []): bool { return (bool) $value; } public function parse(...
true
197c0c66e104114139a54523bc1ba1511c559c36
PHP
candicebr/Twitter
/projet_bd/projet_bd/pages/controller/LikesController.php
UTF-8
904
2.515625
3
[]
no_license
<?php namespace controller; use Controller\ControllerBase; use app\src\App; use model\gateway\LikesGateway; use app\src\Request\Request; class LikesController extends ControllerBase { public function __construct(App $app) { parent::__construct($app); } public function lik...
true
c27ecc57fee445abb701038ffd212d508fb4f969
PHP
chiefnayeem/js-phonebook
/JSPhoneBookAPI/controllers/AuthController.php
UTF-8
754
2.75
3
[]
no_license
<?php class AuthController { public function login() { $username = $_POST['username']; $password = $_POST['password']; $mysqli = Model::connectDatabase(); $sql = "SELECT * FROM users WHERE username = '{$username}' AND password = '{$password}'"; $user = $mysqli->query($sql);...
true
c84f37cacd08a115013cb792e59f2e5f5e6e1433
PHP
EmmanuelleGay/NESTI_php
/src/model/entity/Comment.php
UTF-8
4,618
2.78125
3
[]
no_license
<?php class Comment extends BaseEntity{ private $idComment; private $commentTitle; private $commentContent; private $dateCreation; private $flag; private $idRecipe; private $idUsers; private $idModerator; /** * getModerator * * @return Moderator */ ...
true
064683720161f8d82487bebb85107a124275da1d
PHP
keviny2013/TrackMe
/includes/functions/firstPageFunctionsS.php
UTF-8
899
3.015625
3
[]
no_license
<?php /* sets global variables out of array elements */ function resetValues($flds) { if(!is_array($flds) || empty($flds)) { return false; } $numFlds = count($flds); for($i = 0; $i < $numFlds; $i++) { $cfld = $flds[$i]; global $$cfld; $$cfld = ''; } return true; } /* gets values (of given flds)...
true
c72c1b1533d884360e511808ba85a98c33aa5911
PHP
elasticphp/elastic-core
/classes/response.php
UTF-8
5,629
3.203125
3
[ "BSD-3-Clause" ]
permissive
<?php class Response { const STATUS_OK = 1; const STATUS_NOT_FOUND = 2; const STATUS_UNAUTHORISED = 3; const STATUS_SERVER_ERROR = 4; protected $_request; protected $_status; protected $_name; protected $_type; protected $_time; protected $_language; protected $_cookies = array(); ...
true
1d84990fd2a23570b995541986585264f29c6254
PHP
alfrekjv/ppi-framework
/DataSource/Mongo.php
UTF-8
980
2.796875
3
[ "MIT" ]
permissive
<?php /** * @author Paul Dragoonis <dragoonis@php.net> * @license http://opensource.org/licenses/mit-license.php MIT * @package DataSource * @link www.ppiframework.com */ class PPI_DataSource_Mongo { protected $conn = array(); function __construct() { } function getDriver(array $config) { ...
true
6b998672dd8a07a1acc1065e7017e192c3c119c6
PHP
matowens/platform
/src/Oro/Bundle/ApiBundle/Model/Label.php
UTF-8
1,224
2.875
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\ApiBundle\Model; use Symfony\Component\Translation\TranslatorInterface; /** * This class represents a translatable string and can be used instead of a string attributes * in a configuration. */ class Label { /** @var string */ private $name; /** * @param string $name ...
true
b3624e83e67dc969db3a12740f8de9f32e91dac8
PHP
Zdalisa/RNS-user_qualification_city
/php/controller/ticket_list_ajax.php
UTF-8
1,353
2.578125
3
[]
no_license
<?php // Обновление списка пользователей // // вход: // $_POST['qualification'] - Фильтр "Образование" // $_POST['city'] - Фильтр "Город" // // выход: // (view = нет) // подгрузить необходимые классы include_once "{$path_model}/user_list_main_table.php"; // проверка на иниц. данных $post_qualification = ( isse...
true
cf49ce826d7b81955c02b171e8ab45130bd15343
PHP
Serendipity18/LoginSystem
/include/login.inc.php
UTF-8
2,546
3.03125
3
[]
no_license
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { require 'dbh.inc.php'; $username = $_POST['user']; $password = $_POST['pwd']; //if either the username field or password field are blank, take the user back to ../login.php if(empty($username) || empty($password)) { header("Locatio...
true
d1707307d37a44304d757382093d65cde4240622
PHP
vikomex/Jana_Proyect
/funciones/general.php
UTF-8
2,346
2.921875
3
[]
no_license
<? error_reporting ( E_ERROR ); /* --------------------------------------------------------------------------- LIBRERIA DE GENERALES Esta librería se encarga de generalidades. --------------------------------------------------------------------------- */ function Asigna_UTF($str) { $str = mb_convert_case($str,...
true
47b34cf02948796358af38c73de7684a093e56ed
PHP
zhdc/php_test
/zentao/www/web/include/host.class.php
UTF-8
2,149
2.6875
3
[]
no_license
<?php require_once 'db.class.php'; class host extends db { public function __construct(){ parent::__construct(); } public function getHost($id=''){ $sql="select * from hosts "; if(!empty($id)){ $sql.="where id=$id "; } $sql.=" order by id desc "; return $this->select($sql); } public function get...
true
dd8124685e20c5e295a66579cce6ca6f4c05e083
PHP
lihini223/Web-Dev-Doc
/PHP/Sign Up Form/delete.php
UTF-8
645
2.578125
3
[]
no_license
<?php //connection $servername = "localhost"; $username = "root"; $password = ""; $dbname = "users"; $conn = mysqli_connect($servername,$username,$password,$dbname); if(!$conn){ //echo("Connection Failure!"); die("Connection Failed".mysqli_connect_error()); } else{ ...
true
4ac5e0227e892120e498ef1369bf4ecd0d2882cc
PHP
ASDAFF/ApelsinBitrixNew
/apls_lib/vacancies/APLS_Data_Vacancies.php
UTF-8
3,698
2.546875
3
[]
no_license
<?php class APLS_Data_Vacancies { private $file; private $xmlwebi; private $xmlData; private $vacancies; public function __construct($PathToRoot = "../") { $this->file = $PathToRoot.'/apls_resources/vacancies/Job.xml'; $this->xmlwebi = new AplsXmlParser(); $this->xmlData = $this->xmlwebi->xmlwebi($this->fi...
true
04deea4cd2ed2eb78d41b4d4e011e704ae177934
PHP
wilfredjr/Project
/upload_attendances.php
UTF-8
9,311
2.765625
3
[ "MIT" ]
permissive
<?php require_once("support/config.php"); if (!isLoggedIn()) { toLogin(); die(); } /** * Insert DTR Row to acu_records table * @param array * [A] ac_no * * [B] acu_id * [C] name * [D] action_time* * [E] state* * [F] new_state * [G] exception * [H] operation */ function InsertDTR($sheetRow) { glob...
true
8beac6016eb0902cd89e6dff969fcf5247d14fcd
PHP
Armen-e5518/gtpipeline
/frontend/models/Companies.php
UTF-8
1,081
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "companies". * * @property integer $id * @property string $name * @property integer $country */ class Companies extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { ...
true
8ea48786f5f46d30e9f4a6ea3217d868d3e093fd
PHP
kdrdmr/dhl-sdk-api-express
/src/Api/Data/RateResponseInterface.php
UTF-8
476
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * See LICENSE.md for license details. */ namespace Dhl\Express\Api\Data; use Dhl\Express\Api\Data\Response\Rate\RateInterface; /** * Rate Response Interface. * * DTO that carries relevant data for processing the rate result. * * @api * @author Christoph Aßmann <christoph.assmann@netresearch.de> *...
true
93f1faeae7e5084d067f36ef43563e06efbd55bc
PHP
pesiwang/webc
/client_javascript_builder.php
UTF-8
1,117
2.65625
3
[]
no_license
<?php require_once __DIR__ . '/builder.class.php'; require_once __DIR__ . '/3party/smarty/Smarty.class.php'; class ClientJavascriptBuilder extends Builder { public function build() { $parser = null; foreach ($this->_sourceFiles as $sourceFile) { if($parser == null) { $parser = $this->getParser($sourceFile...
true
b7cb330f294ccd0c8a3508cbc32a3d95a94a5359
PHP
answear/econt-pickup-point-bundle
/src/Exception/MalformedResponseException.php
UTF-8
531
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Answear\EcontBundle\Exception; use Answear\EcontBundle\Response\ErrorResponse; class MalformedResponseException extends \RuntimeException { /** * @var ErrorResponse|mixed */ private $response; public function __construct(string $message, $response, ?\T...
true
ab839e18093736212eb3d80a0afaff970fbc4bc0
PHP
damiantopaz/ajaxphp
/database.php
UTF-8
1,616
2.75
3
[]
no_license
<?php define('DB_SERVER','localhost'); define('DB_USER','root'); define('DB_PASS' ,''); define('DB_NAME', 'ajax'); class Database{ function __construct(){ $con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME); $this->dbh=$con; if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_er...
true
3a1b19edbe53357fe2d932e13d2b51f0d61157fd
PHP
seyuf/magento-actions-sample
/magento/dev/tests/integration/testsuite/Magento/Framework/Data/Argument/Interpreter/BaseStringUtilsTest.php
UTF-8
3,047
2.515625
3
[ "MIT", "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Data\Argument\Interpreter; use Magento\Framework\Phrase\RendererInterface; use Magento\Framework\Stdlib\BooleanUtils; /** * @covers \Magento\Framework\Data\Argument\Interpreter\BaseStr...
true
f675b612cf6c9785361915ba103851a6ec77acde
PHP
francistd/paginaCarlosTavarez
/Procesos/Conexion/conexion.php
UTF-8
251
2.515625
3
[]
no_license
<?php function conexion(){ $conexion = new mysqli("localhost","root","","tadia"); if ($conexion->connect_errno) { echo "Fallo la conexión". $conexion->connect_error; } $conexion->set_charset("utf8"); return $conexion; } ?>
true
11950255a9f964c6ade95530968f8814741c05b0
PHP
alkemann/jsonapi
/src/Controller.php
UTF-8
4,818
2.84375
3
[ "MIT" ]
permissive
<?php namespace alkemann\jsonapi; use alkemann\h2l\Request; use alkemann\h2l\Response; use alkemann\h2l\Router; use alkemann\h2l\util\Chain; use alkemann\h2l\util\Http; use alkemann\jsonapi\exceptions\InvalidRequestContainer; use alkemann\jsonapi\exceptions\JsonApiError; use alkemann\jsonapi\response\Error; /** * C...
true
d32c7f4641f3e0b9bd9de1568beeae71a0991cd7
PHP
itaiguli/Telegram-COVID-19-Alerts
/check_updates.php
UTF-8
3,354
2.640625
3
[]
no_license
// Written by Itai G <?php $url = "https://www.worldometers.info/coronavirus/"; $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $html = curl_exec($ch); curl_close($ch); $dom = new DOMDocument(); @$dom...
true
c555ca0f20ea1dc804fa838aa7e5e14290182e6d
PHP
Bahlul19/oop
/PDO/CRUD/show.php
UTF-8
1,151
2.78125
3
[]
no_license
<?php include('header.php'); spl_autoload_register(function($class){ include("classes/".$class.".php"); }); ?> <?php $user = new Student(); //access student class by this object //insert the query by this condition ?> <div class="col-md-4"></div> <div class="col-md-4"> <table class="table table-bord...
true
ca5aff2a2a1fa8f49fe88141e5deb3ddf9eb5527
PHP
6AHK0MAT/todophp.local
/src/Model/TodoList.php
UTF-8
10,254
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Mikech * Date: 11.06.2017 */ namespace Model; use Core\Model; use Core\Cache; use Core\Database; use Core\MyException; use Core\Request; /** * Class TodoList * * @package Model * Список задач */ class TodoList extends Model { /** * Имя списка ...
true
82bba4ffce1f51dc787eefa8234a582ea30f0982
PHP
ShawnXU0208/Typing-Exercise-App
/user_entry_handler.php
UTF-8
2,385
3.21875
3
[]
no_license
<?php //include config for database, get connecton to the database $conn require('database_config.php'); //for creating object that contains login error message class LoginError{ public $usernameError = NULL; public $passwordError = NULL; } //for creating object that contains register error message class...
true
8e6e831f09c9c615b62610928f97fb577112ee1d
PHP
Elo2806/bucket_list
/src/Entity/Wish.php
UTF-8
4,076
2.609375
3
[]
no_license
<?php namespace App\Entity; use App\Repository\WishRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; /** * @O...
true
54891c633c2013ad2935132dc6ad9750ca23d1dd
PHP
Yuki-Amano/homework_1
/homework_2/homework2.php
UTF-8
396
3.578125
4
[]
no_license
<?php $x = rand(0,100); echo "Число $x"; $y = 1; $z = 1; while ($y != $x || $y <= $x){ if ($y > $x) { echo "<br>Задуманное число НЕ входит в числовой ряд"; break; } else { if ($y == $x) { echo "<br>Задуманное число входит в числовой ряд"; break; } else { $w = $y; $y = $y + $z; $z = $w; } } } ?>...
true
103e9817c4419ada45a634e37b157732eced4c03
PHP
ahdiatahsan/sistem-informasi-ekstrakurikuler
/config/login.php
UTF-8
1,026
2.53125
3
[]
no_license
<?php header('Content-Type:application/json'); include "koneksi.php"; //get data username dan password $username = isset($_GET['username']) ? $_GET['username']:""; $pass = isset($_GET['password']) ? $_GET['password']:""; $password = md5($pass); //pengecekan username dan password kosong atau tidak if($username=="" and $...
true
cf3413f2349538306a76c8d3aff23308c67c6030
PHP
drpshtiwan/Impelement-Design-Patterns-In-PHP
/src/Structural/Decorator/Features/Features.php
UTF-8
704
3.125
3
[]
no_license
<?php namespace Jano\Structural\Decorator\Features; use Jano\Structural\Decorator\Contracts\SubscriptionContract; abstract class Features implements SubscriptionContract { protected $subscription; public function __construct(SubscriptionContract $subscription) { $this->subscription = $subscripti...
true
821e2cf9a55bbe645c2fd14ebc47f979a800ccec
PHP
spence-man/ff-wp-testing-suite
/tests/unit/RWA/ExampleTest.php
UTF-8
633
2.546875
3
[]
no_license
<?php // $ codecept run unit RWA:ExampleTest class ExampleTest extends \Codeception\Test\Unit { /** * @var \UnitTester */ protected $tester; protected function _before() { } protected function _after() { } // tests public function testSomeFeature() { $s...
true
6cd960feeb11d099d0cc3d707bf36ae8b19cbc38
PHP
Webkonditer/bhaktilata
/app/Domain/QuoteOfTheDay/QuoteFactory.php
UTF-8
202
2.84375
3
[]
no_license
<?php namespace App\Domain\QuoteOfTheDay; class QuoteFactory { public function makeFromArray($data) { $quote = new Quote(); $quote->fill($data); return $quote; } }
true
45561b949b42609a7e8c800ad7109156528c21ae
PHP
danielstjules/pho
/src/Exception/RunnableException.php
UTF-8
718
2.921875
3
[ "MIT" ]
permissive
<?php namespace pho\Exception; use pho\Exception\Exception; class RunnableException extends Exception { /** * Creates a RunnableException, given a previously raised exception. This * corresponds to an exception thrown during regular execution of the test * runner, and is linked to the originating ...
true
8527750c91326e3b8011eb930349de9188f2e876
PHP
auraphp/Aura.Web
/src/Response.php
UTF-8
2,551
2.921875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * * This file is part of Aura for PHP. * * @license http://opensource.org/licenses/bsd-license.php BSD * */ namespace Aura\Web; /** * * Descriptors for building an HTTP response; note that this is not itself an * HTTP response. * * @package Aura.Web * * @property-read Response\Cache $cache A Cac...
true
0f591722f883b10e7945957e49f253d0532ed4a7
PHP
yunusemreerken/Php-Curd
/crud.php
UTF-8
4,218
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: YunusEmre * Date: 13.7.2016 * Time: 10:58 */ require_once "config.php"; $user=""; if(array_key_exists("user",$_SESSION)) { $user=$_SESSION['user']; } if(isset($_POST['listele'])) { $id=$_POST['id']; $uyeler = mysqli_query($conn, "select * from uyeler WHERE i...
true