lang stringclasses 10
values | seed stringlengths 5 2.12k |
|---|---|
php | /**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2022 <NAME>
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Routing\Matchers;
/**
* Defines the interface for route matchers to implement |
php | /**
* Validation Custom Messages
*
* @var array
*/
protected $messages = array();
|
php | int $qtdLances,
Leilao $leilao,
array $valores
) {
static::assertCount($qtdLances, $leilao->getLances());
foreach ($valores as $index => $valorEsperado) { |
php | <div id='checkbox_container' class='level-center'>";
$catids = genrelist(true);
if ($CURUSER['opt2'] & user_options_2::BROWSE_ICONS) {
foreach ($catids as $cat) {
$text .= "
<span class='margin10 mw-50 is-flex bg-02 round10 tooltipper' title='" . htmlsafechars($cat['name'... |
php | });
</script>
<script>
ClassicEditor
.create(document.querySelector('#editor1'), {
// toolbar: [ 'heading', '|', 'bold', 'italic', 'link' ]
})
.then(editor => {
window.editor = editor;
})
.catch(err => {
console.error(err.stack);
... |
php | namespace App;
use Illuminate\Database\Eloquent\Model;
use Spatie\Permission\Traits\HasRoles;
#use App\Scopes\QueryScope;
class Info extends Model
{
protected $table = 'info';
|
php | <td><a href="users/{{$user->id}}/edit" class="btn btn-warning">EDIT</a>
{!!Form::open(['action' => ['UsersController@destroy', $user->id], 'class' => 'btn', 'method' => 'POST', 'onsubmit' => 'return confirm("Sunteti sigur ca vreti sa stergeti acest profesor din baza de date?")'])!!}
{{Form... |
php | <?php
namespace Army;
class ArcherForge extends Forge
{
public function createWarrior(): Warrior
{
$archer = new Archer();
return $archer;
}
} |
php | });
// Rutas para Operativos
Route::group(['middleware' => ['permission:sanciones|operativos|universal']], function () {
Route::group(['middleware' => ['operativos']], function () {
Route::get('/operativos', 'OperativosController@index')->name('operativos'); |
php | */
protected $indexBannerService;
/**
* @var CourseService |
php |
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Columns extends Migration
{ |
php | padding-bottom: 3rem !important;
}
.pt-5, .py-5 {
padding-top: 3rem !important;
}
.pl-2, .px-2 {
padding-left: .5rem !important;
}
.pr-2, .px-2 {
padding-right: .5rem !important;
}
.mb-4, .my-4 {
margin-bottom: 1.5rem !important;
}
.shadow ... |
php | <div class="row">
<button type="submit" class="buttons">Create</button>
</div>
@include('admin.layouts.errors')
</form> |
php | {
preg_match_all ("/\[pw\](.*)\[\/pw\]/U", $this->content, $contents);
$replace = [];
foreach ($contents[1] as $v) {
$vs = explode('|', $v); |
php | //var_dump($name);
//return response()->json($name);
return $name;
});
// Route::get('/users/{id}', function ($id) {
// return 'User '.$id;
// });
// Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) {
// return "Post ".$postId." ".$commentId;
// });
// Route::get('/users/{na... |
php | $result = $db->select("SELECT * FROM users WHERE login='".$_POST['login']."'");
foreach ($result as $key)
if ((hash('sha256', $_POST['password'])==$key['password'])&&($_POST['login']==$key['login']))
$_SESSION['log']="true";
$_SESSION['enter']=intval($key['rights']);
header("Loca... |
php | $query .= "MAX(item_id) AS DernBillet, ";
$query .= "CONCAT(PERS.firstname, ' ', UPPER(PERS.lastname)) AS quat, ";
$query .= "IF(MIN(HIST.action_id) IS NULL, '' ,MIN(HIST.action_id)) AS BilletMINcomm, ";
$query .= "IF(MAX(HIST.action_id) IS NULL, '', MAX(HIST.action_id)) AS BilletMAXcomm, ";
$query .= "MAX(HIST.cr... |
php | * @return array
*
* @see pm_View_List_Simple::setColumns()
*/
public function getColumns($controller, $action, $activeList) { }
} |
php | // fazer um preg_match e guardar em $matches
$matches = [];
preg_match_all($text, $page, $matches);
// Quantidade de estrelas e o nome do repositório
$stars = [];
foreach ($matches[0] as $key => $value){
// pega a posição do elemento mais próximo, que nesse caso é esse svg aí...
$svg_pos = strpos($value, '<sv... |
php | .bottom-mobile footer h2 {
margin-top: 20px;
margin-bottom: 5px;
}
|
php |
if ($type == 'header_auth') {
$header_auth_token_str = 'token:' . $header_auth_token;
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept:application/json', $header_auth_token_str));
} |
php | <?php
namespace Netesy\Tracker\Data\Repositories;
class SqlQueryBinding extends Repository
{ |
php | <?php
namespace App\Http\Controllers;
class ContactController extends Controller
{
//
} |
php | <section class="content">
<div class="row" style="margin-bottom:5px;">
<div class="col-md-3">
<div class="sm-st clearfix">
<span class="sm-st-icon st-red"><i class="fa fa-check-square-o"></i></span>
<div class="sm-st-info">
<span>{{count($data)}}</span>
... |
php | <button type="submit" class="btn btn-primary">Cetak</button>
</form>
</div>
</div>
</div>
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright © Your Website 2019</span... |
php | "vAccessTitle" => "店家自營商"
],
[
"iLevel" => 5,
"vAgentCode" => "PTW10001",
"iAcType" => 5,
"vAccessTitle" => "合作廠商"
],
[
"iLevel" => 6,
... |
php | <?php
$conexion = mysqli_connect("localhost","root","","observatoriouab");
$query = $conexion->query("SELECT DISTINCT uf_polos FROM polos");
echo '<option value="0">Selecione um estado ... </option>';
while ( $row = $query->fetch_assoc() ){
|
php | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
|
php | <!DOCTYPE html>
<html lang="<?php echo $lang['langcode'] ?>">
<head>
<meta charset="utf-8">
<title>RACHEL - <?php echo $lang['home'] ?></title>
<link rel="stylesheet" href="/css/normalize-1.1.3.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/ui-lightness/jquery-ui-1.10.4.custom.min... |
php | echo "alert('WRONG INFORMATION')";
echo "</script>";
die();
}
} else {
if(($_SESSION['timeOfBan'] - date('h:i') > date('H:30')){
$_SESSION['timeOfBan'] = date('H:i');
$_SESSION['isBlocked'] = false;
... |
php |
'pdf.menu' => 'pdf/karakala-carta-2019-castellano.pdf',
'pdf.wine' => 'pdf/karakala-carta-vinos-2019-castellano.pdf',
'pdf.christmas' => 'pdf/menu-navidad-karakala-2018.pdf'
]; |
php | */
'username' => env('VALUTORPC_USER', "valutorpc"),
/**
* Password
*/ |
php | use PDF;
class PdfGenerateController extends Controller
{
|
php | <?php
namespace AndrewSvirin\Ebics\Exceptions;
final class SignatureEbicsException extends EbicsException
{
}
|
php |
public function testGetPropertiesWithObjectClassResolver(): void
{
$object = new \stdClass();
$classResolver = function ($objectArg) use ($object): string {
$this->assertSame($object, $objectArg);
return 'foo';
};
|
php | @section('css')
<link rel="stylesheet" href="{{ asset('css/rotacion.css') }}">
@endsection
@section('scriptHeader')
<script src="{{ asset('js/Chart.min.js') }}"></script>
@endsection
@section('contenido')
<div class="content">
<h1 class="title-inform">Informe de ingresos</h1> |
php | font-size: 18px;
}
.trace {
position: relative;
width: 500px;
height: 25px;
background-color: rgba(64,64,64,.5);
border: 1px dotted black;
padding: 10px; |
php | break;
case '308000' :
foreach ( $result ['list'] as $info ) {
$articles [] = array (
'Title' => $info ['name'],
'Description' => $info ['info'], |
php | use App\User;
use Illuminate\Support\Facades\Auth;
use Modules\Booking\Models\Payment;
class Transaction extends \Bavix\Wallet\Models\Transaction
{
public function payment(){
return $this->belongsTo(Payment::class,'payment_id')->withDefault();
}
|
php | 'request' => [
'name_required' => 'Name is required',
],
],
'form' => [
'help_block' => 'Property feature information',
'name' => 'Title',
],
]; |
php | $m_100full = "100 Mbps en mode bidirectionnel simultané";
$m_100half = "100 Mbps en mode bidirectionnel non simultané";
$m_10full = "10 Mbps en mode bidirectionnel simultané";
$m_10half = "10 Mbps en mode bidirectionnel non simultané";
$m_more_info = "Pour en savoir plus";
$m_ping = "Ping";
$m_ping_passed = "Ré... |
php | /**
* @inheritdoc
*/
public static function tableName()
{
return 'desc_network';
} |
php | use Yii;
use yii\helpers\Html;
use yii\widgets\ActiveField;
/**
* Class AdvancedSearchActiveField
*
* @author <NAME> <<EMAIL>>
*/ |
php | <div class="col-sm-2">
<?php if($id!="0")
{
foreach($departement as $m):
echo '<input type="text" id="kode" name="kode" value="'.$m["kode"].'">';
endforeach;
... |
php | * to lower case.
*
* @category String
*
* @param string $string The string to capitalize. |
php | <h2>Preencha os campos:</h2>
</div>
<div>
<label for="user">Usuário:</label>
<input type="text" id="user" name="user">
</div>
<div>
<label for="senha">Senha:</label>
<input type="password" id=... |
php | $request->session()->flush();
return redirect()->route('auth.login');
}
else {
Auth::logout();
$request->session()->flush();
return redirect()->route('tpshop.index.index');
}
} |
php | *
* @param Request $request
* @param int $storeId
* @return Response
*/
public function update(Request $request, $storeId, $jobOrderId) {
// only status and remarks are updatable
$jobOrder = JobOrder::find($jobOrderId);
if (!$jobOrder) {
return res... |
php | use Contus\Payment\Repositories\TransactionRepository;
use Contus\Payment\Models\PaymentTransactions;
class PaymentController extends BaseController {
/**
* Construct method
*/
public function __construct(PaymentRepository $paymentRepository, TransactionRepository $transactionHistory) { |
php | </div>
</a>
</div>
<?php } ?>
</div>
</div>
</section>
<?php } ?>
<?php } else {?>
<section class="country text-center nocont-page">
<div class="container">
... |
php | <?php
/**
* Created by PhpStorm.
* User: karlpineau
* Date: 02/12/2016
* Time: 10:34
*/
header("content-type:application/json");
$movies = json_decode(@file_get_contents('http://zone47.com/tda/api/'));
|
php | <?php
include "../config/config.php";
include "../lib/database.php";
$m = new Database();
$sql = "SELECT hoadon.id,DATE_FORMAT(thoigianden, '%d/%m/%Y %H:%i') AS thoigianden,DATE_FORMAT(thoigiandi, '%d/%m/%Y %H:%i') AS thoigiandi,thanhtien,CONCAT(tenban,' - ',tenkhuvuc) as tenban,nhanvien FROM hoadon,ban,khuvuc WH... |
php | <?php
/**
* @package OnlinePublisher
* @subpackage Templates.Calendar
*/
require_once '../../../Include/Private.php';
$id = Request::getId();
if ($row = CalendarTemplateController::load($id)) {
Response::sendObject($row);
} else {
Response::notFound();
}
?> |
php | <div class="dropdown-menu col-8 col-md-12" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="<?php echo base_url().'staff/reportCashIn' ?>">Cash In</a>
<a class="dropdown-item" href="<?php echo base_url().'staff/rep... |
php | <label for="password_confirmation" class="sr-only">Password confirmation</label>
<input type="password" id="password_confirmation" name="password_confirmation"
class="bg-gray-100 border-2 w-full p-4 rounded-lg" placeholder="Password confirmation" value="">... |
php | <p class="noidungchuy"><i>-  Kết quả thi có sau ngày <?php echo date_format(date_create_from_format('Y-m-d', $ngayketqua), 'd/m/Y') ?>.</i></p>
<p class="noidungchuy"><i>-  Chứng chỉ Ứng dụng Công nghệ thông tin cơ bản có sau 90 ngày kể từ ngày thi và nhận tại phòng Đào tạo của Trường (mang th... |
php | * @param UserRequest $request
* @param int $id
* @return \Illuminate\Http\RedirectResponse
*/
public function update(UserRequest $request, $id) |
php | // Check if we need to ignore Header
if (!isset($this->ignoredHeaders[\strtolower($hName ?? '')])) {
if ($headers->has($hName)) {
$tmp = $headers->getAll($hName);
foreach ($tmp as $header) { |
php | <?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Http\Controllers\HomeController; |
php | <?php
class AdminTableSeeder extends Seeder {
public function run() |
php | <?php
namespace App\Controller\Admin;
use Micro\Application\Controller;
class Index extends Controller
{
protected $scope = 'admin';
public function indexAction() |
php | */
public function getCampaignNegativeKeyword(string $keywordId)
{
return $this->httpGet("/sp/campaignNegativeKeywords/{$keywordId}");
}
/** |
php | <?php
namespace Aceraven777\PayMaya\Model\Checkout;
class Item
{
public $name;
public $code;
public $description;
public $quantity; |
php |
/**
* @var \Concrete\Package\BaclucC5Crud\Src\Import\ComparisonSet $comparisonset
*/
$isnewEntry = false; |
php | <div class="vtabs">
<ul class="nav nav-tabs tabs-vertical" role="tablist">
<li class="nav-item"> <a class="nav-link active" data-toggle="tab" href="#tramite" role="tab">Tramite</a> </li>
<li class="nav-item"> <a class="nav-link" data-toggle="tab"... |
php | use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PembayaranController;
use App\Http\Controllers\KaryawanController;
use App\Http\Controllers\SantriController;
use App\Http\Controllers\KelasController;
/*
|--------------------------------------------------------------------------
| Web Routes
|-----------... |
php | namespace Combyna\Component\Expression\Config\Loader;
use Combyna\Component\Bag\Config\Act\ExpressionBagNode;
use Combyna\Component\Config\Loader\ConfigParserInterface;
use Combyna\Component\Expression\Config\Act\ExpressionNodeInterface;
use InvalidArgumentException;
/**
* Interface ExpressionConfigParserInterface
... |
php |
$config=[
'project'=>dirname(__DIR__).'/',
'build'=>__DIR__.'/',
'resolvers' => __DIR__ . '/resolvers/',
'vehicles' => __DIR__ . '/vehicles/',
'includes' => __DIR__ . '/includes/', |
php | break;
case "php":
$this->_renderers[$Vxeifmjzikkj] = new PhpEvaluator($this->_canvas);
break;
case "javascript":
$this->_renderers[$Vxeifmjzikkj] = new JavascriptEmbedder($this->_dompdf);
... |
php | <?php declare(strict_types=1);
namespace Formularium\Frontend\Bulma\Renderable;
class Renderable_usmall extends Renderable_integer
{
}
|
php | 'sum' => [
'script' => [
'source' => 'doc.price.value',
],
],
], $query->build());
}
public function test_it_fail_building_the_aggregation_without_field()
{
$query = new SumAggregation('sum_price');
$this->... |
php | $counts['processed'] += $counts['added'] = (int)$context->getAddCount();
$counts['processed'] += $counts['updated'] = (int)$context->getUpdateCount();
$counts['processed'] += $counts['deleted'] = (int)$context->getDeleteCount();
$counts['invalid'] = (int)$context->getErro... |
php | @endif
@if(!isset($no_form) or !$no_form)
@include('forms.closer')
@endif
</div>
</div>
</div> |
php | }
return $user->getUsername();
}
} |
php | <div class="layui-input-inline">
<input type="text" id="app" name="app" required="" lay-verify="required" autocomplete="off" class="layui-input" placeholder="请输入应用名称,如:app" value="<?php echo $data['app']; ?>" />
</div>
</div>
<div class="layui-... |
php | $this->plugin = $plugin;
}
public function execute(CommandSender $sender, $label, array $params){
if(!$this->plugin->isEnabled()) return false;
if(!$this->testPermission($sender)){
return false;
}
if($sender instanceof Player){
$point = $this->plugin->myPoint($sender);
$sender->sendMessage($this-... |
php | <div class="pull-right" style="font-weight: bolder; font-size: 16px; margin-right: 3px; margin-top: 3px;">
<table>
<td>Total Jam Kerja </td>
<td>: </td>
<td><?= $total==null?"00:00:00":$total ?></td>
</table>
</div> |
php |
return view('admin.posts.edit', $data);
}
/**
* Update the specified resource in storage.
* |
php | class Lithium implements SessionInterface {
const CREATE_SESSION_IF_ABSENT = 0;
const IGNORE_SESSION_CREATION = 1;
const THROW_ERROR_IF_ABSENT = 2;
|
php | use Yii;
use linslin\yii2\curl;
/**
* Curl获取微信图片(防盗链地址)
*
* Class AnalysisController
* @package backend\modules\wechat\controllers
* @author jianyan74 <<EMAIL>> |
php | </div>
@endif
</div>
{{--question_ar--}}
<div class="form-group">
<label class="label-control" for="question_ar">@lang('faq.question_ar')</label>
<input type="text" id="question_ar" class="form-control"
placeholder="@lang('faq.question_ar')" name="question_... |
php | if ($value==null) {
// delete the image from disk
\Storage::disk($disk)->delete($this->{$attributeName});
// set null in the database column
$this->attributes[$attributeName] = '';
}
// if a base64 was sent, store it in the db |
php | $this->parameters = new Collection();
$this->parameterValidator = new NullValidator();
$this->parameterTransformer = new FlatArrayTransformer();
}
public function terms(string $field, array $terms): self
{ |
php | $em->remove($panier);
$em->flush();
}
return $this->redirectToRoute('panier_index');
}
|
php | </span>
{{ __('Back to list') }}
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<form action="{{ isset($user) ? route('app.users.update', $user->id) : route('app.... |
php | foreach ($cells as $rowNumber => $rows){
$value[$rowNumber] = array();
foreach ($rows as $colNumber => $value){
if ($value){
$value[$rowNumber][$colNumber] = $rech;
}
} |
php | use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\Pass... |
php | <?php
$this->Html->h1 = $this->Html->title = t("Localization");
$this->Html->breadcrumbs[] = $this->Html->title;
?>
<?=$search?>
<table class="striped">
<thead>
<tr>
<th><?=t("Text")?></th> |
php | * @property boolean|string $selectedMode Default: false
*
*
* @property array $data
*
*
* @property array $nodes
*
*
* @property array $links
*
* |
php | namespace Amulen\ShopBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Flowcode\ShopBundle\Entity\Product as BaseProduct;
/**
* Product
* |
php | ['product_id' => 45, 'hastag_product' => 'Woman'],
['product_id' => 46, 'hastag_product' => 'Woman'],
['product_id' => 47, 'hastag_product' => 'Men'],
['product_id' => 48, 'hastag_product' => 'Men'],
['product_id' => 49, 'hastag_product' => 'Men'],
... |
php | <h2> <?= $title ?></h2>
<?php echo form_open('posts/create'); ?>
<input name="button" type="submit" class="btn btn-success" value="Create User">
</form>
<?php foreach ($posts as $post) : ?>
<br><hr>
<small class = "date">Created on : <?php echo $post['crated_at']; ?> </small> <br>
<small> ID : <?php ech... |
php | </td>
<td class="text-left">{{ $center->address }}</td>
<td class="text-left">{!! $center->status_label !!}</td>
</tr>
@endforeach
</tbody>
</table>
<br/>
<br/> |
php |
public static function configureLocalization($locale = null)
{
$codeset = 'UTF-8';
if (is_null($locale)) {
$lang = Application_Model_Preference::GetLocale().'.'.$codeset;
} else {
$lang = $locale.'.'.$codeset;
}
putenv("LC_ALL=$lang");
put... |
php | <div class="w-8 h-8 inline-flex items-center justify-center rounded-full bg-indigo-100 mb-4">
<a href="https://wa.me/{{$dataPdt->no_hp}}" target="_blank">
<img src="{{ asset('/assets/img/whatsapp.png') }}">
... |
php | /**
* @param $eventMaps
*
* @return \Bounce\Cartographer\Map\MapInterface
*/
public function __invoke($eventMaps): MapInterface
{
return $this->chart($eventMaps);
}
|
php |
use App\Http\Controllers\API\Football\BaseFootballController;
class AdminFootballController extends BaseFootballController
{
public function __construct()
{
parent::__construct();
$this->middleware(function($request, $next) {
if (! $this->isAdmin($request)) { |
php | <div class="panel-heading">
<h2 class="panel-title">Penulis</h2>
</div>
<div class="panel-body">
{!! $html->table(['class'=>'table-striped']) !!}
</div>
</div>
</div> |
php | $loader = new ActionLoader($generator);
$className = 'User\\Action\\BulkUpdateUser2';
$actionTemplate->register($loader, 'TwigActionTemplate', array(
'action_class' => $className,
'template' => '@WebAction/RecordAction.html.twig',
'variables' => array(
... |
php | ==================== */
defined('COT_CODE') or die('Wrong URL');
$mode = cot_import('mode', 'G', 'ALP');
$search = urldecode (cot_import('search', 'G', 'TXT'));
$how_search = cot_import('how_search', 'G', 'ALP');
switch ($mode) {
case 'search':
if ($how_search == "on") {
$sql_search_string = "
S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.