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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
073935f7494f4cc7a123dd3e1cd97ad7a7acfbc7 | PHP | aaronFdez/meneame | /tests/functional/LoginFormCest.php | UTF-8 | 1,955 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\tests;
class LoginFormCest
{
//se ejecuta SIEMPRE antes de cada prueba
public function _before(\FunctionalTester $I)
{
$I->amOnRoute('site/login');
}
public function openLoginPage(\FunctionalTester $I)
{
$I->see('Login', 'h1');// Sale la palabra login con u... | true |
a1022ae7e98cf03127780ccc452d6ce9aec33462 | PHP | cmpayments/payments-sdk-php | /src/MoneyConverter.php | UTF-8 | 1,534 | 3.21875 | 3 | [
"MIT"
] | permissive | <?php
namespace CMPayments\PaymentSdk;
use Money\Currencies\ISOCurrencies;
use Money\Currency;
use Money\Money;
/**
* Class MoneyFactory provides convenience methods to make it easier to interact with different parts of the SDK.
*
* @package CMPayments\PaymentSdk
* @author Jory Geerts <jory.geerts@cm.nl>
*/
cl... | true |
3e3ad0d43379e36c589a8792f089db9d3a85ff1e | PHP | forkcms/forkcms | /src/Common/Doctrine/ValueObject/AbstractFile.php | UTF-8 | 6,305 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace Common\Doctrine\ValueObject;
use Common\Uri;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* The following things are mandatory to use this class.
*
* You need to implement the method getUploadDir.
* When using this class in an entity certain life cy... | true |
d23bfea5c4510ceba2bc1d10223d10ef1efed8b5 | PHP | akuz91/Issue-Tracking-System | /CS-GY-6083_Project_Code/auth.php | UTF-8 | 1,265 | 2.90625 | 3 | [] | no_license | <?php
session_start();
include "connectdb.php";
//check if username and password are filled out
if ( !isset($_POST['username'], $_POST['password']) ) {
exit('Please fill both the username and password fields!');
}
//check if user_id for who this username and password belong to
if ($stmt = $mysqli->prepare('SELECT user... | true |
6507ef072f2f835f128f5b9834ff067a276b3d6b | PHP | mithunmo/phpsample | /websites/baseAdminSite/controllers/admin/apiAdmin/apiKey/apiKeyController.class.php | UTF-8 | 1,664 | 2.671875 | 3 | [] | no_license | <?php
/**
* apiKeyController
*
* Stored in apiKeyController.class.php
*
* @author Mithun Mohan
* @copyright Mofilm (c) 2009-2010
* @package websites_baseAdminSite
* @subpackage controllers
* @category apiKeyController
* @version $Rev: 624 $
*/
/**
* apiKeyController
*
* apiKeyController class
*
* @p... | true |
9c5b1e5b957b55bc678a9cfd699faf6922254163 | PHP | Lancer-Serega/yii2-project | /frontend/services/IdentityService.php | UTF-8 | 7,964 | 2.515625 | 3 | [] | permissive | <?php
/**
* Created by PhpStorm.
* UserEntity: sergey
* Date: 31.10.18
* Time: 15:33
*/
namespace frontend\services;
use frontend\models\Entity\LanguageEntity;
use frontend\models\Form\UserChangeAccountForm;
use frontend\models\Entity\UserConfigEntity;
use frontend\models\Repository\UserConfigRepository;
use Yii... | true |
dd6c81fb94ef3f9458de9f405312f8644de18e96 | PHP | nelsonrojasn/nofp | /core/security.php | UTF-8 | 1,232 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
class Security {
public static function injectAntiCSRFHeader() {
// Cross-Origin Resource Sharing Header
header('Access-Control-Allow-Origin: http://127.0.0.1');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: X-R... | true |
7528db2bb97142cc46b6cc615b90a3c48a2b13b6 | PHP | babakasse/ynov-exercices | /POO/exercice4/utilisation_fonctions.php | UTF-8 | 499 | 3.25 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: KAB1VX2
* Date: 24/11/2017
* Time: 16:28
*/
require 'Calculator.php';
$a= 10;
$b=5;
echo "<h1>".$a."+".$b."=".Calculator::addition($a,$b)."</h1>";
echo "<h1>".$a."-".$b."=".Calculator::soustraction($a,$b)."</h1>";
echo "<h1>".$a."*".$b."=".Calculator::multiplication($a,$... | true |
fdb913980625d5919a2105c6f040876cf67b8938 | PHP | chrissheppard41/project_frost | /View/Helper/AppHelper.php | UTF-8 | 750 | 3.140625 | 3 | [] | no_license | <?php
App::uses('Helper', 'View');
class AppHelper extends Helper {
/**
* Highlights a menu option based on path. The function compares the supplied path
* to the internal current path using regular expression.
*
* @param string $path - The path to attempt to match.
* @param string $normal - The normal cla... | true |
bc2ff2f3ac7bf81d78a63fe433a4d03071c13c26 | PHP | awes-io/auth | /src/Middlewares/SocialAuthentication.php | UTF-8 | 795 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace AwesIO\Auth\Middlewares;
use Closure;
class SocialAuthentication
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $t... | true |
89bcca071d9f8354f7d0a49b5938a6462ae68908 | PHP | lbhurtado/txtcmdr | /app/Campaign/Domain/Observers/AreaObserver.php | UTF-8 | 593 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Campaign\Domain\Observers;
use App\Campaign\Domain\Models\Area;
class AreaObserver
{
/**
* Handle the area "creating" event.
*
* @param \App\App\Campaign\Domain\Models\Area $area
* @return void
*/
public function creating(Area $area)
{
$original_name... | true |
9311ac3dfd82e590f488fcc9e5fa6975cb6a0936 | PHP | emanuele45/Dialogo | /sources/ElkArte/SettingsForm/SettingsForm.php | UTF-8 | 4,750 | 2.78125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* This class handles display, edit, save, of forum settings.
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines ... | true |
6f9b51b6926191f49001f8d4b9942b683d3694e5 | PHP | Trang3598/sale_phone | /app/Repositories/Repository.php | UTF-8 | 2,113 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Repositories;
use Illuminate\Database\Eloquent\Model;
use Session;
class Repository implements AbstractRepositoryInterface
{
protected $model;
const ALL = 0;
const HOT = 1;
const HIGHT_TO_LOW = 2;
const LOW_TO_HIGHT = 3;
// Constructor to bind model to repo
public fun... | true |
a7ba5437985c0a31c3667c6e0f180abdb33edabc | PHP | Solonin/yii_folder_audit | /modules/intlog/models/Rolemembers.php | UTF-8 | 984 | 2.625 | 3 | [] | no_license | <?php
namespace app\modules\intlog\models;
use Yii;
/**
* This is the model class for table "rolemembers".
*
* @property int $id
* @property string|null $role
* @property string|null $memberSAM
* @property string|null $dt_time
*/
class Rolemembers extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
... | true |
dc8f076cdad2afcd2cb9891ec3046bd49b7526df | PHP | dallinnguyen/hkgh | /app/models/Comment.php | UTF-8 | 670 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
class Comment extends Eloquent{
public function user(){
return $this->belongsTo('User');
}
public function post(){
return $this->belongsTo('Post','post_id');
}
public function date($date=null)
{
if(is_null($date)) {
$date = $this->created_at;
}
r... | true |
f9d67dde4496acda353e08386819ff23677e536c | PHP | nazart/isil-web-2015 | /Clase5/clases/clases/auto.php | UTF-8 | 1,657 | 2.859375 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of persona
*
* @author Nazart
*/
class auto extends entity {
protected $marca;
protected $modelo;... | true |
9bfdf40037bb4131e2f25c82bccbfb17a68895f1 | PHP | mentisy/ci-testing | /tests/TestCase/AdditionTest.php | UTF-8 | 352 | 2.53125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Test\TestCase;
use App\Addition;
use PHPUnit\Framework\TestCase;
class AdditionTest extends TestCase
{
/**
* Test add method
*
* @return void
* @uses \App\Addition::add()
*/
public function testAdd(): void
{
$this->assertSame(5... | true |
b70dc8810661776d1b99eecb06fe1e813273d7fb | PHP | tommy8699/GalleryApi | /app/Presenters/HomepagePresenter.php | UTF-8 | 729 | 2.578125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Presenters;
use Nette;
use function App\dd;
use App\Model\GalleriesManager;
final class HomepagePresenter extends Nette\Application\UI\Presenter
{
/** @var GalleriesManager */
private $galleriesManager;
public function injectGalleriesManager(GalleriesManag... | true |
2e90c03e962b442398fe24608a5251be9b965c15 | PHP | Runalyze/Runalyze | /inc/core/Metrics/Distance/Unit/Kilometer.php | UTF-8 | 461 | 2.6875 | 3 | [] | no_license | <?php
namespace Runalyze\Metrics\Distance\Unit;
use Runalyze\Metrics\Common\BaseUnitTrait;
use Runalyze\Metrics\Common\FormattableUnitInterface;
class Kilometer extends AbstractDistanceUnit implements FormattableUnitInterface
{
use BaseUnitTrait;
/**
* @return string
*
* @codeCoverageIgnore
... | true |
a4356ea920ec03b9ff43c1e3c9bcfed129fee581 | PHP | MatheusHackmann/cemiterio | /gerenciar_obito.php | UTF-8 | 4,274 | 2.515625 | 3 | [] | no_license | <?php
$obitos = new Obitos();
$infosObito = $obitos->trazerInfoObito($_GET['id']);
if (isset($_GET['del_obito'])) {
$obitos->deletarObito($_GET['del_obito']);
$_SESSION['mensagem'] = 'Registro deletado.';
$_SESSION['tipoAlert'] = 'alert-danger';
header("Location: ?p=gerenciar_obitos");
exit();
}
foreach ($info... | true |
21129a31932d6bd4606fabf7f7083a7b3070ba48 | PHP | WebDev-IMT2015/kel00-imtalk | /app/Listeners/LastLogin.php | UTF-8 | 408 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Listeners;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Auth\Events\Login;
class LastLogin
{
/**
* Handle the event.
*
* @param \Illuminate\Auth\Events\Login $event
* @return void
*/
public function handle(Login $event)
{
// Update user last... | true |
aa89c7b7ababeef0f79136005e522b2f1c5a1621 | PHP | zqrt/yii2-user | /models/Profile.php | UTF-8 | 1,721 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace amnah\yii2\user\models;
use Yii;
use yii\db\ActiveRecord;
/**
* Profile model
*
* @property int $id
* @property int $user_id
* @property string $create_time
* @property string $update_time
* @property string $full_name
*
* @property User $user
*/
class Profile extends ActiveRecord {
/*... | true |
c6221b000c77677e1c45c7c5ceb3dcb34e1d8a63 | PHP | italogundes/gerenciador_arquivos | /model/Bean/Perfil.php | UTF-8 | 369 | 2.828125 | 3 | [] | no_license | <?php
class Perfil {
private $id;
private $descricao;
public function getId(){
return $this->id;
}
public function setId($value)
{
$this->id = $value;
}
public function getDescricao()
{
return $this->descricao;
}
public function setDescricao($value)
... | true |
29dba001342d947781be3911d545849321e972ab | PHP | Swoot1/Rentatool | /application/ENFramework/Helpers/Routing/RouteCollection.php | UTF-8 | 880 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by JetBrains PhpStorm.
* User: Elin
* Date: 2014-04-13
* Time: 11:29
* To change this template use File | Settings | File Templates.
*/
namespace Rentatool\Application\ENFramework\Helpers\Routing;
use Rentatool\Application\ENFramework\Models\Request;
class RouteCollection {
private $ro... | true |
55fdcaf49b7977c4af1ca1e49059160f43b07a10 | PHP | ubay887/spp-sekolah | /app/User.php | UTF-8 | 1,438 | 2.625 | 3 | [] | no_license | <?php
namespace App;
use App\Models\Siswa;
use App\Models\Pegawai;
use Spatie\Permission\Traits\HasRoles;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable, HasRoles;
... | true |
a5099d876acea99d3e42489cc5813f2974b882fc | PHP | matiaspro3/TPlaboratorioIV2016 | /PHP/clases/Local-Productos.php | UTF-8 | 6,313 | 2.96875 | 3 | [
"CC0-1.0"
] | permissive | <?php
require_once"AccesoDatos.php";
require_once"Productos.php";
require_once"Sucursales.php";
class local_producto
{
//--------------------------------------------------------------------------------//
//--ATRIBUTOS
public $id_prod;
public $produDir;
public $fotoProd1;
public $fotoProd2;
public $fotoProd3;
publ... | true |
b0e0a5974a6c10db8c2c4d167f1b9045c2fbb3ba | PHP | EppuHeilimo/SimpleForum | /style/index.php | UTF-8 | 1,828 | 2.546875 | 3 | [] | no_license |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Forum Template</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="style/mycss.css">
</head>
<body>
<?php
require __DIR__ . '/he... | true |
c3787cdd0ccac22dacf69932cf3544378ea51bed | PHP | straup/colour-utils | /php/lib_colours.php | UTF-8 | 1,895 | 2.953125 | 3 | [] | no_license | <?php
########################################################################
function colours_load_palette($path){
$fh = fopen($path, 'r');
$txt = fread($fh, filesize($path));
$data = json_decode($txt, "as hash");
return $data;
}
#######################################################################... | true |
616f98441972286699e0f8c3e3e38ab93ca64954 | PHP | Bluebom/devWebComp | /manipulandoDir/manipulandoPastas/index.php | UTF-8 | 163 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
// // criar
// mkdir('pasta');
// // verificar existência
// if(is_dir('pasta')){
// echo 'existe';
// }
// deletar pasta
// rmdir('pasta'); | true |
98af2259616def0b37a95171e5a548f8eba6fd70 | PHP | digestinfosec/lakotelakoteoaeoa | /application/libraries/MY_Form_validation.php | UTF-8 | 3,526 | 2.765625 | 3 | [] | no_license | <?php
/**
* Class MY_Form_validation
*/
class MY_Form_validation extends CI_Form_validation
{
/**
* MY_Form_validation constructor.
*/
public function __construct()
{
parent::__construct();
}
/**
* @param $str
* @param $field
* @return bool
*/
public fu... | true |
ef790b589e5dcca54fff6f6a3500ad7acb1a2d1c | PHP | chrisaugustsson/medicinskvetenskap | /src/Vote/VoteController.php | UTF-8 | 1,784 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace Anax\Vote;
use Anax\Commons\ContainerInjectableInterface;
use Anax\Commons\ContainerInjectableTrait;
use Anax\User\HTMLForm\UserLoginForm;
use Anax\User\HTMLForm\CreateUserForm;
use Anax\User\HTMLForm\CreateThreadForm;
use Anax\User\HTMLForm\UserUpdateForm;
use Anax\Tag\Tag;
use Anax\Thread\Thread;
use... | true |
6f98c846e581d2b027845b0af748ae6383198948 | PHP | abdallah7/drupia-training | /data.php | UTF-8 | 3,569 | 2.984375 | 3 | [] | no_license | <?php
class Book {
public function connect()
{
$mysqli = new mysqli('localhost', 'root', '3210', 'task');
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli->connect_error;
}
else
{
return $mysqli ;
}
}
public function add( $text ) {
$content = $text;
$action ... | true |
52130fc079de3c1ce555c4c5de9914efdfbca76c | PHP | vitorguimars/SGA | /cadastrarMercado.php | UTF-8 | 695 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: vitor
* Date: 13/04/2017
* Time: 19:00
*/
if ($_POST["questTxt"]!="" && $_POST["abordagemTxt"]!=""){
require_once "banco/BancoPDO.php";
require_once "classes/mercado.php";
require_once "dao/mercadoDAO.php";
$quest = $_POST["questTxt"];
$abordagem = ... | true |
30927ff084d3fd2d202a6d5a69d3925f5c3b5930 | PHP | splashsky/madsplash-tropical | /Resources/Scripts/PHP/Classes/ArticleComment.php | UTF-8 | 1,384 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
if(!defined('SAFE')) {
$page = <<<CANTTOUCH
<html>
<head>
</head>
<body style="padding:0px; margin:0px; background-color: #888; padding-top: 18px;">
<center><img style="max-height: 600px;" src="../../../Images/General/CantTouchThis.png" /></center>
</body>
... | true |
1ac2c4396f97d5acacfb25deba0f8a0260301ccf | PHP | mhcabral/BoaTrip | /retaguarda/models/Barco.php | UTF-8 | 2,844 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
use yii\web\UploadedFile;
/**
* This is the model class for table "barco".
*
* @property string $id
* @property string $nome
* @property string $descricao
* @property integer $tripulantes
* @property string $empresa_id
*
* @property Empresa $empresa
* @property BarcoFot... | true |
e282dc8f2f547eadc3703e654657d6d321c97d44 | PHP | RoyalFlushOn/RFO-main-site | /appClass/Collection.php | UTF-8 | 1,528 | 3.453125 | 3 | [] | no_license | <?php
class Collection{
private $objs = array();
public function addItem($obj, $key = null) {
if ($key == null){
$this->objs[] = $obj;
}else{
if(array_key_exists($key, $this->objs)){
throw new keyUsedException ('Key $key is already in use');
} el... | true |
8f0291ec83a99e54a4c33966b8fe7174fabcf48e | PHP | alexkoh1/vkbot | /src/AppBundle/Service/Tasks/ParseWall.php | UTF-8 | 1,614 | 2.609375 | 3 | [] | no_license | <?php
declare(strict_types = 1);
namespace AppBundle\Service\Tasks;
use AppBundle\Entity\Task;
use AppBundle\Repository\TaskRepository;
use AppBundle\Service\WallService;
use getjump\Vk\Model\Wall;
use Monolog\Logger;
class ParseWall implements TaskInterface
{
use TaskTrait;
private $task;
private $wa... | true |
257a589a9dd5f896b4b5fc28d7d8d45a1d7ed494 | PHP | candango/myfuses-testapp | /plugins/BreadCrumbPlugin.class.php | UTF-8 | 704 | 2.65625 | 3 | [] | no_license | <?php
class BreadCrumbPlugin extends AbstractPlugin {
public function run() {
$action = MyFuses::getInstance()->getCurrentAction();
$circuit = MyFuses::getInstance()->getRequest()->getAction()->getCircuit();
$breadCrumb = $this->buildTrack( $circuit ) . "." .
MyFuses::getI... | true |
a93c90691ac44ebe243376e78667095a84e98679 | PHP | thinkphp/computer-science-in-php | /foundations/dynamic-programming/maxsubseqsum.php | UTF-8 | 7,489 | 3.796875 | 4 | [] | no_license | <?php
// The Maximum Subsequence Sum Problem
// -----------------------------------
// Given (possibly negative) integers a1, a2, a3,...,an find the maximum value of E k=i...j.
// The maximum subsequence sum is defined to be 0 if all the integers are negative.
// For example, given the sequence -2, 11, -4, 13, -5, -2, ... | true |
8c78e97b255bd383ba066be409c5ef044906792d | PHP | NoUseFreak/PMT | /src/PMT/CoreBundle/Entity/TagRepository.php | UTF-8 | 1,194 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the PMT package.
*
* (c) Dries De Peuter <dries@nousefreak.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PMT\CoreBundle\Entity;
use Doctrine\ORM\EntityRepository;
class TagReposit... | true |
b09af2ae74bd6c2901dbe4f55c4211252c4823f5 | PHP | noorassikin/flexicomm | /pages/tables/task_project.php | UTF-8 | 1,611 | 2.546875 | 3 | [
"MIT"
] | permissive |
<?php
$project_name = $_GET['project_name'];
$project_id = $_GET['project_id'];
//echo "<label>Project Name:</label>" ;
//echo $project_name;
?>
<?php
$con=mysqli_connect("mytaskdb.cxqaqsbao9lc.ap-southeast-1.rds.amazonaws.com","mastermaster","mastermaster","task");
$project_id = $_GET['project_id'];... | true |
82fa709bf0c1ba601b2fb1641c1989007528e3c5 | PHP | Generalbelly/Omotenashi | /app/Usecases/DeleteTutorial/DeleteTutorialUsecaseInteractor.php | UTF-8 | 911 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Usecases\DeleteTutorial;
use App\Repositories\Tutorial\TutorialRepositoryContract;
class DeleteTutorialUsecaseInteractor implements DeleteTutorialUsecase {
/**
* @var TutorialRepositoryContract
*/
private $tutorialRepository;
/**
* DeleteTutorialUsecaseInteractor cons... | true |
b93f91dc862070935860b90894f4d6fc11d3c7ae | PHP | webeweb/core-library | /tests/quadratus/Model/QCompta/LocationsFiTpTest.php | UTF-8 | 3,319 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the core-library package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Quadratus\Tests\Model\QCompta;
use DateTime;
use Throwable;
use WBW\Library\Qua... | true |
98e733c98f1cd0dbfa7359b755131dd49ac21537 | PHP | iliyaZelenko/blog-symfony | /src/Utils/Contracts/Slugger/SluggerInterface.php | UTF-8 | 130 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Utils\Contracts\Slugger;
// я понял
interface SluggerInterface
{
public function slugify($str);
}
| true |
899aff2d0940caa2babf53f8b52a1820fd1c660a | PHP | agoit/fleaphp | /FLEA/Com/RBAC/Exception/InvalidACTFile.php | GB18030 | 1,918 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/////////////////////////////////////////////////////////////////////////////
// ļ FleaPHP Ŀһ
//
// Copyright (c) 2005 - 2006 FleaPHP.org (www.fleaphp.org)
//
// Ҫ鿴İȨϢϢ鿴Դи COPYRIGHT ļ
// ߷ http://www.fleaphp.org/ ϸϢ
/////////////////////////////////////////////////////////////////////////////
/**
* FLEA_Com_RB... | true |
75ec39908c6dfabbc28f436a2378bfd8d914a28c | PHP | MuriloACQ/pontinho | /classes/Usuario.php | UTF-8 | 515 | 3.1875 | 3 | [] | no_license | <?php
namespace classes;
class Usuario {
private $id;
private $username;
private $fichas;
public function __construct($id, $username, $fichas) {
$this->id = $id;
$this->username = $username;
$this->fichas = $fichas;
}
public function getId() {
return $this->id;
}
public funct... | true |
9984a6e27ef7db5872e73ef7044469e8aef1813f | PHP | mmasomi73/implementation | /app/Notification.php | UTF-8 | 1,675 | 2.625 | 3 | [] | no_license | <?php
namespace App;
use App\Utilities\PersianDate;
use Illuminate\Database\Eloquent\Model;
/**
* App\Notification
*
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Gallery[] $images
* @property-read \Illuminate\Database\Eloquent\Collection|\App\File[] $files
* @method static \Illuminate\Database... | true |
8a62b8d71ce2f95289f7a5135122b04d21aa2311 | PHP | Grummfy/dpc-2019-architecture-talk | /modules/sample-app/src/Application/Command/Card/AbstractCardHandler.php | UTF-8 | 761 | 2.703125 | 3 | [] | no_license | <?php
/**
* Amazium Application
*
* @copyright Amazium bvba
* @since {2019-03-30}
*/
namespace Amazium\SampleApp\Application\Command\Card;
use Amazium\SampleApp\Domain\Repository\Card as CardRepository;
use Amazium\Kernel\Application\Message\Message;
abstract class AbstractCardHandler
{
/**
* @var Card... | true |
44910567312632ee8a8b62e5ad3809c5a5db73b3 | PHP | Ivanglezc/PSET7 | /views/portfolio.php | UTF-8 | 1,556 | 2.671875 | 3 | [] | no_license | <body style="background-color:#bfbfbf">
<iframe style= "border-radius:15px 15px 15px 15px; border: 20px inset #FFFFFF;" width="560" height="315" src="https://www.youtube.com/embed/EFS3T321VUY" frameborder="0" allowfullscreen></iframe>
<h1>
<?php
$firstname= CS50::query("SELECT firstname FROM users WHERE id = ?"... | true |
90faca258b4310724ed523d3026ae694ea36fec1 | PHP | ka53y/N342-Project | /createNewJudgeSessionSend.php | UTF-8 | 1,689 | 2.8125 | 3 | [] | no_license | <?php
//These pages right now can not send to server, so they instead just send it back to the respective homepage of how it got to here. So since
//this is an admin page, that only admins can access, it makes sense ot send them back to admin home page.
require_once "inc/util.php";
require_once "dbconnect.php";
... | true |
b532681e6279ecce565f59ac4f6bca78e9002e59 | PHP | Lis1477/NeoMedical | /app/Http/Controllers/Admin/ServiceController.php | UTF-8 | 5,132 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Intervention\Image\Facades\Image;
use Illuminate\Http\Request;
use App\Service;
class ServiceController extends Controller
{
//***** Выводим направления ***************... | true |
cabcf52258b59d429ab54eb4ef94ff6bc89c60c2 | PHP | comhon-project/comhon | /src/Comhon/Interfacer/XMLInterfacer.php | UTF-8 | 14,895 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Comhon package.
*
* (c) Jean-Philippe <jeanphilippe.perrotton@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Comhon\Interfacer;
use Comhon\Exception\ArgumentException;
us... | true |
eed4474accc84c867f5641a5823c2f95bd601848 | PHP | Evg127java/PHP-course | /level2/back/api/v3/register.php | UTF-8 | 660 | 2.78125 | 3 | [] | no_license | <?php
/**
* Registers a user if it is valid
*/
require_once __DIR__ . '/dbConnection.php';
require_once __DIR__ . '/headers.php';
require_once __DIR__ . '/functions.php';
require_once __DIR__ . '/constants.php';
$data = getInputData();
/* Get a PDO connection instance */
$pdo = connection();
/* Get user data fr... | true |
31220cfbbe722585fc176bc0d29e28809e55ab34 | PHP | clearidea/neuron | /src/Parser/LastFirstMI.php | UTF-8 | 714 | 3.09375 | 3 | [] | no_license | <?php
namespace Neuron\Parser;
class LastFirstMI implements IParser
{
/**
* Parses Last, First M
*
* @param $Text
* @param array $Locations
* @return array first, middle, last
*
* @SuppressWarnings(PHPMD)
*/
public function parse($Text, $Locations = array() )
{
$aName = explode( ',', $Text );
... | true |
eaff4ac62e63c9f14ddb9652b9b6c4d685723ab8 | PHP | Cynda3/PHPBloque2 | /phpbloque1-master/3a.php | UTF-8 | 562 | 3.75 | 4 | [] | no_license | <!DOCTYPE html>
<head>
<title>Bloque1 PHP/3. Rango de edad</title>
<meta charset="utf-8">
</head>
<body>
<p>3. Dada una edad muestra el rango de valores en decenas entre las que se encuentra de 0 a 100.</p>
<?php
//Obtenermos la edad aleatoriamente
$e... | true |
24245eba7d12934bf94cce6edb0a303aa04b12e4 | PHP | adikhade4/php_first | /calculator/command/CalculatorCommand.php | UTF-8 | 1,683 | 2.90625 | 3 | [] | no_license | <?php
namespace calculator\command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Co... | true |
6af804d4122c11af213d9b2df3a250777741ebad | PHP | bloodycrow828/car_catalog | /console/migrations/m180406_175712_create_categories_table.php | UTF-8 | 1,509 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
use yii\db\Migration;
/**
* Handles the creation of table `categories`.
*/
class m180406_175712_create_categories_table extends Migration
{
public const TABLE_NAME = '{{%categories}}';
public function safeUp()
{
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
... | true |
5f40e075c6ac12fe1118354513f0cdb5e16fc0c9 | PHP | py7hon/CodeIgniter4 | /application/Config/Encryption.php | UTF-8 | 1,606 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* Encryption configuration.
*
* These are the settings used for encryption, if you don't pass a parameter
* array to the encrypter for creation/initialization.
*
*/
class Encryption extends BaseConfig
{
/*
|------------------------------------... | true |
94fe6256da9835c5b6b84f85638d99ac94a4ae51 | PHP | BanglaDashStudio/AQProject | /protected/views/game/_nowplayadmingrid.php | UTF-8 | 1,845 | 2.640625 | 3 | [] | no_license | <?php
?>
<div class="gridform" style="">
<form id="formforgrigform" action="<?php echo $this->createUrl('game/play'); ?>" method="post">
<?php
echo "<table border='1' style='border: solid'>";
echo "<tr>";
echo"<th>";
echo '~~~';
echo "</th>";
//заголовки - передать количество задан... | true |
8a4c16d43e644fa61d3a8319d3c72ec6703157c4 | PHP | Ashotovich1990/algorithms | /leetCode/searchTreePaths.php | UTF-8 | 543 | 2.9375 | 3 | [] | no_license | class Solution {
/**
* @param TreeNode $root
* @return String[]
*/
function binaryTreePaths($root, $path="") {
$res = [];
if (!$root) return $res;
$path .= strlen($path) ? "->$root->val" : "$root->val";
if (!$root->left && !$root->right) {
array_push($res, $path);
return $res;
}... | true |
22ff577013e3580f4c1bb64d9cf4239cf3794803 | PHP | Kaggggggga/test03 | /app/Exceptions/Interfaces/ExternalAbleException.php | UTF-8 | 159 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Exceptions\Interfaces;
interface ExternalAbleException
{
public function externalMessage();
public function httpStatusCode();
} | true |
3ba146444eee95721b96b4242244e2bac098a670 | PHP | tp-igll/tp_final | /app/Http/Requests/EtudiantRequest.php | UTF-8 | 2,233 | 2.90625 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class EtudiantRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get t... | true |
2a805dc5a1fe90cf906f5d0932aca4db5edec244 | PHP | davidjoan/datasolutions | /lib/model/doctrine/NewsTable.class.php | UTF-8 | 1,121 | 2.640625 | 3 | [] | no_license | <?php
/**
* NewsTable
*
* This class has been auto-generated by the Doctrine ORM Framework
*/
class NewsTable extends DoctrineTable
{
/**
* Returns an instance of this class.
*
* @return object NewsTable
*/
public static function getInstance()
{
return Doctrine_Core::getTab... | true |
1889eaa8fbcf6eb8ca0467b2dede702602c96315 | PHP | leBlanko/malfoyRep | /vignette.jpg.php | UTF-8 | 800 | 2.78125 | 3 | [] | no_license | <?php
//valeur a modifier si on veux changer la taille de l image affichee
$widthCourant=200;
//on recupere l'id ainsi que le chemin
$id= $_GET['id'];
$chemin=dirname(__FILE__).'/data/img/'.$id.'.jpg';
//creer une nouvelle image a partir de celle choisie
$ImageChoisie=imagecreatefromjpeg($chemin);
//Cal... | true |
df8a4bae3d4b8c7fefc47964090e1d9ab81f83c0 | PHP | engegraph/simplemvc | /core/services/validation/Validator.php | UTF-8 | 1,746 | 2.515625 | 3 | [] | no_license | <?php namespace Core\Services\Validation;
use Core\Orm;
use Doctrine\Common\Inflector\Inflector;
class Validator
{
private static $instance = null;
public static function __callStatic($name, $arguments)
{
$validate = self::init();
if(method_exists($validate, $name))
return cal... | true |
42a1e77d74bc2d4b54475886a690afe578b59ed6 | PHP | dame620/argentapi | /src/DataPersister/UserDataPersister.php | UTF-8 | 1,663 | 2.671875 | 3 | [] | no_license | <?php
namespace App\DataPersister;
use App\Entity\Compte;
use App\Repository\ContratRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;... | true |
81094cd76cc3ce38dddd2ddd0e929f99b6357edc | PHP | maxbesner/C_C_Companion | /test/JSONTest.php | UTF-8 | 1,638 | 3.140625 | 3 | [] | no_license | <?php
include_once ($_SERVER['DOCUMENT_ROOT'].'/C&C_Companion/pages/cards/Card.php');
use PHPUnit\Framework\TestCase;
class JSONTest extends TestCase
{
protected $cards;
function setUp(){
$this->cards = Card::loadCardsFromFile();
}
function testMakeJSON(){
//The directory of the... | true |
b445abb339fedda7d348e127ba30a5cc4c5fe641 | PHP | matt-daneshvar/laravel-survey | /src/Models/Survey.php | UTF-8 | 3,585 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace MattDaneshvar\Survey\Models;
use Illuminate\Database\Eloquent\Model;
use MattDaneshvar\Survey\Contracts\Entry;
use MattDaneshvar\Survey\Contracts\Question;
use MattDaneshvar\Survey\Contracts\Section;
use MattDaneshvar\Survey\Contracts\Survey as SurveyContract;
class Survey extends Model implements Su... | true |
515f8b6f34fe88040564cbda4e0c5e029d734475 | PHP | laurensmertens/EMSCoreBundle | /src/Repository/TemplateRepository.php | UTF-8 | 2,653 | 2.546875 | 3 | [] | no_license | <?php
namespace EMS\CoreBundle\Repository;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use EMS\CoreBundle\Entity\ContentType;
use EMS\CoreBundle\Entity\Template;
class TemplateRepository extends ServiceEntityRepository
{
public function __co... | true |
e2b863b137b5a05e4cd1ae14d4889fbf6da93d1d | PHP | nehlsen/fdadsb | /src/Fda/TournamentBundle/Entity/Leg.php | UTF-8 | 5,745 | 2.734375 | 3 | [] | no_license | <?php
namespace Fda\TournamentBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Fda\PlayerBundle\Entity\Player;
/**
* @ORM\Entity
*/
class Leg
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\Gener... | true |
2fbc49fa06541dbd455fdae6ad12de9ab136127c | PHP | marcosremar/sincloud-crud | /models/FormacaoAcademica.php | UTF-8 | 348 | 2.671875 | 3 | [] | no_license | <?php
class FormacaoAcademica
{
public $id;
public $descricao;
public static function all()
{
$db = DatabaseConnection::getInstance();
$pdo = $db->getConnection();
$sql = 'SELECT * FROM formacao_academicas';
$stmt = $pdo->prepare($sql);
$stmt->execute();
... | true |
2347beb65ca2d3f97892ca126a6e1337eb369bfd | PHP | esensi/model | /src/Contracts/RelatingModelInterface.php | UTF-8 | 576 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace Esensi\Model\Contracts;
/**
* Relating Model Interface.
*
*/
interface RelatingModelInterface
{
/**
* Return the relationship configurations.
*
* @param string $name of related model
*
* @throws Illuminate\Database\Eloquent\ModelNotFoundException
*
* @return ... | true |
e8642e6384b15dc7bb242217dcf6f51146579b00 | PHP | Piett-rm/Projet-Poin | /confirmation.php | UTF-8 | 1,266 | 2.59375 | 3 | [] | no_license | <?php
session_start(); //pour demarrer la session
// si l utilisateur clique sur se deconnecter alors on detruit la session et on efface la varible $_SESSION
if (isset($_GET['logout'])) {
if ($_GET['logout'] == "1") {
session_destroy();
unset($_SESSION);
}
}
?>
<!DOCTYPE html>
<html lang="fr">... | true |
7244740d5bc5af3677e0e9409e1efac91b27d2b6 | PHP | hmorv/PHP-Patterns | /structural/adapter/src/iVehicle.php | UTF-8 | 95 | 2.75 | 3 | [] | no_license | <?php namespace App;
interface iVehicle
{
public function start();
public function park();
} | true |
e492ec4cd848ff6db9abddb99a1064348388bc40 | PHP | brunocaramelo/library_api | /application/app/Domain/Authors/Services/AuthorService.php | UTF-8 | 2,218 | 2.84375 | 3 | [] | no_license | <?php
namespace App\Domain\Authors\Services;
use App\Domain\Authors\Validators\AuthorValidator;
use App\Domain\Authors\Exceptions\AuthorEditException;
use App\Domain\Authors\Exceptions\AuthorNotFoundException;
use App\Domain\Authors\Entities\AuthorEntity;
use App\Domain\Authors\Repositories\AuthorRepository;
use App\... | true |
ede490b6bacfba1f42be503281ac212f58930da0 | PHP | JohnDaniels30/themarket | /brands/delete.php | UTF-8 | 406 | 2.59375 | 3 | [] | no_license | <?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require_once "$root/parts/db-connection.php";
function deleteBrand($id)
{
global $conn;
$sql = "DELETE FROM brands WHERE id='$id'";
$conn->query($sql);
$conn->close();
}
if ($_SERVER["REQUEST_METHOD"] == "GET" && isset($_GET["id"])) {
delet... | true |
191d52fd261fb905d2de410c1002f4ee8ad38acd | PHP | Lyncros/ok_legacy | /test/clases/class.contratovencimiento.php | UTF-8 | 3,710 | 2.90625 | 3 | [] | no_license | <?php
class Contratovencimiento {
private $id_venc;
private $id_prop;
private $id_contrato;
private $tipo_venc;
private $id_improp;
private $fec_ven;
private $importe;
private $fec_carga;
private $observacion;
private $pagado;
public function __construct($id_venc = 0, ... | true |
45ec400b72be3d65699d752fbe026607f5a73ae6 | PHP | rehfeldchris/wowarmory | /AchievementListParser.php | UTF-8 | 1,468 | 3.125 | 3 | [] | no_license | <?php
/**
* Parses the json text for an achievement list,
* providing the list of achievements that characters may obtain
*
* this class is a dupe that will be removed soon.
*/
class AchievementListParser extends WowApiJsonProcessor
{
/**
* Provides an array arrays. Each subarray represents the info for... | true |
6179d9f23d970e56cd2aac48f22fe2e771b6242a | PHP | SistemasRFC/inpla | /Model/Banco/BancoModel.php | UTF-8 | 1,408 | 2.515625 | 3 | [] | no_license | <?php
include_once("Model/BaseModel.php");
include_once("Dao/Banco/BancoDao.php");
include_once("Resources/php/FuncoesArray.php");
class BancoModel extends BaseModel
{
public function BancoModel() {
If (!isset($_SESSION)){
ob_start();
session_start();
}
}
Public Func... | true |
6c464abe30bb8a0b6696990d975778544bb49619 | PHP | Algo-Web/xsdTypes | /tests/unit/xsIntegerTest.php | UTF-8 | 1,963 | 2.78125 | 3 | [] | no_license | <?php
namespace AlgoWeb\xsdTypes;
/**
* Generated Test Class.
*/
class xsIntegerTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider testxsIntegerValidDataProvider
* @param mixed $input
* @param mixed $message
* @param mixed $expected
*/
public function testxsIntegerValid... | true |
351169c055549df835c44658bb4a02ce6359e0d1 | PHP | OskarStark/continuouspipe | /api/src/ContinuousPipe/Builder/Logging.php | UTF-8 | 549 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace ContinuousPipe\Builder;
class Logging
{
/**
* @var LogStreamLogging
*/
private $logStream;
/**
* @param LogStreamLogging $logStreamLogging
*
* @return Logging
*/
public static function withLogStream(LogStreamLogging $logStreamLogging)
{
$loggi... | true |
adc05f5e4caf6dfd3e6ad2cece87ff448ae3f088 | PHP | ECPay/SDK_PHP | /src/Request/Request.php | UTF-8 | 665 | 2.90625 | 3 | [] | no_license | <?php
namespace Ecpay\Sdk\Request;
use Ecpay\Sdk\Services\ArrayService;
use Ecpay\Sdk\Interfaces\Request\RequestInterface;
class Request implements RequestInterface
{
/**
* 取得 Request
*
* @param array $source
* @return mixed
*
* @throws RtnException
*/
pub... | true |
0b99311c956754f8cba7553ca263eb2d7f77b88f | PHP | marking587/bookstore | /soa/soa_client.php | UTF-8 | 2,818 | 2.734375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: robertkestel
* Date: 01.02.17
* Time: 12:14
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OnlineShop - Book Orders (Client)</titl... | true |
e71d1f807925b708aa102fe3a9abe30523c05f36 | PHP | gagnonconsulting/PMBus | /includes/custom_meta_fields/company_external_url.php | UTF-8 | 1,880 | 2.625 | 3 | [] | no_license | <?php
function external_url_taxonomy_add_new_meta_field() {
// this will add the custom meta field to the add new term page
?>
<div class="form-field">
<label for="term_meta[custom_term_meta]"><?php _e( 'External URL:', 'external_url' ); ?></label>
<input type="text" name="term_meta[custom_term_meta]" id... | true |
c52bb72e8a338b61e2b3624b9eb1d33a03082dcd | PHP | notism/php_stu_pj | /api/userManagement/delete.php | UTF-8 | 1,078 | 2.671875 | 3 | [] | no_license |
<?php
session_start();
include('../../config/connect.php');
// variable declaration
$username = "";
$email = "";
$role = "";
$errors = array();
$_SESSION['success'] = "";
// connect to database
// ADD USER
if (isset($_POST['delete_user'])) {
// receive all input values from the form
$userId... | true |
8339419e63dff8653b60e997d950d1da769085dd | PHP | stillzhoushuai/RNA | /Application/Admin/Model/LiverModel.class.php | UTF-8 | 4,034 | 2.640625 | 3 | [] | no_license | <?php
//命名空间
namespace Admin\Model;
use Think\Model;
import("ORG.Util.Page");
class LiverModel extends Model{
//添加时调用create方法允许接收的字段
protected $insertFields = 'chr,rna_editing_location,rna_editing_type,pre_base,now_base,sum_bases,reads_editing_rate,sample,add_time,adipose_desc,tissue_id';
//修改时调用create方法允许接受的字段
pro... | true |
2fbd53f3e0797e856592cf1f0375a2db98035fdf | PHP | leo108/crop_wechat | /src/CorpWeChat/Response/Tag/ModifyResponse.php | UTF-8 | 1,136 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: chenyihong
* Date: 16/8/9
* Time: 12:42
*/
namespace Leo108\CorpWeChat\Response\Tag;
use Leo108\CorpWeChat\Response\JsonResponse;
/**
* Class ModifyResponse
* @package Leo108\CorpWeChat\Response\Tag
*/
class ModifyResponse extends JsonResponse
{
protected static $... | true |
3ea9efd00b8ba59929db380ed3d4f5e92e419d53 | PHP | pti-afp-g1/tanuloszoba | /Src/components/Game.php | UTF-8 | 2,150 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
namespace app\components;
use app\models\CardPair;
use yii\base\InvalidArgumentException;
use yii\db\Expression;
class Game {
protected $secretDeck = [];
protected $publicDeck = [];
protected $cardPairs;
public function __construct($size = 6) {
$this->setCardPairs($size);
$th... | true |
c98a15e113c671610a6ac0131f069cc1b2836fb2 | PHP | Diego-Veiga-Steinmetz/ProgamacaoWeb | /ListaL2/exerc4/exerc4.php | UTF-8 | 1,166 | 3.390625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<title> Programação Web com PHP </title>
<link rel="stylesheet" href="formata-formulario.css">
</head>
<body>
<h1> Cálculo de médias com vetores em PHP - resposta da aplicação </h1>
<?php
$aluno1 = $_POST['nome1'];
$aluno2 = $_PO... | true |
afef0fa9e0bf4ce6109381bd4d4d8bca9383c6f4 | PHP | adelou/cmf-orchestra | /vendor/Orchestra/PiApp/AdminBundle/Util/PiJquery/PiOrgChartPageManager.php | UTF-8 | 11,033 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the <Admin> project.
*
* @category Admin_Util
* @package Extension_jquery
* @author Etienne de Longeaux <etienne.delongeaux@gmail.com>
* @since 2012-01-11
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this sou... | true |
45834ec8f41683242accd2f6b347b39a1ad145d9 | PHP | TuNQuang/final | /include/process-create.php | UTF-8 | 2,629 | 2.78125 | 3 | [] | no_license | <?php
function convert_vi_to_en($str)
{
$str = preg_replace("/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/", "a", $str);
$str = preg_replace("/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/", "e", $str);
$str = preg_replace("/(ì|í|ị|ỉ|ĩ)/", "i", $str);
$str = preg_replace("/(ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ)/", "o", $str);
$str... | true |
348e731574f5b02593ef2b3ba9eb673832fd0319 | PHP | rsooo/MiscProgram | /Gmacha/php/chatroom.php | SHIFT_JIS | 2,971 | 2.640625 | 3 | [] | no_license | <?php
// PHP 4.0.6ȑȌꍇ$HTTP_SESSION_VARSgpĂ
session_start();
if (!isset($_SESSION['count'])) {
$response = 'sȃANZX';
print mb_convert_encoding($response, 'utf8', 'sjis-win');
} else {
$_SESSION['count']++;
//print $_SESSION['user_name'];
//print $_SESSION['count'];
$_POST['ID'];
$_POST['LATITUDE'];
$_POST['LONGITUD... | true |
39e22e840fa3e03fc65d2b8b21609ed0f7630694 | PHP | sangbima/yii2-book-id | /sources/13/C.3.2.php | UTF-8 | 821 | 2.515625 | 3 | [
"CC0-1.0"
] | permissive | <!DOCTYPE html>
<html>
<head>
<title>Data Category</title>
<style type="text/css">
.page{padding:2cm;}
table{border-spacing:0;border-collapse: collapse;width:100%;}
table td, table th{border: 1px solid #ccc;}
</style>
</head>
<body>
<div class="page">
<h1>Data Category</h1>
... | true |
759a12e2ba56d54cf8f2338444780204a49954a1 | PHP | vitagon/comments-service-layer | /src/CurlRequest.php | UTF-8 | 2,009 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace VitGon\CommentsServiceLayer;
use VitGon\CommentsServiceLayer\HttpRequest;
class CurlRequest implements HttpRequest
{
private $handle = null;
private $params = [];
private $type;
private $url;
public function __construct() {
}
public function init() {
$this->handle = curl_init();... | true |
fbfce4197a55e19f0f59cee8639ac5856eaebb3d | PHP | istheweb/iscorporate | /listeners/IssueWasClosedEmail.php | UTF-8 | 934 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: andres
* Date: 16/01/17
* Time: 17:48
*/
namespace istheweb\iscorporate\listeners;
use Illuminate\Mail\Mailer;
use Istheweb\IsCorporate\Models\Issue;
class IssueWasClosedEmail
{
/**
* @var Mailer
*/
private $mailer;
/**
* @param Mailer $mailer... | true |
94fd428bf007a233f44fcd2cc74c7d49ad6c3778 | PHP | matry-ny/mainacad_001 | /app/models/User.php | UTF-8 | 971 | 3.03125 | 3 | [] | no_license | <?php
namespace models;
use components\AbstractModel;
use components\App;
/**
* Class User
* @package models
*
* @property int id
* @property string login
* @property string password
* @property string directory
*/
class User extends AbstractModel
{
/**
* @return string
*/
protected functio... | true |
3818abda9545780a12b29d20220540cd8cdd6686 | PHP | aradvari/aradvarirepo | /models/BankTranzakciok.php | UTF-8 | 2,270 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "bank_tranzakciok".
*
* @property integer $id_bank_tranzakcio
* @property integer $id_megrendeles_fej
* @property integer $id_giftcard
* @property integer $id_felhasznalo
* @property string $datum
* @property string $ip_cim
* @prop... | true |
8f01f1b5c1ffdbbccb8425bc541a76fb3efe1f40 | PHP | asma1329/Users | /update.php | UTF-8 | 2,320 | 2.78125 | 3 | [] | no_license | <?php
require 'connect.php';
$id = $_GET['id'];
$sql = 'SELECT * FROM utilisateurs WHERE id=:id';
$statement = $connection->prepare($sql);
$statement->execute([':id' => $id ]);
$person = $statement->fetch(PDO::FETCH_OBJ);
if (isset ($_POST['nom']) && isset($_POST['prenom']) && isset($_POST['age'])) {
$nom = $_POST['... | true |
ed93e0b5571f416ebc0922d59e7bb15a245b3bb9 | PHP | zerolugithub/shangcheng | /Application/Admin/Model/AdminModel.class.php | UTF-8 | 4,628 | 2.59375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: zhf
* Date: 2017.06.23
* Time: 19:27
*/
namespace Admin\Model;
use Think\Model;
class AdminModel extends Model
{
//登陆要求:
//1.用户名不能为空
//2.密码不能为空
//3.验证码不能为空
//实现动态验证登陆表单信息
public $_login_validate = array(
array('admin_name' , 'require' , '用户... | true |
0d6b1211c20de3f80e9b10e6215b01d57cfeec91 | PHP | jiangzhengjie11/jzj | /array/arrayExercise.php | UTF-8 | 6,244 | 3.75 | 4 | [] | no_license | <?php
class exerciseFive
{
function autoTransformOne()
{
$str1 = null;
$str2 = false;
return $str1 == $str2 ? '相等' : '不相等';
}
function autoTransformTwo()
{
$str3 = '';
$str4 = 0;
return $str3 == $str4 ? '相等' : '不相等';
}
function autoTransformThree()
{
$str5 = 0;
$str6 = '0';
return $str5 == ... | true |