text stringlengths 2 1.03M |
|---|
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty.class.php
* SVN: $Id: Smarty.class.php 4614 2012-05-24 15:13:19Z rodneyrehm $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License a... |
<?php
namespace Troopers\AlertifyBundle\Tests\Helper;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
use Troopers\AlertifyBundle\DependencyInjection\TroopersAlertifyExtensio... |
function title($field, $value, $fieldinfo) {
extract($fieldinfo);
$style_arr = explode(';',$this->data['style']);
$style_color = $style_arr[0];
$style_font_weight = $style_arr[1] ? $style_arr[1] : '';
$style = 'color:'.$this->data['style'];
if(!$value) $value = $defaultvalue;
$errortips = $this->fields[$... |
<?php
namespace AmDev\Controllers;
class HomeController{
public function index(){
if(isset($_GET['loggout'])){
session_unset();
session_destroy();
\AmDev\Utilidades::redirect(INCLUDE_PATH);
}
if(isset($_SESSION['login'])){
//Renderiza a home do usuário.
//Existe pedido de amiz... |
<div class="row">
<div class="path">
<p><u><a href="<?php echo site_url('Dashboard')?>" style="text-decoration: none; color:black">HOME</a> > <a href="<?php echo site_url('Home/moveStatKwn2/'.$thn.'/'.$smt)?>" style="text-decoration: none; color:black">Status Pernikahan</a> > Tahun <?php echo $thn ?> > Semester <?ph... |
@extends('master')
@section('content')
<br> <br>
<div class="container">
<div class="row">
<div class="col-sm-6">
<img class="deatil_img" src="{{$product['gallery']}}" alt="img">
</div>
<div class="col-sm-6">
<a class="" href="{{'/'}}">Go Back</a>
<br>
... |
<?php
/**
* Copyright 2016 Google Inc.
*
* 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 agr... |
<?php
/**
* Created by PhpStorm.
* User: dmitrij
* Date: 19.03.2018
* Time: 21:01
*/
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class FavoritesTest extends TestCase
{
use DatabaseMigrations;
function test_guests_can_not_favorite_anything()
{
... |
@extends('layout.dashboard')
@section('content')
<div class="header">
<div class="sidebar-toggler visible-xs">
<i class="icon ion-navicon"></i>
</div>
<span class="uppercase">
<i class="ion ion-person"></i> {{ trans('dashboard.team.profile') }}
</span>
</... |
<div id="modal_div">
<div class="modal fade" id="order_modal" tabindex="-1" role="dialog" aria-labelledby="myRegister" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" style="text-align:left;"> <!--class="modal-content modal-popup"-->
<div class="modal-he... |
<?php
namespace App\Model\User;
use Illuminate\Database\Eloquent\Model;
class Log extends Model
{
protected $table = 'user_logs';
public function user(){
return $this->belongsTo('App\Model\User\User', 'user_id');
}
} |
<?php
declare(strict_types=1);
/**
* This file is part of the Hackifier package.
*
* (c) Saif Eddin Gmati <azjezz@protonmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Hackifier\HackAST\Token;
use Hackifier\... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Escrito;
use App\Genero;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Carbon\Carbon;
use PDF;
class EscritoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illumin... |
<?php defined('BASEPATH') or exit('No direct script access allowed');
// labels
$lang['streams:keywords.name'] = "Keywords";
$lang['streams:keywords.return_type'] = "Return Type";
$lang['streams:keywords.return_type.instructions'] = "Array: Rows with keyword, count, total, is_first, is_last<br/>String: keywor... |
<?php
namespace App\Middlewares;
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Flash\Messages;
class OldInputMiddleware
{
public function __invoke(Request $request, Response $response, callable $next)
{
app('flash')->addMessage('old_input', $request->getParams());
return $next($re... |
<!-- ======= Intro Section ======= -->
<div class="intro intro-carousel">
<div id="carousel" class="owl-carousel owl-theme">
<div class="carousel-item-a intro-item bg-image" style="background-image: url(site/assets/img/slide-1.jpg)">
<div class="overlay overlay-a"></div>
<div class="intro-co... |
<?php
defined('APP_DIR') or exit();
use Zodream\Template\View;
/** @var $this View */
$this->title = 'ZoDream';
$data = [];
foreach ($map as $item) {
$data[] = $item['url'];
}
$data[] = sprintf('生成成功!共 %d 条,<a href="/sitemap.xml" target="_blank">👉点击查看</a>', count($data));
$data = json_encode($data);
$js = <<<JS
re... |
<?php
namespace Wangsijia\Tbk\Jd\request;
class KplOpenGetsellpriceQueryRequest
{
private $apiParas = array();
public function getApiMethodName(){
return "jd.kpl.open.getsellprice.query";
}
public function getApiParas(){
if(empty($this->apiParas)){
return "{}";
}
return json_encode(... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
// @see ht... |
Hi {{$teacher->user_name}},
<br>
<br>
<p>Below is a note for your class {{$class->name}}, scheduled on {{$class->starts_at}}:</p>
<br>
<br>
<p>{{$notes}}</p>
<br>
<br>
Thanks
<br>
<hr>
If you have any questions, you can:<br/>
1. Respond to this email at info@codewithus.com<br/>
2. Text us at (408) 9... |
<button type="button" id="main" class="btn btn-primary"><--Back to Main Screen</button>
<div class="container">
<div class="row">
<div class="col-sm-2 col-m-8 col-lg-8">
<form action="" method="post" id="paymentsform" class="form-horizontal">
<fieldset><span id="accavail">New Entry</span><... |
$event = Balanced\Event::get("{{ request.uri }}"); |
<?php
$lang["reports_all"] = "Hepsi";
$lang["reports_categories"] = "Kategoriler";
$lang["reports_categories_summary_report"] = "Kategori Özet Raporu";
$lang["reports_category"] = "Kategori";
$lang["reports_comments"] = "Yorumlar";
$lang["reports_count"] = "Sayı";
$lang["reports_customer"] = "Müşteri";
$lang["reports... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace NickyWoolf\Carter\Http\Middleware;
use Closure;
class HasValidHostname
{
public function handle($request, Closure $next)
{
if ($this->validHostname($request->shop)) {
return $next($request);
}
app()->abort(403, 'Client Error: 403');
}
protected fu... |
<?php
declare(strict_types=1);
/**
* This file is part of DDD sample project.
*
*/
namespace packages\Techno\Sns\UseCase\User\Update;
/**
* UserUpdateService interface
*/
interface UserUpdateServiceInterface
{
/**
* Update user data.
*
* @param UserUpdateCommand $command
* @return void... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\ReportesDepartamentos;
/**
* ReportesDepartamentosSearch represents the model behind the search form of `app\models\ReportesDepartamentos`.
*/
class ReportesDepartamentosSearch extends ReportesDepartamentos
{
... |
<?php
namespace App\Http\Livewire\Editor;
use Livewire\Component;
use App\Models\UserLikes;
use App\Models\UserComments;
use App\Models\UserFollow;
use App\Models\UserViews;
use App\Models\Audio;
use Auth;
class EditorOverview extends Component
{
public function render()
{
$recentLikes = UserLikes::orde... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<title>Patrol Check Sheet Monitoring And Management Data Plant</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cont... |
<?php
namespace common\entities;
use yii\db\ActiveRecord;
/**
* @property int $Id
* @property string $Title
* @property string $Description
* @property int $ImageId
* @property string $CreatedDate
* @property int $StatusId
* @property int $LanguageId
* @property string $Link
*/
class EriInPress extends Active... |
<?php
require_once 'Koneksi.php';
$idUser = $_POST['idUser'];
$surat = $_POST['surat'];
$update = "UPDATE saldo_kas SET surat_berharga='$surat' WHERE iduser='$idUser'";
$hasilUpdate = mysqli_query($conn, $update);
echo($hasilUpdate) ? json_encode(array('kode'=>1,'pesan'=>'berhasil menambahkan data')) : json_e... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\tblMStaff2;
class tblMStaff extends Model
{
// protected $fillable = [
// 'id', 'id_subject', 'number', 'created_at', 'updated_at',
// ];
protected $table = 'tblMStaff';
public function emailList() {
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="http... |
<form action="#" method="POST" id="formDetailSpk">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><?= $box_head ?></h3>
<span class="pull-right">
<button class="btn btn-warning btn-md" type="button" id="btn-kembali">
<... |
<?php
namespace App\Http\Controllers\Auth;
use App\Models\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|--------------------------------... |
<?php
$version = '2.0'; // the $ projectnumber variable is automatically replaced by doxygen with the version number
$pagetitle = 'Member List'; // the $ title variable is automatically replaced by doxygen with the page title
include('../header.php');
?>
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow... |
<?php
namespace App\Http\Controllers;
use App\Models\Service;
use Illuminate\Http\Request;
class ServiceController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
<?php declare(strict_types=1);
namespace Sakila\Domain\Country\Service;
use Sakila\Domain\Country\Entity\Transformer\CountryTransformerInterface;
use Sakila\Domain\Country\Repository\CountryRepositoryInterface;
use Sakila\Domain\Country\Service\Request\ShowCountriesRequest;
use Sakila\Transformer\TransformerInterface... |
<?php
namespace App\Http\Controllers\Api\v1;
use App\Model\Question;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Exceptions\EmptyException;
class QuestionController extends Controller
{
public function show(Request $request)
{
echo $request->input('id');
}
public... |
<?php
require_once('../../proses/koneksi.php');
session_start();
if(!isset($_SESSION['username'])) {
session_destroy();
header("Location: ../../login.php");
}
$query2 = "SELECT * FROM petugas WHERE username='".$_SESSION['username']."' LIMIT 1";
$hasil = mysqli_query($koneksi, $query2);
$admin = mysqli_fetch_array(... |
<?php
use App\Book;
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the R... |
<!DOCTYPE html>
<html lang="pt-BR" class="no-js scheme_default">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="X-UA-Compatible" content="ie=ed... |
<!DOCTYPE html>
<html lang="zh-CN">
<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学习 -- @yield('title')</title>
{{--<link rel="stylesheet" href="{{ URL::asset('/css/bootstrap.min.... |
<?php
add_filter('woocommerce_show_page_title', '__return_false');
remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar');
remove_action(
'woocommerce_before_main_content',
'woocommerce_breadcrumb',
20
);
remove_action(
'woocommerce_before_main_content',
'woocommerce_output_content_wrapper',
10
);
re... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Product;
use App\Sale;
use Illuminate\Http\Request;
class SaleController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<?php
if(!function_exists('bridge_core_social_icons_dynamic_styles')) {
function bridge_core_social_icons_dynamic_styles() {
global $bridge_qode_options;
?>
<?php if(!empty($bridge_qode_options['social_icon_color'])) { ?>
.q_social_icon_holder .fa-stack i {
color: <?php echo esc_attr($bri... |
<?php
namespace e10pro\canteen\dataView;
use \lib\dataView\DataView, \e10\utils;
/**
* Class DisplayMenuWidget
* @package e10pro\canteen\dataView
*/
class DisplayMenuWidget extends DataView
{
var $canteenNdx = 1;
var $canteen = NULL;
var $weekParam = FALSE;
var $showTotalOrdersParam = FALSE;
var $emailMode... |
<?php declare(strict_types=1);
namespace OpenSerializer\Serialize;
use LogicException;
use OpenSerializer\ObjectSerializer;
use ReflectionClass;
use function get_class;
use function gettype;
use function is_array;
use function is_object;
use function is_scalar;
use function sprintf;
final class ReflectingSerializer ... |
<?php
final class PhabricatorConfigEditor
extends PhabricatorApplicationTransactionEditor {
public function getEditorApplicationClass() {
return 'PhabricatorConfigApplication';
}
public function getEditorObjectsDescription() {
return pht('Phabricator Configuration');
}
public function getTransac... |
<?php
/**
* Created by PhpStorm.
* User: chenlongmingob@outlook.com
* Date: 2018/12/21
* Time: 15:35
*/
namespace app;
use think\Controller;
use think\Request;
use validate\Validate;
use app\common\exception\FormValidateException;
/**
* Class FormController
* @method array fetchFields($fields)
* @package ap... |
<?php
namespace App\Http\Controllers;
use App\User;
use Carbon\Carbon;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class RegisterController extends Controller
{
//
public funct... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClasslistsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('classlists',... |
<?php
namespace wcf\data\discord\webhook;
use wcf\data\discord\bot\DiscordBot;
use wcf\data\DatabaseObject;
use wcf\system\discord\DiscordApi;
/**
* Discord-Webhook-Objekt
*
* @author Peter Lohse <hanashi@hanashi.eu>
* @copyright Hanashi
* @license Freie Lizenz (https://hanashi.dev/freie-lizenz/)
* @package... |
@extends('layouts.app')
@section('content')
<div class="container">
<h1>Create Post</h1>
<hr>
<form action="{{route('topics.store')}}" method="POST">
@csrf
<div class="form-group">
<input type="text"
class="form-control @error('title')is-... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<div class=" dailyban-img">
<div class="dailyban-search">
<img src="{!! asset('frontend/html/img/placeholder.svg') !!}" alt="">
<input type="text" value="21.000754,105.860754" name="search_location2" id="localtion_input" style="display: none;"></input>
<input type="text" id="sea... |
<?php
/**************************************************************************
* RestSyncGlobalController.php, pokemon Android
*
* Copyright 2016
* Description :
* Author(s) : Harmony
* Licence :
* Last update : Jun 22, 2016
*
************************************************************************... |
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\Geometry\Extents\BoundingBoxOnly;
/**
* Asia-ExFSU/Korea, Republic of (South Korea) - 126°E to 128°E Jeju.
* @internal
*/
class Extent3721
{
public function __invoke(): array
{
return
[
... |
<?php
namespace SSS;
use Illuminate\Database\Eloquent\Model;
// Authentications
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Security extends Authenticatable
{
//
use Notifiable;
protected $guard = 'security';
protected $fillable = [
... |
<?php
if (!isset($_COOKIE['id'])) {
include('includes/login_functions.inc.php');
redirect_user();
}
file_exists('../../mysqli_connect.inc.php') ? require_once('../../mysqli_connect.inc.php') : require_once('../../../mysqli_connect.inc.php');
$page_title = "Interesting Questions";
@require_once('includes/hea... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePermanentAddressesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('perm... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class DuAnController extends Controller
{
} |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/home/ubuntu/workspace/system/config/media.yaml',
'modified' => 1472691064,
'data' => [
'types' => [
'defaults' => [
'type' => 'file',
'thumb' => 'media/thumb.png',
... |
<?php
namespace Larapack\VoyagerHooks;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\ServiceProvider;
use Larapack\Hooks\Events\Setup;
use Larapack\Hooks\HooksServiceProvider;
use TCG\Voyager\Facades\Voyager;
class VoyagerHooksServiceProvider extends Servi... |
<?php
namespace Balbi\Decorator\StarBuzz;
abstract class CondimentosDecorator extends Bebida {
/**
*
* @var Bebida
*/
protected $bebida;
public function __construct(Bebida $bebida) {
$this->bebida = $bebida;
return $this;
}
} |
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-cf">商品分类</div>
</div>
<div class="widget-bod... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as th... |
<?php
namespace Rvzug\ApplicationInsights\Channel\Contracts;
/**
*
* THIS FILE IS AUTO-GENERATED.
* Please do not edit manually.
*
* Use script at <root>/Schema/generateSchema.ps1
*
*/
/**
* Data contract class for type ExceptionDetails. Exception details of the exception in a chain.
*/
class ExceptionDetai... |
@extends('layouts.master')
@section('content')
<section class="hot_deals_sec hot_deals_listing_sec single_item_page">
<section class="title_sec white-bg">
<div class="container more">
<div class="row">
<div class="main-sec stick_lines col-xs-12">
... |
<?php return array(
'root' => array(
'pretty_version' => 'v1.0.0',
'version' => '1.0.0.0',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => NULL,
'name' => 'flarum/flarum',
'dev' => true,
),
'vers... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
@extends('backend.layout.master')
@section('title', 'Menus')
@push('styles')
<link rel="stylesheet" href="{{ asset('backend/components/datatables.net-bs/css/dataTables.bootstrap.min.css') }}">
@endpush
@section('content')
<section class="content-header">
<h1>
Menu Tables
<sma... |
<?php
function guidv4()
{
if (function_exists('com_create_guid') === true)
return trim(com_create_guid(), '{}');
$data = openssl_random_pseudo_bytes(16);
$data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
$data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
re... |
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Mime\Email;
class HomeController extends AbstractController
{
/**
* @Route("/", name="home")
... |
<div class="row">
<div class="col-5 align-self-center">
<h4 class="page-title">Manajemen Resource</h4>
<div class="d-flex align-items-center">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Training</a></l... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Auth extends CI_Controller {
/**
* Display Login
*/
public function login(){
check_already_login();
$this->load->view('login');
}
/**
* Used to sign in
*/
public function process(){
$post = $this->input->pos... |
<?php
namespace App\Http\Controllers;
use App\Student;
use Illuminate\Http\Request;
class StudentsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$students = Student::all();
// ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<div class="comment island island--padded clear island--bottomed ?>" id="comment<?= $comment->id ?>">
<div class="comment__header clearfix">
<? if ($user->isAdmin || $user->id == $comment->author->id): ?>
<span class="island-settings js-comment-settings" data-id="<?= $comment->id ?>">
... |
<?php
class User_Model extends CI_Model
{
public function get_all()
{
$query = $this->db->get('users');
return $query->result();
}
public function add_data($raw_data = [])
{
unset($raw_data['confirm-password']);
$raw_data['password'] = sha1($raw_data['password']);... |
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogUrlRewrite\Observer;
use Magento\Catalog\Model\Category;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
class CategorySaveRewritesHistorySetterObserver... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\CardShop;
class CardShopController extends Controller
{
//
public function add()
{
return view('admin.cardshop.create');
}
public function create(Request $request)
{
// ... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<t... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class restaurent extends Model
{
public $timestamps=false;
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PemakaianBarang extends Model
{
protected $guarded = [];
public function barang()
{
return $this->belongsTo(Barang::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
} |
<script src="<?php echo base_url() ?>includes/assets/extra-libs/DataTables/datatables.min.js"></script>
<script src="<?php echo base_url() ?>includes/dist/js/pages/datatable/datatable-basic.init.js"></script>
<script src="<?php echo base_url() ?>includes/assets/libs/sweetalert2/dist/sweetalert2.all.min.js"></script>
<s... |
<?php
include("connect.php");
$link=Connection();
$result=mysql_query("SELECT * FROM `weather` ORDER BY `created_at` DESC",$link);
?>
<html>
<head>
<title>Sensor Data</title>
</head>
<body>
<h1>Temperature / Humidity sensor readings</h1>
<table border="1" cellspacing="1" cellpadding="1">
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v5/enums/campaign_draft_status.proto
namespace Google\Ads\GoogleAds\V5\Enums\CampaignDraftStatusEnum;
use UnexpectedValueException;
/**
* Possible statuses of a campaign draft.
*
* Protobuf type <code>google.ads.google... |
<?php
return [
'site_title' => 'Rennaisance School',
]; |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCurriculumUfcdTable extends Migration
{
/**
* Schema table name to migrate
* @var string
*/
public $tableName = 'curriculum_ufcd';
/**
* Run... |
<div class="form-group">
<select name="po_id" id="po_id" class="default-browser custom-select select2">
<option value=""></option>
<?php
$po = $this->db->query("SELECT * FROM purchases where id in (SELECT form_id from validation where form_type = 'po' and `type`='approved' ) and status... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Compromiso extends Model
{
protected $table = 'compromisos';
protected $fillable = ['num_compromiso','tipo','monto','fecha','anulada','fecha_anulacion','id_clasificadorGnral_instituto','creado_por'];
public function user()
{
... |
<?php
namespace ContainerA6gpc8r;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCache_SystemClearerService ex... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Models\Product;
use Faker\Generator as Faker;
use Illuminate\Support\Str;
$factory->define(Product::class, function (Faker $faker) {
return [
'name' => $faker->word,
'title' => Str::random(30),
'hot' => rand(0,1),
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMarketingRepTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('marketing_rep', function(Blueprint $table)
{
$table->increments('id');... |
<?php
/**
* The UserInteraction event in which a user comments on an item.
*
* @see http://schema.org/UserComments
*/
abstract class TypeUserComments extends TypeUserInteraction
{
/**
* The Schema.org Type Scope
*
* @var string
*/
protected static $scope = 'https://schema.org/UserComments';
/**
* Th... |
@extends('layouts.app')
@section('content')
<div class="panel panel-default">
<div class="panel-heading">Dashboard</div>
<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.