text stringlengths 2 1.03M |
|---|
<?php
$lang["customers_available_points"] = "Puntos Disponibles";
$lang["rewards_package"] = "Premios";
$lang["rewards_remaining_balance"] = "Puntos de recompensa sobrante son: ";
$lang["sales_account_number"] = "Cuenta #";
$lang["sales_add_payment"] = "Agregar Pago";
$lang["sales_amount_due"] = "Monto de adeudo";
$lan... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\BookSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Books';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="book-index">
<h1><?= Html::encode($this->title... |
<?php
declare (strict_types=1);
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer;
/**... |
<?php
/* TeamBuilderCovoiturageBundle:Faq:list.html.twig */
class __TwigTemplate_8431ebfde7f37e2acbc3771a2de4239e7937eda88427fcb391639b63e90f00fd extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("Te... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Author;
use Yajra\Datatables\Html\Builder;
use Yajra\Datatables\Datatables;
use Session;
class AuthorController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... |
<div class="container-fluid">
<!-- DataTables Example -->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-table"></i>
Data Beasiswa</div>
<div class="card-body">
<div class="table-responsive">
<table class="table t... |
<?php
$access = 90;
include_once($_SERVER['DOCUMENT_ROOT'].'/config/config.php');
include('tabs.php');
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$sql = "UPDATE locations
SET city=:city,
name=:name,
openFrom=:openFrom,
openTill=:openTill,
author=:author
WHERE id=:id";
try {
$stmt = $pdo->p... |
<?php
declare (strict_types=1);
namespace RectorPrefix20210904\Symplify\Astral\NodeNameResolver;
use PhpParser\Node;
use PhpParser\Node\Arg;
use RectorPrefix20210904\Symplify\Astral\Contract\NodeNameResolverInterface;
final class ArgNodeNameResolver implements \RectorPrefix20210904\Symplify\Astral\Contract\NodeNameRe... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Resource\Lesson;
use App\Model\Resource\Video;
class LessonController extends Controller
{
public function __construct()
{
$this->middleware('admin.auth');
}
/**
* ... |
<section class="seven columns alpha">
<div class="field">
<div class="two column alpha">
<label for="simple_vocab_files">Apply to Files</label>
</div>
<div class="inputs five columns omega">
<?php echo $view->formCheckbox(
'simple_vocab_files',
... |
<?php
class m_profil extends CI_Model{
function tampil_data(){
return $this->db->get('laporan');
}
function input_data($data,$table){
$this->db->insert($table,$data);
}
function hapus_data($where){
$this->db->where('id_laporan', $where)->delete('laporan');
//$this->db->where($where);
//$this->db->... |
<?php
namespace PedroVasconcelos\DrawEngine\Exceptions;
use Exception;
class InvalidDatePeriod extends Exception
{
public static function couldNotMakePeriod()
{
return new static("Check dates");
}
} |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Subscription */
$this->title = 'Create Subscription';
$this->params['breadcrumbs'][] = ['label' => 'Subscriptions', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="subscription-create">
<h1>... |
@extends('admin.templates.principal')
@section('title', 'Lista de archivos')
@section('content')
<div class="">
<div class="items-no-nav col-md-10 col-sm-10 col-xs-12 card">
<div class="col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1 col-xs-12">
<a href="{{ route('admin.index')}}" class="button butto... |
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
use App\VideoStream;
use App\Data;
use App\Http\Controllers\HomeController;
// use Illuminate\Storage;
/*
|-----------------------------------------------------------... |
<?php
/**
* CreateGroupOptions
*
* PHP version 5
*
* @category Class
* @package MailSlurp
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* MailSlurp API
*
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
namespace Database\Seeders;
use App\Models\Author;
use App\Models\Book;
use App\Models\Category;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::... |
<?php
namespace DFSClientV3\Models\SerpApi;
use DFSClientV3\Models\AbstractModel;
class AdvancedSerpGetResultsById extends AbstractModel
{
protected $method = 'GET';
protected $isSupportedMerge = false;
protected $pathToMainData = 'tasks->{$postID}->result';
protected $requestToFunction = 'serp/{$se}... |
<?php
/**
* @package Casper
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list( __( ', ', 'casper' ) );
?>
<header class="post-header">
<?php if ( 'post' ==... |
<?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=cleaner
Part=main
File=cleaner
Hooks=admin.home
Tags=
Order=10
[END_SED_EXTPLUGIN]
==================== */
/**
* Will clean various things
*
* @package Cotonti
* @version 0.0.3
* @author Neocrome, Cotonti Team
* @copyright Copyright (c) Cotonti Team 2008-2... |
<?php
namespace RectorPrefix20210719\TYPO3\CMS\Recordlist;
if (\class_exists('TYPO3\\CMS\\Recordlist\\RecordList')) {
return;
}
class RecordList
{
} |
<?php
/**
* Created by PhpStorm.
* User: CRMS7
* Date: 13/12/2016
* Time: 21:17
*/
class Produtos extends Controller{
public function index(){
$db = new Produtos_Model();
// INSERT
// $db->insert('posts', [
// 'titulo' => 'Titulo Aqui',
// 'resumo' => 'resumo aqui',
// 'conteudo' => 'conteudo aqu... |
<?php
namespace Defr;
use Defr\Ares\AresException;
use Defr\Ares\AresRecord;
use Defr\Ares\AresRecords;
use Defr\Ares\TaxRecord;
use InvalidArgumentException;
/**
* Class Ares.
*
* @author Dennis Fridrich <fridrich.dennis@gmail.com>
*/
class Ares
{
const URL_BAS = 'http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_ba... |
<?php
namespace CodeProject\Providers;
use Illuminate\Support\ServiceProvider;
class CodeProjectRepositoryProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Collection;
use App\Notificaciones;
use App\ModelDetalle;
use App\Modelos;
use Illuminate\Support\Facades\Input;
date_default_timezone_set('America/Argentina/Catamarca');
class ModelIntimController extends Cont... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
use Illuminate\Database\Seeder;
class ConversationTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$converstion=App\Conversation::create([
'user_id' => 1,
'contact_id' =>2,
'last_message' =>null,
... |
<?php
return [
'welcome' => 'Welcome :D '
];
?> |
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use modules\Customers\Controllers\CustomerController;
use modules\Students\Controllers\StudentController;
//Route::get('customers', [CustomerController::class, 'allCustomers']);
//Route::post('/test', [AdminController::class, 'test'])... |
@if(Auth::user()->level == "staff")
@extends('layouts.admin.default')
@section('title', 'Banner')
@push('style')
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="{{ asset('adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css')}}">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{ ... |
<?php
declare(strict_types=1);
namespace BowlOfSoup\NormalizerBundle\Tests\assets;
use BowlOfSoup\NormalizerBundle\Annotation as Bos;
class UnknownPropertyNormalizeProperty
{
/**
* @var string
*
* @Bos\Normalize(group={"default"}, asdsad="asdsad")
*/
private $name;
/**
* @retur... |
<?php namespace ManishBasnet\Movies\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateManishbasnetMoviesUserrole4 extends Migration
{
public function up()
{
Schema::table('manishbasnet_movies_userrole', function($table)
{
$table->string('role... |
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... |
<?php
final class PhabricatorLogoutController
extends PhabricatorAuthController {
public function shouldRequireLogin() {
return true;
}
public function shouldRequireEmailVerification() {
// Allow unverified users to logout.
return false;
}
public function shouldRequireEnabledUser() {
// ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MDK | Monitoring Disiplin Kerja</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito... |
<?php
namespace Azuriom\Plugin\Support\Providers;
use Azuriom\Extensions\Plugin\BasePluginServiceProvider;
use Azuriom\Models\ActionLog;
use Azuriom\Models\Permission;
use Azuriom\Plugin\Support\Models\Comment;
use Azuriom\Plugin\Support\Models\Ticket;
use Azuriom\Plugin\Support\Policies\CommentPolicy;
use Azuriom\Pl... |
<?php defined('SYSPATH') OR die('No direct access allowed.');
return array
(
/**
* The following options are available for LogReader
*
* integer limit messages per page
* integer auto_refresh_interval the interval for auto refresh in seconds
* string store store of log... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class BuyingHistory extends Model
{
//
protected $fillable = [
'user_id','post_id','price'
];
} |
<h2 class="wpallimport-wp-notices"></h2>
<form class="wpallimport-choose-elements no-enter-submit wpallimport-step-2 wpallimport-wrapper" method="post">
<div class="wpallimport-header">
<div class="wpallimport-logo"></div>
<div class="wpallimport-title">
<p><?php _e('WP All Import', 'wp_all_import_plugin'); ?... |
<?php
/**
* ICEPAY Advanced - Adminhtml config controller
* @version 1.0.0
* @author Olaf Abbenhuis
* @copyright ICEPAY <www.icepay.com>
*
* Disclaimer:
* The merchant is entitled to change de ICEPAY plug-in code,
* any changes will be at merchant's own risk.
* Requesting ICEPAY support for a modifi... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/container/v1/cluster_service.proto
namespace Google\Cloud\Container\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* ListClustersResponse is the result o... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
@extends('layouts.master')
@section('title')
Chocoburbujas: Estetica Canina, Boutique y Veterinaria
@endsection
@section('menu')
@include('partials.menu',['categorias'=>$categorias,'marcas'=> $marcas])
@endsection
@section('content')
@endsection
@section('scripts')
@endsection
@section('partials.footer') |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Photo;
class PhotoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$photos = Photo::all();
r... |
<?php if (isset($component)) { $__componentOriginal5518e5dbd0d2f249382fceb35002484a4efcccb8 = $component; } ?>
<?php $component = $__env->getContainer()->make(ASK\Svg\Components\SvgComponent::class, []); ?>
<?php $component->withName('icon-camera'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startCompon... |
<?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, sof... |
<?php declare(strict_types=1);
/**
* @author Pavel Břoušek <brousek@ics.muni.cz>
* @author Pavel Vyskočil <vyskocilpavel@muni.cz>
*/
namespace SimpleSAML\Module\proxystatistics;
use SimpleSAML\Auth\Simple;
use SimpleSAML\Configuration;
use SimpleSAML\Logger;
use SimpleSAML\Module;
use SimpleSAML\XHTML\Template;
... |
@if(isset($parent) and $parent>=1)
<li class="nav-item {{isset($open)?"menu-open":""}}">
<a href="{{isset($url)?$url:"#"}}" class="nav-link {{isset($active)?"active":null}}">
<i class="nav-icon fas {{$icon}}"></i>
<p>
{{$name}}
@if(isset($parent) and $... |
<?php
namespace CWM\BroadWorksConnector\Ocip\Models;
/**
* GroupOutgoingCallingPlanTransferNumbersGetListResponse
*
* Response to GroupOutgoingCallingPlanTransferNumbersGetListRequest.
*
* @see GroupOutgoingCallingPlanTransferNumbersGetListRequest
* @Groups [{"id":"6f793dfca9bd3d121bb35e0f9cf1cb2e:840","type":"... |
<?php
if (!empty($_POST['page_id']) && !empty($_POST['password'])) {
if (!Wo_HashPassword($_POST['password'], $wo['user']['password']) && !Wo_CheckPageAdminPassword($_POST['password'], $_POST['page_id'])) {
$error_code = 7;
$error_message = 'current password mismatch.';
}
if (empty($error_m... |
<?php
namespace App\Http\Controllers;
use App\Thread;
use Illuminate\Http\Request;
class RepliesController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function store($channelId, Thread $thread)
{
$this->validate(request(), [
... |
<?php namespace JournalTransporterPlugin\Builder\Mapper\DataObject;
class CopyeditorSubmission extends AbstractSubmission {
} |
@extends('layouts.app', [
'class' => '',
'elementActive' => 'wishlist'
])
@section('content')
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="row align-items-center">
<div class="c... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
public $table="categorynames";
//
} |
<?php
/* TwigBundle:Exception:error.html.twig */
class __TwigTemplate_1fdc13bd08807974ed7720348a9ebf34c0c8a45c5065a0e372a4070d92229aa0 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace Illuminate\Console;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Support\Arrayable;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Question\Question;
use Sym... |
<?php
namespace Application\Validator;
use Laminas\Validator\File\Extension;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of FileExtensionValidator
*
* @aut... |
<?php
/**
* EnterpriseLeadsLeadsUserDescription
*
* PHP version 5
*
* @category Class
* @package swagger_client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 企业号意向用户管理
*
* No description provided (generated by Swagger Codegen https://github.com/swagge... |
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVotesTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create(
... |
<?php
namespace AppBundle\Domain\Entity\Game;
use AppBundle\Domain\Entity\Ghost\Ghost;
use AppBundle\Domain\Entity\Maze\Maze;
use AppBundle\Domain\Entity\Player\Player;
use AppBundle\Domain\Entity\Position\Position;
use Ramsey\Uuid\Uuid;
/**
* Domain entity: Game
*
* @package AppBundle\Domain\Entity\Game
*/
clas... |
<?php
// Init vars
$REPO_PATH = "/var/www/pagelab.io";
//echo "<pre>";
//echo shell_exec("cd ~/ && pwd 2>&1");
// Pull files from repo
$output = shell_exec("cd /var/www/pagelab.io && git pull 2>&1");
// Log changes
file_put_contents("/var/www/logs/pagelab.log", '/////////////////////////////' . PHP_EOL . $output, ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PostUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admins extends Authenticatable
{
use HasFactory;
use Notifiable;
protected $fillable = [
'name',
'emai... |
@extends("layouts.application")
@section("content")
{{Form::open(array('url' => 'process-change-password/'.$forgot_token, 'class' => 'form-horizontal', 'role' => 'form'))}}
<div class="form-group">
{{Form::label('password', 'Password', array('class' => 'col-lg-3 control-label'))}}
<div class="... |
<?php
use App\Models\Contato;
use Illuminate\Database\Seeder;
class ContatosTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(Contato::class, 50)->create();
}
} |
<?php
/*
* Copyright 2021 The WildPHP Team
* See LICENSE.md in the project root.
*/
declare(strict_types=1);
namespace WildPHP\Models\Factories;
use WildPHP\Models\Exceptions\DeserializationInitializationException;
use WildPHP\Models\Helpers\ReflectionHelper;
use WildPHP\TypeDefinitions\ArrayTypeDefinition;
use ... |
@extends('layouts.admin.app')
@section('content')
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Dashboard</h3>
<div class="box-tools pull-right">
<button type="b... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Socialite;
use App\Models\Member;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
/**
* Redirect the member to the GitHub authentication page.
*
* @return Response
*/
public... |
@extends('layouts.admin.app')
@section('content')
@include('layouts.admin.sidebar-navbar')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class... |
<?= $this->extend("layout/template_chapter"); ?>
<?= $this->section("content"); ?>
<?php for ($i = 1; $i <= 10; $i++) : ?>
<div class="text-center">
<img src="https://cdn.komiku.co.id/wp-content/uploads/2267487-<?= $i; ?>.jpg" class="rounded w-50" alt="Naruto <?= $chapter; ?> <?= $i; ?>">
</div>
<?php e... |
<?php
/*
* This file is part of the design-pattern.
*
* (c) littlesqx <littlesqx@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace DesignPattern\Behavioral\Mediator\Subsystem;
use DesignPattern\Behavioral\Mediator\Colleague... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class GroupUserResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
namespace Maartenpaauw\Chartscss\Tests\Examples\Column;
use Illuminate\View\Component;
use Maartenpaauw\Chartscss\Examples\Column\ColumnExample12;
use Maartenpaauw\Chartscss\Tests\Examples\ExampleTest;
class ColumnExample12Test extends ExampleTest
{
protected function chart(): Component
{
retur... |
@extends('templates.structure')
@section('content')
<section id="content">
<form method="POST" action="/admin/skill/{{ $skill->id }}">
@csrf
@method('put')
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@fore... |
<?php
namespace CodeProject\Http\Controllers;
use CodeProject\Repositories\ProjectFileRepository;
use CodeProject\Services\ProjectFileService;
use Illuminate\Http\Request;
class ProjectFileController extends Controller
{
/**
* @var ProjectFileRepository
*/
private $repository;
/**
* @var P... |
<div class="text-center">
</div> |
<?php
/**
* can work on throttled internet connections, makes 2 tries with 2 seconds between last and next try.
*/
set_time_limit(0);
error_reporting(E_ALL);
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Tolerance\Operation\Callback as CallbackOperation;
use Tolerance\Operation\ExceptionCatcher\Thro... |
<?php
//массив исходных данных
$basicData = array(
array('Мачо, но по ночам.'),// YES
array('Лев с ума даму свел'),//YES
array('Пеле нелеп'),//YES
//ваши данные
);
foreach ($basicData as $word) {
$result = isPalindrome($word);
echo ($result) ? 'YES' : 'NO';
echo \PHP_EOL;
}
function isPali... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
protected $fillable=['username','count','box_id','item_id','price','balance','balance_bonus','bonus'];
public function item(){
return $this->belongsTo('App\Item','item_id','id');
}
public function ... |
<!doctype html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Welcome <?php echo $this->session->designation;?></title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" media="all" h... |
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... |
<?php
namespace Filament\Pages;
use Closure;
use Filament\Facades\Filament;
use Filament\Forms;
use Filament\Http\Livewire\Concerns\CanNotify;
use Filament\Navigation\NavigationItem;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Livewire\Component;
class Pa... |
<!doctype html>
<html>
<head>
<title>Register System</title>
</head>
<?php
$this->load->view('NavBar');
?>
<body>
<div class="container">
<div class="card card-out">
<div class="card-body card-body-in">
<h4 align="center" style="margin: 0px">สาขาวิศวกรรมซอฟต์แวร์ ยินดีต้อนรับ</h4>
</div>
</div>
</... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class trinityBuilding extends MY_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* https://tua.edu.ph/triune/auth
* Since this controller is set as the default controller in
* config/routes.php, it's ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Anggota extends CI_Controller{
public function __construct()
{
parent::__construct();
if (!isset($_SESSION['login'])) {
redirect(site_url('auth/error'));
}if ($this->session->login['level']=="Ketua") {
redirect(sit... |
<?php
declare(strict_types=1);
namespace MeiliSearch\Bundle\Document;
use MeiliSearch\Bundle\Model\Aggregator as BaseAggregator;
/**
* Class Aggregator.
*/
abstract class Aggregator extends BaseAggregator
{
} |
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Wraps an IoBuffer to send/receive SMTP commands/responses.
*
* @author Chris Corbyn
*/
interface S... |
@extends('layouts.login')
@section('title', 'Login | Pengaduan Masyarakat')
@section('card-title', 'Login')
@section('content')
<form method="POST" action="{{ route('store-login-masyarakat') }}" class="needs-validation">
@csrf
<div class="form-group">
<label for="username">Username</label>
<input id... |
<?php
namespace AppBundle\Utils;
use AppBundle\Entity\Exchange;
use AppBundle\Entity\Items;
use AppBundle\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
class GameExchange
{
/**
* @var ... |
@extends('layouts.main-layout')
@section('content')
<h2>Dettaglio Fumetto:</h2>
<span>
Titolo Fumetto: {{ $comic -> title }} <br>
Autore: {{ $comic -> author }} <br>
Pagine totali: {{ $comic -> count }} <br>
Data di rilascio: {{ $comic -> release_date }}
</span>
<br>
... |
<?php
namespace Query\Domain\Service\Firm;
use Query\Domain\Model\Firm\ {
ParticipantTypes,
Program,
Team
};
class ProgramFinder
{
/**
*
* @var ProgramRepository
*/
protected $programRepository;
public function __construct(ProgramRepository $programRepository)
{
$... |
<?php
declare(strict_types=1);
namespace App\Ticket\Modules\Auth\Entity;
use App\Ticket\Entity\AbstractionEntity;
/**
* Class AccessToken
*
* @package App\Ticket\Modules\Auth\Entity
*/
final class AccessToken extends AbstractionEntity
{
/** @var string Ключ клиента */
protected string $passwordKey;
... |
<?php
namespace app\controllers;
use yii\web\Controller;
class SiteController extends Controller
{
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
]
];
}
/**
* Displays homepage.
*
* @return st... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRatingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ratings', funct... |
<?php
namespace backend\controllers;
use Yii;
use common\models\UserModel;
use common\models\UserSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UserController implements the CRUD actions for UserModel model.
*/
class UserController extends Controller
{
/**
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="content-wrapper" style="margin-top:50px; padding:0 20px">
<div class="fluid-container">
<!-- Main content -->
<section class="content">
<div class="col-md-10 col-md-offset-1">
... |
<x-app-layout>
<div class="py-12 max-w-6xl mx-auto sm:px-6 lg:px-8 px-8">
<h1 class=" uppercase text-center font-bold text-3xl mb-4 text-{{$technology->color}}-600">{{$technology->name}}</h1>
{{-- @foreach ($technologies as $technology)
{{$technology->posts}}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.