text stringlengths 2 1.03M |
|---|
<?php
if (!defined('W3TC')) {
die();
}
class Minify_Inline_CSS extends Minify_Inline {
public static function minify($content, $minifier, $options = array()) {
$inline = new self;
$inline->setTag('style');
$inline->setMinifier($minifier);
$inline->setMinifierOptions(... |
<?php
abstract class fail {
abstract function show();
}
class pass extends fail {
function show() {
echo "Call to function show()\n";
}
}
$t2 = new pass();
$t2->show();
$t = new fail();
$t->show();
echo "Done\n"; // shouldn't be displayed |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class SportsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
*... |
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/bootstrap.min.css">
<lin... |
<?php
namespace App\Http\Controllers;
use App\Answer;
use Illuminate\Http\Request;
class VoteAnswerController extends Controller
{
//
public function __construct()
{
$this->middleware('auth');
}
public function __invoke(Answer $answer)
{
$vote = (int) request()->vote;
... |
<?php
namespace app\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Business;
/**
* BusinessSearch represents the model behind the search form of `app\models\Business`.
*/
class BusinessSearch extends Business
{
/**
* {@inheritdoc}
*/
public function rules()
{
... |
<?php
namespace App\Entity;
use App\Repository\VisitasRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=VisitasRepository::class)
*/
class Visitas
{
/**
* @ORM\Id
* @ORM\Column(type="string", length= 16)
*/
private $ip;
/**
* @ORM\Id
* @ORM\Column... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Categorias extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the mi... |
<?php
/**
* Created by PhpStorm.
* User: Арсен
* Date: 31.10.2017
* Time: 19:30
*/
namespace Viper\Core\Routing\Methods;
use Viper\Core\Viewable;
interface PUT extends Method
{
public function put(...$args): ?Viewable;
} |
<?php
namespace Tests\Combined\Html;
require __DIR__ . '../../../../vendor/autoload.php';
use DBlackborough\Quill\Render as QuillRender;
/**
* Header tests
*/
final class HeaderTest extends \PHPUnit\Framework\TestCase
{
private $delta_header_then_text = '{"ops":[{"insert":"This is a heading"},{"attributes":{"... |
<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
final class User extends Authenticatable
{
use HasFactory;
use Notifiable;
/**
* The attribut... |
@extends('layouts.app1')
@section('content')
<section class="js-breadcrumb-area">
<div class="container">
<div class="row d-flex align-items-center">
<div class="col-md-12 text-center has-color">
<div class="js-breadcrumb-content">
<h2>Video Gallery</h2>
</div>
... |
<!--
References that helped in the development of this application:
https://www.pushpendra.net/how-to-make-a-blog-in-codeigniter/
-->
<?php
class Categories extends CI_Controller{
public function index(){
$data['title'] = 'Categories';
$data['categories'] = $this->category_model->get_categories();
$... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\Client;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Validator;
use Illuminate\Support\Facades\Hash;
class ClientController extends Controller
{
public $successStatus = 200;
p... |
<?php
namespace Drupal\media_entity\Tests;
use Drupal\media_entity\Entity\MediaBundle;
/**
* Provides common functionality for media entity test classes.
*/
trait MediaTestTrait {
/**
* Creates media bundle.
*
* @param array $values
* The media bundle values.
* @param string $type_name
* (... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
@extends('main')
@section('title',"| Edit Internals")
@section('stylesheet')
{!! Html::style('css/parsley.css') !!}
@stop
@section('content')
<div class="row">
<div class="col-md-8 col-md-offset-2">
{!!Form::model($internal,['route'=>['internals.update',$internal->id],'method'=>'put','data-parsley-validate'=>''])!!}
... |
@extends('layouts.admin2')
@section('content')
<div class="col-lg-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<h4 class="card-title">Show Company # {{ $company->id }}</h4>
<p class="card-description">
Company
</p>
<div class='row'>... |
<?php return function ($in) {
$cx = Array(
'flags' => Array(
'jstrue' => true,
'jsobj' => true,
),
'scopes' => Array($in),
'path' => Array(),
);
return ''.LCRun::ifv('empty', $cx, $in, function($cx, $in) {return '
';}, function($cx, $in) {return '
'.... |
<?php
class Util {
public static function convertirTiempo($tiempo) {
$elementos = explode(':', $tiempo);
$texto = '';
if ($elementos[0] != '00') {
$texto = $texto . "$elementos[0] h ";
}
if ($elementos[1] != '00') {
... |
<div class="layout-content">
<div class="layout-content-body">
<style>
.center {
text-align: center;
}
.modal-dialog-account {
margin:auto;
margin-top:7%;
}
.form-group {
margin-bottom: 5px;
}
.input-with-icon {
margin-bottom: 5px;
}
.input-with-icon .form-contro... |
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceP... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "cm_branchmst".
*
* @property integer $id
* @property string $branch_code
* @property string $branch_name
* @property string $currency
* @property string $exchange_rate
* @property string $contact_person
* @property string $designa... |
@extends('adminlte::page')
@section('title', 'Dinar Sport')
@section('content_header')
<h1>Pengelolaan Barang</h1>
@stop
@section('content')
<div class="container">
<div class="row justifly-content-center">
<div class="col-md-12">
<div class="card">
<di... |
<style type="text/css">
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
td.details-control {
background: url('../resources/details_open.png') no-repeat center center;
cursor: pointer;
}
tr.shown td.details-control {
background: url('../resources/details_close.p... |
<?php
function debug($obj){
echo "<pre>";
print_r($obj);
}
?> |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "categoria".
*
* @property integer $id
* @property string $categoria
* @property string $seo_slug
* @property string $imagen
* @property integer $created_by
* @property string $created_at
* @property integer $updated_by
* @pro... |
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\Review;
use Commercetools\Api\Models\Review\ReviewUpdateActionCollection;
use Commercetools\Exception\InvalidArgumentException;
use stdClass;
/**
* @extends ReviewUpdateActionCollecti... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return response('The Api is working okay');
});
Route::group(['prefix' => "auth"], function () {
Route::post('login', 'UserController@login');
Route::post('register', 'UserController@register');
});... |
<?php
/**
* Yasmin
* Copyright 2017-2019 Charlotte Dunois, All Rights Reserved
*
* Website: https://charuru.moe
* License: https://github.com/CharlotteDunois/Yasmin/blob/master/LICENSE
*/
namespace CharlotteDunois\Yasmin\WebSocket\Events;
use CharlotteDunois\Collect\Collection;
use CharlotteDunois\Yasmin\Client;... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Createtable extends CI_Model{
private $table_name;
private $target_table;
private $row_table;
private $table_location;
private $option_delete;
private $option_update;
private function config_csrf(){
$htm... |
<style>
.alert-info{
background: #2ea2dc;
color: #fff;
}
</style>
@if($errors->any())
<ul class="alert alert-danger" style="list-style: none;">
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
@endif
<div class="flash-message">
... |
<?php
/**
* Created by PhpStorm.
* User: MainUser
* Date: 17/9/2560
* Time: 14:08
*/
namespace app\modules\eproject\components;
use yii\httpclient\Client;
class ElasticHelper
{
private static function analyze($text){
// $segment = new Segment();
// $result = $segment->get_segment_array($text);
... |
<?php
use common\base\MultiModel;
use trntv\filekit\widget\Upload;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\web\JsExpression;
$model = new MultiModel([
'models' => [
'data' => new \yii\base\DynamicModel([
'image', 'title', 'subtitle', 'fake'
]),
]
]);
$model = $model->getModel('data');
$d... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLevelActivityExecutionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(... |
<?php namespace App\Http\Requests;
use App\Http\Requests\Request;
class WebsitesRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
... |
<?php
namespace Facturas\FacturasBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this... |
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromCollection;
use Illuminate\Support\Facades\DB;
class Rekap_kpp_per_kabupaten implements FromCollection
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return DB::table('kpp_data_view')->groupB... |
<?php
declare(strict_types=1);
namespace App\Service\Statistics\OnlineUsers\Add;
use App\Entity\Statistics\OnlineUsers;
use App\Repository\Statistics\OnlineUsersRepository;
class Handler
{
/** @var OnlineUsersRepository */
private $onlineUsersRepository;
public function __construct(OnlineUsersReposito... |
<?php
$get= $menu;
?>
<div class="modal fade" id="modsub" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><b>Sub Menu (<?php echo $get->nama_menu; ?>)</b></h5>
<div class="float-rig... |
<?php
namespace App\Http\Controllers\Api\Auth;
use App\Http\Controllers\Controller;
use App\Http\Requests\ForgotPasswordRequest;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
class ForgetPasswordController extends Controller
{
public function sendResetLinkEmail(ForgotPasswordRequest $re... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Logger;
use Monolog\Logger;
class Monolog extends Logger
{
/**
* {@inheritdoc}
*/
public function __construct($name, array $handlers = [], array $processors = [])
... |
@extends('layouts.main')
@section('header')
<link rel="stylesheet" href="{{ asset('assets/backend/css/app-todo.min.css') }}">
<style>
.modal-dialog {
overflow-y: initial !important
}
.modal-body {
height: 80vh;
overflow-y: auto;
}
</styl... |
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>Metronic Admin Theme #1 | Admin Dashbo... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\ActivityLog;
use App\User;
use App\Setting;
use Auth;
use DataTables;
use DateTime;
class SettingController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
pub... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>404 Page not found</title>
<style>
body {
margin: 0;
padding: 0;
... |
<?php
include("config.php");
include("database.php");
session::check("login");
if(isset($_POST['login'])){
$u = mysqli_real_escape_string($cn, $_POST['user']);
$p = mysqli_real_escape_string($cn,$_POST['pass']);
$sql = "SELECT * FROM login WHERE user = '$u' AND pass = '$p'";
$run = mysq... |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... |
<!DOCTYPE html>
<html lang="en">
<head>
@include('inc.header')
</head>
<body class="contact-page">
<!-- ============== Navbar =============== -->
@extends('inc.navbar')
<!-- ============= End Navbar =============== -->
<div class="wrapper">
<div class="page-header header-filter contactus-3">
<!-... |
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$admin = new User();
$admin->name = "... |
<?php
namespace App\Http\Controllers\API\Admin;
use App\Http\Controllers\API\ApiHome;
use App\Http\Requests\BackEnd\Categories\Store;
use App\Http\Requests\BackEnd\Categories\Update;
use App\Http\Resources\Categories\CategoryFullDetaillResouce;
use App\Http\Resources\Categories\CategoryResource;
use App\Models\Cate... |
<?php
namespace Tests\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
class WorkersListsTest extends DuskTestCase
{
public function testIndex()
{
$admin = \App\User::find(1);
$this->browse(function (Browser $browser) use ($admin... |
<?php
namespace Saklient\Cloud\Errors;
require_once __DIR__ . "/../../../Saklient/Errors/HttpConflictException.php";
use \Saklient\Errors\HttpConflictException;
require_once __DIR__ . "/../../../Saklient/Util.php";
use \Saklient\Util;
/** 要求された操作を行えません。このテンプレートは不完全です。複製処理等の完了後に再度お試しください。 */
class TemplateIsIncomplet... |
<?php
namespace App\Http\Controllers\admin;
use App\Models\User;
use App\Models\Plane;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
class UsuariosController extends Controller
{
public function detalleplan($id, $planid)
{
$usuario=User::find($id... |
<?php
declare(strict_types=1);
/**
* /tests/Unit/Utils/JSONTest.php.
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@protacon.com>
*/
namespace App\Tests\Unit\Utils;
use App\Utils\JSON;
use Generator;
use JsonException;
use stdClass;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use function is_array;
... |
<?php
class WxxcxTest extends TestCase
{
protected $wxxcx;
public function setUp()
{
parent::setUp();
// config
$config = [
'appid' => 'wx4f4bc4dec97d474b',
'secret' => 'tiihtNczf5v6AKRyjwEUhQ==',
'code2session_url' => "https://api.weixin.qq.co... |
<?php
namespace core\Commands;
use core\Bases\Command as BaseCommand;
use core\Utils\Template;
/**
* Configuration commands.
*/
class Config extends BaseCommand
{
/**
* @var string Path to config file
*/
public const FILE = PATH_BASE . "config.json";
/**
* @var string Path to example c... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>CRUD WITH JTABLE</title>
<!-- js Jquery dan Jquery-ui -->
<script src='<?php echo base_url();?>assets/js/jquery.js'></script>
<script src='<?php echo base_url();?>assets/jquery-ui/jquery-ui.js'></script>
<!-- css jquery-ui -->
<link href='<?ph... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\semester;
use App\jurusan;
class FormmahasiswaServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
view()->composer('mahasiswa.form', func... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/**
* Model clientes
*/
class clientes_model extends CI_Model
{
//listar clientes
public function getClientes()
{
return $this->db->get('cliente')->result();
}
//Adiconar um cliente.
public function doInsert($dados=NULL){
if(is_array($d... |
@extends('adminlte::layouts.landing')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.thoitrangcongso-damnu') }}
@endsection
@section('thoitrangcongso-damnu')
<div class="parallax">
<div class="container-fluid">
<div class="navbar navbar-default" role="navigation">
<div class="container" style... |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://... |
<?php namespace app\admin\controller;
class Tag extends Common
{
protected $db;
//自动加载函数
public function __init()
{
$this->db = new \system\model\Tag();
}
//动作
public function index()
{
//此处书写代码...
//获取数据
$data = Db::table('tag')->orderBy('tid','asc')-... |
<?php
namespace App\Http\Controllers;
use App\ModelAbono;
use App\ModelCuenta;
use Illuminate\Http\Request;
use Illuminate\Support\ViewErrorBag;
class AbonoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function inde... |
@extends('layouts.admin')
@section('title')
Permissions Management
@endsection
@section('content')
<div class="row">
<div class="col-lg-12">
<div class="card card-outline-success">
<div class="card-header">
<h4 class="user-registration"><i class="mdi mdi-accou... |
<?php
require_once(base_url().'/inc/database.class.php');
$resulte = database::Create(array('link'=>$link,'name'=>$_POST['name']));
if ($resulte) {
echo "Database ".$_POST['name']."created successfully\n";
} else {
echo "Error creating database \n";
}
timedRedirect("/home");
?> |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/*
* Class Home
* Класс модели домашней страницы
*
* @package App\models
*/
class Home extends Model
{
/*
* Название используемой базы данных
*
* @var string
*/
protected $table = 'home';
/*
* Список свойст... |
@extends('layout.auth')
@section('content')
<div class="card card-primary">
<div class="card-header">
<h4>Register</h4>
</div>
<div class="card-body">
<form method="POST" action="{{ route('auth.register.request') }}" class="needs-validation" novalidate="">
... |
<?php
/*
* This file is part of aakb/kontrolgruppen.
*
* (c) 2019 ITK Development
*
* This source file is subject to the MIT license.
*/
namespace App\DataFixtures;
use Kontrolgruppen\CoreBundle\Entity\ProcessStatus;
/**
* Class ProcessStatusFixture.
*/
class ProcessStatusFixture extends AbstractFixture
{
... |
<?php
declare(strict_types=1);
namespace Hyperf\ApiDocs\Swagger;
use Hyperf\ApiDocs\Annotation\ApiResponse;
use Hyperf\Di\MethodDefinitionCollectorInterface;
use Hyperf\Di\ReflectionType;
use Hyperf\DTO\Scan\ScanAnnotation;
use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerInterface;
class GenerateRes... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Employees extends Model
{
use HasFactory;
protected $fillable = ['email','name', 'age', 'salary', 'position', 'experience', 'joinDate', 'department_id'];
public function depar... |
<?php
/**
* Created by PhpStorm.
* User: wamobi10
* Date: 26/01/17
* Time: 09:46
*/
namespace AppBundle\Event;
use Symfony\Component\EventDispatcher\Event;
class VisitContactEvent extends Event
{
private $ip;
/**
* VisitContactEvent constructor.
*/
public function __construct()
{
... |
<?php
/*
* This file is part of the GraphAware Bolt package.
*
* (c) Graph Aware Limited <http://graphaware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PTS\Bolt\Protocol\Message;
use PTS\Bolt\Protocol\Constant... |
<?php
namespace JMS\Serializer\Tests\Fixtures;
use JMS\Serializer\Annotation as Serializer;
use JMS\Serializer\Annotation\Type;
class InlineChildWithGroups
{
/**
* @Type("string")
* @Serializer\Groups({"a"})
*/
public $a = 'a';
/**
* @Type("string")
* @Serializer\Groups({"b"})
... |
<?php
if(count($_FILES) > 0) {
if(is_uploaded_file($_FILES['userImage']['tmp_name'])) {
mysql_connect("localhost", "root", "");
mysql_select_db ("phppot_examples");
$imgData =addslashes(file_get_contents($_FILES['userImage']['tmp_name']));
$imageProperties = getimageSize($_FILES['userImage']['tmp_name']);
$sql =... |
<?php
namespace MiniTest\Models;
use Istruct\MultiInheritance\ModelsTrait;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class MiniTest extends Model implements Transformable
{
use TransformableTrait;
use ModelsTrait;... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... |
<?php
try {
$user = 'root';
$pass = '';
$conn = new PDO('mysql:host=localhost;dbname=sistema-gerencial', $user, $pass);
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
?> |
<?php
namespace App\Http\Controllers;
use App\Models\Student;
use App\Models\Classes;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Storage;
use Image;
class StudentController extends Controller
{
/**
* Display a listing of the resource.
*
* ... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a c... |
<?php
session_start();
include_once 'database/connect.php';
include_once 'functions/general.php';
include_once 'functions/errors.php';
if(isset($_FILES['image'])&& $_FILES['image']['size']>0)
{
$tmpName = $_FILES['image']['tmp_name'];
$fp = fopen($tmpName, 'rb');
}
try
{
$sql = $dbconn -> prepare("INSERT ... |
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">All Questions</div>
<div class="card-body">
@foreach($questions a... |
<?php
class SystemAuditTrailModel extends ORMSQLDatabaseModel
{
const AUDIT_TYPE_ADDED_DATA = 0;
const AUDIT_TYPE_UPDATED_DATA = 1;
const AUDIT_TYPE_DELETED_DATA = 2;
const AUDIT_TYPE_ROUTING = 4;
const AUDIT_TYPE_SYSTEM = 5;
private static $instance = false;
private static $dataModel;
... |
<?php
require_once "model".DIR."Category.php";
class Categorize extends Modules {
public function __init() {
$this->addAlias("metaWeblog_before_newPost", "metaWeblog_before_editPost");
}
static function __install() {
Category::install();
Group::add_... |
<?php
// Heading
$_['heading_title'] = 'Royal Mail';
// Text
$_['text_extension'] = 'Extensions';
$_['text_success'] = 'Success: You have modified Royal Mail shipping!';
$_['text_edit'] = 'Edit Royal Mail Shipping';
// Entry
$_['entry_rat... |
<?php
/*
* CKFinder
* ========
* http://cksource.com/ckfinder
* Copyright (C) 2007-2016, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifyi... |
@extends('master')
@section('content')
@include('errors.show')
@include('success')
<div class="card">
<div class="card-header">
<h2>{{ Auth::user()->name }}'s personal bank
<small>
<p>You can deposit your gold in the bank at a 80% ratio.</p>
... |
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +-----------------------------------------------... |
<?php /*e349acf6fdf3012bd107edc471de2183decfc1a2*/
/**
* @package GoodForNothing Classifieds
* @version 1.0.0 Alpha 2
* @since 1.0.0 Beta 7
* @author GoodForNothing Labs
* @copyright Copyright © 2012-2016 GoodForNothing Labs <https://gfnlabs.com/>
* @license https://gfnlabs.com/legal/license
... |
<!DOCTYPE html>
<html>
<head>
<?php include_once('templete/pub_head.php') ?>
</head>
<body>
<?php include_once('templete/menubar.php') ?>
<div class="container">
<!-- 面包屑导航 -->
<div class="breadcrumbs"><span>所在位置:</span><a href="/page/home">首页</a><em></em><a href="/page/shop_list">宠物店</a><em></em><span>花都宠物生活馆... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
<?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace JoliCode\Slack\Api\Model;
class GroupsLeavePostResponse200
{
/**
* @var bool
*/
protected $ok;
/**
* @return bool|null
*/
public function getOk(): ?bool
... |
<?php
namespace App\Providers;
use App\Repository\DoctorRepository;
use App\Repository\PatientRepository;
use App\Repository\PaymentRepository;
use App\Repository\ReceiptRepository;
use App\Repository\SectionRepository;
use App\Repository\AmbulanceRepository;
use App\Repository\InsuranceRepository;
use Illuminate\Sup... |
@extends('layouts.frontend')
@section('contenido')
<div id="breadcrumb">
<div class="container">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Examen</a></li>
<li>Pagar</li>
</ul>
</div>
</div>
<!-- /breadcrumb -->
<div class="container margin_60">
<div class="row">
<div... |
<?php
namespace BichoEnsaboado\Models;
use BichoEnsaboado\Models\User;
use BichoEnsaboado\Models\Treasure;
use BichoEnsaboado\Models\CostCenter;
use BichoEnsaboado\Models\CashBookMove;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Outlay extends Model
{
use SoftDelet... |
<?php
namespace app\helpers;
use Yii;
use \phpseclib\Crypt\AES;
class AesHelper
{
private static $aesKey = 'THISISAAESENCRYPTHELPERM';
public static function encrypt(string $string)
{
$cipher = new Aes(Aes::MODE_ECB);
$cipher->setKey(self::$aesKey);
return bin2hex($cipher->encry... |
@extends('layouts.app')
@section('title', 'Bienvenidos')
@section('content')
<div class="main main-raised" style="margin-top: 1em">
<div class="container">
<div class="section text-center">
<h2 class="title">Registrar Nuevo Producto</h2>
<hr>
<form method="post" action=... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', ... |
@extends('layouts.app')
@section('content')
<div class="container align-content-center alert border-0" role="alert">
<h4 class="alert-heading alert text-white home my-2">
<a class="text-white aa" href="{{ route('home') }}">Accueil</a> >
<a class="text-white aa" href="{{ route('Docume... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.