text stringlengths 2 1.03M |
|---|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Kategori extends Model
{
use HasFactory;
protected $table = 'kategori';
protected $guarded = ['id'];
public $timestamps = false;
} |
<?php
$data['alamat']="<li class='active'><a href='".site_url('Dashboard/Barang')."'>Barang</a></li>";
$data['alamatactive']="barang";
$this->load->view('Admin/Header',$data); ?>
<link rel="stylesheet" href="<?php echo base_url().'assetsadmin/'; ?>css/jquery-ui.min.css" />
<div class="page-header">
... |
@extends(activeTemplate() .'layouts.form')
@section('style')
<link rel="stylesheet" href="{{asset('assets/admin/build/css/intlTelInput.css')}}">
<style>
.intl-tel-input {
position: relative;
display: inline-block;
width: 100%;!important;
}
</style>
@endsec... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `exams`.
*/
class m180716_230300_create_exams_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('exams', [
'id' => $this->primaryKey(),
'name' => $this->... |
<?= $this->extend("Plantillas/Portal_base") ?>
<!-- CSS-->
<?= $this->section("css")?>
<link rel="stylesheet" type="text/css" href="<?= base_url(RECURSOS_PORTAL_CSS.'news_post_styles.css');?>">
<link rel="stylesheet" type="text/css" href="<?= base_url(RECURSOS_PORTAL_CSS.'news_post_responsive.css');?>">
<?= $this->end... |
<?php
namespace RectorPrefix20210923;
if (\class_exists('Tx_Extbase_MVC_Exception_InvalidController')) {
return;
}
class Tx_Extbase_MVC_Exception_InvalidController
{
}
\class_alias('Tx_Extbase_MVC_Exception_InvalidController', 'Tx_Extbase_MVC_Exception_InvalidController', \false); |
<?php
namespace App\Models\General\Formal;
use App\Models\Store\Formal\Store;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Categ... |
@extends('admin.layout')
@section('content')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1> {{ trans('labels.EditBanner') }} <small>{{ trans('labels.EditBanner') }}...</small> </h1>
<ol class="breadcrumb">
<li><a href="{{ URL::to('admin/dash... |
<?php
namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Home\CateGory;
use App\Model\Admin\Lists;
use App\Model\Admin\DetailsContent;
use App\Model\Admin\Details;
class HomeListsController extends Controller
{
/**
* 显示前台列表
*
* ... |
--TEST--
JIT ASSIGN: Assign with INTERNED string(no RC)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
;opcache.jit_debug=257
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class A {
public $result = "string";
fu... |
<?php session_start(); ?>
<!-- Iniciando uma sessão - Sempre tem que estar no começo da página.-->
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Acesso a área restrita!</title>
<meta charset="UTF-8" />
</head>
<body>
<?php if(isset($_SESSION['logado'])):?>
<h1>Você está acessando uma área restr... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">用户注册</div>
<div class="panel-body">
... |
<?php namespace Ixudra\Curl;
use stdClass;
class Builder {
/** @var resource $curlObject cURL request */
protected $curlObject = null;
/** @var array $curlOptions Array of cURL options */
protected $curlOptions = array(
'RETURNTRANSFER' => true,
'FAILONERROR' ... |
<?php
namespace App\Controllers\Admin;
use App\Core\BaseController;
use App\Models\Admin\ModelAdminGetAllGroups;
class ControllerAdminGetAllGroups extends BaseController {
public function action() {
$this->model = new ModelAdminGetAllGroups();
echo json_encode($this->model->get_data(), JSON_UNESCA... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>@yield('title')</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymo... |
<?php
namespace App\Http\Controllers;
use App\Board;
use App\Thread;
use Illuminate\Http\Request;
class ThreadSubscriptionsController extends Controller
{
public function store(Board $board, Thread $thread) {
$thread->subscribe();
}
public function destroy(Board $board, Thread $thread) {
... |
<?php
namespace App\Http\Controllers;
use App\Domains\Employees\Models\WorkingCell;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Domains\Lead\Models\LeadStatus;
use App\Domains\Lead\Models\Lead;
use App\Jobs\GrabEmailsByConnectedToAccounts;
class LeadsController extends Controller
{
public function l... |
<?php
namespace Jimdo\Reports\User;
use Jimdo\Reports\Web\ApplicationConfig as ApplicationConfig;
use Jimdo\Reports\MongoSerializer;
use Jimdo\Reports\ErrorCodeStore;
class UserMongoRepository implements UserRepository
{
/** @var Serializer */
public $serializer;
/** @var MongoDB\Client */
private $... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTransaksi extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transaktions', fun... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use App\Category;
use App\Http\Requests;
use App\Http\Requests\AdminCategoriesRequest;
class AdminCategoriesController extends Controller
{
/**
* Display a listing of the resource.
*
* @retur... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017-2020
*/
namespace Aimeos\Client\JsonApi\Basket;
class StandardTest extends \PHPUnit\Framework\TestCase
{
private $context;
private $object;
private $view;
protected function setUp() : void
{
$thi... |
<?php
declare(strict_types=1);
namespace FrittenKeeZ\Vouchers\Tests;
use FrittenKeeZ\Vouchers\Facades\Vouchers;
use FrittenKeeZ\Vouchers\Tests\Models\Color;
use FrittenKeeZ\Vouchers\Tests\Models\User;
use FrittenKeeZ\Vouchers\VouchersServiceProvider;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminat... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
Use App\Models\Album;
Use App\Models\Artist;
use App\Models\Album_Photos;
use App\Models\Album_Artist;
Use DB;
class AlbumController extends Controller {
protected $album;
protected $album_photo;
//Laat alle albums en artiesten zien
publ... |
<?php
namespace Modules\Photo\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class PhotoDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
// $this->cal... |
@extends('layouts.app') <!-- Herencia de plantilla blade -->
<title>editar_categoria_equipo</title>
@section('content')
<style type="text/css">
</style>
<div class="breadcrumb-holder">
<div class="container-fluid">
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ rout... |
<?php
namespace App\Http\Controllers;
use App\Resources;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class ResourcesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
@if (session('status'))
... |
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/... |
<?php
declare(strict_types=1);
/**
* This file is part of me-cms.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Mirko Pagliai
* @link https://gi... |
<?php
/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
* (c) Rezo Zero / Ambroise Maupate
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Le... |
<?php
/**
* 广告位页面生成类
* @category iCMS
* @package iCMS_FrameWork1_RuleClass_Gen_Site
* @author 525
*/
class SiteAdManageGen extends BaseManageGen implements IBaseManageGen {
/**
* 引导方法
* @return string 返回执行结果
*/
function Gen() {
$result = "";
$method = Control::GetRequest... |
<?php
if ($EE_view_disable !== TRUE)
{
$this->load->view('_shared/header');
$this->load->view('_shared/main_menu');
$this->load->view('_shared/sidebar');
$this->load->view('_shared/breadcrumbs');
}
?>
<div id="mainContent"<?=$maincontent_state?>>
<?php $this->load->view('_shared/right_nav')?>
<div class="content... |
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) baserCMS Users Community <https://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link https://basercms.net baserCMS Project
* @package Baser.View.Helper
* @... |
<?php
namespace ResultSystems\Validation\Traits;
trait Phones
{
/**
* valida Telefone.
*
* @param string $attribute
* @param string $value
* @param string $parameters
*
* @return bool
*/
public function validateOnlyPhoneBr($attribute, $value, $parameters)
{
... |
@extends('master')
@section('content')
<div class="row ">
<div class="col-md-7">
<form action="" method="POST" role="form">
{{ csrf_field() }}
<h3 class="text-center">{{$jezik['add']}}</h3>
<div class="form-group">
<label for="naslov">{{$jezik['title']}}</label>
<input type="text" cla... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Payment extends DC_controller {
function __construct() {
parent::__construct();
if($this->router->fetch_method()=='index'){
$method='';
}else{
$method=str_replace('_',' ',$this->router->fetch_method());
}
$this->control... |
<?php
return [
'token' => env("TELEGRAM_BOT_TOKEN"),
'chat_id' => env("TELEGRAM_BOT_CHAT_ID"),
]; |
<?php
return [
'doc_title' => 'Վճարման կարգավիճակը',
'card_header_success' => 'Վճարումը հաջողվել է.',
'card_header_error' => 'Վճարումը չի հաջողվել.',
'card_message_success' => 'Ձեր վճարումը հաջողությամբ կատարվել է։',
'card_message_error' => 'Ձեր վճարումը ձախողվել է: Լրացուցիչ տեղեկությունների համար ... |
<?php
namespace App\Http\Controllers\Api\V1;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Task;
use Session;
use DB;
class TasksController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function in... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
use HasFactory;
protected $appends =[
'parent',
];
public function products(){
return $this->hasMany(Product::class);
}
pub... |
@extends('layouts.auth',['title'=>'Register'])
@section('content')
<div class="container-tight py-6">
<div class="empty">
<div class="empty-icon">
<div class="display-4">404</div>
</div>
<p class="empty-title h3">Oops… You just found an error page</p>
... |
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class CheckMobile implements Rule
{
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Determine if the validation rule passes.
*
* @param... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
//
//Post::all();
protected $table = 'posts';
public $primaryKey = 'id';
} |
@extends('layouts.main')
@section('content')
<div class="container-fluid">
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">
<h3 class="text-themecolor m-b-0 m-t-0">Modalidade Adicionar</h3>
<ol class="breadcrumb">
<li class="breadcrumb-it... |
<?php
namespace App\Http\Middleware;
use Auth;
use Closure;
class AdminMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next){
//如果去后台,验证没有... |
@extends("theme")
@section("content")
<div class="container">
<table class="table table-borderless">
<div class="row">
<div class="col col-12 col-sm-2 col-md-2 col-lg-2 col-xl-2 col-xxl-2"></div>
<div class="row">
<div class="col col-12 col-sm-8 col-md-8 col-lg-8 col-xl-8 col-xxl-8">
<tr>
<td>EmpCode</td>
<td><... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\SDK_DATA_1598238000612\Models;
use AlibabaCloud\Tea\Model;
use AlibabaCloud\SDK\SDK_DATA_1598238000612\Models\UpdateOapiProcessWorkrecordTaskResponseBody;
class UpdateOapiProcessWorkrecordTaskResponse extends Model {
public ... |
<?php
namespace TetraFileManager;
use Yes;
use Magento;
use Zend;
use ReactComponent;
use ReactComponent\SplitFileHepler;
use Magento\Framework\HTTP\PhpEnvironment\Response;
use Magento\Framework\App\Request\Http as HttpRequest;
use Magento\Framework\App\ObjectManager;
use Zend\Http\Headers;
class FileManagerSftp... |
<?php
namespace KongGateway\AdminAPI\Plugin\TrafficControl;
use KongGateway\AdminAPI\Plugin;
class RateLimiting extends Plugin
{
public $name = 'rate-limiting';
} |
<?php
namespace HT\LaravelSqlLogger\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
\... |
<?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use app\models\Pub;
?>
<link rel="stylesheet" href="assets/css/aa.css">
<div class="stinfo-all clearfix">
<div class="stinfo">
<?= $model->introduction; ?>
</div>
<div class="st-new">
<p class="new-p">社团新闻</p>
<ul class="new-ul">
<?... |
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$app = 'frontend';
if (!include(dirname(__FILE__).'/../bo... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Slide;
class SlideController extends Controller
{ public function getDanhsach()
{
$slide = Slide::all();
return view('Admin.Slide.danhsach',['slide'=>$slide]);
}
public function getSua($id)
{
$slide = Slide::... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use App\Customer;
use App\CustomerGroup;
use App\Warehouse;
use App\Biller;
use App\Brand;
use App\Category;
use App\Product;
use App\Unit;
use App\Tax;
use App\Sale;
use App\Delivery;
use App\PosSetting;
use A... |
<?php
namespace Flowframe\LaravelGlide\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
class ClearGlideImageCache extends Command
{
public $signature = 'laravel-glide:clear-image-cache';
public $description = 'Clears the Laravel Glide image cache';
public function hand... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="favicon.ico">
<link href="{{ asset(... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Worksheet;
class WorksheetController extends Controller
{
public function index()
{
$fichas['fichas']=worksheet::where('deleted', 0)->with('alumno')->paginate(7);
$fichasAlumno['fichasAlumno']=Worksheet::where('delete... |
<?php
use App\Http\Controllers\TemporaryController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your appli... |
@extends('layouts.template')
@push('boton_accion')
<a href="{{ url('/reportes') }}" class="btn btn-primary">
<span class="glyphicon glyphicon-plus"></span>
Reporte General
</a>
@endpush
@push('css')
<link rel="stylesheet" href="{{ URL::asset('assets/css/plugins/dataTables/da... |
<?php
use EventSauce\EventSourcing\Serialization\SerializablePayload;
class BudgetWasIncreased implements SerializablePayload
{
/**
* @var int
*/
private $amount;
public function __construct(int $amount)
{
$this->amount = $amount;
}
public function toPayload(): array
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class review extends Model
{
use HasFactory;
protected $fillable=[
'customer_id',
'service_center_id',
'rating',
'review',
];
public function cu... |
<?php
declare(strict_types=1);
namespace Rector\DeadCode\Rector\ClassMethod;
use PhpParser\Node;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Interface_;
use Rector\Core\NodeAnalyzer\ParamAnalyzer;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\ValueObject\MethodName;
use Rector\NodeTypeResol... |
<?php
namespace Zeroone\Authserver\Http;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class AccessToken extends Model
{
use Notifiable;
/**
* The attributes that ar... |
<?php
/**
* Created by PhpStorm.
* User: leiyu
* Date: 2017/8/4
* Time: 10:12
*/
namespace Ylf\Http\Handler;
use Ylf\Http\Controller\ControllerInterface;
use Illuminate\Contracts\Container\Container;
use InvalidArgumentException;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface... |
<?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 Sensio\Bundle\DistributionBundle\Composer;
use Symfony\Component\ClassL... |
@extends('admin.layouts.layout')
@section('content')
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Редактирование статьи</h1>
</div>
<div class="col-sm-6">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePersonalAccessTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pe... |
<?php
/*
IMDb Scraper v. 1.0 - 14th of September, 2011
Scrapes information about movie and tv show titles from IMDb (imdb.com).
By Aram Kocharyan
http://ak.net84.net/php/imdb-scraper/
akarmenia@gmail.com
twitter.com/akarmenia
*/
// Utility functions
require_once('util.php');
// Prevent timeout
set_time_limit(0);... |
<?php
/**
* Add some content to the help tab.
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'WC_Admin_Help' ) ) :
/**
* WC_Admin_Help Class
*/
class WC_Admin_... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNewColumnsToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', f... |
<?
//header("Content-Type: text/html; charset=utf-8");
require_once 'lang.php';
?><!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title><?=$title[$lang]?$title[$lang]:'CSScomb'?></title>
<!--[if lte IE 8]><script type="text/javascript" src="/static/js/html5.js"></script><![endif]-->
<script src="h... |
<?php declare(strict_types=1);
namespace InstruktoriBrno\TMOU\Services\Teams;
use Doctrine\Common\Persistence\ObjectRepository; // phpcs:ignore
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use InstruktoriBrno\TMOU\Enums\GameStatus;
use InstruktoriBrno\TMOU\Model\Event;
use InstruktoriBrn... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class HelpRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules t... |
@extends('main')
@section('content')
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Agregar nuevo Registro</h6>
</div>
<div class="card-body">
<form action="{{route('registros.store')}}" method="POST" class="user">
<inp... |
<?php
require_once("connect.inc");
/*** test mysqli_connect 127.0.0.1 ***/
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
mysqli_select_db($link, $db);
mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch");
mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 char(10), c2 text)");
... |
<?php
declare(strict_types=1);
namespace Cube43\Component\Ebics\Crypt;
use Cube43\Component\Ebics\KeyRing;
use Cube43\Component\Ebics\OrderDataEncrypted;
use phpseclib\Crypt\AES;
use phpseclib\Crypt\RSA;
use RuntimeException;
use function Safe\gzuncompress;
use const OPENSSL_ZERO_PADDING;
/**
* @internal
*/
cla... |
<?php
class PaymentController extends Controller
{
public function index()
{
return self::view('donate');
}
public function paying()
{
$amount = $_POST['amount'];
$description = $_POST['description'];
//echo $amount;
//echo "you are nowpaying";
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EngineTasklistNumber extends Model
{
protected $fillable = [ 'request_submittion_id', 'no_group', 'description_tasklist', 'remark_tasklist'] ;
} |
<?php
namespace App;
use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authoriza... |
<?php
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
<div class="jumbotron">
<h1>Hi!</h1>
<p class="lead">Everything is ready.</p>
<p><a class="btn btn-lg btn-success" href="/short-url/">Try short URLs service now</a></p>
</div>
<... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class BillQuotationProducts extends Model
{
protected $table = 'bill_quotation_products';
protected $fillable = ['bill_id','quotation_product_id','rate_per_unit','quantity','is_deleted','product_description_id'];
public function quotation_pro... |
<?php
/**
* li₃: the most RAD framework for PHP (http://li3.me)
*
* Copyright 2010, Union of RAD. All rights reserved. This source
* code is distributed under the terms of the BSD 3-Clause License.
* The full license text can be found in the LICENSE.txt file.
*/
namespace lithium\tests\mocks\data\source\mongo_db... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class menuresto_model extends CI_Model
{
private $_table = "menu_resto";
public function getDataMenuResto(){
$this->db->join('m_jenismakanan', 'menu_resto.kd_jns_menu=m_jenismakanan.kd_jns_menu');
return $this->db->get($this->_table);
... |
<?php //copyright 2010,2014-2015 C.D.Price
function init_setup() {
global $_DB, $_STATE;
$state= $GLOBALS["_STATE"];
$sql = "SELECT a00.organization_id, a00.name, a00.timezone
FROM ".$_DB->prefix."a00_organization AS a00";
if (!$GLOBALS["_PERMITS"]->can_pass(PERMITS::_SUPERUSER)) {
$sql .= " INNER JOIN ".$_... |
<?php
namespace App\Http\Controllers;
use App\Feed;
use App\Poll;
use App\Vote;
use Illuminate\Http\Request;
class PollController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
... |
<!DOCTYPE html>
<html>
<head>
<title>Add To Do Work</title>
<?= link_tag('assets/css1/bootstrap.min.css'); ?>
</head>
<body>
<div class="container">
<?php include('header.php'); ?>
<?php include('parentnavigation.php'); ?>
<br>
<?php echo form_open('work/add_into_list', ['class'=>'form-horizontal']);?> <!-... |
<?php
/**
* Created by PhpStorm.
* User: Marwa
* Date: 18/02/2019
* Time: 18:20
*/
namespace PiDev\GestionEvenement\EvenementBundle\Form;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Fo... |
<?php
namespace App\Http\Livewire\Admin\Payroll;
use App\Models\Attendance;
use App\Models\CashAdvance;
use App\Models\Employee;
use App\Models\Holiday;
use App\Models\Payroll;
use App\Models\PayrollSummary;
use App\Models\Project;
use App\Models\User;
use Carbon\Carbon;
use Exception;
use Illuminate\Support\Facades\... |
<?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... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
<?php
/**
* Aura SQL wrapper for YOURLS that creates the allmighty YDB object.
*
* A fine example of a "class that knows too much" (see https://en.wikipedia.org/wiki/God_object)
*
* Note to plugin authors: you most likely SHOULD NOT use directly methods and properties of this class. Use instead
* function wrappe... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SanPham extends Model
{
//
protected $table = 'sanpham';
protected $fillable = ['ten_sanpham','giaban', 'mota', 'xuatxu', 'loai', 'nhasanxuat'];
protected $primaryKey = 'id_sanpham';
} |
<?php
namespace Ups\Entity;
use DOMDocument;
use DOMElement;
use Ups\NodeInterface;
class EEIFilingOption implements NodeInterface
{
const FO_SHIPPER = '1'; // Shipper Filed
const FO_UPS = '3'; // UPS Filed
/**
* @var string
*/
private $code;
/**
* @var string
*/
pri... |
<?php
require("passcheck.php");
if (!isset($_POST['mode'])) $_POST['mode'] = '';
if(get_magic_quotes_gpc()) {
$_POST = array_map("stripslashes", $_POST);
}
if (!isset($_REQUEST['bbs']) or !$_REQUEST['bbs']) disperror("ERROR!","ERROR:板名をいれてちょ。。。");
if (!is_dir("../$_REQUEST[bbs]")) disperror("ERROR!","ERROR:そんな板ないです。")... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\VisitTime;
use Exception;
use Piwik\Archive;
use Piwik\DataTable;
use Piwik\Date;
use Piwik\Metrics;
use Piwik\Period;
use Piwik\Piwik;
use... |
<?php
/**
* @author Andrew Coulton <andrew@ingenerator.com>
*/
namespace test\unit\Ingenerator\KohanaExtras\RequestExecutor;
use Ingenerator\KohanaExtras\DependencyContainer\DependencyContainer;
use Ingenerator\KohanaExtras\RequestExecutor\ContainerAwareRequestExecutor;
use Request;
use Response;
class Containe... |
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators ">
@forelse($revslider as $slide)
@if($loop->index==0)
<li data-target="#carouselExampleIndicators" data-slide-to="{{$loop->index}}" class="active"></li>
@else
<li data-target="#carousel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.