text stringlengths 2 1.03M |
|---|
<?php
namespace VerteraDev\TranslationLoader\Yii2\Reader;
use Generator;
use yii\db\Query;
use VerteraDev\TranslationLoader\Data\TranslationGroup;
use VerteraDev\TranslationLoader\Data\TranslationItem;
use VerteraDev\TranslationLoader\Reader\TranslationReaderAbstract;
class DbReader extends TranslationReaderAbstract... |
<?php
/*
* Copyright (c) Ouzo contributors, http://ouzoframework.org
* This file is made available under the MIT License (view the LICENSE file for more information).
*/
namespace Ouzo\Request;
use Ouzo\Uri;
class RequestParameters
{
/** @var RoutingService */
private $routingService;
/**
* @Inj... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send any email
| messages sent by your appl... |
<div class="wrapper">
<div class="sidebar" data-color="purple" data-image="<?php echo base_url('resources/images/sidebar-5.jpg');?>">
<div class="sidebar-wrapper">
<div class="logo logoadmin">
<a class="admin-brand" rel="home" href="#">
<img src="<?php echo base_url('resources/i... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Yajra\DataTables\Facades\DataTables;
use App\Role;
class RoleController extends Controller
{
/**
* A summary informing the user what the associated element does.
*
* A *description*, that can span multiple lines, to go _in-depth_ into t... |
Welcome to Dashboard <br>
<a href="<?php echo site_url('admin/login/logout') ?>">Log Out</a> |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Test\HalfFinding\Types;
use DTS\eBaySDK\HalfFinding\Types\ErrorParameter;
class ErrorPara... |
<?php
namespace App\Http\Controllers;
use App\Ban;
use App\ChangeName;
use App\Fraction;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
class StatsController extends Controller
{
public function __construct()
{
$this->middleware('server');
View::composer('cli... |
<?php
declare(strict_types=1);
namespace DaPigGuy\PiggyCustomEnchants\enchants\weapons;
use DaPigGuy\PiggyCustomEnchants\enchants\CustomEnchantIds;
use DaPigGuy\PiggyCustomEnchants\enchants\ReactiveEnchantment;
use pocketmine\event\entity\EntityDamageByEntityEvent;
use pocketmine\event\Event;
use pocketmine\inventor... |
<?php $__env->startSection('admin_content'); ?>
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="index.html">Home</a>
<i class="icon-angle-right"></i>
</li>
<li><a href="#">Dashboard</a></li>
</ul>
<div class="row-fluid">
<div class="span3 statbox purple" onTable... |
@include('inc.header')
<section id="reports">
<div class="container" style="margin-top:200px; margin-bottom:100px;">
<div class="float-end">
<a href="/assign" name="button" class="btn btn-info float-right">Add New Attraction</a>
</div>
<h4 style="margin-bottom:2... |
<?php
namespace WLDH\Voyager\FormFields;
use Illuminate\Support\Str;
use WLDH\Voyager\Traits\Renderable;
abstract class AbstractHandler implements HandlerInterface
{
use Renderable;
protected $name;
protected $codename;
protected $supports = [];
public function handle($row, $dataType, $dataType... |
<?php
namespace app\admin\validate;
use think\Validate;
class DataSchools extends Validate
{
/**
* 验证规则
*/
protected $rule = [
];
/**
* 提示消息
*/
protected $message = [
];
/**
* 验证场景
*/
protected $scene = [
'add' => [],
'edit' => [],
];... |
<?php
namespace BTCPay\Entity;
/**
* phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
*/
class BitcoinPayment extends \ObjectModel
{
/**
* @var int
*/
public $id;
/**
* @var int
*/
public $cart_id;
/**
* @var int|null
*/
public $order_id;
/**
* @var string
*/
pub... |
@extends('frontend.layouts.app')
@section('content')
<main>
<div class="archive-header pt-50">
<div class="container">
<h2 class="font-weight-900">{{ $tag->tag_name }}</h2>
<div class="breadcrumb">
<a href="/" rel="nofollow">Home</a>
<span></span> T... |
<?php
//Konfig aplikacji
if(file_exists("../../conf.ig.php")) {
include_once("../../conf.ig.php");
}
//Właczenie wyświetlania błedów
ini_set('display_errors','On');
//error reporting( E_WEARNING );
error_reporting(E_ALL ^ E_NOTICE );
//error_reporting(E_ALL);
?>
<h2 class="mt-4">Rejestracja</h2><b... |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
extract($displayData);
/**
* Layout variab... |
@extends('frontend.layouts.app')
@section('title')
<title>Products</title>
@endsection
@section('content')
<div class="w-full h-full bg-gray-200 py-8">
@forelse ($products as $product)
<div class="flex max-w-md mx-auto overflow-hidden bg-white rounded-lg shadow-lg dark:bg-gray-800
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<?php
namespace Crypt;
/**
* Base64 加密实现类
*/
class Base64 {
/**
* 加密字符串
* @param string $str 字符串
* @param string $key 加密key
* @param integer $expire 有效期(秒)
* @return string �����v���w���}wΖd�ڏ�ŮǨ��
*/
public static function encrypt($data,$key,$expire=0) {
$expire ... |
<?php
/**
* Class tdb_category_grid
*/
class tdb_category_grid_10 extends td_block {
const POST_LIMIT = 7;
static function cssMedia( $res_ctx ) {
// modules gap
$modules_gap = $res_ctx->get_shortcode_att('modules_gap');
$res_ctx->load_settings_raw( 'modules_gap', $modules_gap );
... |
<?php
namespace Schemer\Validator;
/**
* Real validator.
*/
class Real extends ValidatorAbstract
{
/**
* The value must be a float.
* @param string $error
* @return Schemer\Validator\Real
*/
public function __construct(string $error = 'not a float')
{
$this->restrictions = [
... |
<?php
namespace websightnl\yii2\sybase;
use yii\base\InvalidParamException;
use yii\db\ColumnSchema;
use yii\db\TableSchema;
/**
* Schema is the class for retrieving metadata from a Sybase SQL Anywhere 12 databases.
*
* @author Eric Bus <eric.bus@websight.nl>
* @since 2.0
*/
class Schema extends \yii\db\Schema
... |
<?php namespace NathanBurkett\EventDispatcher\Tests\Integration\Concrete\Event;
use NathanBurkett\EventDispatcher\Event\Event;
class AlphaEvent extends Event
{
} |
<?php
function curl_post_raw($url, $rawData)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\ContProjProrrogacoesSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="cont-proj-prorrogacoes-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'metho... |
<?php
/* @Framework/Form/submit_widget.html.php */
class __TwigTemplate_bdc62edbbcb7ad6781dc27ab7c2564628d78f41af6db2e125e2690da90dd4f13 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array... |
<?php
namespace App\Payment;
class WrongGroupException extends \Exception
{
public function __construct($message = '')
{
parent::__construct($message);
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Survey extends Model
{
// guarding fields so not mass assignable
protected $guarded = [];
// setting relationship - Survey belong to a questionnaire
public function questionnaire()
{
return $this->belongsTo(Questionnaire::... |
<?php
include('../layout/app.php');
?>
<section class="bg-faded page-content" >
<?php include '..\donar.php'?> <!-- TODO modificar para donar a la fundacion correcta-->
<?php $consulta = $user->mis_reservadas(); $conocerEstado=true;
include '..\galerias\galeria_principal.p... |
<?php
namespace App\Command;
use League\Flysystem\FilesystemInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInter... |
<!DOCTYPE html>
<html lang="en">
<?php
include_once "head.php";
?>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<!-- sidebar left -->
<?php
include_once "sidebar.php";
?>
<!-- sidebar left end -->
<!-- top navigation... |
<?php
// This is the HTML template include file (.tpl.php) for LemonAssessmentListPanel.
// Remember that this is a DRAFT. It is MEANT to be altered/modified.
// Be sure to move this out of the drafts/dashboard directory before modifying to ensure that subsequent
// code re-generations do not overwrite your chang... |
<?php
namespace app\admin\validate;
use think\Validate;
class Inform extends Validate
{
public $rule = [
['title','require','小区通知标题不能为空!'],
['path','require','图片不能为空!'],
['start_time','require','开始时间不能为空!'],
['end_time','require','结束时间不能为空!'],
['content','require','小区通知内容... |
<?php
namespace Leeovery\LaravelSettings;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
use Leeovery\LaravelSettings\Event\SettingUpdated;
use Leeovery\LaravelSettings\Defaults\DefaultRepository;
class LaravelSettings
{
/**
* @var DefaultRepository
... |
@extends('layouts.layout')
@section('content')
<div class="container formulario-registro">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<form class="form-horizontal" method="POST" action="{{ route('register') }}">
{{ csrf... |
@extends('layouts.app_frontend')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>
<div class="card-body">
... |
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license Modified MIT License
* @link https://blueimp.net/ajax/
*/
// Include Class libraries:
require(AJAX_CHAT_PATH . 'lib/class/AJAXChat.php');
require(AJAX_CHAT_PATH . 'lib/class/AJAXChatDataBase.php');
require(AJAX_... |
<?php
class CloudWatchEventListeningTest extends TestCase
{
protected function setUp(): void
{
parent::setUp();
$this->setupCloudWatch();
}
public function testBasicEventMetricAdded()
{
event(new BasicCloudWatchEvent);
Metrics::flush();
$this->assertEquals(... |
<?php
/**
* ModelInterface
*
* PHP version 7.2
*
* @category Class
* @package OpenAPI\Client\Model
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not ... |
<?php include('header.php'); ?>
<?php isset($data) ? print_r($data) : ''; ?>
<?php if((isset($not_registered) && !($not_registered))) { ?>
<div class="error-div" id="error-div">
<div class="error-in-div">
... |
<?php
namespace frontend\modules\sale\api;
use Yii;
use common\components\APIObject;
use frontend\models\Photo;
use frontend\modules\sale\models\Sale as SaleModel;
/**
* Class SaleObject
* @package frontend\modules\sale\api
*
* @property string $id
* @property string $language
* @property string $name
* @prope... |
<h2>Employees</h2>
<a href="<?php echo HTTP_PATH.'hr/employee_profile/add'; ?>" data-toggle="modal" data-target="#modalDialog" data-backdrop="static" class="btn btn-success"> Add</a>
<a href="<?php echo HTTP_PATH.'hr'; ?>" class="btn btn-dark force-pageload">Back</a>
<table data-toggle="table" id="hr-table" class="tab... |
<?php
namespace Frozennode\Administrator\Config;
use Frozennode\Administrator\Validator;
use Illuminate\Validation\Validator as CustomValidator;
use Frozennode\Administrator\Config\Settings\Config as SettingsConfig;
use Frozennode\Administrator\Config\Model\Config as ModelConfig;
class Factory
{
/**
* The v... |
<?php
//CREDIT | BOSSNZ
include 'uidfreefire.class.php';
//key antirecaptcha ไปหาซื้อกันเองนะครัชชช
$token_antirecaptcha = "";
$topup = New topup_freefire($token_antirecaptcha);
$uid = '950516437';
//login ด้วย uid freefire ก่อน
print_r($topup->login_freefire($uid));
//login เสร็จแล้วจะได้open_idไว้เติมฟรีฟายด้วยบัตรก... |
<?php
namespace Illuminate\Broadcasting;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Broadcast;
class BroadcastController extends Controller
{
/**
* Authenticate the request for channel access.
*
* @param \Illuminate\Http\Request $request
*... |
@extends('backend.layouts.master')
@section('title','Admin List')
@section('page-header')
<i class="fa fa-list"></i> Admin List
@stop
@push('css')
<style>
table th,
td {
text-align: center !important;
vertical-align: middle !important;
}
</style>
@endpush
@se... |
<?php
namespace App\Policies;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class UserPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\User $user
* @return mixed
*/
public function viewAny(User $user)
... |
@php
$colMd6 = ['class' => 'form-group col-md-6'];
$purpose = $entry->data_json['purpose'] ?? '';
$typeofProperty = $entry->data_json['type_of_property'] ?? '';
$maxPrice = $entry->data_json['max_price'] ?? '';
$minPrice = $entry->data_json['min_price'] ?? '';
$maxSize = $entry->data_json['max_... |
@extends('Layout.Main')
@section('title', 'Member | Ubah Member')
@section('Content')
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Ubah Member</h1>
</di... |
@extends('layouts.app')
@section('title')
Situs Jual Beli Terpercaya | Tokomoba
@endsection
@section('content')
<div class="page-content page-home">
<section class="store-carousel">
<div class="container">
<div class="row">
<div class="col-lg-12" data-aos="zoom-in">
... |
<?php
namespace ToolkitApi\CW;
/**
* Class to handle errors in a manner similar to the old toolkit.
* Singleton class because we only hold on to the last error (one).
*
*/
class I5Error
{
static $instance = null;
static protected $_i5Error = array();
/**
* @return null
*/
static function... |
<?php
/** PHPExcel root directory */
if (!defined('PHPEXCEL_ROOT')) {
/**
* @ignore
*/
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
}
/**
* PHPExcel_Reader_Excel2007
*
* Copyright (c) 2006 - 2015 PHPExcel
*
* This library is fre... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class M_po extends CI_Model
{
function get_list_po()
{
$data = array();
$start = $_POST['start'];
$length = $_POST['length'];
$no = $start + 1;
$filter = $this->input->post('filter');
switch ... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class About_model extends CI_Model
{
public $table = 'about';
public $id = 'id';
public $order = 'DESC';
function __construct()
{
parent::__construct();
}
// datatables
function json() {
$th... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Coupan
<small>Manage Coupans</small>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo base_url('dashboard'); ?>"><i class="fa fa-... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Mail;
class DailyQuote extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'quote:daily';
/**
* The console command d... |
<?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 RectorPrefix20211107\Symfony\Contracts\Translation\Test;
use RectorPrefi... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are gi... |
@extends('layouts.master')
@section('title', 'PPDB - Biodata')
@section('css')
<style>
body {
background: -webkit-linear-gradient(left, #3931af, #00c6ff);
}
.emp-profile {
padding: 3%;
margin-bottom: 3%;
border-radius: 0.5rem;
background: #fff;
}
.profile-im... |
<?php
class MUnit extends CI_Model
{
public function __construct() {
parent::__construct();
## declate table name here
$this->table_name = 'm_unit' ;
$this->id_perwakilan = 99 ;
}
## get all data in table
function getAll() {
$this->db->where('is_active','1');
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = ['title', 'body'];
public function category()
{
return $this->belongsTo('App\category');
}
public function tags()
{
return $this->belongsToMany('App\Tag');
}
} |
<?php
/**
* Created by PhpStorm.
* User: azv
* Date: 16/09/15
* Time: 11:56
*/
namespace CodeProject\OAuth;
use Illuminate\Support\Facades\Auth;
class Verifier
{
public function verify($username, $password)
{
$credentials = [
'email' => $username,
'password' => $passwor... |
<?php
namespace App\MediBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ActividadRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ActividadRepository extends EntityRepository
{
} |
<?php
include 'core/init.php';
$version = "0.13 Alpha";
?>
<!DOCTYPE html>
<html>
<head>
<?php include 'includes/head.php'; ?>
</head>
<body>
<?php
$go = urldecode($_GET["go"]);
$courseName = urldecode($_GET["courseName"]); //gets the course name from the URL
$courseID = urldecode($_GET["co... |
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php
/*
* 这里的一小块代码为固定链接跳转,默认关闭,如有需要请自行修改
* 使用方式见:https://eas1.cn/167.html
*/
if ($this->options->winds301 == 1){
// echo "1111111";
$error_url = '//'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$id = strstr($error_url, 'posts'); //截取以posts开始的字符串
if... |
<?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=help-micro',
'username' => 'root',
'password' => '',
'charset' ... |
<?php
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_... |
<!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, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Login - Admin</title>
... |
@extends('layouts.app')
@section('title', 'Clientes')
@section('content')
<div class="container">
<div class="row" style="margin-top: 15px">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab"
style="margin: 0 auto">
<div ... |
@section('sidebar')
<!-- partial:partials/_sidebar.html -->
<nav class="sidebar sidebar-offcanvas" id="sidebar">
<ul class="nav">
<li class="nav-item nav-profile">
<a href="#" class="nav-link">
<div class="nav-profile-image">
<img src="/images/faces/face1.jpg"... |
<link rel="stylesheet" href="<?php echo e(asset('css/bootstrap.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('css/style-admin.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('vendors/bootstrap-tagsinput-latest/dist/bootstrap-tagsinput.css')); ?>">
<link rel="stylesheet" href="<?php echo ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserItem extends Model
{
use HasFactory;
protected $guarded = ['id', 'created_at', 'updated_at'];
public function item(){
return $this->belongsTo( Item::class, 'item_... |
<?php
declare(strict_types=1);
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... |
<?php
namespace frontend\models;
use backend\models\AuthAssignment;
use common\models\User;
use yii\base\Model;
use Yii;
/**
* Signup form
*/
class SignupForm extends Model
{
public $username;
public $email;
public $password;
public $permissions;
/**
* @inheritdoc
*/
public functi... |
<?php
class Error404Controller extends Controller
{
function process($arguments = null)
{
$this->header = array(
"title" => "Error404", "keyWords" => "Stránka nenalezena", "description" => "Chyba 404"
);
$this->view = 'error';
header("HTTP/1.1 404 Not Found");
}
} |
<?php
namespace NlpTools\Similarity;
class HammingDistanceTest extends \PHPUnit_Framework_TestCase
{
public function testHammingDistance()
{
$dist = new HammingDistance();
$A = "ABCDE";
$B = "FGHIJ";
$C = "10101";
$D = "11111";
$this->assertEquals(
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class MY_Controller extends CI_Controller{
//bien gui du lieu
public $data = array();
public function __construct(){
parent:: __construct();
$controller = $this->uri->segment(1);
swi... |
<?php
namespace Guzzle\Service\Command\LocationVisitor\Request;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Service\Command\CommandInterface;
use Guzzle\Service\Description\Operation;
use Guzzle\Service\Description\Parameter;
/**
* Location visitor used to serialize XML bodies
*/
class XmlVisitor extends ... |
<?php
namespace CTApi\Requests;
use CTApi\Models\Song;
class SongRequest
{
public static function all(): array
{
return (new SongRequestBuilder())->all();
}
public static function where(string $key, $value): SongRequestBuilder
{
return (new SongRequestBuilder())->where($key, $v... |
<?php
namespace DigitalWand\AdminHelper\Helper;
use Bitrix\Main\Loader;
use Bitrix\Main\LoaderException;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\ModuleManager;
use DigitalWand\AdminHelper\Widget\HelperWidget;
use Bitrix\Main\Entity\DataManager;
use Bitrix\Highloadblock as HL;
use Bitrix\Main\Context;
Loade... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<?php
/* @var $model app\modules\st\models\Guest */
use kartik\icons\Icon;
use yii\bootstrap4\Modal;
use yii\helpers\Html;
Modal::begin([
'title' => '<h4>' . Icon::show('user-graduate') . $model->guest_fio . '</h4>',
'toggleButton' => ['label' => Icon::show('video') . 'Запись', 'class' => 'btn btn-sm bg-purpl... |
<?php
class commentsModel extends Model {
public function addComment($data) {
$sql = "INSERT INTO `comments`(`name`,`title`,`content`,`date`) VALUE (";
$sql .= "'".$data['name']."', ";
$sql .= "'".$data['title']."',";
$sql .= "'".$data['content']."',";
$sql .= "'".date('d-m-Y')."')";
$this->db->query($... |
<div class="content-wrapper">
<section class="content">
<form action="<?php echo base_url().'buah/edit_data'; ?>" method="post">
<div class="form-group">
<input type="hidden" name="id" class="form-control" value="<?php echo $buah->id_buah ?>">
<label>Nama Buah</label>
<input type="text" name="nama_bua... |
<?php
namespace App\Services\Users;
use App\Models\Mst\DataUser;
use App\Models\Radcheck;
use App\Models\Radusergroup;
use App\User;
use Illuminate\Foundation\Validation\ValidatesRequests;
class doRegisterUserService
{
use ValidatesRequests;
public function handle()
{
$this->validate(request(),[
... |
<?php
namespace src\sys\core;
use src\base\BaseLogic;
class SysModuleLogic extends BaseLogic{
const CACHE_KEY = 'cache_module';
function getItems($name = '',$key='id',$val=null){
$list = parent::query(['name'=>$name],'sort desc');
if($key && $list && isset($list[0][$key])){
$list = array_column($... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddForeignKeysToAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accou... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIdcardTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('idcard', functio... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateCouponsTableD23 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('coupons', fun... |
<?php
namespace REBELinBLUE\Deployer\Console\Commands\Traits;
use DateTimeZone;
use Illuminate\Support\Collection;
use PDO;
trait GetAvailableOptions
{
/**
* Gets an array of available PDO drivers which are supported by Laravel.
*
* @return array
*/
protected function getDatabaseDrivers()... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
@foreach ($discussions as $disc)
<div class="card mb-3">
<div class="card-body">
<div class="row">
... |
<?php
$kelas = $_POST['kelas'];
$bulan = $_POST['bulan'];
$tahun = $_POST['tahun'];
include '../../config/database.php';
$sql="select * from analisis_kehadiran where bulan='".$bulan."' and tahun='".$tahun."' and kelas='".$kelas."'";
$cek=mysqli_query($kon,$sql);
$jumlah_data = mysqli_num_r... |
<?php
namespace App\Controller;
use App\Entity\Brief;
use App\Entity\Formateur;
use App\Entity\Ressource;
use App\Entity\BriefApprenant;
use App\Entity\BriefPromotion;
use App\Entity\EtatBriefGroupe;
use App\Entity\LivrableAttendu;
use App\Entity\LivrableApprenant;
use App\Repository\TagRepository;
use App\Repository... |
@extends('dashboard.layout.main')
@section('content')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Hello {{ auth()->user()->name }}</h1>
</div>
<a href="/" class="btn btn-primary"><span data-feather="arrow-left"... |
<?php
namespace Evention\Database\Seeds;
use Closure;
use App\Models\Image;
use App\Models\Product;
use App\Models\Review;
use Illuminate\Support\Facades\Schema;
class SampleDataSeeder extends Seeder
{
/**
* Seed some data
*
* @return void
*/
public function run()
{
Schema::di... |
<?php
/**
* WordPress Export Administration Screen
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('export') )
wp_die(__('You do not have sufficient permissions to export the content of this site.')... |
<?php
declare(strict_types = 1);
namespace Tests\Innmind\ObjectGraph\Assert;
use Innmind\ObjectGraph\{
Assert\Stack,
Graph,
};
use Fixtures\Innmind\ObjectGraph\{
Foo,
Bar,
Baz,
};
use PHPUnit\Framework\TestCase;
class StackTest extends TestCase
{
public function testStackFound()
{
... |
<!-- ============================================== TOP MENU ============================================== -->
<div class="top-bar animate-dropdown">
<div class="container">
<div class="header-top-inner">
<div class="cnt-account">
<ul class="list-unstyled">
<li>
<a href="#"><i... |
<?php
namespace App\Http\Controllers;
use App\Models\parameters\bankAccount;
use App\Models\parameters\organization;
use Illuminate\Http\Request;
use Yajra\DataTables\Facades\DataTables;
class BankAccountController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illumina... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.