text stringlengths 2 1.03M |
|---|
<?php
namespace Book\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies... |
<?php
class Kindergarten_LanguageController extends Zend_Controller_Action {
public function init()
{
/* Initialize action controller here */
header('content-type: text/html; charset=utf8');
defined('BASE_URL') || define('BASE_URL', Zend_Controller_Front::getInstance()->getBaseUrl());
}
... |
@extends('Admin.layouts.app')
@section('title', 'Dashboard')
@section('content')
<!-- Container Fluid-->
<div class="container-fluid" id="container-wrapper">
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Product List</h1>
... |
<?php
session_start();
include 'allfunctions.php';
addtomycart();
?> |
<?php
include "navbar.php";
include '../conexao.php';
include "menu_admin.php";
$stmt = $db->prepare ("SELECT * FROM estudante WHERE id_estudante = ?");
$stmt->bindParam(1, $id);
$id=$_GET['id'];
$stmt->execute();
$estudante = $stmt->fetchAll(PDO::FETCH_OBJ);
$e = $estudante[0];
$id=$e->id_estudante;
$est... |
<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:73:"D:\phpStudy\WWW\toupiao\public/../application/index\view\kehu\doedit.html";i:1513514904;s:68:"D:\phpStudy\WWW\toupiao\public/../application/index\view\layout.html";i:1513257464;s:70:"D:\phpStudy\WWW\toupiao\public/../application/index\view\.\header.html";i:15135098... |
<?php
namespace Aws\CloudFront;
use Aws\AwsClient;
/**
* This client is used to interact with the **Amazon CloudFront** service.
*
* @method \Aws\Result createCloudFrontOriginAccessIdentity(array $args = [])
* @method \GuzzleHttp\Promise\Promise createCloudFrontOriginAccessIdentityAsync(array $args = [])
* @meth... |
<?php
/* @Twig/Exception/traces_text.html.twig */
class __TwigTemplate_094be123685833e2631a99a48f3c08f33be181bae5169d0cafd8068e0bd13d87 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... |
<?php
/**
* Created by PhpStorm.
*
* Kookaburra
* (c) 2020 Craig Rayner <craig@craigrayner.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* User: craig
* Date: 5/04/2020
* Time: 09:26
*/
namespace App\Manager;
/**
* In... |
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3><?= $title; ?></h3>
<br>
</div>
<div class="col-12 col-md-6 order-md-2 order-first">
<nav aria-label="breadcrumb" class='breadcrumb-header'>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>首页 - 统一开发平台 - UI库</title>
<meta name="description" content="This is page-header (.page-header > h1)" />
<meta name="viewport" content="width=device-width, initial-scale... |
<?php
// +----------------------------------------------------------------------
// | Library for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// |... |
--TEST--
swoole_async: parallel_read_copy_10m_file
--SKIPIF--
<?php require __DIR__ . '/../include/skipif.inc'; ?>
--FILE--
<?php
require __DIR__ . '/../include/bootstrap.php';
require __DIR__ . '/../include/api/swoole_async/read_write.php';
$chunk = 1024 * 512;
parallel_read_copy($chunk, 10);
?>
--EXPECT--
SUCCESS |
@extends('app')
@section('content')
<!--<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<... |
<?php
/**
* Class m190520_101310_modify_invoice_due_date_column
*/
class m190520_101310_modify_invoice_due_date_column extends \console\models\BaseMigration
{
public $tableName = '{{%invoice}}';
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->alterColumn($this->tableName,'i... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+----... |
<?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
*... |
<section class="page-description-big">
<div class="container">
<div class="row">
<div class="col-12">
<?php if (get_post_type() !== "competitions"): ?>
<h2 class="page-description-big__title">
<span class="t-underline-powder--alpha"><?php... |
<?php
use yii\helpers\Html;
use kartik\tabs\TabsX;
use yii\helpers\Url;
$items = [
[
'label' => '<i class="glyphicon glyphicon-book"></i> '. Html::encode('Grade'),
'content' => $this->render('_detail', [
'model' => $model,
]),
],
[
'label' => '<i class="gl... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-5">
<div class="card">
<div class="card-header pt-4 pb-4 text-center bg-success">
<a href="index.html">
<span><img src... |
@extends('app')
@section('content')
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.3.4.js"></script>
<div class="container">
<div class="row">
<div c... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChangbaPunchesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('changba_... |
<?php
/**
* SubjectLookupApi
* PHP version 5
*
* @category Class
* @package FrankHouweling\AzureDevOpsClient\Graph
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Graph
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-... |
<!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>Parte de Trabajo</title>
<style>
body{
margin: 0;
padding: 0;
... |
<?php
declare(strict_types = 1);
namespace LanguageDetection;
/**
* Class Trainer
*
* @copyright Patrick Schur
* @license https://opensource.org/licenses/mit-license.html MIT
* @author Patrick Schur <patrick_schur@outlook.de>
* @package LanguageDetection
*/
class Trainer extends NgramParser
{
/**
* G... |
<?php
/**
* Created by PhpStorm.
* User: bssdev
* Date: 24-May-19
* Time: 09:27
*/
class VideoController extends MY_Controller
{
protected $user;
public function __construct()
{
parent::__construct();
$this->load->model('category');
$this->load->model('useraccount');
... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\academica\models\InvDatosprof */
$this->title = 'Create Inv Datosprof';
$this->params['breadcrumbs'][] = ['label' => 'Inv Datosprofs', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="panel panel-d... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddDeviceName extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blu... |
<?php
/**
* This file is part of the netsuitephp/netsuite-php library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://g... |
<!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">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ co... |
@extends('layout')
@section('content')
<h1>All Cards Here!</h1>
@foreach($cards as $card)
<div><a href="/cards/{{ $card->id }}">{{ $card->title }}</a></div><br>
@endforeach
@stop |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRecibosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recibos', funct... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Auth;
use DB;
use DateTime;
use DatePeriod;
use DateInterval;
use Calendar;
use Carbon\Carbon;
use App\Http\Controllers\Controller;
use App\Question;
use App\UserInformation;
use App\QuestionOption;
use App\QuestionAnswer;
class HomeContro... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Taskrouter\V1\Workspace\Worker;
use Twilio\Options;
use Twilio\Values;
abstract class WorkerStatisticsOptions {
/**
* @param integer $minutes The minutes
* @param \D... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table... |
<?php
namespace ISIBundle\DataTransformer;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\Form\DataTransformerInterface;
class NumberIdTransformer implements DataTransformerInterface {
/**
* EntityManager pour récupérer nos entités
*/
private $manager;
/**
* Le nom ... |
<?php
namespace appLibros\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use Authorizes... |
<?php
use Database\Connection;
class Usuario {
private $idusuario;
private $nome;
private $email;
private $senha;
public function validarLogin(){
//CONEXAO AO BANCO E BUSCA DO EMAIL
$conn = Connection::getConn();
$sql = "SELECT * FROM ... |
<?php
class Sass
{
public static function collect()
{
require HLEB_GLOBAL_DIRECTORY . "/app/ThirdParty/scssphp/scss.inc.php";
$compiler = new ScssPhp\ScssPhp\Compiler();
$compiler->setOutputStyle(ScssPhp\ScssPhp\OutputStyle::COMPRESSED);
$putch = TEMPLATES . DIRECTORY_SEPARAT... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStudentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('students', function (Blueprint $table) {
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Description of Grocerycrud_item_type_model
*
* @author No-CMS Module Generator
*/
class Grocerycrud_item_type_model extends Grocery_crud_automatic_model{
public function __construct(){
parent::__construct();
}
} |
<?php
namespace App\Controller;
use App\Entity\Contact;
use App\Form\ContactType;
use App\Repository\ContactRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotatio... |
<?php
use Carbon\Carbon;
use PHPUnit\Framework\TestCase;
use NotifiUs\WCTP\DeliveryPriority;
use NotifiUs\WCTP\XML\MessageReply;
final class MessageReplyTest extends TestCase
{
public function testPlayground(): void
{
$messageReply = new MessageReply( 'token' ) ;
$xml = $messageReply
... |
@extends ('backend.layout.template')
@section ('body')
<div class="br-pagetitle">
<i class="icon ion-cube"></i>
<div>
<h4>Manage All Districts</h4>
<p class="mg-b-0">Manage all the district related information.</p>
</div>
</div>
<div class="br-pagebody">
<div class="row row-sm">
<div class="col... |
<?php
namespace App\Repositories;
use App\Models\BillLog;
use Validator;
class BillLogRepository extends BaseRepository{
public function __construct()
{
$this->model = new BillLog();
}
public $rule = [
'bill_sn' => 'required|between:5,20',
'date_time' => 'date',
// 'location' =>... |
<?php
namespace Germania\SwiftMailerCallable;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use Psr\Log\LoggerAwareInterface;
class SwiftMailerCallable implements LoggerAwareInterface
{
/**
* @var \Swift_Mailer
*/
public $mailer;
/**
* @var Callable
*/
public $message_fact... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Auth;
use App\Models\userrequest;
use App\Models\notification;
use Illuminate\Http\Request;
class requestController extends Controller
{
public function index()
{
return view("layout/requests");
}
public function postr()
{
... |
<?php
namespace App\Containers\User\UI\API\Requests;
use App\Ship\Parents\Requests\Request;
/**
* Class GetAuthenticatedUserRequest.
*/
class GetAuthenticatedUserRequest extends Request
{
/**
* Define which Roles and/or Permissions has access to this request.
*
* @var array
*/
protecte... |
<?php
namespace InepZend\Encryption\Util;
use Phar;
use InepZend\Exception\Exception;
use InepZend\Util\PhpIni;
use InepZend\Util\String;
use InepZend\Util\FileSystem;
/**
* Gerar .phar
*
* @package Encrypts
*/
class GenerateFilePhar
{
const PATH_DATA_PHAR = '/../../../../data/phar/';
/**
* Reali... |
<?php
/**
* Validate text input
*
* @param int Question ID
* @param text User-provided question data (in this case it is the text from the text input)
* @param array Question options
* @return array
*/
function vwm_text_validate($id, $input, $options)
{
// Min & max length options
$min_length = empty... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateTasksRequest;
use App\Http\Requests\UpdateTasksRequest;
use App\Http\Controllers\AppBaseController;
use App\Models\Tasks;
use Illuminate\Http\Request;
use App\Models\Project;
use App\Models\Employee;
use Flash;
use Response;
class TasksController exte... |
<?php
namespace Acme\InfoBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AcmeInfoBundle extends Bundle
{
} |
<?php
use Astrotomic\Dns\Facades\Dns;
use Illuminate\Support\Collection;
use Spatie\Dns\Records\Record;
it('is returns a collection of records', function () {
expect(Dns::records('https://astrotomic.info'))
->toBeInstanceOf(Collection::class)
->each->toBeInstanceOf(Record::class);
}); |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Mail\OrderconfirmedMail;
use Illuminate\Support\Facades\Mail;
use App\Order;
class OrderController extends Controller
{
public function index()
{
$orders = Order::latest()->with('shippi... |
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also ... |
<ion-header-bar class="bar bar-header assertive-bg bar-home">
<ion-title>首页</ion-title>
</ion-header-bar>
<ion-view>
<ion-content>
<ion-refresher pulling-text="下拉刷新" on-refresh=""></ion-refresher>
</ion-content>
</ion-view> |
<?php declare(strict_types=1);
namespace Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Source;
final class Mapping
{
} |
@extends("/backend/layouts/template/template-store")
@section("content")
<div class="main-body">
<div class="page-wrapper">
<div class="page-body">
<div class="card">
<div class="card-header">
<h5>ข้อมูลสินค้า</h5>
<div class="card-header-... |
@extends('master.layout')
<?php
if ($nominas->exists):
$form_data = array('route' => array('nominas.update', $nominas->id), 'method' => 'PATCH');
$action = 'Editar';
else:
$form_data = array('route' => 'nominas.store', 'method' => 'POST');
$action = 'Crear';
en... |
@extends("layouts.app")
@section("content")
<h2>Try Out SKD</h2>
@if (session('status'))
<div style="color: green">{{ session('status') }}</div>
@endif
@if ($errors->any())
@foreach($errors->all() as $error)
<div style="color: red">{{ $error }}</div>
@endforeach
@endif
<table>
<tr>
<th>Nama Pa... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\User */
?>
<?= $this->render('_form', [
'model' => $model,
]) ?> |
@extends('layouts.master')
@section('content')
<h2 class="page-header">Work_position</h2>
<div class="panel panel-default">
<div class="panel-heading">
Add/Modify Work_position </div>
<div class="panel-body">
<form action="{{ url('/work_positions'.( isset($model) ? "/" .... |
<fieldset id="sf_fieldset_[?php echo preg_replace('/[^a-z0-9_]/', '_', strtolower($fieldset)) ?]">
[?php if ('NONE' != $fieldset): ?]
<h2>[?php echo __($fieldset, array(), '<?php echo $this->getI18nCatalogue() ?>') ?]</h2>
[?php endif; ?]
[?php foreach ($fields as $name => $field): ?]
[?php if ((isset($f... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password', 'firstname', 'phonenumber','gender','address','ad... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Uzzal\SslCommerz\Client;
use Uzzal\SslCommerz\Customer;
use Uzzal\SslCommerz\IpnNotification;
use Cart;
class PaymentController extends Controller
{
public function index()
{
if(!session()->get('order')) return redirect('checkout'... |
--TEST--
Test strncasecmp() function : usage variations - unexpected values for 'str2'
--FILE--
<?php
/* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
* Description: Binary safe case-insensitive string comparison of the first n characters
* Source code: Zend/zend_builtin_functions.c
*/
/* Te... |
<?php
/**
* @file
* Contains \Drupal\Tests\Component\Plugin\PluginBaseTest.
*/
namespace Drupal\Tests\Component\Plugin;
use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\Component\Plugin\PluginBase
* @group Plugin
*/
class PluginBaseTest extends UnitTestCase {
/**
* @dataProvider provider... |
<?php
/* Copyright (C) 2008. All Rights Reserved. @license - Copyrighted Software. Author: Stéphane Francel */
// No direct access
defined( '_DIRECT_ACCESS' ) or die( 'Restricted access' );
///////////////
// Super-Class
class comGeneric_
{
// Component setting infos (1)
protected $table_prefix; # $this->tab... |
<?php
namespace backend\models;
use yii\db\ActiveRecord;
class Order extends ActiveRecord{
//发货状态
public static $status=[
'0'=>'订单取消','1'=>'待发货','2'=>'已发货',
];
} |
<?php
namespace App\Http\Controllers;
use App\Models\Airport;
use Illuminate\Http\Request;
class AirportsController extends Controller
{
public function listAirports(Request $request){
$keyword = $request->keyword??null;
$stype = $request->stype??'country';
$page = $request->page??1;
... |
<?php
//<language>English</language>
//The second line of this file is the name of the language
//Author:Yang Yixuan
//Author URI:http://www.yangyixuan.com
//E-mail:sen@yangyixuan.com
//Date:20150126
//'Custom Information
//'Don't delete %s and ()
return array(
'lang' => 'en',
'lang_bcp47' ... |
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面-X-admin2.2</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--<meta name="viewport" content="width=device-width,user-scalable=ye... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AuthController extends Controller
{
public function register(){
return view('register');
}
public function welcome(Request $request){
return view('welcome');
//dd($request["first_name"]);
}
public f... |
<?php
namespace Illuminate\Database\Schema\Grammars;
use Illuminate\Support\Fluent;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
class MySqlGrammar extends Grammar
{
/**
* The possible column modifiers.
*
* @var array
*/
protected $modifiers = [
'V... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @author Maulana Rahman <maulana.code@gmail.com>
*/
class Kasir extends CI_Controller {
public function __construct()
{
parent::__construct();
if(!$this->alus_auth->logged_in())
{
redirect('admin/Login','refresh');
}
$this->lo... |
@extends('event.just_begin.layout')
@section('title')
3KM Home
@endsection
@section('content')
<style>
.ui.ordered.list .list>.item:before, .ui.ordered.list>.item:before, ol.ui.list li:before {
margin-left: -1.75rem !important;
color: white !important;
}
</style>
<div id="signup-container" c... |
<?php
require_once 'conn.php';
if(isset($_POST['login']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$query = $conn->query("SELECT * FROM admin WHERE username = '$username' AND password = '$password'") or die(mysql_error());
$rows = $query->num_rows;
$fetch = $qu... |
<?php
namespace Tests;
use UniSharp\DocUs\Parser;
use Illuminate\Support\Facades\DB;
class ParserTest extends TestCase
{
public function setUp()
{
parent::setUp();
DB::statement('DROP TABLE IF EXISTS `tests`');
}
public function testTableName()
{
DB::statement(
... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20210828\Symfony\Component\Console\Exception;
/**
* Represe... |
<?php
namespace App;
class Popcorn{
public static function pages()
{
$client = new \GuzzleHttp\Client(['verify' => false ]);
$res = $client->request('GET', 'https://tv-v2.api-fetch.website/movies');
if($res->getStatusCode() == 200)
{
return $res->getBody... |
@extends('admin.masterManager')
@section('content')
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content">
<!-- BEGIN PAGE HEADER-->
... |
<?php get_header(); ?>
<div class="container-fluid">
<div class="row">
<section id="main-content" class="col-xs-12">
<?php
echo do_shortcode( '[bbp-single-forum id='. get_the_id() . ']' );
?>
</section>
</div>
</div>
<?php get_footer(); ?> |
--TEST--
Test scandir() function : usage variations - different relative paths
--FILE--
<?php
/* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
* Description: List files & directories inside the specified path
* Source code: ext/standard/dir.c
*/
/*
* Test scandir() with rela... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace App;
use illuminate\Database\Eloquent\Model;
use App\Support\Dataviewer;
use Spatie\Activitylog\Traits\LogsActivity;
use Illuminate\Database\Eloquent\SoftDeletes;
class JalinanIuranProduk extends Model {
use Dataviewer, LogsActivity, SoftDeletes;
protected $table = 'jalinan_iuran_produk... |
<?php namespace Illuminate\Support;
use Closure;
use Countable;
use ArrayAccess;
use ArrayIterator;
use CachingIterator;
use JsonSerializable;
use IteratorAggregate;
use Illuminate\Support\Contracts\JsonableInterface;
use Illuminate\Support\Contracts\ArrayableInterface;
class Collection implements ArrayAccess, Arraya... |
<?= $this->extend('admin/layout/template'); ?>
<?= $this->section('content'); ?>
<!-- ======= Header ======= -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Manajemen Konten: Carrousel</h1>
</div>
... |
<?php
declare(strict_types = 1);
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Class CreateRemindersTable
*/
class CreateRemindersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\AcademicRequest;
use App\Http\Requests\HobbyRequest;
use App\Http\Requests\LanguageRequest;
use App\Http\Requests\SoftwareRequest;
use App\Models\Academic;
use App\Models\Hobby;
use App\Models\Language;
use App\Models\Software;
use Illuminate\Http\Request;
... |
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-2 text-center">
<img src="/dist/img/default.png" class="img-circle img-responsive profile-user-img" style="width:100px; margin-top:20px; margin-bottom:20px;">
</div>
<div class="col-md-10">
<div class="row">
<div cl... |
<?php
namespace App\Http\Controllers\SubAdmin;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\Facades\DB;
use App\Models\Payment;
use Carbon\Carbon;
class PaymentController extends Controller {
/**
... |
<?php
error_reporting (E_ALL & ~ E_NOTICE & ~ E_DEPRECATED);
$host="mysql.hostinger.com.br";
$user="u734506267_ctel";
$pass="cartel";
$banco="u734506267_ctel";
$conexao=new mysqli($host,$user,$pass,$banco);
session_start();
if (!isset($_SESSION["nome"])) {
include("menu.php");
} els... |
<?php
declare(strict_types=1);
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalconphp.com>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Test\Unit\Annotations\Adapter\Files... |
<?php
class Kwc_Advanced_Team_Member_Data_Trl_Form extends Kwc_Abstract_Form
{
protected function _initFields()
{
parent::_initFields();
$this->add(new Kwf_Form_Field_ShowField('title', trlKwf('Title')))
->setData(new Kwf_Data_Trl_OriginalComponent());
$this->add(new Kwf_Form... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Saved extends Model
{
use HasFactory;
protected $table = 'saved';
protected $fillable = [
'id_user',
'id_post'
];
public function user() {
retu... |
<!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>Login</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" ... |
<?php
namespace frontend\modules\products\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\StockProductGroup;
/**
* StockProductGroupSearch represents the model behind the search form about `common\models\StockProductGroup`.
*/
class StockProductGroupSearch extends StockProdu... |
<?
require(dirname(__FILE__)."/../../src/prepend.inc.php");
@session_destroy();
class API_PROVIDER
{
const SOAP = 'soap';
const REST = 'rest';
}
$api_provider = API_PROVIDER::REST;
try
{
if ($req_Version != '2.0.0' && $req_Version != '2.1.0' && $req_Versi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.