repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/home.blade.php
resources/views/home.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends('maestra') @section("titulo", "Inicio") @section('contenido') <div class="col-12 text-center"> <h1>Bienvenido, {{Auth::user()->name}}</h1> </div> @foreach([ ["productos", "ventas", "vender", "clientes"], ["usuarios", "acerca_de", "soporte"] ] as $modulos) <div class="col-12 pb-2"> <div class="row"> @foreach($modulos as $modulo) <div class="col-12 col-md-3"> <div class="card"> <img class="card-img-top" src="{{url("/img/$modulo.png")}}"> <div class="card-body"> <h5 class="card-title"> {{$modulo === "acerca_de" ? "Acerca de" : ucwords($modulo)}} </h5> <a href="{{route("$modulo.index")}}" class="btn btn-success"> Ir a&nbsp;{{$modulo === "acerca_de" ? "Acerca de" : ucwords($modulo)}} <i class="fa fa-arrow-right"></i> </a> </div> </div> </div> @endforeach </div> </div> @endforeach @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/notificacion.blade.php
resources/views/notificacion.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @if(session("mensaje")) <div class="alert alert-{{session('tipo') ? session("tipo") : "info"}}"> {{session('mensaje')}} </div> @endif
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/misc/acerca_de.blade.php
resources/views/misc/acerca_de.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo","Acerca de") @section("contenido") <div class="row"> <div class="col-12"> <h1>Acerca de</h1> <p> Programado por <a href="//parzibyte.me/blog">Luis Cabrera Benito</a>. Mira mis <a href="https://parzibyte.me/blog/software-creado-por-parzibyte/">otros proyectos</a>. <br> Código fuente en <a href="//github.com/parzibyte/sistema_ventas_laravel">GitHub</a> </p> <pre> <code> ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribución </code> </pre> <h2>Créditos de las imágenes</h2> <strong>Productos:&nbsp;</strong>Icons made by <a href="https://www.flaticon.com/authors/icongeek26" title="Icongeek26">Icongeek26</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> <br> <strong>Vender:&nbsp;</strong>Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> <br> <strong>Ventas:&nbsp;</strong>Icons made by <a href="https://www.flaticon.com/authors/eucalyp" title="Eucalyp">Eucalyp</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> <br> <strong>Soporte:&nbsp;</strong>Icons made by <a href="https://www.flaticon.com/authors/ddara" title="dDara">dDara</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> <br> <strong>Acerca de:&nbsp;</strong>Icons made by <a href="https://www.flaticon.com/authors/inipagistudio" title="inipagistudio">inipagistudio</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> <br> <strong>Usuarios:</strong> Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik" rel="nofollow">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon" rel="nofollow">www.flaticon.com</a> <br> <strong>Clientes:</strong> Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik" rel="nofollow">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon" rel="nofollow">www.flaticon.com</a> <br> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/auth/login.blade.php
resources/views/auth/login.blade.php
@extends('maestra') @section("titulo") Login @endsection @section('contenido') <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">Login</div> <div class="card-body"> <form method="POST" action="{{ route('login') }}"> @csrf <div class="form-group row"> <label for="email" class="col-md-4 col-form-label text-md-right">Correo electrónico</label> <div class="col-md-6"> <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus> @error('email') <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong> </span> @enderror </div> </div> <div class="form-group row"> <label for="password" class="col-md-4 col-form-label text-md-right">Contraseña</label> <div class="col-md-6"> <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password"> @error('password') <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong> </span> @enderror </div> </div> <div class="form-group row"> <div class="col-md-6 offset-md-4"> <div class="form-check"> <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}> <label class="form-check-label" for="remember"> Recordarme </label> </div> </div> </div> <div class="form-group row mb-0"> <div class="col-md-8 offset-md-4"> <button type="submit" class="btn btn-primary"> Login </button> @if (Route::has('password.request')) <a class="btn btn-link" href="{{ route('password.request') }}"> {{ __('Forgot Your Password?') }} </a> @endif </div> </div> </form> </div> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/auth/register.blade.php
resources/views/auth/register.blade.php
@extends("maestra") @section("titulo") Registrar @endsection @section('contenido') <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">Registrar</div> <div class="card-body"> <form method="POST" action="{{ route('register') }}"> @csrf <div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">Nombre</label> <div class="col-md-6"> <input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus> @error('name') <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong> </span> @enderror </div> </div> <div class="form-group row"> <label for="email" class="col-md-4 col-form-label text-md-right">Correo electrónico</label> <div class="col-md-6"> <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email"> @error('email') <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong> </span> @enderror </div> </div> <div class="form-group row"> <label for="password" class="col-md-4 col-form-label text-md-right">Contraseña</label> <div class="col-md-6"> <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password"> @error('password') <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong> </span> @enderror </div> </div> <div class="form-group row"> <label for="password-confirm" class="col-md-4 col-form-label text-md-right">Confirmar contraseña</label> <div class="col-md-6"> <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password"> </div> </div> <div class="form-group row mb-0"> <div class="col-md-6 offset-md-4"> <button type="submit" class="btn btn-primary"> Registrar </button> </div> </div> </form> </div> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/vender/vender.blade.php
resources/views/vender/vender.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Realizar venta") @section("contenido") <div class="row"> <div class="col-12"> <h1>Nueva venta <i class="fa fa-cart-plus"></i></h1> @include("notificacion") <div class="row"> <div class="col-12 col-md-6"> <form action="{{route("terminarOCancelarVenta")}}" method="post"> @csrf <div class="form-group"> <label for="id_cliente">Cliente</label> <select required class="form-control" name="id_cliente" id="id_cliente"> @foreach($clientes as $cliente) <option value="{{$cliente->id}}">{{$cliente->nombre}}</option> @endforeach </select> </div> @if(session("productos") !== null) <div class="form-group"> <button name="accion" value="terminar" type="submit" class="btn btn-success">Terminar venta </button> <button name="accion" value="cancelar" type="submit" class="btn btn-danger">Cancelar venta </button> </div> @endif </form> </div> <div class="col-12 col-md-6"> <form action="{{route("agregarProductoVenta")}}" method="post"> @csrf <div class="form-group"> <label for="codigo">Código de barras</label> <input id="codigo" autocomplete="off" required autofocus name="codigo" type="text" class="form-control" placeholder="Código de barras"> </div> </form> </div> </div> @if(session("productos") !== null) <h2>Total: ${{number_format($total, 2)}}</h2> <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <th>Código de barras</th> <th>Descripción</th> <th>Precio</th> <th>Cantidad</th> <th>Quitar</th> </tr> </thead> <tbody> @foreach(session("productos") as $producto) <tr> <td>{{$producto->codigo_barras}}</td> <td>{{$producto->descripcion}}</td> <td>${{number_format($producto->precio_venta, 2)}}</td> <td>{{$producto->cantidad}}</td> <td> <form action="{{route("quitarProductoDeVenta")}}" method="post"> @method("delete") @csrf <input type="hidden" name="indice" value="{{$loop->index}}"> <button type="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> @else <h2>Aquí aparecerán los productos de la venta <br> Escanea el código de barras o escribe y presiona Enter</h2> @endif </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/layouts/app.blade.php
resources/views/layouts/app.blade.php
<!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') }}</title> <!-- Scripts --> <script src="{{ asset('js/app.js') }}" defer></script> <!-- Fonts --> <link rel="dns-prefetch" href="//fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> <!-- Styles --> <link href="{{ asset('css/app.css') }}" rel="stylesheet"> </head> <body> <div id="app"> <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm"> <div class="container"> <a class="navbar-brand" href="{{ url('/') }}"> {{ config('app.name', 'Laravel') }} </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <!-- Left Side Of Navbar --> <ul class="navbar-nav mr-auto"> </ul> <!-- Right Side Of Navbar --> <ul class="navbar-nav ml-auto"> <!-- Authentication Links --> @guest <li class="nav-item"> <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a> </li> @if (Route::has('register')) <li class="nav-item"> <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a> </li> @endif @else <li class="nav-item dropdown"> <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre> {{ Auth::user()->name }} <span class="caret"></span> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> {{ __('Logout') }} </a> <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> @csrf </form> </div> </li> @endguest </ul> </div> </div> </nav> <main class="py-4"> @yield('content') </main> </div> </body> </html>
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/usuarios/usuarios_edit.blade.php
resources/views/usuarios/usuarios_edit.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Editar usuario") @section("contenido") <div class="row"> <div class="col-12"> <h1>Editar usuario</h1> <form method="POST" action="{{route("usuarios.update", [$usuario])}}"> @method("PUT") @csrf <div class="form-group"> <label class="label">Nombre</label> <input required value="{{$usuario->name}}" autocomplete="off" name="name" class="form-control" type="text" placeholder="Nombre"> </div> <div class="form-group"> <label class="label">Correo electrónico</label> <input required value="{{$usuario->email}}" autocomplete="off" name="email" class="form-control" type="email" placeholder="Correo electrónico"> </div> <div class="form-group"> <label class="label">Contraseña</label> <input required value="{{$usuario->password}}" autocomplete="off" name="password" class="form-control" type="password" placeholder="Contraseña"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("usuarios.index")}}">Volver</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/usuarios/usuarios_create.blade.php
resources/views/usuarios/usuarios_create.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Agregar usuario") @section("contenido") <div class="row"> <div class="col-12"> <h1>Agregar usuario</h1> <form method="POST" action="{{route("usuarios.store")}}"> @csrf <div class="form-group"> <label class="label">Nombre</label> <input required autocomplete="off" name="name" class="form-control" type="text" placeholder="Nombre"> </div> <div class="form-group"> <label class="label">Correo electrónico</label> <input required autocomplete="off" name="email" class="form-control" type="email" placeholder="Correo electrónico"> </div> <div class="form-group"> <label class="label">Contraseña</label> <input required autocomplete="off" name="password" class="form-control" type="password" placeholder="Contraseña"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("usuarios.index")}}">Volver al listado</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/usuarios/usuarios_index.blade.php
resources/views/usuarios/usuarios_index.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Usuarios") @section("contenido") <div class="row"> <div class="col-12"> <h1>Usuarios <i class="fa fa-users"></i></h1> <a href="{{route("usuarios.create")}}" class="btn btn-success mb-2">Agregar</a> @include("notificacion") <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <th>Correo electrónico</th> <th>Nombre</th> <th>Editar</th> <th>Eliminar</th> </tr> </thead> <tbody> @foreach($usuarios as $usuario) <tr> <td>{{$usuario->email}}</td> <td>{{$usuario->name}}</td> <td> <a class="btn btn-warning" href="{{route("usuarios.edit",[$usuario])}}"> <i class="fa fa-edit"></i> </a> </td> <td> <form action="{{route("usuarios.destroy", [$usuario])}}" method="post"> @method("delete") @csrf <button type="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/clientes/clientes_create.blade.php
resources/views/clientes/clientes_create.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Agregar cliente") @section("contenido") <div class="row"> <div class="col-12"> <h1>Agregar cliente</h1> <form method="POST" action="{{route("clientes.store")}}"> @csrf <div class="form-group"> <label class="label">Nombre</label> <input required autocomplete="off" name="nombre" class="form-control" type="text" placeholder="Nombre"> </div> <div class="form-group"> <label class="label">Teléfono</label> <input required autocomplete="off" name="telefono" class="form-control" type="text" placeholder="Teléfono"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("clientes.index")}}">Volver al listado</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/clientes/clientes_edit.blade.php
resources/views/clientes/clientes_edit.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Editar cliente") @section("contenido") <div class="row"> <div class="col-12"> <h1>Editar cliente</h1> <form method="POST" action="{{route("clientes.update", [$cliente])}}"> @method("PUT") @csrf <div class="form-group"> <label class="label">Nombre</label> <input required value="{{$cliente->nombre}}" autocomplete="off" name="nombre" class="form-control" type="text" placeholder="Nombre"> </div> <div class="form-group"> <label class="label">Teléfono</label> <input required value="{{$cliente->telefono}}" autocomplete="off" name="telefono" class="form-control" type="text" placeholder="Teléfono"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("clientes.index")}}">Volver</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/clientes/clientes_index.blade.php
resources/views/clientes/clientes_index.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Clientes") @section("contenido") <div class="row"> <div class="col-12"> <h1>Clientes <i class="fa fa-users"></i></h1> <a href="{{route("clientes.create")}}" class="btn btn-success mb-2">Agregar</a> @include("notificacion") <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <th>Nombre</th> <th>Teléfono</th> <th>Editar</th> <th>Eliminar</th> </tr> </thead> <tbody> @foreach($clientes as $cliente) <tr> <td>{{$cliente->nombre}}</td> <td>{{$cliente->telefono}}</td> <td> <a class="btn btn-warning" href="{{route("clientes.edit",[$cliente])}}"> <i class="fa fa-edit"></i> </a> </td> <td> <form action="{{route("clientes.destroy", [$cliente])}}" method="post"> @method("delete") @csrf <button type="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/productos/productos_index.blade.php
resources/views/productos/productos_index.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Productos") @section("contenido") <div class="row"> <div class="col-12"> <h1>Productos <i class="fa fa-box"></i></h1> <a href="{{route("productos.create")}}" class="btn btn-success mb-2">Agregar</a> @include("notificacion") <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <th>Código de barras</th> <th>Descripción</th> <th>Precio de compra</th> <th>Precio de venta</th> <th>Utilidad</th> <th>Existencia</th> <th>Editar</th> <th>Eliminar</th> </tr> </thead> <tbody> @foreach($productos as $producto) <tr> <td>{{$producto->codigo_barras}}</td> <td>{{$producto->descripcion}}</td> <td>{{$producto->precio_compra}}</td> <td>{{$producto->precio_venta}}</td> <td>{{$producto->precio_venta - $producto->precio_compra}}</td> <td>{{$producto->existencia}}</td> <td> <a class="btn btn-warning" href="{{route("productos.edit",[$producto])}}"> <i class="fa fa-edit"></i> </a> </td> <td> <form action="{{route("productos.destroy", [$producto])}}" method="post"> @method("delete") @csrf <button type="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/productos/productos_create.blade.php
resources/views/productos/productos_create.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Agregar producto") @section("contenido") <div class="row"> <div class="col-12"> <h1>Agregar producto</h1> <form method="POST" action="{{route("productos.store")}}"> @csrf <div class="form-group"> <label class="label">Código de barras</label> <input required autocomplete="off" name="codigo_barras" class="form-control" type="text" placeholder="Código de barras"> </div> <div class="form-group"> <label class="label">Descripción</label> <input required autocomplete="off" name="descripcion" class="form-control" type="text" placeholder="Descripción"> </div> <div class="form-group"> <label class="label">Precio de compra</label> <input required autocomplete="off" name="precio_compra" class="form-control" type="decimal(9,2)" placeholder="Precio de compra"> </div> <div class="form-group"> <label class="label">Precio de venta</label> <input required autocomplete="off" name="precio_venta" class="form-control" type="decimal(9,2)" placeholder="Precio de venta"> </div> <div class="form-group"> <label class="label">Existencia</label> <input required autocomplete="off" name="existencia" class="form-control" type="decimal(9,2)" placeholder="Existencia"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("productos.index")}}">Volver al listado</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/productos/productos_edit.blade.php
resources/views/productos/productos_edit.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Editar producto") @section("contenido") <div class="row"> <div class="col-12"> <h1>Editar producto</h1> <form method="POST" action="{{route("productos.update", [$producto])}}"> @method("PUT") @csrf <div class="form-group"> <label class="label">Código de barras</label> <input required value="{{$producto->codigo_barras}}" autocomplete="off" name="codigo_barras" class="form-control" type="text" placeholder="Código de barras"> </div> <div class="form-group"> <label class="label">Descripción</label> <input required value="{{$producto->descripcion}}" autocomplete="off" name="descripcion" class="form-control" type="text" placeholder="Descripción"> </div> <div class="form-group"> <label class="label">Precio de compra</label> <input required value="{{$producto->precio_compra}}" autocomplete="off" name="precio_compra" class="form-control" type="decimal(9,2)" placeholder="Precio de compra"> </div> <div class="form-group"> <label class="label">Precio de venta</label> <input required value="{{$producto->precio_venta}}" autocomplete="off" name="precio_venta" class="form-control" type="decimal(9,2)" placeholder="Precio de venta"> </div> <div class="form-group"> <label class="label">Existencia</label> <input required value="{{$producto->existencia}}" autocomplete="off" name="existencia" class="form-control" type="decimal(9,2)" placeholder="Existencia"> </div> @include("notificacion") <button class="btn btn-success">Guardar</button> <a class="btn btn-primary" href="{{route("productos.index")}}">Volver</a> </form> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/ventas/ventas_show.blade.php
resources/views/ventas/ventas_show.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Detalle de venta ") @section("contenido") <div class="row"> <div class="col-12"> <h1>Detalle de venta #{{$venta->id}}</h1> <h1>Cliente: <small>{{$venta->cliente->nombre}}</small></h1> @include("notificacion") <a class="btn btn-info" href="{{route("ventas.index")}}"> <i class="fa fa-arrow-left"></i>&nbsp;Volver </a> <a class="btn btn-success" href="{{route("ventas.ticket", ["id" => $venta->id])}}"> <i class="fa fa-print"></i>&nbsp;Ticket </a> <h2>Productos</h2> <table class="table table-bordered"> <thead> <tr> <th>Descripción</th> <th>Código de barras</th> <th>Precio</th> <th>Cantidad</th> <th>Subtotal</th> </tr> </thead> <tbody> @foreach($venta->productos as $producto) <tr> <td>{{$producto->descripcion}}</td> <td>{{$producto->codigo_barras}}</td> <td>${{number_format($producto->precio, 2)}}</td> <td>{{$producto->cantidad}}</td> <td>${{number_format($producto->cantidad * $producto->precio, 2)}}</td> </tr> @endforeach </tbody> <tfoot> <tr> <td colspan="3"></td> <td><strong>Total</strong></td> <td>${{number_format($total, 2)}}</td> </tr> </tfoot> </table> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
parzibyte/sistema_ventas_laravel
https://github.com/parzibyte/sistema_ventas_laravel/blob/a193b0bd30a15df8a95b23fb9ec570f947758942/resources/views/ventas/ventas_index.blade.php
resources/views/ventas/ventas_index.blade.php
{{-- ____ _____ _ _ _ | _ \ | __ \ (_) | | | | |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ |____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| __/ | __/ | |___/ |___/ Blog: https://parzibyte.me/blog Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ Contacto: https://parzibyte.me/blog/contacto/ Copyright (c) 2020 Luis Cabrera Benito Licenciado bajo la licencia MIT El texto de arriba debe ser incluido en cualquier redistribucion --}} @extends("maestra") @section("titulo", "Ventas") @section("contenido") <div class="row"> <div class="col-12"> <h1>Ventas <i class="fa fa-list"></i></h1> @include("notificacion") <div class="table-responsive"> <table class="table table-bordered"> <thead> <tr> <th>Fecha</th> <th>Cliente</th> <th>Total</th> <th>Ticket de venta</th> <th>Detalles</th> <th>Eliminar</th> </tr> </thead> <tbody> @foreach($ventas as $venta) <tr> <td>{{$venta->created_at}}</td> <td>{{$venta->cliente->nombre}}</td> <td>${{number_format($venta->total, 2)}}</td> <td> <a class="btn btn-info" href="{{route("ventas.ticket", ["id"=>$venta->id])}}"> <i class="fa fa-print"></i> </a> </td> <td> <a class="btn btn-success" href="{{route("ventas.show", $venta)}}"> <i class="fa fa-info"></i> </a> </td> <td> <form action="{{route("ventas.destroy", [$venta])}}" method="post"> @method("delete") @csrf <button type="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> @endsection
php
MIT
a193b0bd30a15df8a95b23fb9ec570f947758942
2026-01-05T05:01:29.026818Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/configure.php
configure.php
#!/usr/bin/env php <?php const COMPOSER_JSON_FILE = __DIR__ . '/composer.json'; function ask(string $question, string $default = ''): string { $answer = readline($question . ($default ? " ({$default})" : null) . ': '); if (! $answer) { return $default; } return $answer; } function confirm(string $question, bool $default = false): bool { $answer = ask($question . ' (' . ($default ? 'Y/n' : 'y/N') . ')'); if (! $answer) { return $default; } return strtolower($answer) === 'y'; } function writeln(string $line): void { echo $line . PHP_EOL; } function run(string $command): string { return trim((string) shell_exec($command)); } function str_after(string $subject, string $search): string { $pos = strrpos($subject, $search); if ($pos === false) { return $subject; } return substr($subject, $pos + strlen($search)); } function slugify(string $subject): string { return strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $subject), '-')); } function title_case(string $subject): string { return str_replace(' ', '', ucwords(str_replace(['-', '_'], ' ', $subject))); } function title_snake(string $subject, string $replace = '_'): string { return str_replace(['-', '_'], $replace, $subject); } function replace_in_file(string $file, array $replacements): void { $contents = file_get_contents($file); file_put_contents( $file, str_replace( array_keys($replacements), array_values($replacements), $contents ) ); } function remove_prefix(string $prefix, string $content): string { if (str_starts_with($content, $prefix)) { return substr($content, strlen($prefix)); } return $content; } function remove_composer_deps(array $names) { $data = json_decode(file_get_contents(COMPOSER_JSON_FILE), true); foreach ($data['require-dev'] as $name => $version) { if (in_array($name, $names, true)) { unset($data['require-dev'][$name]); } } file_put_contents(COMPOSER_JSON_FILE, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); } function remove_composer_script($scriptName) { $data = json_decode(file_get_contents(COMPOSER_JSON_FILE), true); foreach ($data['scripts'] as $name => $script) { if ($scriptName === $name) { unset($data['scripts'][$name]); break; } } file_put_contents(COMPOSER_JSON_FILE, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); } function remove_readme_paragraphs(string $file): void { $contents = file_get_contents($file); file_put_contents( $file, preg_replace('/<!--delete-->.*<!--\/delete-->/s', '', $contents) ?: $contents ); } function safeUnlink(string $filename) { if (file_exists($filename) && is_file($filename)) { unlink($filename); } } function determineSeparator(string $path): string { return str_replace('/', DIRECTORY_SEPARATOR, $path); } function replaceForWindows(): array { return preg_split('/\\r\\n|\\r|\\n/', run('dir /S /B * | findstr /v /i .git\ | findstr /v /i vendor | findstr /v /i ' . basename(__FILE__) . ' | findstr /r /i /M /F:/ ":author :vendor :package VendorName skeleton migration_table_name vendor_name vendor_slug author@domain.com"')); } function replaceForAllOtherOSes(): array { return explode(PHP_EOL, run('grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|author@domain.com" --exclude-dir=vendor ./* ./.github/* | grep -v ' . basename(__FILE__))); } $gitName = run('git config user.name'); $authorName = ask('Author name', $gitName); $gitEmail = run('git config user.email'); $authorEmail = ask('Author email', $gitEmail); $usernameGuess = explode(':', run('git config remote.origin.url'))[1]; $usernameGuess = dirname($usernameGuess); $usernameGuess = basename($usernameGuess); $authorUsername = ask('Author username', $usernameGuess); $vendorName = ask('Vendor name', $authorUsername); $vendorSlug = slugify($vendorName); $vendorNamespace = str_replace('-', '', ucwords($vendorName)); $vendorNamespace = ask('Vendor namespace', $vendorNamespace); $currentDirectory = getcwd(); $folderName = basename($currentDirectory); $packageName = ask('Package name', $folderName); $packageSlug = slugify($packageName); $packageSlugWithoutPrefix = remove_prefix('laravel-', $packageSlug); $className = title_case($packageName); $className = ask('Class name', $className); $variableName = lcfirst($className); $description = ask('Package description', "This is my package {$packageSlug}"); $usePhpStan = confirm('Enable PhpStan?', true); $useLaravelPint = confirm('Enable Laravel Pint?', true); $useDependabot = confirm('Enable Dependabot?', true); $useLaravelRay = confirm('Use Ray for debugging?', true); $useUpdateChangelogWorkflow = confirm('Use automatic changelog updater workflow?', true); writeln('------'); writeln("Author : {$authorName} ({$authorUsername}, {$authorEmail})"); writeln("Vendor : {$vendorName} ({$vendorSlug})"); writeln("Package : {$packageSlug} <{$description}>"); writeln("Namespace : {$vendorNamespace}\\{$className}"); writeln("Class name : {$className}"); writeln('---'); writeln('Packages & Utilities'); writeln('Use Laravel/Pint : ' . ($useLaravelPint ? 'yes' : 'no')); writeln('Use Larastan/PhpStan : ' . ($usePhpStan ? 'yes' : 'no')); writeln('Use Dependabot : ' . ($useDependabot ? 'yes' : 'no')); writeln('Use Ray App : ' . ($useLaravelRay ? 'yes' : 'no')); writeln('Use Auto-Changelog : ' . ($useUpdateChangelogWorkflow ? 'yes' : 'no')); writeln('------'); writeln('This script will replace the above values in all relevant files in the project directory.'); if (! confirm('Modify files?', true)) { exit(1); } $files = (str_starts_with(strtoupper(PHP_OS), 'WIN') ? replaceForWindows() : replaceForAllOtherOSes()); foreach ($files as $file) { replace_in_file($file, [ ':author_name' => $authorName, ':author_username' => $authorUsername, 'author@domain.com' => $authorEmail, ':vendor_name' => $vendorName, ':vendor_slug' => $vendorSlug, 'VendorName' => $vendorNamespace, ':package_name' => $packageName, ':package_slug' => $packageSlug, ':package_slug_without_prefix' => $packageSlugWithoutPrefix, 'Skeleton' => $className, 'skeleton' => $packageSlug, 'migration_table_name' => title_snake($packageSlug), 'variable' => $variableName, ':package_description' => $description, ]); match (true) { str_contains($file, determineSeparator('src/Skeleton.php')) => rename($file, determineSeparator('./src/' . $className . '.php')), str_contains($file, determineSeparator('src/SkeletonServiceProvider.php')) => rename($file, determineSeparator('./src/' . $className . 'ServiceProvider.php')), str_contains($file, determineSeparator('src/Facades/Skeleton.php')) => rename($file, determineSeparator('./src/Facades/' . $className . '.php')), str_contains($file, determineSeparator('src/Commands/SkeletonCommand.php')) => rename($file, determineSeparator('./src/Commands/' . $className . 'Command.php')), str_contains($file, determineSeparator('database/migrations/create_skeleton_table.php.stub')) => rename($file, determineSeparator('./database/migrations/create_' . title_snake($packageSlugWithoutPrefix) . '_table.php.stub')), str_contains($file, determineSeparator('config/skeleton.php')) => rename($file, determineSeparator('./config/' . $packageSlugWithoutPrefix . '.php')), str_contains($file, 'README.md') => remove_readme_paragraphs($file), default => [], }; } if (! $useLaravelPint) { safeUnlink(__DIR__ . '/.github/workflows/fix-php-code-style-issues.yml'); safeUnlink(__DIR__ . '/pint.json'); } if (! $usePhpStan) { safeUnlink(__DIR__ . '/phpstan.neon.dist'); safeUnlink(__DIR__ . '/phpstan-baseline.neon'); safeUnlink(__DIR__ . '/.github/workflows/phpstan.yml'); remove_composer_deps([ 'phpstan/extension-installer', 'phpstan/phpstan-deprecation-rules', 'phpstan/phpstan-phpunit', 'nunomaduro/larastan', ]); remove_composer_script('phpstan'); } if (! $useDependabot) { safeUnlink(__DIR__ . '/.github/dependabot.yml'); safeUnlink(__DIR__ . '/.github/workflows/dependabot-auto-merge.yml'); } if (! $useLaravelRay) { remove_composer_deps(['spatie/laravel-ray']); } confirm('Execute `composer install` and run tests?') && run('composer install && composer test'); confirm('Let this script delete itself?', true) && unlink(__FILE__);
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/de/messages.php
lang/de/messages.php
<?php return [ 'title' => 'Cookie-Einwilligung', 'description' => 'Wir verwenden Cookies, um unsere Website und unseren Service zu optimieren. Sie können auswählen, welchen Kategorien Sie zustimmen.', 'please_visit_1' => 'Für detailliertere Informationen über Cookies besuchen Sie bitte unsere', 'cookie_policy_page' => 'Cookie-Richtlinien-Seite', 'accept_selection_btn' => 'Auswahl akzeptieren', 'customise_btn' => 'Anpassen', 'accept_all_btn' => 'Alle akzeptieren', 'reject_optional_btn' => 'Optionale ablehnen', 'accept_additional_cookies_btn' => 'Zusätzliche Cookies akzeptieren', 'reject_additional_cookies_btn' => 'Zusätzliche Cookies ablehnen', 'cookie_policy_title' => 'Cookie-Richtlinie', 'cookie_policy_text_1' => 'Dies ist die Cookie-Richtlinien-Seite. Hier können Sie über die in der Anwendung verwendeten Cookies lesen und auswählen, welche Cookies Sie zulassen möchten.', 'what_are_cookies_title' => 'Was sind Cookies?', 'what_are_cookies_text_1' => 'Ein Cookie ist eine kleine Textdatei, die eine Website oder App an das Gerät eines Benutzers sendet. Diese Textdatei sammelt Informationen über Benutzeraktionen auf Ihrer Website.', 'what_are_cookies_text_2' => 'Cookies speichern hilfreiche Informationen, um die Benutzererfahrung auf Ihrer Website zu verbessern und möglicherweise Ihre Fähigkeit zu verbessern, später wieder mit ihnen in Kontakt zu treten.', 'what_are_cookies_text_3' => 'Von Cookies gesammelte Informationen können die bevorzugte Sprache des Benutzers, Geräteeinstellungen, Browsing-Aktivitäten und andere nützliche Informationen umfassen.', 'what_are_cookies_text_4' => 'Websites wie Google verwenden Cookies, um Anzeigen relevanter für ihre Benutzer zu machen. Sie verfolgen auch Analysen wie die Anzahl der Besucher auf einer Seite, die Standorte der Besucher, Suchpräferenzen usw.', 'what_are_cookies_text_5' => 'Cookies sind nicht schädlich für Ihr Gerät. Sie sind keine Viren oder Malware. Es sind nur Textdateien, die jederzeit gelöscht werden können.', 'use_of_cookies_title' => 'Verwendung von Cookies', 'use_of_cookies_text_1' => 'Cookies werden im Allgemeinen verwendet, um eine oder alle der folgenden Funktionen auszuführen:', 'use_of_cookies_text_2' => '<b>Authentifizierung:</b> Cookies helfen Websites festzustellen, ob ein Benutzer angemeldet ist, und liefern dann die richtige Erfahrung und Funktionen für diesen einzigartigen Benutzer.', 'use_of_cookies_text_3' => '<b>Sicherheit:</b> Cookies helfen, Sicherheitsmaßnahmen auf einer Website durchzusetzen. Sie helfen auch, ungewöhnliche und verdächtige Aktivitäten zu erkennen.', 'use_of_cookies_text_4' => '<b>Werbung:</b> Cookies bieten eine bessere Werbeerfahrung für Benutzer und Werbetreibende. Cookies helfen, Werbetreibende mit Benutzern zu verbinden, die am meisten an ihren Produkten interessiert sind, basierend auf dem Browserverlauf des Benutzers.', 'use_of_cookies_text_5' => '<b>Leistung:</b> Cookies helfen Ihrer Website zu lernen, wie Dienste für verschiedene Personen funktionieren und wie der Datenverkehr zwischen Servern geleitet wird.', 'use_of_cookies_text_6' => '<b>Analysen und Forschung:</b> Websites und Apps verwenden Cookies, um zu erfahren, welche ihrer Dienste am meisten genutzt werden. Dies hilft zu bestimmen, was verbessert, entfernt und gleich bleiben soll.', 'use_of_cookies_text_7' => '<b>Präferenzen:</b> Cookies helfen Websites, sich an Benutzereinstellungen wie Sprache, Standort und andere Einstellungen zu erinnern.', 'use_of_cookies_text_8' => 'Einige Cookies können Daten über mehrere Websites hinweg sammeln, um Benutzerverhaltensprofile zu erstellen. Diese Profile werden dann verwendet, um gezielte Inhalte und Werbung an Benutzer zu senden.', 'cookies_used_title' => 'In dieser Anwendung verwendete Cookies', 'cookies_used_text_1' => 'Die folgenden Cookies werden in dieser Anwendung verwendet. Bitte wählen Sie aus, welche Cookies Sie zulassen möchten.', 'hours' => '{1} :count Stunde|[2,Inf] :count Stunden', 'days' => '{1} :count Tag|[2,Inf] :count Tage', 'years' => '{1} :count Jahr|[2,Inf] :count Jahre', 'minutes' => '{1} :count Minute|[2,Inf] :count Minuten', 'months' => '{1} :count Monat|[2,Inf] :count Monate', 'cookie_cookies_consent_description' => 'Dieses Cookie wird vom GDPR Cookie Consent-Plugin gesetzt und dient dazu, zu speichern, ob der Benutzer der Verwendung von Cookies zugestimmt hat oder nicht. Es speichert keine persönlichen Daten.', 'cookie_xsrf_token_description' => 'Dieses Cookie wird von Laravel gesetzt, um Cross-Site Request Forgery (CSRF)-Angriffe zu verhindern.', 'cookie_laravel_session_description' => 'Dieses Cookie wird von Laravel gesetzt, um eine Sitzungsinstanz für den Benutzer zu identifizieren.', 'description_label' => 'Beschreibung', 'duration_label' => 'Dauer', 'policy_label' => 'Richtlinienlink', 'strictly_necessary' => 'Unbedingt erforderlich', 'performance' => 'Leistung', 'targeting' => 'Zielgruppenausrichtung', 'marketing' => 'Marketing', 'read_more' => 'Mehr erfahren', 'read_less' => 'Weniger lesen', 'selection_saved_message' => 'Cookie-Einwilligungsauswahl gespeichert', 'cookies_settings' => 'Cookie-Einstellungen', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/sk/messages.php
lang/sk/messages.php
<?php return [ 'title' => 'Súhlas s cookies', 'description' => 'Používame cookies na optimalizáciu našej webovej stránky a našich služieb. Môžete si vybrať, s ktorými kategóriami súhlasíte.', 'please_visit_1' => 'Pre podrobnejšie informácie o cookies, prosím, navštívte našu', 'cookie_policy_page' => 'stránku s politikou cookies', 'accept_selection_btn' => 'Prijať vybrané', 'customise_btn' => 'Prispôsobiť', 'accept_all_btn' => 'Prijať všetky', 'reject_optional_btn' => 'Odmietnuť voliteľné', 'accept_additional_cookies_btn' => 'Prijať ďalšie cookies', 'reject_additional_cookies_btn' => 'Odmietnuť ďalšie cookies', 'cookie_policy_title' => 'Politika cookies', 'cookie_policy_text_1' => 'Toto je stránka s politikou cookies. Tu si môžete prečítať o cookies, ktoré sa používajú v aplikácii, a vybrať, ktoré cookies povolíte.', 'what_are_cookies_title' => 'Čo sú cookies?', 'what_are_cookies_text_1' => 'Cookie je malý textový súbor, ktorý webová stránka alebo aplikácia pošle do zariadenia používateľa. Tento textový súbor zhromažďuje informácie o akciách používateľa na vašej stránke.', 'what_are_cookies_text_2' => 'Cookies ukladajú užitočné informácie na zlepšenie používateľských skúseností na vašej stránke a prípadne na zlepšenie vašej schopnosti sa s nimi neskôr spojiť.', 'what_are_cookies_text_3' => 'Informácie zhromaždené cookies môžu zahŕňať preferovaný jazyk používateľa, nastavenia zariadenia, aktivity prehliadania a ďalšie užitočné informácie.', 'what_are_cookies_text_4' => 'Webové stránky ako Google používajú cookies na to, aby boli reklamy relevantnejšie pre ich používateľov. Sledujú tiež analytiku, ako je počet návštevníkov stránky, miesta návštevníkov, preferencie vyhľadávania a podobne.', 'what_are_cookies_text_5' => 'Cookies nie sú škodlivé pre vaše zariadenie. Nie sú to vírusy ani malware. Sú to len textové súbory, ktoré je možné kedykoľvek vymazať.', 'use_of_cookies_title' => 'Používanie cookies', 'use_of_cookies_text_1' => 'Cookies sa zvyčajne používajú na vykonávanie jednej alebo všetkých z nasledujúcich funkcií:', 'use_of_cookies_text_2' => '<b>Autentifikácia:</b> Cookies pomáhajú webovým stránkam určiť, či je používateľ prihlásený, a potom doručiť správne skúsenosti a funkcie pre tohto jedinečného používateľa.', 'use_of_cookies_text_3' => '<b>Bezpečnosť:</b> Cookies pomáhajú zaviesť bezpečnostné opatrenia na webovej stránke. Pomáhajú tiež odhaliť neobvyklé a podozrivé aktivity.', 'use_of_cookies_text_4' => '<b>Reklama:</b> Cookies poskytujú lepšie reklamné skúsenosti pre používateľov aj inzerentov. Cookies pomáhajú inzerentom spojiť sa s používateľmi, ktorí majú najväčší záujem o ich produkty na základe histórie prehliadania používateľa.', 'use_of_cookies_text_5' => '<b>Výkon:</b> Cookies pomáhajú vašej webovej stránke zistiť, ako služby fungujú pre rôznych ľudí a ako smerovať prevádzku medzi servermi.', 'use_of_cookies_text_6' => '<b>Analytika a výskum:</b> Webové stránky a aplikácie používajú cookies na zistenie, ktoré z ich služieb sa používajú najviac. To pomáha určiť, čo je potrebné zlepšiť, odstrániť a ponechať nezmenené.', 'use_of_cookies_text_7' => '<b>Preferencie:</b> Cookies pomáhajú webovým stránkam zapamätať si preferencie používateľov, ako je jazyk, poloha a ďalšie nastavenia.', 'use_of_cookies_text_8' => 'Niektoré cookies môžu zhromažďovať údaje z viacerých webových stránok na vytvorenie profilov správania používateľov. Tieto profily sa potom používajú na zasielanie cieleného obsahu a reklám používateľom.', 'cookies_used_title' => 'Cookies používané v tejto aplikácii', 'cookies_used_text_1' => 'V tejto aplikácii sa používajú nasledujúce cookies. Vyberte, ktoré cookies chcete povoliť.', 'hours' => '{1} :count hodina|[2,Inf] :count hodiny', 'days' => '{1} :count deň|[2,Inf] :count dni', 'years' => '{1} :count rok|[2,Inf] :count roky', 'minutes' => '{1} :count minúta|[2,Inf] :count minúty', 'months' => '{1} :count mesiac|[2,Inf] :count mesiace', 'cookie_cookies_consent_description' => 'Tento cookie je nastavený pluginom GDPR Cookie Consent a používa sa na uloženie, či používateľ súhlasil s používaním cookies alebo nie. Neuchováva žiadne osobné údaje.', 'cookie_xsrf_token_description' => 'Tento cookie je nastavený Laravelom na zabránenie útokom Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Tento cookie je nastavený Laravelom na identifikáciu inštancie relácie pre používateľa.', 'description_label' => 'Popis', 'duration_label' => 'Trvanie', 'policy_label' => 'Odkaz na politiku', 'strictly_necessary' => 'Prísne nevyhnutné', 'performance' => 'Výkon', 'targeting' => 'Cielenie', 'marketing' => 'Marketing', 'read_more' => 'Čítať viac', 'read_less' => 'Čítať menej', 'selection_saved_message' => 'Výber súhlasu s cookies bol uložený', 'cookies_settings' => 'Nastavenia cookies', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/fi/messages.php
lang/fi/messages.php
<?php return [ 'title' => 'Evästeiden suostumus', 'description' => 'Käytämme evästeitä optimoidaksemme verkkosivustomme ja palvelumme. Voit valita, mihin kategorioihin suostut.', 'please_visit_1' => 'Lisätietoja evästeistä saat käymällä', 'cookie_policy_page' => 'evästekäytäntösivullamme', 'accept_selection_btn' => 'Hyväksy valitut', 'customise_btn' => 'Mukauta', 'accept_all_btn' => 'Hyväksy kaikki', 'reject_optional_btn' => 'Hylkää valinnaiset', 'accept_additional_cookies_btn' => 'Hyväksy lisäevästeet', 'reject_additional_cookies_btn' => 'Hylkää lisäevästeet', 'cookie_policy_title' => 'Evästekäytäntö', 'cookie_policy_text_1' => 'Tämä on evästekäytäntösivu. Täältä voit lukea sovelluksessa käytetyistä evästeistä ja valita, mitkä evästeet haluat sallia.', 'what_are_cookies_title' => 'Mitä evästeet ovat?', 'what_are_cookies_text_1' => 'Eväste on pieni tekstitiedosto, jonka verkkosivusto tai sovellus lähettää käyttäjän laitteeseen. Tämä tekstitiedosto kerää tietoja käyttäjän toimista sivustollasi.', 'what_are_cookies_text_2' => 'Evästeet tallentavat hyödyllistä tietoa parantaakseen käyttäjien kokemuksia sivustollasi ja mahdollisesti parantaakseen kykyäsi ottaa heihin yhteyttä myöhemmin.', 'what_are_cookies_text_3' => 'Evästeiden keräämät tiedot voivat sisältää käyttäjän valitseman kielen, laiteasetukset, selaustoiminnot ja muita hyödyllisiä tietoja.', 'what_are_cookies_text_4' => 'Verkkosivustot, kuten Google, käyttävät evästeitä tehdäkseen mainoksista käyttäjilleen osuvampia. Ne seuraavat myös analytiikkaa, kuten sivun kävijämäärää, kävijöiden sijainteja, hakumieltymyksiä jne.', 'what_are_cookies_text_5' => 'Evästeet eivät ole haitallisia laitteellesi. Ne eivät ole viruksia tai haittaohjelmia. Ne ovat vain tekstitiedostoja, jotka voidaan poistaa milloin tahansa.', 'use_of_cookies_title' => 'Evästeiden käyttö', 'use_of_cookies_text_1' => 'Evästeitä käytetään yleensä suorittamaan yksi tai kaikki seuraavista toiminnoista:', 'use_of_cookies_text_2' => '<b>Todennus:</b> Evästeet auttavat verkkosivustoja määrittämään, onko käyttäjä kirjautunut sisään, ja tarjoavat sitten oikean kokemuksen ja ominaisuudet tälle ainutlaatuiselle käyttäjälle.', 'use_of_cookies_text_3' => '<b>Turvallisuus:</b> Evästeet auttavat verkkosivustoa toteuttamaan turvatoimia. Ne auttavat myös havaitsemaan epätavallisia ja epäilyttäviä toimintoja.', 'use_of_cookies_text_4' => '<b>Mainonta:</b> Evästeet tarjoavat paremman mainoskokemuksen sekä käyttäjille että mainostajille. Evästeet auttavat mainostajia yhdistämään käyttäjiin, jotka ovat eniten kiinnostuneita heidän tuotteistaan käyttäjän selaushistorian perusteella.', 'use_of_cookies_text_5' => '<b>Suorituskyky:</b> Evästeet auttavat verkkosivustoasi oppimaan, miten palvelut toimivat eri ihmisille ja miten liikennettä ohjataan palvelimien välillä.', 'use_of_cookies_text_6' => '<b>Analytiikka ja tutkimus:</b> Verkkosivustot ja sovellukset käyttävät evästeitä oppiakseen, mitkä heidän palveluistaan ovat eniten käytettyjä. Tämä auttaa määrittämään, mitä parantaa, mitä poistaa ja mitä jättää ennalleen.', 'use_of_cookies_text_7' => '<b>Asetukset:</b> Evästeet auttavat verkkosivustoja muistamaan käyttäjän asetukset, kuten kielen, sijainnin ja muut asetukset.', 'use_of_cookies_text_8' => 'Jotkut evästeet voivat kerätä tietoja useilta verkkosivustoilta luodakseen käyttäjäprofiileja. Näitä profiileja käytetään sitten kohdennetun sisällön ja mainosten lähettämiseen käyttäjille.', 'cookies_used_title' => 'Tässä sovelluksessa käytetyt evästeet', 'cookies_used_text_1' => 'Seuraavia evästeitä käytetään tässä sovelluksessa. Valitse, mitkä evästeet haluat sallia.', 'hours' => '{1} :count tunti|[2,Inf] :count tuntia', 'days' => '{1} :count päivä|[2,Inf] :count päivää', 'years' => '{1} :count vuosi|[2,Inf] :count vuotta', 'minutes' => '{1} :count minuutti|[2,Inf] :count minuuttia', 'months' => '{1} :count kuukausi|[2,Inf] :count kuukautta', 'cookie_cookies_consent_description' => 'Tämän evästeen asettaa GDPR Cookie Consent -laajennus, ja sitä käytetään tallentamaan, onko käyttäjä suostunut evästeiden käyttöön vai ei. Se ei tallenna henkilökohtaisia tietoja.', 'cookie_xsrf_token_description' => 'Tämän evästeen asettaa Laravel estääkseen Cross-Site Request Forgery (CSRF) -hyökkäykset.', 'cookie_laravel_session_description' => 'Tämän evästeen asettaa Laravel tunnistaakseen käyttäjän istunnon.', 'description_label' => 'Kuvaus', 'duration_label' => 'Kesto', 'policy_label' => 'Käytännön linkki', 'strictly_necessary' => 'Ehdottoman välttämätön', 'performance' => 'Suorituskyky', 'targeting' => 'Kohdentaminen', 'marketing' => 'Markkinointi', 'read_more' => 'Lue lisää', 'read_less' => 'Lue vähemmän', 'selection_saved_message' => 'Evästeiden suostumusvalinta tallennettu', 'cookies_settings' => 'Evästeasetukset', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/se/messages.php
lang/se/messages.php
<?php return [ 'title' => 'Cookie-samtycke', 'description' => 'Vi använder cookies för att optimera vår webbplats och vår tjänst. Du kan välja vilka kategorier du ger ditt samtycke till.', 'please_visit_1' => 'För mer detaljerad information om cookies, besök vår', 'cookie_policy_page' => 'cookiepolicy-sida', 'accept_selection_btn' => 'Acceptera val', 'customise_btn' => 'Anpassa', 'accept_all_btn' => 'Acceptera alla', 'reject_optional_btn' => 'Avvisa valfria', 'accept_additional_cookies_btn' => 'Acceptera ytterligare cookies', 'reject_additional_cookies_btn' => 'Avvisa ytterligare cookies', 'cookie_policy_title' => 'Cookiepolicy', 'cookie_policy_text_1' => 'Detta är cookiepolicy-sidan. Här kan du läsa om de cookies som används i applikationen och välja vilka cookies du vill tillåta.', 'what_are_cookies_title' => 'Vad är cookies?', 'what_are_cookies_text_1' => 'En cookie är en liten textfil som en webbplats eller app skickar till en användares enhet. Denna textfil samlar information om användarens handlingar på din webbplats.', 'what_are_cookies_text_2' => 'Cookies lagrar användbar information för att förbättra användarupplevelsen på din webbplats och eventuellt förbättra din förmåga att återansluta med dem senare.', 'what_are_cookies_text_3' => 'Informationen som samlas in av cookies kan inkludera användarens föredragna språk, enhetsinställningar, surfaktiviteter och annan användbar information.', 'what_are_cookies_text_4' => 'Webbplatser som Google använder cookies för att göra annonser mer relevanta för sina användare. De spårar också analyser som antalet besökare på en sida, besökarnas platser, sökpreferenser osv.', 'what_are_cookies_text_5' => 'Cookies är inte skadliga för din enhet. De är inte virus eller skadlig programvara. De är bara textfiler som kan raderas när som helst.', 'use_of_cookies_title' => 'Användning av cookies', 'use_of_cookies_text_1' => 'Cookies används vanligtvis för att utföra en eller alla av följande funktioner:', 'use_of_cookies_text_2' => '<b>Autentisering:</b> Cookies hjälper webbplatser att avgöra om en användare är inloggad och tillhandahåller sedan rätt upplevelse och funktioner för den unika användaren.', 'use_of_cookies_text_3' => '<b>Säkerhet:</b> Cookies hjälper till att genomdriva säkerhetsåtgärder på en webbplats. De hjälper också till att upptäcka ovanliga och misstänkta aktiviteter.', 'use_of_cookies_text_4' => '<b>Reklam:</b> Cookies ger en bättre reklamupplevelse för både användare och annonsörer. Cookies hjälper till att koppla annonsörer med användare som är mest intresserade av deras produkter baserat på användarens surfhistorik.', 'use_of_cookies_text_5' => '<b>Prestanda:</b> Cookies hjälper din webbplats att lära sig hur tjänster fungerar för olika människor och hur man dirigerar trafik mellan servrar.', 'use_of_cookies_text_6' => '<b>Analys och forskning:</b> Webbplatser och appar använder cookies för att lära sig vilka av deras tjänster som används mest. Detta hjälper till att avgöra vad som behöver förbättras, tas bort och förbli detsamma.', 'use_of_cookies_text_7' => '<b>Preferenser:</b> Cookies hjälper webbplatser att komma ihåg användarens preferenser, som språk, plats och andra inställningar.', 'use_of_cookies_text_8' => 'Vissa cookies kan samla in data från flera webbplatser för att skapa användarprofiler. Dessa profiler används sedan för att skicka riktat innehåll och reklam till användare.', 'cookies_used_title' => 'Cookies som används i denna applikation', 'cookies_used_text_1' => 'Följande cookies används i denna applikation. Vänligen välj vilka cookies du vill tillåta.', 'hours' => '{1} :count timme|[2,Inf] :count timmar', 'days' => '{1} :count dag|[2,Inf] :count dagar', 'years' => '{1} :count år|[2,Inf] :count år', 'minutes' => '{1} :count minut|[2,Inf] :count minuter', 'months' => '{1} :count månad|[2,Inf] :count månader', 'cookie_cookies_consent_description' => 'Detta cookie sätts av GDPR Cookie Consent-pluginet och används för att lagra om användaren har samtyckt till användningen av cookies eller inte. Det lagrar ingen personlig data.', 'cookie_xsrf_token_description' => 'Detta cookie sätts av Laravel för att förhindra Cross-Site Request Forgery (CSRF)-attacker.', 'cookie_laravel_session_description' => 'Detta cookie sätts av Laravel för att identifiera en sessionsinstans för användaren.', 'description_label' => 'Beskrivning', 'duration_label' => 'Varaktighet', 'policy_label' => 'Policylänk', 'strictly_necessary' => 'Strikt nödvändiga', 'performance' => 'Prestanda', 'targeting' => 'Målgrupp', 'marketing' => 'Marknadsföring', 'read_more' => 'Läs mer', 'read_less' => 'Läs mindre', 'selection_saved_message' => 'Cookie-samtyckesval sparat', 'cookies_settings' => 'Cookieinställningar', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/bg/messages.php
lang/bg/messages.php
<?php return [ 'title' => 'Съгласие за бисквитки', 'description' => 'Използваме бисквитки, за да оптимизираме нашия уебсайт и услуга. Можете да изберете кои категории да приемете.', 'please_visit_1' => 'За по-подробна информация относно бисквитките, моля посетете нашата', 'cookie_policy_page' => 'страница с политика за бисквитки', 'accept_selection_btn' => 'Приемете избора', 'customise_btn' => 'Персонализирайте', 'accept_all_btn' => 'Приемете всички', 'reject_optional_btn' => 'Откажете опционалните', 'accept_additional_cookies_btn' => 'Приемете допълнителни бисквитки', 'reject_additional_cookies_btn' => 'Откажете допълнителни бисквитки', 'cookie_policy_title' => 'Политика за бисквитки', 'cookie_policy_text_1' => 'Това е страницата с политика за бисквитки. Тук можете да прочетете за бисквитките, използвани в приложението, и да изберете кои бисквитки да разрешите.', 'what_are_cookies_title' => 'Какво са бисквитките?', 'what_are_cookies_text_1' => 'Бисквитката е малък текстов файл, който уебсайт или приложение изпраща на устройството на потребителя. Този текстов файл събира информация за действията на потребителя на вашия уебсайт.', 'what_are_cookies_text_2' => 'Бисквитките съхраняват полезна информация, за да подобрят потребителското изживяване на вашия уебсайт и евентуално да подобрят способността ви да се свържете с тях по-късно.', 'what_are_cookies_text_3' => 'Информацията, събрана от бисквитките, може да включва предпочитания език на потребителя, настройки на устройството, активност при сърфиране и друга полезна информация.', 'what_are_cookies_text_4' => 'Уебсайтове като Google използват бисквитки, за да направят рекламите по-релевантни за своите потребители. Те също така проследяват анализи като броя на посетителите на страница, местоположенията на посетителите, предпочитанията за търсене и т.н.', 'what_are_cookies_text_5' => 'Бисквитките не са вредни за вашето устройство. Те не са вируси или зловреден софтуер. Те са само текстови файлове, които могат да бъдат изтрити по всяко време.', 'use_of_cookies_title' => 'Използване на бисквитки', 'use_of_cookies_text_1' => 'Бисквитките обикновено се използват за изпълнение на една или всички от следните функции:', 'use_of_cookies_text_2' => '<b>Аутентификация:</b> Бисквитките помагат на уебсайтовете да определят дали потребителят е влязъл в системата и след това предоставят правилното изживяване и функции за този уникален потребител.', 'use_of_cookies_text_3' => '<b>Сигурност:</b> Бисквитките помагат за прилагането на мерки за сигурност на уебсайт. Те също така помагат за откриване на необичайни и подозрителни дейности.', 'use_of_cookies_text_4' => '<b>Реклама:</b> Бисквитките предлагат по-добро рекламно изживяване за потребителите и рекламодателите. Бисквитките помагат на рекламодателите да се свържат с потребители, които най-много се интересуват от техните продукти, въз основа на историята на сърфиране на потребителя.', 'use_of_cookies_text_5' => '<b>Производителност:</b> Бисквитките помагат на вашия уебсайт да научи как услугите работят за различни хора и как се насочва трафикът между сървърите.', 'use_of_cookies_text_6' => '<b>Анализи и изследвания:</b> Уебсайтовете и приложенията използват бисквитки, за да научат кои от техните услуги се използват най-много. Това помага да се определи какво трябва да се подобри, премахне и остане същото.', 'use_of_cookies_text_7' => '<b>Предпочитания:</b> Бисквитките помагат на уебсайтовете да запомнят потребителските настройки като език, местоположение и други настройки.', 'use_of_cookies_text_8' => 'Някои бисквитки могат да събират данни от няколко уебсайта, за да създадат профили на потребителското поведение. Тези профили след това се използват за изпращане на целеви съдържание и реклама на потребителите.', 'cookies_used_title' => 'Бисквитки, използвани в това приложение', 'cookies_used_text_1' => 'Следните бисквитки се използват в това приложение. Моля, изберете кои бисквитки искате да разрешите.', 'hours' => '{1} :count час|[2,Inf] :count часа', 'days' => '{1} :count ден|[2,Inf] :count дни', 'years' => '{1} :count година|[2,Inf] :count години', 'minutes' => '{1} :count минута|[2,Inf] :count минути', 'months' => '{1} :count месец|[2,Inf] :count месеца', 'cookie_cookies_consent_description' => 'Тази бисквитка се задава от GDPR Cookie Consent плъгина и се използва за съхранение на това дали потребителят е съгласен с използването на бисквитки или не. Тя не съхранява лични данни.', 'cookie_xsrf_token_description' => 'Тази бисквитка се задава от Laravel, за да предотврати Cross-Site Request Forgery (CSRF) атаки.', 'cookie_laravel_session_description' => 'Тази бисквитка се задава от Laravel, за да идентифицира сесията на потребителя.', 'description_label' => 'Описание', 'duration_label' => 'Продължителност', 'policy_label' => 'Линк към политиката', 'strictly_necessary' => 'Строго необходимо', 'performance' => 'Производителност', 'targeting' => 'Целева аудитория', 'marketing' => 'Маркетинг', 'read_more' => 'Прочетете повече', 'read_less' => 'Прочетете по-малко', 'selection_saved_message' => 'Изборът за съгласие с бисквитките е запазен', 'cookies_settings' => 'Настройки на бисквитките', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/cs/messages.php
lang/cs/messages.php
<?php return [ 'title' => 'Souhlas s cookies', 'description' => 'Používáme cookies, abychom optimalizovali naše webové stránky a služby. Můžete si vybrat, které kategorie chcete přijmout.', 'please_visit_1' => 'Pro podrobnější informace o cookies navštivte naši', 'cookie_policy_page' => 'stránku s politikou cookies', 'accept_selection_btn' => 'Přijmout výběr', 'customise_btn' => 'Přizpůsobit', 'accept_all_btn' => 'Přijmout vše', 'reject_optional_btn' => 'Odmítnout volitelné', 'accept_additional_cookies_btn' => 'Přijmout další cookies', 'reject_additional_cookies_btn' => 'Odmítnout další cookies', 'cookie_policy_title' => 'Politika cookies', 'cookie_policy_text_1' => 'Toto je stránka s politikou cookies. Zde si můžete přečíst o cookies používaných v aplikaci a vybrat, které cookies chcete povolit.', 'what_are_cookies_title' => 'Co jsou cookies?', 'what_are_cookies_text_1' => 'Cookie je malý textový soubor, který webová stránka nebo aplikace posílá na zařízení uživatele. Tento textový soubor shromažďuje informace o akcích uživatele na vašich webových stránkách.', 'what_are_cookies_text_2' => 'Cookies ukládají užitečné informace, aby zlepšily uživatelskou zkušenost na vašich webových stránkách a případně zlepšily vaši schopnost se s nimi později znovu spojit.', 'what_are_cookies_text_3' => 'Informace shromážděné cookies mohou zahrnovat preferovaný jazyk uživatele, nastavení zařízení, aktivitu při prohlížení a další užitečné informace.', 'what_are_cookies_text_4' => 'Webové stránky jako Google používají cookies, aby byly reklamy relevantnější pro jejich uživatele. Sledují také analýzy, jako je počet návštěvníků na stránce, umístění návštěvníků, preference vyhledávání atd.', 'what_are_cookies_text_5' => 'Cookies nejsou škodlivé pro vaše zařízení. Nejsou to viry ani malware. Jsou to pouze textové soubory, které lze kdykoli smazat.', 'use_of_cookies_title' => 'Použití cookies', 'use_of_cookies_text_1' => 'Cookies se obvykle používají k provádění jedné nebo všech následujících funkcí:', 'use_of_cookies_text_2' => '<b>Autentizace:</b> Cookies pomáhají webovým stránkám určit, zda je uživatel přihlášen, a poté poskytují správnou zkušenost a funkce pro tohoto jedinečného uživatele.', 'use_of_cookies_text_3' => '<b>Bezpečnost:</b> Cookies pomáhají při prosazování bezpečnostních opatření na webových stránkách. Pomáhají také při detekci neobvyklých a podezřelých aktivit.', 'use_of_cookies_text_4' => '<b>Reklama:</b> Cookies poskytují lepší reklamní zážitek pro uživatele a inzerenty. Cookies pomáhají inzerentům spojit se s uživateli, kteří mají největší zájem o jejich produkty, na základě historie prohlížení uživatele.', 'use_of_cookies_text_5' => '<b>Výkon:</b> Cookies pomáhají vašim webovým stránkám zjistit, jak služby fungují pro různé lidi a jak se směruje provoz mezi servery.', 'use_of_cookies_text_6' => '<b>Analýzy a výzkum:</b> Webové stránky a aplikace používají cookies, aby zjistily, které jejich služby se nejvíce používají. To pomáhá určit, co je třeba zlepšit, odstranit a nechat stejné.', 'use_of_cookies_text_7' => '<b>Preference:</b> Cookies pomáhají webovým stránkám zapamatovat si uživatelská nastavení, jako je jazyk, umístění a další nastavení.', 'use_of_cookies_text_8' => 'Některé cookies mohou shromažďovat data z několika webových stránek, aby vytvořily profily chování uživatelů. Tyto profily se pak používají k zasílání cíleného obsahu a reklamy uživatelům.', 'cookies_used_title' => 'Cookies používané v této aplikaci', 'cookies_used_text_1' => 'Následující cookies se používají v této aplikaci. Vyberte, které cookies chcete povolit.', 'hours' => '{1} :count hodina|[2,Inf] :count hodin', 'days' => '{1} :count den|[2,Inf] :count dní', 'years' => '{1} :count rok|[2,Inf] :count let', 'minutes' => '{1} :count minuta|[2,Inf] :count minut', 'months' => '{1} :count měsíc|[2,Inf] :count měsíců', 'cookie_cookies_consent_description' => 'Tento cookie je nastaven pluginem GDPR Cookie Consent a používá se k uložení toho, zda uživatel souhlasí s používáním cookies nebo ne. Neukládá žádné osobní údaje.', 'cookie_xsrf_token_description' => 'Tento cookie je nastaven Laravelem, aby zabránil útokům Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Tento cookie je nastaven Laravelem, aby identifikoval uživatelskou relaci.', 'description_label' => 'Popis', 'duration_label' => 'Doba trvání', 'policy_label' => 'Odkaz na politiku', 'strictly_necessary' => 'Nezbytně nutné', 'performance' => 'Výkon', 'targeting' => 'Cílení', 'marketing' => 'Marketing', 'read_more' => 'Přečtěte si více', 'read_less' => 'Přečtěte si méně', 'selection_saved_message' => 'Výběr souhlasu s cookies byl uložen', 'cookies_settings' => 'Nastavení cookies', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/en/messages.php
lang/en/messages.php
<?php return [ 'title' => 'We value your privacy', 'description' => 'We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. You can choose which categories you consent to.', 'please_visit_1' => 'For more detailed information about cookies, please visit the', 'cookie_policy_page' => 'cookie policy page', 'accept_selection_btn' => 'Save selection', 'customise_btn' => 'Customise', 'accept_all_btn' => 'Accept All', 'reject_optional_btn' => 'Reject All', 'accept_additional_cookies_btn' => 'Accept additional cookies', 'reject_additional_cookies_btn' => 'Reject additional cookies', 'cookie_policy_title' => 'Cookie Policy', 'cookie_policy_text_1' => 'This is the cookie policy page. Here you can read about the Cookies that are used in the application and select which cookies to allow.', 'what_are_cookies_title' => 'What are cookies?', 'what_are_cookies_text_1' => 'A cookie is a small text file that a website or app sends to a user\'s device. This text file collects information about user actions on your site.', 'what_are_cookies_text_2' => 'Cookies store helpful information to enhance users\' experiences with your site, and possibly to improve your ability to reconnect with them later.', 'what_are_cookies_text_3' => 'Information collected by cookies can include the user\'s preferred language, device settings, browsing activities and other useful information.', 'what_are_cookies_text_4' => 'Websites like Google use cookies to make ads more relevant to their users. They also track analytics such as counting the number of visitors to a page, locations of visitors, search preferences and so on.', 'what_are_cookies_text_5' => 'Cookies are not harmful to your device. They are not viruses or malware. They are just text files that can be deleted at any time.', 'use_of_cookies_title' => 'Use of cookies', 'use_of_cookies_text_1' => 'Cookies generally are used to perform one or all of the following:', 'use_of_cookies_text_2' => '<b>Authentication:</b> Cookies help websites determine if a user is logged in, and then deliver the right experience and features to that unique user.', 'use_of_cookies_text_3' => '<b>Security:</b> Cookies help impose security measures on a website. They also help detect unusual and suspicious activities.', 'use_of_cookies_text_4' => '<b>Advertising:</b> Cookies deliver a better advertising experience for both users and advertisers. Cookies help connect advertisers to users who are most interested in their products based on the user\'s browsing history.', 'use_of_cookies_text_5' => '<b>Performance:</b> Cookies help your website learn how services work for different people and how to route traffic between servers.', 'use_of_cookies_text_6' => '<b>Analytics and Research:</b> Websites and apps use cookies to learn which of their services are most used. This helps determine what to improve, what to remove and what to leave the same.', 'use_of_cookies_text_7' => '<b>Preferences:</b> Cookies help websites remember user preferences such as language, location, and other settings.', 'use_of_cookies_text_8' => 'Some cookies can gather data across several websites in order to create user behavior profiles. These profiles are then used to send targeted content and advertisement to users.', 'cookies_used_title' => 'Cookies used in this application', 'cookies_used_text_1' => 'The following cookies are used in this application. Please select which cookies you would like to allow.', 'hours' => '{1} :count hour|[2,Inf] :count hours', 'days' => '{1} :count day|[2,Inf] :count days', 'years' => '{1} :count year|[2,Inf] :count years', 'minutes' => '{1} :count minute|[2,Inf] :count minutes', 'months' => '{1} :count month|[2,Inf] :count months', 'cookie_cookies_consent_description' => 'This cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.', 'cookie_xsrf_token_description' => 'This cookie is set by Laravel to prevent Cross-Site Request Forgery (CSRF) attacks.', 'cookie_laravel_session_description' => 'This cookie is set by Laravel to identify a session instance for the user.', 'description_label' => 'Description', 'duration_label' => 'Duration', 'policy_label' => 'Policy link', 'strictly_necessary' => 'Strictly Necessary', 'performance' => 'Performance', 'targeting' => 'Targeting', 'marketing' => 'Marketing', 'read_more' => 'Read more', 'read_less' => 'Read less', 'selection_saved_message' => 'Cookies consent selection saved', 'cookies_settings' => 'Cookies Settings', 'always_active' => 'always active', 'close_btn' => 'Save and close', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/mt/messages.php
lang/mt/messages.php
<?php return [ 'title' => 'Slapukų sutikimas', 'description' => 'Mes naudojame slapukus, kad optimizuotume savo svetainę ir paslaugą. Galite pasirinkti, kurioms kategorijoms sutinkate.', 'please_visit_1' => 'Daugiau informacijos apie slapukus rasite mūsų', 'cookie_policy_page' => 'slapukų politikos puslapyje', 'accept_selection_btn' => 'Priimti pasirinktus', 'customise_btn' => 'Prisitaikyti', 'accept_all_btn' => 'Priimti visus', 'reject_optional_btn' => 'Atmesti pasirinktinius', 'accept_additional_cookies_btn' => 'Priimti papildomus slapukus', 'reject_additional_cookies_btn' => 'Atmesti papildomus slapukus', 'cookie_policy_title' => 'Slapukų politika', 'cookie_policy_text_1' => 'Tai yra slapukų politikos puslapis. Čia galite perskaityti apie programoje naudojamus slapukus ir pasirinkti, kuriuos slapukus leisti.', 'what_are_cookies_title' => 'Kas yra slapukai?', 'what_are_cookies_text_1' => 'Slapukas yra mažas teksto failas, kurį svetainė ar programa siunčia vartotojo įrenginiui. Šis teksto failas renka informaciją apie vartotojo veiksmus jūsų svetainėje.', 'what_are_cookies_text_2' => 'Slapukai saugo naudingą informaciją, kad pagerintų vartotojų patirtį jūsų svetainėje ir galbūt pagerintų jūsų gebėjimą vėliau su jais susisiekti.', 'what_are_cookies_text_3' => 'Slapukų surinkta informacija gali apimti vartotojo pasirinktą kalbą, įrenginio nustatymus, naršymo veiklą ir kitą naudingą informaciją.', 'what_are_cookies_text_4' => 'Tokios svetainės kaip „Google“ naudoja slapukus, kad reklamos būtų labiau susijusios su jų vartotojais. Jie taip pat seka analizę, pvz., lankytojų skaičių puslapyje, lankytojų vietas, paieškos nuostatas ir pan.', 'what_are_cookies_text_5' => 'Slapukai nėra kenksmingi jūsų įrenginiui. Jie nėra virusai ar kenkėjiška programinė įranga. Tai tik teksto failai, kuriuos galima bet kada ištrinti.', 'use_of_cookies_title' => 'Slapukų naudojimas', 'use_of_cookies_text_1' => 'Slapukai paprastai naudojami atlikti vieną ar visas šias funkcijas:', 'use_of_cookies_text_2' => '<b>Autentifikavimas:</b> Slapukai padeda svetainėms nustatyti, ar vartotojas yra prisijungęs, ir tada pateikti tinkamą patirtį ir funkcijas tam unikaliam vartotojui.', 'use_of_cookies_text_3' => '<b>Saugumas:</b> Slapukai padeda įgyvendinti saugumo priemones svetainėje. Jie taip pat padeda aptikti neįprastą ir įtartiną veiklą.', 'use_of_cookies_text_4' => '<b>Reklama:</b> Slapukai suteikia geresnę reklamos patirtį tiek vartotojams, tiek reklamuotojams. Slapukai padeda reklamuotojams susisiekti su vartotojais, kurie labiausiai domisi jų produktais, remiantis vartotojo naršymo istorija.', 'use_of_cookies_text_5' => '<b>Veikimas:</b> Slapukai padeda jūsų svetainei sužinoti, kaip paslaugos veikia skirtingiems žmonėms ir kaip nukreipti srautą tarp serverių.', 'use_of_cookies_text_6' => '<b>Analizė ir tyrimai:</b> Svetainės ir programos naudoja slapukus, kad sužinotų, kurios jų paslaugos yra dažniausiai naudojamos. Tai padeda nustatyti, ką reikia tobulinti, ką pašalinti ir ką palikti nepakitusį.', 'use_of_cookies_text_7' => '<b>Nuostatos:</b> Slapukai padeda svetainėms prisiminti vartotojo nuostatas, pvz., kalbą, vietą ir kitus nustatymus.', 'use_of_cookies_text_8' => 'Kai kurie slapukai gali rinkti duomenis iš kelių svetainių, kad sukurtų vartotojų elgesio profilius. Šie profiliai naudojami tiksliniam turiniui ir reklamai siųsti vartotojams.', 'cookies_used_title' => 'Šioje programoje naudojami slapukai', 'cookies_used_text_1' => 'Šioje programoje naudojami šie slapukai. Pasirinkite, kuriuos slapukus norite leisti.', 'hours' => '{1} :count valanda|[2,Inf] :count valandos', 'days' => '{1} :count diena|[2,Inf] :count dienos', 'years' => '{1} :count metai|[2,Inf] :count metai', 'minutes' => '{1} :count minutė|[2,Inf] :count minutės', 'months' => '{1} :count mėnuo|[2,Inf] :count mėnesiai', 'cookie_cookies_consent_description' => 'Šį slapuką nustato GDPR Cookie Consent įskiepis ir jis naudojamas saugoti, ar vartotojas sutiko su slapukų naudojimu, ar ne. Jis nesaugo jokių asmens duomenų.', 'cookie_xsrf_token_description' => 'Šį slapuką nustato Laravel, kad būtų išvengta Cross-Site Request Forgery (CSRF) atakų.', 'cookie_laravel_session_description' => 'Šį slapuką nustato Laravel, kad būtų identifikuota vartotojo sesijos instancija.', 'description_label' => 'Aprašymas', 'duration_label' => 'Trukmė', 'policy_label' => 'Politikos nuoroda', 'strictly_necessary' => 'Griežtai būtina', 'performance' => 'Veikimas', 'targeting' => 'Taikymas', 'marketing' => 'Rinkodara', 'read_more' => 'Skaityti daugiau', 'read_less' => 'Skaityti mažiau', 'selection_saved_message' => 'Slapukų sutikimo pasirinkimas išsaugotas', 'cookies_settings' => 'Slapukų nustatymai', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/pl/messages.php
lang/pl/messages.php
<?php return [ 'title' => 'Zgoda na pliki cookie', 'description' => 'Używamy plików cookie, aby zoptymalizować naszą stronę internetową i nasze usługi. Możesz wybrać, na które kategorie wyrażasz zgodę.', 'please_visit_1' => 'Aby uzyskać bardziej szczegółowe informacje na temat plików cookie, odwiedź naszą', 'cookie_policy_page' => 'stronę polityki plików cookie', 'accept_selection_btn' => 'Akceptuj wybrane', 'customise_btn' => 'Dostosuj', 'accept_all_btn' => 'Akceptuj wszystkie', 'reject_optional_btn' => 'Odrzuć opcjonalne', 'accept_additional_cookies_btn' => 'Akceptuj dodatkowe pliki cookie', 'reject_additional_cookies_btn' => 'Odrzuć dodatkowe pliki cookie', 'cookie_policy_title' => 'Polityka plików cookie', 'cookie_policy_text_1' => 'To jest strona polityki plików cookie. Tutaj możesz przeczytać o plikach cookie używanych w aplikacji i wybrać, które pliki cookie zezwolić.', 'what_are_cookies_title' => 'Czym są pliki cookie?', 'what_are_cookies_text_1' => 'Plik cookie to mały plik tekstowy, który strona internetowa lub aplikacja wysyła do urządzenia użytkownika. Ten plik tekstowy zbiera informacje o działaniach użytkownika na Twojej stronie.', 'what_are_cookies_text_2' => 'Pliki cookie przechowują przydatne informacje, aby poprawić doświadczenia użytkowników na Twojej stronie i ewentualnie poprawić Twoją zdolność do ponownego połączenia się z nimi później.', 'what_are_cookies_text_3' => 'Informacje zbierane przez pliki cookie mogą obejmować preferowany język użytkownika, ustawienia urządzenia, działania przeglądania i inne przydatne informacje.', 'what_are_cookies_text_4' => 'Strony internetowe, takie jak Google, używają plików cookie, aby reklamy były bardziej odpowiednie dla ich użytkowników. Śledzą również analizy, takie jak liczba odwiedzających stronę, lokalizacje odwiedzających, preferencje wyszukiwania itp.', 'what_are_cookies_text_5' => 'Pliki cookie nie są szkodliwe dla Twojego urządzenia. Nie są to wirusy ani złośliwe oprogramowanie. To tylko pliki tekstowe, które można usunąć w dowolnym momencie.', 'use_of_cookies_title' => 'Użycie plików cookie', 'use_of_cookies_text_1' => 'Pliki cookie są zazwyczaj używane do wykonywania jednej lub wszystkich z następujących funkcji:', 'use_of_cookies_text_2' => '<b>Uwierzytelnianie:</b> Pliki cookie pomagają stronom internetowym określić, czy użytkownik jest zalogowany, a następnie dostarczyć odpowiednie doświadczenia i funkcje dla tego unikalnego użytkownika.', 'use_of_cookies_text_3' => '<b>Bezpieczeństwo:</b> Pliki cookie pomagają narzucić środki bezpieczeństwa na stronie internetowej. Pomagają również wykrywać nietypowe i podejrzane działania.', 'use_of_cookies_text_4' => '<b>Reklama:</b> Pliki cookie zapewniają lepsze doświadczenia reklamowe zarówno dla użytkowników, jak i reklamodawców. Pliki cookie pomagają reklamodawcom łączyć się z użytkownikami, którzy są najbardziej zainteresowani ich produktami na podstawie historii przeglądania użytkownika.', 'use_of_cookies_text_5' => '<b>Wydajność:</b> Pliki cookie pomagają Twojej stronie internetowej dowiedzieć się, jak usługi działają dla różnych osób i jak kierować ruch między serwerami.', 'use_of_cookies_text_6' => '<b>Analityka i badania:</b> Strony internetowe i aplikacje używają plików cookie, aby dowiedzieć się, które z ich usług są najczęściej używane. Pomaga to określić, co należy poprawić, co usunąć i co pozostawić bez zmian.', 'use_of_cookies_text_7' => '<b>Preferencje:</b> Pliki cookie pomagają stronom internetowym zapamiętać preferencje użytkowników, takie jak język, lokalizacja i inne ustawienia.', 'use_of_cookies_text_8' => 'Niektóre pliki cookie mogą zbierać dane z kilku stron internetowych, aby tworzyć profile zachowań użytkowników. Te profile są następnie używane do wysyłania ukierunkowanych treści i reklam do użytkowników.', 'cookies_used_title' => 'Pliki cookie używane w tej aplikacji', 'cookies_used_text_1' => 'W tej aplikacji używane są następujące pliki cookie. Wybierz, które pliki cookie chcesz zezwolić.', 'hours' => '{1} :count godzina|[2,Inf] :count godziny', 'days' => '{1} :count dzień|[2,Inf] :count dni', 'years' => '{1} :count rok|[2,Inf] :count lat', 'minutes' => '{1} :count minuta|[2,Inf] :count minut', 'months' => '{1} :count miesiąc|[2,Inf] :count miesięcy', 'cookie_cookies_consent_description' => 'Ten plik cookie jest ustawiany przez wtyczkę GDPR Cookie Consent i jest używany do przechowywania, czy użytkownik wyraził zgodę na używanie plików cookie, czy nie. Nie przechowuje żadnych danych osobowych.', 'cookie_xsrf_token_description' => 'Ten plik cookie jest ustawiany przez Laravel, aby zapobiec atakom Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Ten plik cookie jest ustawiany przez Laravel, aby zidentyfikować instancję sesji dla użytkownika.', 'description_label' => 'Opis', 'duration_label' => 'Czas trwania', 'policy_label' => 'Link do polityki', 'strictly_necessary' => 'Ściśle niezbędne', 'performance' => 'Wydajność', 'targeting' => 'Targetowanie', 'marketing' => 'Marketing', 'read_more' => 'Czytaj więcej', 'read_less' => 'Czytaj mniej', 'selection_saved_message' => 'Wybór zgody na pliki cookie zapisany', 'cookies_settings' => 'Ustawienia plików cookie', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/nl/messages.php
lang/nl/messages.php
<?php return [ 'title' => 'Cookies Toestemming', 'description' => 'We gebruiken cookies om onze website en onze service te optimaliseren. U kunt kiezen voor welke categorieën u toestemming geeft.', 'please_visit_1' => 'Voor meer gedetailleerde informatie over cookies, bezoek onze', 'cookie_policy_page' => 'cookiebeleid pagina', 'accept_selection_btn' => 'Geselecteerde Accepteren', 'customise_btn' => 'Aanpassen', 'accept_all_btn' => 'Alles Accepteren', 'reject_optional_btn' => 'Optionele Weigeren', 'accept_additional_cookies_btn' => 'Aanvullende cookies accepteren', 'reject_additional_cookies_btn' => 'Aanvullende cookies weigeren', 'cookie_policy_title' => 'Cookiebeleid', 'cookie_policy_text_1' => 'Dit is de cookiebeleid pagina. Hier kunt u lezen over de cookies die in de applicatie worden gebruikt en selecteren welke cookies u wilt toestaan.', 'what_are_cookies_title' => 'Wat zijn cookies?', 'what_are_cookies_text_1' => 'Een cookie is een klein tekstbestand dat een website of app naar het apparaat van een gebruiker stuurt. Dit tekstbestand verzamelt informatie over gebruikersacties op uw site.', 'what_are_cookies_text_2' => 'Cookies slaan nuttige informatie op om de gebruikerservaring op uw site te verbeteren en mogelijk uw vermogen om later opnieuw contact met hen op te nemen te verbeteren.', 'what_are_cookies_text_3' => 'Informatie verzameld door cookies kan de voorkeurstaal van de gebruiker, apparaatinstellingen, browse-activiteiten en andere nuttige informatie omvatten.', 'what_are_cookies_text_4' => 'Websites zoals Google gebruiken cookies om advertenties relevanter te maken voor hun gebruikers. Ze volgen ook analyses zoals het tellen van het aantal bezoekers op een pagina, locaties van bezoekers, zoekvoorkeuren enzovoort.', 'what_are_cookies_text_5' => 'Cookies zijn niet schadelijk voor uw apparaat. Ze zijn geen virussen of malware. Het zijn gewoon tekstbestanden die op elk moment kunnen worden verwijderd.', 'use_of_cookies_title' => 'Gebruik van cookies', 'use_of_cookies_text_1' => 'Cookies worden over het algemeen gebruikt om een of alle van de volgende functies uit te voeren:', 'use_of_cookies_text_2' => '<b>Authenticatie:</b> Cookies helpen websites te bepalen of een gebruiker is ingelogd en leveren vervolgens de juiste ervaring en functies aan die unieke gebruiker.', 'use_of_cookies_text_3' => '<b>Beveiliging:</b> Cookies helpen bij het afdwingen van beveiligingsmaatregelen op een website. Ze helpen ook bij het detecteren van ongebruikelijke en verdachte activiteiten.', 'use_of_cookies_text_4' => '<b>Adverteren:</b> Cookies leveren een betere advertentie-ervaring voor zowel gebruikers als adverteerders. Cookies helpen adverteerders om in contact te komen met gebruikers die het meest geïnteresseerd zijn in hun producten op basis van de browsegeschiedenis van de gebruiker.', 'use_of_cookies_text_5' => '<b>Prestaties:</b> Cookies helpen uw website te leren hoe diensten werken voor verschillende mensen en hoe verkeer tussen servers moet worden gerouteerd.', 'use_of_cookies_text_6' => '<b>Analyse en Onderzoek:</b> Websites en apps gebruiken cookies om te leren welke van hun diensten het meest worden gebruikt. Dit helpt te bepalen wat moet worden verbeterd, verwijderd en hetzelfde moet blijven.', 'use_of_cookies_text_7' => '<b>Voorkeuren:</b> Cookies helpen websites om gebruikersvoorkeuren zoals taal, locatie en andere instellingen te onthouden.', 'use_of_cookies_text_8' => 'Sommige cookies kunnen gegevens verzamelen over meerdere websites om gebruikersgedragsprofielen te maken. Deze profielen worden vervolgens gebruikt om gerichte inhoud en advertenties naar gebruikers te sturen.', 'cookies_used_title' => 'Cookies gebruikt in deze applicatie', 'cookies_used_text_1' => 'De volgende cookies worden in deze applicatie gebruikt. Selecteer welke cookies u wilt toestaan.', 'hours' => '{1} :count uur|[2,Inf] :count uren', 'days' => '{1} :count dag|[2,Inf] :count dagen', 'years' => '{1} :count jaar|[2,Inf] :count jaren', 'minutes' => '{1} :count minuut|[2,Inf] :count minuten', 'months' => '{1} :count maand|[2,Inf] :count maanden', 'cookie_cookies_consent_description' => 'Deze cookie wordt ingesteld door de GDPR Cookie Consent plugin en wordt gebruikt om op te slaan of de gebruiker al dan niet toestemming heeft gegeven voor het gebruik van cookies. Het slaat geen persoonlijke gegevens op.', 'cookie_xsrf_token_description' => 'Deze cookie wordt ingesteld door Laravel om Cross-Site Request Forgery (CSRF) aanvallen te voorkomen.', 'cookie_laravel_session_description' => 'Deze cookie wordt ingesteld door Laravel om een sessie-instantie voor de gebruiker te identificeren.', 'description_label' => 'Beschrijving', 'duration_label' => 'Duur', 'policy_label' => 'Beleid link', 'strictly_necessary' => 'Strikt Noodzakelijk', 'performance' => 'Prestaties', 'targeting' => 'Targeting', 'marketing' => 'Marketing', 'read_more' => 'Lees meer', 'read_less' => 'Lees minder', 'selection_saved_message' => 'Cookies toestemmingsselectie opgeslagen', 'cookies_settings' => 'Cookies Instellingen', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/fr/messages.php
lang/fr/messages.php
<?php return [ 'title' => 'Consentement aux cookies', 'description' => 'Nous utilisons des cookies pour optimiser notre site web et notre service. Vous pouvez choisir les catégories auxquelles vous consentez.', 'please_visit_1' => 'Pour plus d\'informations sur les cookies, veuillez visiter notre', 'cookie_policy_page' => 'page de politique de cookies', 'accept_selection_btn' => 'Accepter la sélection', 'customise_btn' => 'Personnaliser', 'accept_all_btn' => 'Tout accepter', 'reject_optional_btn' => 'Rejeter les options', 'accept_additional_cookies_btn' => 'Accepter les cookies supplémentaires', 'reject_additional_cookies_btn' => 'Rejeter les cookies supplémentaires', 'cookie_policy_title' => 'Politique de cookies', 'cookie_policy_text_1' => 'Ceci est la page de politique de cookies. Ici, vous pouvez lire sur les cookies utilisés dans l\'application et sélectionner ceux que vous souhaitez autoriser.', 'what_are_cookies_title' => 'Que sont les cookies?', 'what_are_cookies_text_1' => 'Un cookie est un petit fichier texte qu\'un site web ou une application envoie à l\'appareil d\'un utilisateur. Ce fichier texte collecte des informations sur les actions de l\'utilisateur sur votre site.', 'what_are_cookies_text_2' => 'Les cookies stockent des informations utiles pour améliorer l\'expérience des utilisateurs sur votre site et éventuellement améliorer votre capacité à les reconnecter plus tard.', 'what_are_cookies_text_3' => 'Les informations collectées par les cookies peuvent inclure la langue préférée de l\'utilisateur, les paramètres de l\'appareil, les activités de navigation et d\'autres informations utiles.', 'what_are_cookies_text_4' => 'Les sites web comme Google utilisent des cookies pour rendre les publicités plus pertinentes pour leurs utilisateurs. Ils suivent également des analyses telles que le nombre de visiteurs sur une page, les emplacements des visiteurs, les préférences de recherche, etc.', 'what_are_cookies_text_5' => 'Les cookies ne sont pas nuisibles à votre appareil. Ils ne sont pas des virus ou des logiciels malveillants. Ce sont simplement des fichiers texte qui peuvent être supprimés à tout moment.', 'use_of_cookies_title' => 'Utilisation des cookies', 'use_of_cookies_text_1' => 'Les cookies sont généralement utilisés pour effectuer une ou toutes les fonctions suivantes:', 'use_of_cookies_text_2' => '<b>Authentification:</b> Les cookies aident les sites web à déterminer si un utilisateur est connecté, puis à fournir l\'expérience et les fonctionnalités appropriées à cet utilisateur unique.', 'use_of_cookies_text_3' => '<b>Sécurité:</b> Les cookies aident à imposer des mesures de sécurité sur un site web. Ils aident également à détecter des activités inhabituelles et suspectes.', 'use_of_cookies_text_4' => '<b>Publicité:</b> Les cookies offrent une meilleure expérience publicitaire pour les utilisateurs et les annonceurs. Les cookies aident les annonceurs à se connecter avec les utilisateurs les plus intéressés par leurs produits en fonction de l\'historique de navigation de l\'utilisateur.', 'use_of_cookies_text_5' => '<b>Performance:</b> Les cookies aident votre site web à apprendre comment les services fonctionnent pour différentes personnes et comment acheminer le trafic entre les serveurs.', 'use_of_cookies_text_6' => '<b>Analyses et recherche:</b> Les sites web et les applications utilisent des cookies pour savoir quels sont leurs services les plus utilisés. Cela aide à déterminer ce qu\'il faut améliorer, supprimer et laisser tel quel.', 'use_of_cookies_text_7' => '<b>Préférences:</b> Les cookies aident les sites web à se souvenir des préférences des utilisateurs telles que la langue, l\'emplacement et d\'autres paramètres.', 'use_of_cookies_text_8' => 'Certains cookies peuvent collecter des données sur plusieurs sites web afin de créer des profils de comportement des utilisateurs. Ces profils sont ensuite utilisés pour envoyer du contenu et des publicités ciblés aux utilisateurs.', 'cookies_used_title' => 'Cookies utilisés dans cette application', 'cookies_used_text_1' => 'Les cookies suivants sont utilisés dans cette application. Veuillez sélectionner les cookies que vous souhaitez autoriser.', 'hours' => '{1} :count heure|[2,Inf] :count heures', 'days' => '{1} :count jour|[2,Inf] :count jours', 'years' => '{1} :count an|[2,Inf] :count ans', 'minutes' => '{1} :count minute|[2,Inf] :count minutes', 'months' => '{1} :count mois|[2,Inf] :count mois', 'cookie_cookies_consent_description' => 'Ce cookie est défini par le plugin GDPR Cookie Consent et est utilisé pour stocker si l\'utilisateur a consenti ou non à l\'utilisation de cookies. Il ne stocke aucune donnée personnelle.', 'cookie_xsrf_token_description' => 'Ce cookie est défini par Laravel pour empêcher les attaques Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Ce cookie est défini par Laravel pour identifier une instance de session pour l\'utilisateur.', 'description_label' => 'Description', 'duration_label' => 'Durée', 'policy_label' => 'Lien vers la politique', 'strictly_necessary' => 'Strictement nécessaire', 'performance' => 'Performance', 'targeting' => 'Ciblage', 'marketing' => 'Marketing', 'read_more' => 'Lire la suite', 'read_less' => 'Lire moins', 'selection_saved_message' => 'Sélection de consentement aux cookies enregistrée', 'cookies_settings' => 'Paramètres des cookies', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/it/messages.php
lang/it/messages.php
<?php return [ 'title' => 'Consenso sui Cookie', 'description' => 'Utilizziamo i cookie per ottimizzare il nostro sito web e il nostro servizio. Puoi scegliere a quali categorie dare il tuo consenso.', 'please_visit_1' => 'Per informazioni più dettagliate sui cookie, visita la nostra', 'cookie_policy_page' => 'pagina della politica sui cookie', 'accept_selection_btn' => 'Accetta Selezione', 'customise_btn' => 'Personalizza', 'accept_all_btn' => 'Accetta Tutto', 'reject_optional_btn' => 'Rifiuta Opzionali', 'accept_additional_cookies_btn' => 'Accetta cookie aggiuntivi', 'reject_additional_cookies_btn' => 'Rifiuta cookie aggiuntivi', 'cookie_policy_title' => 'Politica sui Cookie', 'cookie_policy_text_1' => 'Questa è la pagina della politica sui cookie. Qui puoi leggere sui cookie utilizzati nell\'applicazione e scegliere quali cookie permettere.', 'what_are_cookies_title' => 'Cosa sono i cookie?', 'what_are_cookies_text_1' => 'Un cookie è un piccolo file di testo che un sito web o un\'app invia al dispositivo di un utente. Questo file di testo raccoglie informazioni sulle azioni dell\'utente sul tuo sito web.', 'what_are_cookies_text_2' => 'I cookie memorizzano informazioni utili per migliorare l\'esperienza dell\'utente sul tuo sito web e possibilmente migliorare la tua capacità di riconnetterti con loro in seguito.', 'what_are_cookies_text_3' => 'Le informazioni raccolte dai cookie possono includere la lingua preferita dell\'utente, le impostazioni del dispositivo, le attività di navigazione e altre informazioni utili.', 'what_are_cookies_text_4' => 'Siti web come Google utilizzano i cookie per rendere gli annunci più pertinenti per i loro utenti. Tracciano anche analisi come il numero di visitatori su una pagina, le posizioni dei visitatori, le preferenze di ricerca, ecc.', 'what_are_cookies_text_5' => 'I cookie non sono dannosi per il tuo dispositivo. Non sono virus o malware. Sono solo file di testo che possono essere eliminati in qualsiasi momento.', 'use_of_cookies_title' => 'Uso dei cookie', 'use_of_cookies_text_1' => 'I cookie sono generalmente utilizzati per eseguire una o tutte le seguenti funzioni:', 'use_of_cookies_text_2' => '<b>Autenticazione:</b> I cookie aiutano i siti web a determinare se un utente è connesso e quindi a fornire l\'esperienza e le funzionalità corrette a quell\'utente unico.', 'use_of_cookies_text_3' => '<b>Sicurezza:</b> I cookie aiutano a far rispettare le misure di sicurezza su un sito web. Aiutano anche a rilevare attività insolite e sospette.', 'use_of_cookies_text_4' => '<b>Pubblicità:</b> I cookie forniscono una migliore esperienza pubblicitaria sia per gli utenti che per gli inserzionisti. I cookie aiutano a collegare gli inserzionisti con gli utenti che sono più interessati ai loro prodotti in base alla cronologia di navigazione dell\'utente.', 'use_of_cookies_text_5' => '<b>Prestazioni:</b> I cookie aiutano il tuo sito web a imparare come funzionano i servizi per persone diverse e come indirizzare il traffico tra i server.', 'use_of_cookies_text_6' => '<b>Analisi e Ricerca:</b> I siti web e le app utilizzano i cookie per sapere quali dei loro servizi sono più utilizzati. Questo aiuta a determinare cosa deve essere migliorato, rimosso e mantenuto uguale.', 'use_of_cookies_text_7' => '<b>Preferenze:</b> I cookie aiutano i siti web a ricordare le preferenze degli utenti, come la lingua, la posizione e altre impostazioni.', 'use_of_cookies_text_8' => 'Alcuni cookie possono raccogliere dati da più siti web per creare profili di comportamento degli utenti. Questi profili vengono poi utilizzati per inviare contenuti e pubblicità mirati agli utenti.', 'cookies_used_title' => 'Cookie utilizzati in questa applicazione', 'cookies_used_text_1' => 'I seguenti cookie sono utilizzati in questa applicazione. Si prega di scegliere quali cookie permettere.', 'hours' => '{1} :count ora|[2,Inf] :count ore', 'days' => '{1} :count giorno|[2,Inf] :count giorni', 'years' => '{1} :count anno|[2,Inf] :count anni', 'minutes' => '{1} :count minuto|[2,Inf] :count minuti', 'months' => '{1} :count mese|[2,Inf] :count mesi', 'cookie_cookies_consent_description' => 'Questo cookie è impostato dal plugin GDPR Cookie Consent e viene utilizzato per memorizzare se l\'utente ha acconsentito o meno all\'utilizzo dei cookie. Non memorizza dati personali.', 'cookie_xsrf_token_description' => 'Questo cookie è impostato da Laravel per prevenire attacchi di falsificazione di richiesta tra siti (CSRF).', 'cookie_laravel_session_description' => 'Questo cookie è impostato da Laravel per identificare un\'istanza di sessione per l\'utente.', 'description_label' => 'Descrizione', 'duration_label' => 'Durata', 'policy_label' => 'Link alla politica', 'strictly_necessary' => 'Strettamente Necessario', 'performance' => 'Prestazioni', 'targeting' => 'Targeting', 'marketing' => 'Marketing', 'read_more' => 'Leggi di più', 'read_less' => 'Leggi meno', 'selection_saved_message' => 'Selezione del consenso sui cookie salvata', 'cookies_settings' => 'Impostazioni dei cookie', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/lt/messages.php
lang/lt/messages.php
<?php return [ 'title' => 'Slapukų sutikimas', 'description' => 'Mes naudojame slapukus, kad optimizuotume savo svetainę ir paslaugą. Galite pasirinkti, kurioms kategorijoms sutinkate.', 'please_visit_1' => 'Daugiau informacijos apie slapukus rasite mūsų', 'cookie_policy_page' => 'slapukų politikos puslapyje', 'accept_selection_btn' => 'Priimti pasirinktus', 'customise_btn' => 'Prisitaikyti', 'accept_all_btn' => 'Priimti visus', 'reject_optional_btn' => 'Atmesti pasirinktinius', 'accept_additional_cookies_btn' => 'Priimti papildomus slapukus', 'reject_additional_cookies_btn' => 'Atmesti papildomus slapukus', 'cookie_policy_title' => 'Slapukų politika', 'cookie_policy_text_1' => 'Tai yra slapukų politikos puslapis. Čia galite perskaityti apie programoje naudojamus slapukus ir pasirinkti, kuriuos slapukus leisti.', 'what_are_cookies_title' => 'Kas yra slapukai?', 'what_are_cookies_text_1' => 'Slapukas yra mažas teksto failas, kurį svetainė ar programa siunčia vartotojo įrenginiui. Šis teksto failas renka informaciją apie vartotojo veiksmus jūsų svetainėje.', 'what_are_cookies_text_2' => 'Slapukai saugo naudingą informaciją, kad pagerintų vartotojų patirtį jūsų svetainėje ir galbūt pagerintų jūsų gebėjimą vėliau su jais susisiekti.', 'what_are_cookies_text_3' => 'Slapukų surinkta informacija gali apimti vartotojo pasirinktą kalbą, įrenginio nustatymus, naršymo veiklą ir kitą naudingą informaciją.', 'what_are_cookies_text_4' => 'Tokios svetainės kaip „Google“ naudoja slapukus, kad reklamos būtų labiau susijusios su jų vartotojais. Jie taip pat seka analizę, pvz., lankytojų skaičių puslapyje, lankytojų vietas, paieškos nuostatas ir pan.', 'what_are_cookies_text_5' => 'Slapukai nėra kenksmingi jūsų įrenginiui. Jie nėra virusai ar kenkėjiška programinė įranga. Tai tik teksto failai, kuriuos galima bet kada ištrinti.', 'use_of_cookies_title' => 'Slapukų naudojimas', 'use_of_cookies_text_1' => 'Slapukai paprastai naudojami atlikti vieną ar visas šias funkcijas:', 'use_of_cookies_text_2' => '<b>Autentifikavimas:</b> Slapukai padeda svetainėms nustatyti, ar vartotojas yra prisijungęs, ir tada pateikti tinkamą patirtį ir funkcijas tam unikaliam vartotojui.', 'use_of_cookies_text_3' => '<b>Saugumas:</b> Slapukai padeda įgyvendinti saugumo priemones svetainėje. Jie taip pat padeda aptikti neįprastą ir įtartiną veiklą.', 'use_of_cookies_text_4' => '<b>Reklama:</b> Slapukai suteikia geresnę reklamos patirtį tiek vartotojams, tiek reklamuotojams. Slapukai padeda reklamuotojams susisiekti su vartotojais, kurie labiausiai domisi jų produktais, remiantis vartotojo naršymo istorija.', 'use_of_cookies_text_5' => '<b>Veikimas:</b> Slapukai padeda jūsų svetainei sužinoti, kaip paslaugos veikia skirtingiems žmonėms ir kaip nukreipti srautą tarp serverių.', 'use_of_cookies_text_6' => '<b>Analizė ir tyrimai:</b> Svetainės ir programos naudoja slapukus, kad sužinotų, kurios jų paslaugos yra dažniausiai naudojamos. Tai padeda nustatyti, ką reikia tobulinti, ką pašalinti ir ką palikti nepakitusį.', 'use_of_cookies_text_7' => '<b>Nuostatos:</b> Slapukai padeda svetainėms prisiminti vartotojo nuostatas, pvz., kalbą, vietą ir kitus nustatymus.', 'use_of_cookies_text_8' => 'Kai kurie slapukai gali rinkti duomenis iš kelių svetainių, kad sukurtų vartotojų elgesio profilius. Šie profiliai naudojami tiksliniam turiniui ir reklamai siųsti vartotojams.', 'cookies_used_title' => 'Šioje programoje naudojami slapukai', 'cookies_used_text_1' => 'Šioje programoje naudojami šie slapukai. Pasirinkite, kuriuos slapukus norite leisti.', 'hours' => '{1} :count valanda|[2,Inf] :count valandos', 'days' => '{1} :count diena|[2,Inf] :count dienos', 'years' => '{1} :count metai|[2,Inf] :count metai', 'minutes' => '{1} :count minutė|[2,Inf] :count minutės', 'months' => '{1} :count mėnuo|[2,Inf] :count mėnesiai', 'cookie_cookies_consent_description' => 'Šį slapuką nustato GDPR Cookie Consent įskiepis ir jis naudojamas saugoti, ar vartotojas sutiko su slapukų naudojimu, ar ne. Jis nesaugo jokių asmens duomenų.', 'cookie_xsrf_token_description' => 'Šį slapuką nustato Laravel, kad būtų išvengta Cross-Site Request Forgery (CSRF) atakų.', 'cookie_laravel_session_description' => 'Šį slapuką nustato Laravel, kad būtų identifikuota vartotojo sesijos instancija.', 'description_label' => 'Aprašymas', 'duration_label' => 'Trukmė', 'policy_label' => 'Politikos nuoroda', 'strictly_necessary' => 'Griežtai būtina', 'performance' => 'Veikimas', 'targeting' => 'Taikymas', 'marketing' => 'Rinkodara', 'read_more' => 'Skaityti daugiau', 'read_less' => 'Skaityti mažiau', 'selection_saved_message' => 'Slapukų sutikimo pasirinkimas išsaugotas', 'cookies_settings' => 'Slapukų nustatymai', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/hu/messages.php
lang/hu/messages.php
<?php return [ 'title' => 'Cookie-k hozzájárulás', 'description' => 'A cookie-kat használjuk weboldalunk és szolgáltatásunk optimalizálására. Kiválaszthatja, hogy mely kategóriákhoz járul hozzá.', 'please_visit_1' => 'A cookie-król részletesebb információkért látogasson el a', 'cookie_policy_page' => 'cookie-kra vonatkozó irányelvek oldalunkra', 'accept_selection_btn' => 'Kiválasztottak elfogadása', 'customise_btn' => 'Testreszabás', 'accept_all_btn' => 'Összes elfogadása', 'reject_optional_btn' => 'Opcionális elutasítása', 'accept_additional_cookies_btn' => 'További cookie-k elfogadása', 'reject_additional_cookies_btn' => 'További cookie-k elutasítása', 'cookie_policy_title' => 'Cookie-kra vonatkozó irányelvek', 'cookie_policy_text_1' => 'Ez a cookie-kra vonatkozó irányelvek oldala. Itt olvashat a alkalmazásban használt cookie-król, és kiválaszthatja, mely cookie-kat engedélyezi.', 'what_are_cookies_title' => 'Mik azok a cookie-k?', 'what_are_cookies_text_1' => 'A cookie egy kis szöveges fájl, amelyet egy weboldal vagy alkalmazás küld a felhasználó eszközére. Ez a szöveges fájl információkat gyűjt a felhasználó tevékenységeiről az Ön webhelyén.', 'what_are_cookies_text_2' => 'A cookie-k hasznos információkat tárolnak a felhasználói élmény javítása érdekében az Ön webhelyén, és esetleg javítják az Ön képességét, hogy később újra kapcsolatba lépjen velük.', 'what_are_cookies_text_3' => 'A cookie-k által gyűjtött információk tartalmazhatják a felhasználó által preferált nyelvet, eszközbeállításokat, böngészési tevékenységeket és egyéb hasznos információkat.', 'what_are_cookies_text_4' => 'Az olyan webhelyek, mint a Google, cookie-kat használnak, hogy a hirdetések relevánsabbak legyenek a felhasználóik számára. Emellett nyomon követik az elemzéseket, például az oldal látogatóinak számát, a látogatók helyeit, keresési preferenciákat stb.', 'what_are_cookies_text_5' => 'A cookie-k nem károsak az Ön eszközére. Nem vírusok vagy rosszindulatú programok. Csak szöveges fájlok, amelyeket bármikor törölhet.', 'use_of_cookies_title' => 'A cookie-k használata', 'use_of_cookies_text_1' => 'A cookie-k általában az alábbi funkciók egyikét vagy mindegyikét végzik:', 'use_of_cookies_text_2' => '<b>Hitelesítés:</b> A cookie-k segítenek a webhelyeknek meghatározni, hogy a felhasználó be van-e jelentkezve, majd a megfelelő élményt és funkciókat biztosítják az egyedi felhasználónak.', 'use_of_cookies_text_3' => '<b>Biztonság:</b> A cookie-k segítenek a biztonsági intézkedések érvényesítésében egy webhelyen. Emellett segítenek azonosítani a szokatlan és gyanús tevékenységeket.', 'use_of_cookies_text_4' => '<b>Hirdetés:</b> A cookie-k jobb hirdetési élményt nyújtanak mind a felhasználók, mind a hirdetők számára. A cookie-k segítenek a hirdetőknek kapcsolatba lépni azokkal a felhasználókkal, akik a leginkább érdeklődnek termékeik iránt a felhasználó böngészési előzményei alapján.', 'use_of_cookies_text_5' => '<b>Teljesítmény:</b> A cookie-k segítenek a webhelyének megtanulni, hogyan működnek a szolgáltatások különböző emberek számára, és hogyan irányítsák a forgalmat a szerverek között.', 'use_of_cookies_text_6' => '<b>Elemzés és kutatás:</b> A webhelyek és alkalmazások cookie-kat használnak annak megismerésére, hogy mely szolgáltatásaikat használják a leggyakrabban. Ez segít meghatározni, mit kell javítani, eltávolítani és változatlanul hagyni.', 'use_of_cookies_text_7' => '<b>Preferenciák:</b> A cookie-k segítenek a webhelyeknek megjegyezni a felhasználói beállításokat, például a nyelvet, a helyet és egyéb beállításokat.', 'use_of_cookies_text_8' => 'Néhány cookie több webhelyen keresztül gyűjthet adatokat a felhasználói viselkedési profilok létrehozásához. Ezeket a profilokat ezután célzott tartalom és hirdetések küldésére használják a felhasználóknak.', 'cookies_used_title' => 'Az alkalmazásban használt cookie-k', 'cookies_used_text_1' => 'Az alábbi cookie-kat használják ebben az alkalmazásban. Kérjük, válassza ki, mely cookie-kat szeretné engedélyezni.', 'hours' => '{1} :count óra|[2,Inf] :count óra', 'days' => '{1} :count nap|[2,Inf] :count nap', 'years' => '{1} :count év|[2,Inf] :count év', 'minutes' => '{1} :count perc|[2,Inf] :count perc', 'months' => '{1} :count hónap|[2,Inf] :count hónap', 'cookie_cookies_consent_description' => 'Ezt a cookie-t a GDPR Cookie Consent plugin állítja be, és arra használják, hogy tárolják, hogy a felhasználó hozzájárult-e a cookie-k használatához vagy sem. Nem tárol személyes adatokat.', 'cookie_xsrf_token_description' => 'Ezt a cookie-t a Laravel állítja be, hogy megakadályozza a Cross-Site Request Forgery (CSRF) támadásokat.', 'cookie_laravel_session_description' => 'Ezt a cookie-t a Laravel állítja be, hogy azonosítsa a felhasználó munkamenet példányát.', 'description_label' => 'Leírás', 'duration_label' => 'Időtartam', 'policy_label' => 'Irányelv link', 'strictly_necessary' => 'Szigorúan szükséges', 'performance' => 'Teljesítmény', 'targeting' => 'Célzás', 'marketing' => 'Marketing', 'read_more' => 'További információ', 'read_less' => 'Kevesebb információ', 'selection_saved_message' => 'A cookie-k hozzájárulási választása mentve', 'cookies_settings' => 'Cookie beállítások', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/el/messages.php
lang/el/messages.php
<?php return [ 'title' => 'Εκτιμούμε την ιδιωτικότητά σας', 'description' => 'Χρησιμοποιούμε cookies για να βελτιώσουμε την εμπειρία περιήγησής σας, να προβάλλουμε εξατομικευμένες διαφημίσεις ή περιεχόμενο και να αναλύουμε την επισκεψιμότητά μας. Κάνοντας κλικ στο "Αποδοχή όλων", συναινείτε στη χρήση των cookies από εμάς. Μπορείτε να επιλέξετε ποιες κατηγορίες συναινείτε.', 'please_visit_1' => 'Για πιο λεπτομερείς πληροφορίες σχετικά με τα cookies, επισκεφθείτε τη', 'cookie_policy_page' => 'σελίδα πολιτικής cookies', 'accept_selection_btn' => 'Αποθήκευση προτιμήσεων', 'customise_btn' => 'Προσαρμογή', 'accept_all_btn' => 'Αποδοχή Όλων', 'reject_optional_btn' => 'Απόρριψη Όλων', 'accept_additional_cookies_btn' => 'Αποδοχή επιπρόσθετων cookies', 'reject_additional_cookies_btn' => 'Απόρριψη επιπρόσθετων cookies', 'cookie_policy_title' => 'Πολιτική Cookies', 'cookie_policy_text_1' => 'Αυτή είναι η σελίδα πολιτικής cookies. Εδώ μπορείτε να διαβάσετε για τα Cookies που χρησιμοποιούνται στην εφαρμογή και να επιλέξετε ποια cookies θα επιτρέψετε.', 'what_are_cookies_title' => 'Τι είναι τα cookies;', 'what_are_cookies_text_1' => 'Ένα cookie είναι ένα μικρό αρχείο κειμένου που ένας ιστότοπος ή μια εφαρμογή στέλνει στη συσκευή του χρήστη. Αυτό το αρχείο κειμένου συλλέγει πληροφορίες σχετικά με τις ενέργειες του χρήστη στον ιστότοπό σας.', 'what_are_cookies_text_2' => 'Τα cookies αποθηκεύουν χρήσιμες πληροφορίες για να βελτιώσουν την εμπειρία των χρηστών στον ιστότοπό σας και ενδεχομένως να βελτιώσουν την ικανότητά σας να επανασυνδεθείτε μαζί τους αργότερα.', 'what_are_cookies_text_3' => 'Οι πληροφορίες που συλλέγονται από τα cookies μπορούν να περιλαμβάνουν την προτιμώμενη γλώσσα του χρήστη, τις ρυθμίσεις της συσκευής, τις δραστηριότητες περιήγησης και άλλες χρήσιμες πληροφορίες.', 'what_are_cookies_text_4' => 'Ιστότοποι όπως το Google χρησιμοποιούν cookies για να κάνουν τις διαφημίσεις πιο σχετικές για τους χρήστες τους. Επίσης, παρακολουθούν αναλυτικά στοιχεία όπως ο αριθμός των επισκεπτών σε μια σελίδα, οι τοποθεσίες των επισκεπτών, οι προτιμήσεις αναζήτησης κ.λπ.', 'what_are_cookies_text_5' => 'Τα cookies δεν είναι επιβλαβή για τη συσκευή σας. Δεν είναι ιοί ή κακόβουλο λογισμικό. Είναι απλά αρχεία κειμένου που μπορούν να διαγραφούν ανά πάσα στιγμή.', 'use_of_cookies_title' => 'Χρήση των cookies', 'use_of_cookies_text_1' => 'Τα cookies γενικά χρησιμοποιούνται για να εκτελέσουν μία ή όλες τις παρακάτω λειτουργίες:', 'use_of_cookies_text_2' => '<b>Αυθεντικοποίηση:</b> Τα cookies βοηθούν τους ιστότοπους να καθορίσουν αν ένας χρήστης είναι συνδεδεμένος και στη συνέχεια να παρέχουν τη σωστή εμπειρία και λειτουργίες σε αυτόν τον μοναδικό χρήστη.', 'use_of_cookies_text_3' => '<b>Ασφάλεια:</b> Τα cookies βοηθούν στην επιβολή μέτρων ασφαλείας σε έναν ιστότοπο. Επίσης, βοηθούν στην ανίχνευση ασυνήθιστων και ύποπτων δραστηριοτήτων.', 'use_of_cookies_text_4' => '<b>Διαφήμιση:</b> Τα cookies παρέχουν μια καλύτερη διαφημιστική εμπειρία τόσο για τους χρήστες όσο και για τους διαφημιστές. Τα cookies βοηθούν στη σύνδεση των διαφημιστών με τους χρήστες που ενδιαφέρονται περισσότερο για τα προϊόντα τους βάσει του ιστορικού περιήγησης του χρήστη.', 'use_of_cookies_text_5' => '<b>Απόδοση:</b> Τα cookies βοηθούν τον ιστότοπό σας να μάθει πώς λειτουργούν οι υπηρεσίες για διαφορετικούς ανθρώπους και πώς να κατευθύνει την κίνηση μεταξύ των διακομιστών.', 'use_of_cookies_text_6' => '<b>Αναλυτικά στοιχεία και Έρευνα:</b> Οι ιστότοποι και οι εφαρμογές χρησιμοποιούν cookies για να μάθουν ποιες από τις υπηρεσίες τους χρησιμοποιούνται περισσότερο. Αυτό βοηθά στον καθορισμό του τι πρέπει να βελτιωθεί, τι να αφαιρεθεί και τι να παραμείνει το ίδιο.', 'use_of_cookies_text_7' => '<b>Προτιμήσεις:</b> Τα cookies βοηθούν τους ιστότοπους να θυμούνται τις προτιμήσεις των χρηστών, όπως η γλώσσα, η τοποθεσία και άλλες ρυθμίσεις.', 'use_of_cookies_text_8' => 'Ορισμένα cookies μπορούν να συλλέγουν δεδομένα από διάφορους ιστότοπους για να δημιουργήσουν προφίλ συμπεριφοράς των χρηστών. Αυτά τα προφίλ χρησιμοποιούνται στη συνέχεια για την αποστολή στοχευμένου περιεχομένου και διαφημίσεων στους χρήστες.', 'cookies_used_title' => 'Cookies που χρησιμοποιούνται σε αυτήν την εφαρμογή', 'cookies_used_text_1' => 'Τα παρακάτω cookies χρησιμοποιούνται σε αυτήν την εφαρμογή. Παρακαλούμε επιλέξτε ποια cookies θα επιτρέψετε.', 'hours' => '{1} :count ώρα|[2,Inf] :count ώρες', 'days' => '{1} :count ημέρα|[2,Inf] :count ημέρες', 'years' => '{1} :count έτος|[2,Inf] :count έτη', 'minutes' => '{1} :count λεπτό|[2,Inf] :count λεπτά', 'months' => '{1} :count μήνας|[2,Inf] :count μήνες', 'cookie_cookies_consent_description' => 'Αυτό το cookie το ορίζει το πρόσθετο GDPR Cookie Consent και χρησιμοποιείται για να αποθηκεύσει εάν ο χρήστης έχει συναινέσει στη χρήση cookies ή όχι. Δεν αποθηκεύει καμία προσωπική πληροφορία.', 'cookie_xsrf_token_description' => 'Αυτό το cookie το ορίζει το Laravel για να αποτρέψει τις επιθέσεις Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Αυτό το cookie το ορίζει το Laravel για να αναγνωρίσει μια συνεδρία για τον χρήστη.', 'description_label' => 'Περιγραφή', 'duration_label' => 'Διάρκεια', 'policy_label' => 'Σύνδεσμος πολιτικής', 'strictly_necessary' => 'Απαραίτητα', 'performance' => 'Απόδοσης', 'targeting' => 'Στόχευσης', 'marketing' => 'Μάρκετινγκ', 'read_more' => 'Διαβάστε περισσότερα', 'read_less' => 'Διαβάστε λιγότερα', 'selection_saved_message' => 'Η επιλογή συναίνεσης για τα cookies αποθηκεύτηκε', 'cookies_settings' => 'Ρυθμίσεις Cookies', 'close_btn' => 'Αποθήκευση και κλείσιμο', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/hr/messages.php
lang/hr/messages.php
<?php return [ 'title' => 'Pristanak za kolačiće', 'description' => 'Koristimo kolačiće kako bismo optimizirali našu web stranicu i uslugu. Možete odabrati koje kategorije prihvaćate.', 'please_visit_1' => 'Za detaljnije informacije o kolačićima, posjetite našu', 'cookie_policy_page' => 'stranicu s politikom kolačića', 'accept_selection_btn' => 'Prihvati odabrano', 'customise_btn' => 'Prilagodi', 'accept_all_btn' => 'Prihvati sve', 'reject_optional_btn' => 'Odbij opcionalno', 'accept_additional_cookies_btn' => 'Prihvati dodatne kolačiće', 'reject_additional_cookies_btn' => 'Odbij dodatne kolačiće', 'cookie_policy_title' => 'Politika kolačića', 'cookie_policy_text_1' => 'Ovo je stranica s politikom kolačića. Ovdje možete pročitati o kolačićima koji se koriste u aplikaciji i odabrati koje kolačiće želite dopustiti.', 'what_are_cookies_title' => 'Što su kolačići?', 'what_are_cookies_text_1' => 'Kolačić je mala tekstualna datoteka koju web stranica ili aplikacija šalje na uređaj korisnika. Ova tekstualna datoteka prikuplja informacije o radnjama korisnika na vašoj stranici.', 'what_are_cookies_text_2' => 'Kolačići pohranjuju korisne informacije kako bi poboljšali korisničko iskustvo na vašoj stranici i možda poboljšali vašu sposobnost ponovnog povezivanja s njima kasnije.', 'what_are_cookies_text_3' => 'Informacije prikupljene kolačićima mogu uključivati preferirani jezik korisnika, postavke uređaja, aktivnosti pregledavanja i druge korisne informacije.', 'what_are_cookies_text_4' => 'Web stranice poput Googlea koriste kolačiće kako bi oglasi bili relevantniji za njihove korisnike. Također prate analitiku poput broja posjetitelja na stranici, lokacija posjetitelja, preferencija pretraživanja i tako dalje.', 'what_are_cookies_text_5' => 'Kolačići nisu štetni za vaš uređaj. Oni nisu virusi ili zlonamjerni softver. Oni su samo tekstualne datoteke koje se mogu izbrisati u bilo kojem trenutku.', 'use_of_cookies_title' => 'Korištenje kolačića', 'use_of_cookies_text_1' => 'Kolačići se općenito koriste za obavljanje jedne ili svih sljedećih funkcija:', 'use_of_cookies_text_2' => '<b>Autentifikacija:</b> Kolačići pomažu web stranicama da odrede je li korisnik prijavljen i zatim pružaju pravo iskustvo i značajke za tog jedinstvenog korisnika.', 'use_of_cookies_text_3' => '<b>Sigurnost:</b> Kolačići pomažu u provođenju sigurnosnih mjera na web stranici. Također pomažu u otkrivanju neobičnih i sumnjivih aktivnosti.', 'use_of_cookies_text_4' => '<b>Oglašavanje:</b> Kolačići pružaju bolje oglašivačko iskustvo za korisnike i oglašivače. Kolačići pomažu oglašivačima da se povežu s korisnicima koji su najviše zainteresirani za njihove proizvode na temelju povijesti pregledavanja korisnika.', 'use_of_cookies_text_5' => '<b>Performanse:</b> Kolačići pomažu vašoj web stranici da nauči kako usluge rade za različite ljude i kako usmjeravati promet između poslužitelja.', 'use_of_cookies_text_6' => '<b>Analitika i istraživanje:</b> Web stranice i aplikacije koriste kolačiće kako bi saznale koje se njihove usluge najviše koriste. To pomaže odrediti što treba poboljšati, ukloniti i ostaviti isto.', 'use_of_cookies_text_7' => '<b>Preferencije:</b> Kolačići pomažu web stranicama da zapamte korisničke postavke poput jezika, lokacije i drugih postavki.', 'use_of_cookies_text_8' => 'Neki kolačići mogu prikupljati podatke s nekoliko web stranica kako bi stvorili profile ponašanja korisnika. Ovi profili se zatim koriste za slanje ciljanog sadržaja i oglasa korisnicima.', 'cookies_used_title' => 'Kolačići korišteni u ovoj aplikaciji', 'cookies_used_text_1' => 'Sljedeći kolačići se koriste u ovoj aplikaciji. Molimo odaberite koje kolačiće želite dopustiti.', 'hours' => '{1} :count sat|[2,Inf] :count sati', 'days' => '{1} :count dan|[2,Inf] :count dana', 'years' => '{1} :count godina|[2,Inf] :count godina', 'minutes' => '{1} :count minuta|[2,Inf] :count minuta', 'months' => '{1} :count mjesec|[2,Inf] :count mjeseci', 'cookie_cookies_consent_description' => 'Ovaj kolačić postavlja GDPR Cookie Consent plugin i koristi se za pohranu toga je li korisnik pristao na korištenje kolačića ili ne. Ne pohranjuje osobne podatke.', 'cookie_xsrf_token_description' => 'Ovaj kolačić postavlja Laravel kako bi spriječio Cross-Site Request Forgery (CSRF) napade.', 'cookie_laravel_session_description' => 'Ovaj kolačić postavlja Laravel kako bi identificirao sesiju korisnika.', 'description_label' => 'Opis', 'duration_label' => 'Trajanje', 'policy_label' => 'Link na politiku', 'strictly_necessary' => 'Strogo potrebno', 'performance' => 'Performanse', 'targeting' => 'Ciljanje', 'marketing' => 'Marketing', 'read_more' => 'Pročitajte više', 'read_less' => 'Pročitajte manje', 'selection_saved_message' => 'Izbor pristanka za kolačiće je spremljen', 'cookies_settings' => 'Postavke kolačića', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/ro/messages.php
lang/ro/messages.php
<?php return [ 'title' => 'Consimțământ pentru cookie-uri', 'description' => 'Folosim cookie-uri pentru a optimiza site-ul nostru și serviciul nostru. Puteți alege categoriile la care consimțiți.', 'please_visit_1' => 'Pentru informații mai detaliate despre cookie-uri, vă rugăm să vizitați', 'cookie_policy_page' => 'pagina noastră de politică privind cookie-urile', 'accept_selection_btn' => 'Acceptați selecția', 'customise_btn' => 'Personalizați', 'accept_all_btn' => 'Acceptați toate', 'reject_optional_btn' => 'Respingeți opționalele', 'accept_additional_cookies_btn' => 'Acceptați cookie-uri suplimentare', 'reject_additional_cookies_btn' => 'Respingeți cookie-uri suplimentare', 'cookie_policy_title' => 'Politica privind cookie-urile', 'cookie_policy_text_1' => 'Aceasta este pagina de politică privind cookie-urile. Aici puteți citi despre cookie-urile utilizate în aplicație și selectați cookie-urile pe care doriți să le permiteți.', 'what_are_cookies_title' => 'Ce sunt cookie-urile?', 'what_are_cookies_text_1' => 'Un cookie este un fișier text mic pe care un site web sau o aplicație îl trimite pe dispozitivul unui utilizator. Acest fișier text colectează informații despre acțiunile utilizatorului pe site-ul dvs.', 'what_are_cookies_text_2' => 'Cookie-urile stochează informații utile pentru a îmbunătăți experiențele utilizatorilor pe site-ul dvs. și, eventual, pentru a îmbunătăți capacitatea dvs. de a vă reconecta cu aceștia mai târziu.', 'what_are_cookies_text_3' => 'Informațiile colectate de cookie-uri pot include limba preferată a utilizatorului, setările dispozitivului, activitățile de navigare și alte informații utile.', 'what_are_cookies_text_4' => 'Site-uri web precum Google folosesc cookie-uri pentru a face reclamele mai relevante pentru utilizatorii lor. De asemenea, urmăresc analize precum numărul de vizitatori pe o pagină, locațiile vizitatorilor, preferințele de căutare și așa mai departe.', 'what_are_cookies_text_5' => 'Cookie-urile nu sunt dăunătoare pentru dispozitivul dvs. Nu sunt viruși sau programe malware. Sunt doar fișiere text care pot fi șterse în orice moment.', 'use_of_cookies_title' => 'Utilizarea cookie-urilor', 'use_of_cookies_text_1' => 'Cookie-urile sunt utilizate în general pentru a îndeplini una sau toate dintre următoarele funcții:', 'use_of_cookies_text_2' => '<b>Autentificare:</b> Cookie-urile ajută site-urile web să determine dacă un utilizator este autentificat și apoi să ofere experiența și funcțiile corecte pentru acel utilizator unic.', 'use_of_cookies_text_3' => '<b>Securitate:</b> Cookie-urile ajută la impunerea măsurilor de securitate pe un site web. De asemenea, ajută la detectarea activităților neobișnuite și suspecte.', 'use_of_cookies_text_4' => '<b>Publicitate:</b> Cookie-urile oferă o experiență publicitară mai bună atât pentru utilizatori, cât și pentru agenții de publicitate. Cookie-urile ajută agenții de publicitate să se conecteze cu utilizatorii care sunt cei mai interesați de produsele lor, pe baza istoricului de navigare al utilizatorului.', 'use_of_cookies_text_5' => '<b>Performanță:</b> Cookie-urile ajută site-ul dvs. să învețe cum funcționează serviciile pentru diferite persoane și cum să direcționeze traficul între servere.', 'use_of_cookies_text_6' => '<b>Analiză și cercetare:</b> Site-urile web și aplicațiile folosesc cookie-uri pentru a învăța care dintre serviciile lor sunt cele mai utilizate. Acest lucru ajută la determinarea a ceea ce trebuie îmbunătățit, eliminat și lăsat neschimbat.', 'use_of_cookies_text_7' => '<b>Preferințe:</b> Cookie-urile ajută site-urile web să-și amintească preferințele utilizatorilor, cum ar fi limba, locația și alte setări.', 'use_of_cookies_text_8' => 'Unele cookie-uri pot colecta date de pe mai multe site-uri web pentru a crea profiluri de comportament ale utilizatorilor. Aceste profiluri sunt apoi utilizate pentru a trimite conținut și reclame direcționate către utilizatori.', 'cookies_used_title' => 'Cookie-uri utilizate în această aplicație', 'cookies_used_text_1' => 'Următoarele cookie-uri sunt utilizate în această aplicație. Vă rugăm să selectați cookie-urile pe care doriți să le permiteți.', 'hours' => '{1} :count oră|[2,Inf] :count ore', 'days' => '{1} :count zi|[2,Inf] :count zile', 'years' => '{1} :count an|[2,Inf] :count ani', 'minutes' => '{1} :count minut|[2,Inf] :count minute', 'months' => '{1} :count lună|[2,Inf] :count luni', 'cookie_cookies_consent_description' => 'Acest cookie este setat de pluginul GDPR Cookie Consent și este utilizat pentru a stoca dacă utilizatorul a consimțit sau nu la utilizarea cookie-urilor. Nu stochează date personale.', 'cookie_xsrf_token_description' => 'Acest cookie este setat de Laravel pentru a preveni atacurile Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Acest cookie este setat de Laravel pentru a identifica o instanță de sesiune pentru utilizator.', 'description_label' => 'Descriere', 'duration_label' => 'Durată', 'policy_label' => 'Link către politică', 'strictly_necessary' => 'Strict necesar', 'performance' => 'Performanță', 'targeting' => 'Direcționare', 'marketing' => 'Marketing', 'read_more' => 'Citește mai mult', 'read_less' => 'Citește mai puțin', 'selection_saved_message' => 'Selecția consimțământului pentru cookie-uri a fost salvată', 'cookies_settings' => 'Setări cookie-uri', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/ga/messages.php
lang/ga/messages.php
<?php return [ 'title' => 'Toiliú Fianáin', 'description' => 'Bainimid úsáid as fianáin chun ár suíomh gréasáin agus ár seirbhís a bharrfheabhsú. Is féidir leat a roghnú cé na catagóirí a thoilíonn tú leo.', 'please_visit_1' => 'Chun tuilleadh faisnéise mionsonraithe faoi fhianáin, tabhair cuairt ar ár', 'cookie_policy_page' => 'leathanach beartas fianáin', 'accept_selection_btn' => 'Glac leis na Roghnaithe', 'customise_btn' => 'Saincheapadh', 'accept_all_btn' => 'Glac le Gach Rud', 'reject_optional_btn' => 'Diúltaigh Roghnach', 'accept_additional_cookies_btn' => 'Glac le fianáin bhreise', 'reject_additional_cookies_btn' => 'Diúltaigh fianáin bhreise', 'cookie_policy_title' => 'Beartas Fianáin', 'cookie_policy_text_1' => 'Seo an leathanach beartas fianáin. Anseo is féidir leat léamh faoi na Fianáin a úsáidtear san fheidhmchlár agus a roghnú cé na fianáin a cheadaíonn tú.', 'what_are_cookies_title' => 'Cad is fianáin ann?', 'what_are_cookies_text_1' => 'Is comhad beag téacs é fianán a sheolann suíomh gréasáin nó aip chuig gléas úsáideora. Bailíonn an comhad téacs seo faisnéis faoi ghníomhartha úsáideora ar do shuíomh.', 'what_are_cookies_text_2' => 'Stórálann fianáin faisnéis úsáideach chun eispéiris úsáideoirí le do shuíomh a fheabhsú, agus b\'fhéidir chun do chumas chun athnascadh leo níos déanaí a fheabhsú.', 'what_are_cookies_text_3' => 'Is féidir leis an bhfaisnéis a bhailíonn fianáin teanga roghnaithe an úsáideora, socruithe gléas, gníomhaíochtaí brabhsála agus faisnéis úsáideach eile a áireamh.', 'what_are_cookies_text_4' => 'Úsáideann suíomhanna gréasáin cosúil le Google fianáin chun fógraí a dhéanamh níos ábhartha dá n-úsáideoirí. Rianaíonn siad freisin anailísíocht cosúil le comhaireamh líon na gcuairteoirí ar leathanach, suíomhanna na gcuairteoirí, roghanna cuardaigh agus mar sin de.', 'what_are_cookies_text_5' => 'Níl fianáin díobhálach do do ghléas. Ní víris nó malware iad. Is comhaid téacs iad a fhéadfar a scriosadh ag am ar bith.', 'use_of_cookies_title' => 'Úsáid fianáin', 'use_of_cookies_text_1' => 'Úsáidtear fianáin go ginearálta chun ceann amháin nó gach ceann de na feidhmeanna seo a leanas a chomhlíonadh:', 'use_of_cookies_text_2' => '<b>Fíordheimhniú:</b> Cabhraíonn fianáin le suíomhanna gréasáin a chinneadh an bhfuil úsáideoir logáilte isteach, agus ansin an taithí agus na gnéithe cearta a sheachadadh don úsáideoir uathúil sin.', 'use_of_cookies_text_3' => '<b>Slándáil:</b> Cabhraíonn fianáin le bearta slándála a fhorchur ar shuíomh gréasáin. Cabhraíonn siad freisin le gníomhaíochtaí neamhghnácha agus amhrasacha a bhrath.', 'use_of_cookies_text_4' => '<b>Fógraíocht:</b> Soláthraíonn fianáin eispéireas fógraíochta níos fearr do úsáideoirí agus do fhógróirí araon. Cabhraíonn fianáin le fógróirí nasc a dhéanamh le húsáideoirí atá an-suim acu ina gcuid táirgí bunaithe ar stair bhrabhsála an úsáideora.', 'use_of_cookies_text_5' => '<b>Feidhmíocht:</b> Cabhraíonn fianáin le do shuíomh gréasáin foghlaim conas a oibríonn seirbhísí do dhaoine éagsúla agus conas trácht a atreorú idir freastalaithe.', 'use_of_cookies_text_6' => '<b>Anailísíocht agus Taighde:</b> Úsáideann suíomhanna gréasáin agus aipeanna fianáin chun foghlaim cé na seirbhísí is mó a úsáidtear. Cabhraíonn sé seo le cinneadh a dhéanamh ar cad is gá a fheabhsú, a bhaint agus a fhágáil mar an gcéanna.', 'use_of_cookies_text_7' => '<b>Roghanna:</b> Cabhraíonn fianáin le suíomhanna gréasáin cuimhneamh ar roghanna úsáideora cosúil le teanga, suíomh agus socruithe eile.', 'use_of_cookies_text_8' => 'Is féidir le roinnt fianáin sonraí a bhailiú ar fud roinnt suíomhanna gréasáin chun próifílí iompraíochta úsáideoirí a chruthú. Úsáidtear na próifílí seo ansin chun ábhar agus fógraí spriocdhírithe a sheoladh chuig úsáideoirí.', 'cookies_used_title' => 'Fianáin a úsáidtear san fheidhmchlár seo', 'cookies_used_text_1' => 'Úsáidtear na fianáin seo a leanas san fheidhmchlár seo. Roghnaigh cé na fianáin ar mhaith leat a cheadú.', 'hours' => '{1} :count uair|[2,Inf] :count uaireanta', 'days' => '{1} :count lá|[2,Inf] :count laethanta', 'years' => '{1} :count bliain|[2,Inf] :count blianta', 'minutes' => '{1} :count nóiméad|[2,Inf] :count nóiméad', 'months' => '{1} :count mí|[2,Inf] :count míonna', 'cookie_cookies_consent_description' => 'Socraítear an fianán seo ag an breiseán GDPR Cookie Consent agus úsáidtear é chun a stóráil an bhfuil an t-úsáideoir tar éis toiliú le húsáid fianáin nó nach bhfuil. Ní stórálann sé aon sonraí pearsanta.', 'cookie_xsrf_token_description' => 'Socraítear an fianán seo ag Laravel chun ionsaithe Cross-Site Request Forgery (CSRF) a chosc.', 'cookie_laravel_session_description' => 'Socraítear an fianán seo ag Laravel chun sampla seisiúin a aithint don úsáideoir.', 'description_label' => 'Cur síos', 'duration_label' => 'Fad', 'policy_label' => 'Nasc beartais', 'strictly_necessary' => 'Riachtanach go docht', 'performance' => 'Feidhmíocht', 'targeting' => 'Spriocdhírithe', 'marketing' => 'Margaíocht', 'read_more' => 'Léigh níos mó', 'read_less' => 'Léigh níos lú', 'selection_saved_message' => 'Rogha toiliú fianáin sábháilte', 'cookies_settings' => 'Socruithe Fianáin', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/es/messages.php
lang/es/messages.php
<?php return [ 'title' => 'Valoramos su privacidad', 'description' => 'Utilizamos cookies para optimizar nuestro sitio web y nuestro servicio. Puede elegir a qué categorías da su consentimiento.', 'please_visit_1' => 'Para obtener información más detallada sobre las cookies, visite nuestra', 'cookie_policy_page' => 'página de política de cookies', 'accept_selection_btn' => 'Aceptar Selección', 'customise_btn' => 'Personalizar', 'accept_all_btn' => 'Aceptar Todo', 'reject_optional_btn' => 'Rechazar Opcionales', 'accept_additional_cookies_btn' => 'Aceptar cookies adicionales', 'reject_additional_cookies_btn' => 'Rechazar cookies adicionales', 'cookie_policy_title' => 'Política de Cookies', 'cookie_policy_text_1' => 'Esta es la página de política de cookies. Aquí puede leer sobre las cookies utilizadas en la aplicación y elegir qué cookies permitir.', 'what_are_cookies_title' => '¿Qué son las cookies?', 'what_are_cookies_text_1' => 'Una cookie es un pequeño archivo de texto que un sitio web o una aplicación envía al dispositivo de un usuario. Este archivo de texto recopila información sobre las acciones del usuario en su sitio web.', 'what_are_cookies_text_2' => 'Las cookies almacenan información útil para mejorar la experiencia del usuario en su sitio web y posiblemente mejorar su capacidad para volver a conectarse con ellos más tarde.', 'what_are_cookies_text_3' => 'La información recopilada por las cookies puede incluir el idioma preferido del usuario, la configuración del dispositivo, las actividades de navegación y otra información útil.', 'what_are_cookies_text_4' => 'Sitios web como Google utilizan cookies para hacer que los anuncios sean más relevantes para sus usuarios. También rastrean análisis como el número de visitantes en una página, las ubicaciones de los visitantes, las preferencias de búsqueda, etc.', 'what_are_cookies_text_5' => 'Las cookies no son dañinas para su dispositivo. No son virus ni malware. Son solo archivos de texto que se pueden eliminar en cualquier momento.', 'use_of_cookies_title' => 'Uso de cookies', 'use_of_cookies_text_1' => 'Las cookies generalmente se utilizan para realizar una o todas las siguientes funciones:', 'use_of_cookies_text_2' => '<b>Autenticación:</b> Las cookies ayudan a los sitios web a determinar si un usuario ha iniciado sesión y luego proporcionan la experiencia y las funciones correctas a ese usuario único.', 'use_of_cookies_text_3' => '<b>Seguridad:</b> Las cookies ayudan a hacer cumplir las medidas de seguridad en un sitio web. También ayudan a detectar actividades inusuales y sospechosas.', 'use_of_cookies_text_4' => '<b>Publicidad:</b> Las cookies proporcionan una mejor experiencia publicitaria tanto para los usuarios como para los anunciantes. Las cookies ayudan a conectar a los anunciantes con los usuarios que están más interesados en sus productos en función del historial de navegación del usuario.', 'use_of_cookies_text_5' => '<b>Rendimiento:</b> Las cookies ayudan a su sitio web a aprender cómo funcionan los servicios para diferentes personas y cómo dirigir el tráfico entre los servidores.', 'use_of_cookies_text_6' => '<b>Análisis e Investigación:</b> Los sitios web y las aplicaciones utilizan cookies para aprender cuáles de sus servicios se utilizan más. Esto ayuda a determinar qué debe mejorarse, eliminarse y mantenerse igual.', 'use_of_cookies_text_7' => '<b>Preferencias:</b> Las cookies ayudan a los sitios web a recordar las preferencias de los usuarios, como el idioma, la ubicación y otras configuraciones.', 'use_of_cookies_text_8' => 'Algunas cookies pueden recopilar datos de varios sitios web para crear perfiles de comportamiento de los usuarios. Estos perfiles luego se utilizan para enviar contenido y publicidad dirigida a los usuarios.', 'cookies_used_title' => 'Cookies utilizadas en esta aplicación', 'cookies_used_text_1' => 'Las siguientes cookies se utilizan en esta aplicación. Por favor, elija qué cookies permitir.', 'hours' => '{1} :count hora|[2,Inf] :count horas', 'days' => '{1} :count día|[2,Inf] :count días', 'years' => '{1} :count año|[2,Inf] :count años', 'minutes' => '{1} :count minuto|[2,Inf] :count minutos', 'months' => '{1} :count mes|[2,Inf] :count meses', 'cookie_cookies_consent_description' => 'Esta cookie es establecida por el complemento GDPR Cookie Consent y se utiliza para almacenar si el usuario ha consentido o no el uso de cookies. No almacena ningún dato personal.', 'cookie_xsrf_token_description' => 'Esta cookie es establecida por Laravel para prevenir ataques de falsificación de solicitudes entre sitios (CSRF).', 'cookie_laravel_session_description' => 'Esta cookie es establecida por Laravel para identificar una instancia de sesión para el usuario.', 'description_label' => 'Descripción', 'duration_label' => 'Duración', 'policy_label' => 'Enlace de política', 'strictly_necessary' => 'Estrictamente Necesario', 'performance' => 'Rendimiento', 'targeting' => 'Dirigido', 'marketing' => 'Marketing', 'read_more' => 'Leer más', 'read_less' => 'Leer menos', 'selection_saved_message' => 'Selección de consentimiento de cookies guardada', 'cookies_settings' => 'Configuración de cookies', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/pt-br/messages.php
lang/pt-br/messages.php
<?php return [ 'title' => 'Consentimento de Cookies', 'description' => 'Utilizamos cookies para otimizar nosso site e nosso serviço. Você pode escolher a quais categorias dá seu consentimento.', 'please_visit_1' => 'Para informações mais detalhadas sobre cookies, visite nossa', 'cookie_policy_page' => 'página de política de cookies', 'accept_selection_btn' => 'Aceitar Seleção', 'customise_btn' => 'Personalizar', 'accept_all_btn' => 'Aceitar Todos', 'reject_optional_btn' => 'Rejeitar Opcionais', 'accept_additional_cookies_btn' => 'Aceitar cookies adicionais', 'reject_additional_cookies_btn' => 'Rejeitar cookies adicionais', 'cookie_policy_title' => 'Política de Cookies', 'cookie_policy_text_1' => 'Esta é a página de política de cookies. Aqui você pode ler sobre os cookies utilizados na aplicação e escolher quais cookies permitir.', 'what_are_cookies_title' => 'O que são cookies?', 'what_are_cookies_text_1' => 'Um cookie é um pequeno arquivo de texto que um site ou aplicativo envia para o dispositivo de um usuário. Este arquivo de texto coleta informações sobre as ações do usuário no seu site.', 'what_are_cookies_text_2' => 'Os cookies armazenam informações úteis para melhorar a experiência do usuário no seu site e possivelmente melhorar sua capacidade de reconectar-se com eles mais tarde.', 'what_are_cookies_text_3' => 'As informações coletadas pelos cookies podem incluir o idioma preferido do usuário, configurações do dispositivo, atividades de navegação e outras informações úteis.', 'what_are_cookies_text_4' => 'Sites como o Google utilizam cookies para tornar os anúncios mais relevantes para seus usuários. Eles também rastreiam análises como o número de visitantes em uma página, as localizações dos visitantes, preferências de busca, etc.', 'what_are_cookies_text_5' => 'Os cookies não são prejudiciais para o seu dispositivo. Eles não são vírus ou malware. São apenas arquivos de texto que podem ser excluídos a qualquer momento.', 'use_of_cookies_title' => 'Uso de cookies', 'use_of_cookies_text_1' => 'Os cookies geralmente são usados para executar uma ou todas as seguintes funções:', 'use_of_cookies_text_2' => '<b>Autenticação:</b> Os cookies ajudam os sites a determinar se um usuário está logado e, em seguida, fornecem a experiência e as funcionalidades corretas para esse usuário único.', 'use_of_cookies_text_3' => '<b>Segurança:</b> Os cookies ajudam a aplicar medidas de segurança em um site. Eles também ajudam a detectar atividades incomuns e suspeitas.', 'use_of_cookies_text_4' => '<b>Publicidade:</b> Os cookies fornecem uma melhor experiência publicitária tanto para os usuários quanto para os anunciantes. Os cookies ajudam a conectar os anunciantes com os usuários que estão mais interessados em seus produtos com base no histórico de navegação do usuário.', 'use_of_cookies_text_5' => '<b>Desempenho:</b> Os cookies ajudam seu site a aprender como os serviços funcionam para diferentes pessoas e como direcionar o tráfego entre os servidores.', 'use_of_cookies_text_6' => '<b>Análise e Pesquisa:</b> Sites e aplicativos utilizam cookies para saber quais de seus serviços são mais utilizados. Isso ajuda a determinar o que deve ser melhorado, removido e mantido igual.', 'use_of_cookies_text_7' => '<b>Preferências:</b> Os cookies ajudam os sites a lembrar as preferências dos usuários, como idioma, localização e outras configurações.', 'use_of_cookies_text_8' => 'Alguns cookies podem coletar dados de vários sites para criar perfis de comportamento dos usuários. Esses perfis são então usados para enviar conteúdo e publicidade direcionados aos usuários.', 'cookies_used_title' => 'Cookies utilizados nesta aplicação', 'cookies_used_text_1' => 'Os seguintes cookies são utilizados nesta aplicação. Por favor, escolha quais cookies permitir.', 'hours' => '{1} :count hora|[2,Inf] :count horas', 'days' => '{1} :count dia|[2,Inf] :count dias', 'years' => '{1} :count ano|[2,Inf] :count anos', 'minutes' => '{1} :count minuto|[2,Inf] :count minutos', 'months' => '{1} :count mês|[2,Inf] :count meses', 'cookie_cookies_consent_description' => 'Este cookie é definido pelo plugin GDPR Cookie Consent e é usado para armazenar se o usuário consentiu ou não com o uso de cookies. Não armazena dados pessoais.', 'cookie_xsrf_token_description' => 'Este cookie é definido pelo Laravel para prevenir ataques de falsificação de solicitação entre sites (CSRF).', 'cookie_laravel_session_description' => 'Este cookie é definido pelo Laravel para identificar uma instância de sessão para o usuário.', 'description_label' => 'Descrição', 'duration_label' => 'Duração', 'policy_label' => 'Link da política', 'strictly_necessary' => 'Estritamente Necessário', 'performance' => 'Desempenho', 'targeting' => 'Segmentação', 'marketing' => 'Marketing', 'read_more' => 'Leia mais', 'read_less' => 'Leia menos', 'selection_saved_message' => 'Seleção de consentimento de cookies salva', 'cookies_settings' => 'Configurações de Cookies', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/lv/messages.php
lang/lv/messages.php
<?php return [ 'title' => 'Sīkdatņu piekrišana', 'description' => 'Mēs izmantojam sīkdatnes, lai optimizētu mūsu vietni un pakalpojumu. Jūs varat izvēlēties, kurām kategorijām piekrītat.', 'please_visit_1' => 'Lai iegūtu sīkāku informāciju par sīkdatnēm, lūdzu, apmeklējiet mūsu', 'cookie_policy_page' => 'sīkdatņu politikas lapu', 'accept_selection_btn' => 'Pieņemt izvēlēto', 'customise_btn' => 'Pielāgot', 'accept_all_btn' => 'Pieņemt visu', 'reject_optional_btn' => 'Noraidīt izvēles', 'accept_additional_cookies_btn' => 'Pieņemt papildu sīkdatnes', 'reject_additional_cookies_btn' => 'Noraidīt papildu sīkdatnes', 'cookie_policy_title' => 'Sīkdatņu politika', 'cookie_policy_text_1' => 'Šī ir sīkdatņu politikas lapa. Šeit jūs varat izlasīt par lietotajām sīkdatnēm un izvēlēties, kuras sīkdatnes atļaut.', 'what_are_cookies_title' => 'Kas ir sīkdatnes?', 'what_are_cookies_text_1' => 'Sīkdatne ir neliels teksta fails, ko vietne vai lietotne nosūta lietotāja ierīcei. Šis teksta fails apkopo informāciju par lietotāja darbībām jūsu vietnē.', 'what_are_cookies_text_2' => 'Sīkdatnes glabā noderīgu informāciju, lai uzlabotu lietotāju pieredzi jūsu vietnē un, iespējams, uzlabotu jūsu spēju vēlāk ar viņiem sazināties.', 'what_are_cookies_text_3' => 'Sīkdatņu apkopotā informācija var ietvert lietotāja izvēlēto valodu, ierīces iestatījumus, pārlūkošanas darbības un citu noderīgu informāciju.', 'what_are_cookies_text_4' => 'Tādas vietnes kā Google izmanto sīkdatnes, lai padarītu reklāmas atbilstošākas saviem lietotājiem. Viņi arī seko analītikai, piemēram, lapas apmeklētāju skaitam, apmeklētāju atrašanās vietām, meklēšanas preferencēm utt.', 'what_are_cookies_text_5' => 'Sīkdatnes nav kaitīgas jūsu ierīcei. Tās nav vīrusi vai ļaunprātīga programmatūra. Tās ir tikai teksta faili, kurus var izdzēst jebkurā laikā.', 'use_of_cookies_title' => 'Sīkdatņu izmantošana', 'use_of_cookies_text_1' => 'Sīkdatnes parasti tiek izmantotas, lai veiktu vienu vai visas no šīm funkcijām:', 'use_of_cookies_text_2' => '<b>Autentifikācija:</b> Sīkdatnes palīdz vietnēm noteikt, vai lietotājs ir pieteicies, un pēc tam nodrošina pareizo pieredzi un funkcijas šim unikālajam lietotājam.', 'use_of_cookies_text_3' => '<b>Drošība:</b> Sīkdatnes palīdz ieviest drošības pasākumus vietnē. Tās arī palīdz atklāt neparastas un aizdomīgas darbības.', 'use_of_cookies_text_4' => '<b>Reklāma:</b> Sīkdatnes nodrošina labāku reklāmas pieredzi gan lietotājiem, gan reklāmdevējiem. Sīkdatnes palīdz reklāmdevējiem sazināties ar lietotājiem, kuri visvairāk interesējas par viņu produktiem, pamatojoties uz lietotāja pārlūkošanas vēsturi.', 'use_of_cookies_text_5' => '<b>Veiktspēja:</b> Sīkdatnes palīdz jūsu vietnei uzzināt, kā pakalpojumi darbojas dažādiem cilvēkiem un kā novirzīt trafiku starp serveriem.', 'use_of_cookies_text_6' => '<b>Analītika un izpēte:</b> Vietnes un lietotnes izmanto sīkdatnes, lai uzzinātu, kuri no viņu pakalpojumiem tiek izmantoti visvairāk. Tas palīdz noteikt, ko uzlabot, ko noņemt un ko atstāt nemainītu.', 'use_of_cookies_text_7' => '<b>Preferences:</b> Sīkdatnes palīdz vietnēm atcerēties lietotāja preferences, piemēram, valodu, atrašanās vietu un citus iestatījumus.', 'use_of_cookies_text_8' => 'Dažas sīkdatnes var apkopot datus no vairākām vietnēm, lai izveidotu lietotāju uzvedības profilus. Šie profili tiek izmantoti, lai nosūtītu lietotājiem mērķētu saturu un reklāmas.', 'cookies_used_title' => 'Šajā lietotnē izmantotās sīkdatnes', 'cookies_used_text_1' => 'Šajā lietotnē tiek izmantotas šādas sīkdatnes. Lūdzu, izvēlieties, kuras sīkdatnes vēlaties atļaut.', 'hours' => '{1} :count stunda|[2,Inf] :count stundas', 'days' => '{1} :count diena|[2,Inf] :count dienas', 'years' => '{1} :count gads|[2,Inf] :count gadi', 'minutes' => '{1} :count minūte|[2,Inf] :count minūtes', 'months' => '{1} :count mēnesis|[2,Inf] :count mēneši', 'cookie_cookies_consent_description' => 'Šo sīkdatni iestata GDPR Cookie Consent spraudnis, un to izmanto, lai saglabātu, vai lietotājs ir piekritis sīkdatņu izmantošanai vai nē. Tā neuzglabā nekādus personas datus.', 'cookie_xsrf_token_description' => 'Šo sīkdatni iestata Laravel, lai novērstu Cross-Site Request Forgery (CSRF) uzbrukumus.', 'cookie_laravel_session_description' => 'Šo sīkdatni iestata Laravel, lai identificētu lietotāja sesijas instanci.', 'description_label' => 'Apraksts', 'duration_label' => 'Ilgums', 'policy_label' => 'Politikas saite', 'strictly_necessary' => 'Stingri nepieciešams', 'performance' => 'Veiktspēja', 'targeting' => 'Mērķēšana', 'marketing' => 'Mārketings', 'read_more' => 'Lasīt vairāk', 'read_less' => 'Lasīt mazāk', 'selection_saved_message' => 'Sīkdatņu piekrišanas izvēle saglabāta', 'cookies_settings' => 'Sīkdatņu iestatījumi', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/da/messages.php
lang/da/messages.php
<?php return [ 'title' => 'Samtykke til cookies', 'description' => 'Vi bruger cookies til at optimere vores hjemmeside og service. Du kan vælge, hvilke kategorier du vil acceptere.', 'please_visit_1' => 'For mere detaljerede oplysninger om cookies, besøg venligst vores', 'cookie_policy_page' => 'cookiepolitik side', 'accept_selection_btn' => 'Accepter valgte', 'customise_btn' => 'Tilpas', 'accept_all_btn' => 'Accepter alle', 'reject_optional_btn' => 'Afvis valgfri', 'accept_additional_cookies_btn' => 'Accepter yderligere cookies', 'reject_additional_cookies_btn' => 'Afvis yderligere cookies', 'cookie_policy_title' => 'Cookiepolitik', 'cookie_policy_text_1' => 'Dette er cookiepolitik siden. Her kan du læse om de cookies, der bruges i applikationen, og vælge, hvilke cookies du vil tillade.', 'what_are_cookies_title' => 'Hvad er cookies?', 'what_are_cookies_text_1' => 'En cookie er en lille tekstfil, som en hjemmeside eller app sender til en brugers enhed. Denne tekstfil indsamler oplysninger om brugerens handlinger på din hjemmeside.', 'what_are_cookies_text_2' => 'Cookies gemmer nyttige oplysninger for at forbedre brugeroplevelsen på din hjemmeside og muligvis forbedre din evne til at genoprette forbindelsen med dem senere.', 'what_are_cookies_text_3' => 'Oplysninger indsamlet af cookies kan omfatte brugerens foretrukne sprog, enhedsindstillinger, browsing-aktiviteter og andre nyttige oplysninger.', 'what_are_cookies_text_4' => 'Websteder som Google bruger cookies til at gøre annoncer mere relevante for deres brugere. De sporer også analyser som antallet af besøgende på en side, besøgendes placeringer, søgepræferencer osv.', 'what_are_cookies_text_5' => 'Cookies er ikke skadelige for din enhed. De er ikke vira eller malware. De er blot tekstfiler, der kan slettes når som helst.', 'use_of_cookies_title' => 'Brug af cookies', 'use_of_cookies_text_1' => 'Cookies bruges generelt til at udføre en eller alle af følgende funktioner:', 'use_of_cookies_text_2' => '<b>Autentifikation:</b> Cookies hjælper hjemmesider med at bestemme, om en bruger er logget ind, og leverer derefter den rigtige oplevelse og funktioner til den unikke bruger.', 'use_of_cookies_text_3' => '<b>Sikkerhed:</b> Cookies hjælper med at håndhæve sikkerhedsforanstaltninger på en hjemmeside. De hjælper også med at opdage usædvanlige og mistænkelige aktiviteter.', 'use_of_cookies_text_4' => '<b>Reklame:</b> Cookies leverer en bedre reklameoplevelse for både brugere og annoncører. Cookies hjælper annoncører med at forbinde med brugere, der er mest interesserede i deres produkter baseret på brugerens browsinghistorik.', 'use_of_cookies_text_5' => '<b>Ydeevne:</b> Cookies hjælper din hjemmeside med at lære, hvordan tjenester fungerer for forskellige mennesker, og hvordan man dirigerer trafik mellem servere.', 'use_of_cookies_text_6' => '<b>Analyser og forskning:</b> Websteder og apps bruger cookies til at lære, hvilke af deres tjenester der bruges mest. Dette hjælper med at bestemme, hvad der skal forbedres, fjernes og forblive det samme.', 'use_of_cookies_text_7' => '<b>Præferencer:</b> Cookies hjælper hjemmesider med at huske brugerindstillinger som sprog, placering og andre indstillinger.', 'use_of_cookies_text_8' => 'Nogle cookies kan indsamle data på tværs af flere websteder for at oprette brugeradfærdsprofiler. Disse profiler bruges derefter til at sende målrettet indhold og reklame til brugere.', 'cookies_used_title' => 'Cookies brugt i denne applikation', 'cookies_used_text_1' => 'Følgende cookies bruges i denne applikation. Vælg venligst, hvilke cookies du vil tillade.', 'hours' => '{1} :count time|[2,Inf] :count timer', 'days' => '{1} :count dag|[2,Inf] :count dage', 'years' => '{1} :count år|[2,Inf] :count år', 'minutes' => '{1} :count minut|[2,Inf] :count minutter', 'months' => '{1} :count måned|[2,Inf] :count måneder', 'cookie_cookies_consent_description' => 'Denne cookie er sat af GDPR Cookie Consent plugin og bruges til at gemme, om brugeren har givet samtykke til brugen af cookies eller ej. Den gemmer ingen personlige data.', 'cookie_xsrf_token_description' => 'Denne cookie er sat af Laravel for at forhindre Cross-Site Request Forgery (CSRF) angreb.', 'cookie_laravel_session_description' => 'Denne cookie er sat af Laravel for at identificere en session for brugeren.', 'description_label' => 'Beskrivelse', 'duration_label' => 'Varighed', 'policy_label' => 'Politik link', 'strictly_necessary' => 'Strengt nødvendigt', 'performance' => 'Ydeevne', 'targeting' => 'Målretning', 'marketing' => 'Markedsføring', 'read_more' => 'Læs mere', 'read_less' => 'Læs mindre', 'selection_saved_message' => 'Valg af cookiesamtykke gemt', 'cookies_settings' => 'Cookies indstillinger', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/sl/messages.php
lang/sl/messages.php
<?php return [ 'title' => 'Soglasje za piškotke', 'description' => 'Piškotke uporabljamo za optimizacijo naše spletne strani in naših storitev. Izberete lahko, s katerimi kategorijami se strinjate.', 'please_visit_1' => 'Za podrobnejše informacije o piškotkih obiščite našo', 'cookie_policy_page' => 'stran s politiko piškotkov', 'accept_selection_btn' => 'Sprejmi izbrano', 'customise_btn' => 'Prilagodi', 'accept_all_btn' => 'Sprejmi vse', 'reject_optional_btn' => 'Zavrni izbirne', 'accept_additional_cookies_btn' => 'Sprejmi dodatne piškotke', 'reject_additional_cookies_btn' => 'Zavrni dodatne piškotke', 'cookie_policy_title' => 'Politika piškotkov', 'cookie_policy_text_1' => 'To je stran s politiko piškotkov. Tukaj lahko preberete o piškotkih, ki se uporabljajo v aplikaciji, in izberete, katere piškotke dovoliti.', 'what_are_cookies_title' => 'Kaj so piškotki?', 'what_are_cookies_text_1' => 'Piškotek je majhna besedilna datoteka, ki jo spletna stran ali aplikacija pošlje v napravo uporabnika. Ta besedilna datoteka zbira informacije o dejanjih uporabnika na vaši strani.', 'what_are_cookies_text_2' => 'Piškotki shranjujejo koristne informacije za izboljšanje uporabniške izkušnje na vaši strani in morda za izboljšanje vaše sposobnosti, da se kasneje ponovno povežete z njimi.', 'what_are_cookies_text_3' => 'Informacije, zbrane s piškotki, lahko vključujejo uporabnikov izbrani jezik, nastavitve naprave, dejavnosti brskanja in druge koristne informacije.', 'what_are_cookies_text_4' => 'Spletne strani, kot je Google, uporabljajo piškotke za to, da so oglasi bolj relevantni za njihove uporabnike. Prav tako spremljajo analitiko, kot je štetje števila obiskovalcev strani, lokacije obiskovalcev, iskalne preference in tako naprej.', 'what_are_cookies_text_5' => 'Piškotki niso škodljivi za vašo napravo. Niso virusi ali zlonamerna programska oprema. So le besedilne datoteke, ki jih je mogoče kadar koli izbrisati.', 'use_of_cookies_title' => 'Uporaba piškotkov', 'use_of_cookies_text_1' => 'Piškotki se običajno uporabljajo za izvajanje ene ali vseh naslednjih funkcij:', 'use_of_cookies_text_2' => '<b>Avtentikacija:</b> Piškotki pomagajo spletnim stranem določiti, ali je uporabnik prijavljen, in nato dostaviti pravo izkušnjo in funkcije za tega edinstvenega uporabnika.', 'use_of_cookies_text_3' => '<b>Varnost:</b> Piškotki pomagajo uvesti varnostne ukrepe na spletni strani. Prav tako pomagajo odkriti nenavadne in sumljive dejavnosti.', 'use_of_cookies_text_4' => '<b>Oglaševanje:</b> Piškotki zagotavljajo boljšo oglaševalsko izkušnjo tako za uporabnike kot za oglaševalce. Piškotki pomagajo oglaševalcem povezati se z uporabniki, ki jih njihovi izdelki najbolj zanimajo, na podlagi zgodovine brskanja uporabnika.', 'use_of_cookies_text_5' => '<b>Izvedba:</b> Piškotki pomagajo vaši spletni strani izvedeti, kako storitve delujejo za različne ljudi in kako usmerjati promet med strežniki.', 'use_of_cookies_text_6' => '<b>Analitika in raziskave:</b> Spletne strani in aplikacije uporabljajo piškotke za ugotavljanje, katere njihove storitve se najbolj uporabljajo. To pomaga določiti, kaj izboljšati, kaj odstraniti in kaj pustiti nespremenjeno.', 'use_of_cookies_text_7' => '<b>Preference:</b> Piškotki pomagajo spletnim stranem zapomniti si uporabniške nastavitve, kot so jezik, lokacija in druge nastavitve.', 'use_of_cookies_text_8' => 'Nekateri piškotki lahko zbirajo podatke z več spletnih strani, da ustvarijo profile vedenja uporabnikov. Ti profili se nato uporabljajo za pošiljanje ciljanih vsebin in oglasov uporabnikom.', 'cookies_used_title' => 'Piškotki, uporabljeni v tej aplikaciji', 'cookies_used_text_1' => 'V tej aplikaciji se uporabljajo naslednji piškotki. Izberite, katere piškotke želite dovoliti.', 'hours' => '{1} :count ura|[2,Inf] :count ur', 'days' => '{1} :count dan|[2,Inf] :count dni', 'years' => '{1} :count leto|[2,Inf] :count let', 'minutes' => '{1} :count minuta|[2,Inf] :count minut', 'months' => '{1} :count mesec|[2,Inf] :count mesecev', 'cookie_cookies_consent_description' => 'Ta piškotek nastavi vtičnik GDPR Cookie Consent in se uporablja za shranjevanje, ali je uporabnik privolil v uporabo piškotkov ali ne. Ne shranjuje nobenih osebnih podatkov.', 'cookie_xsrf_token_description' => 'Ta piškotek nastavi Laravel za preprečevanje napadov Cross-Site Request Forgery (CSRF).', 'cookie_laravel_session_description' => 'Ta piškotek nastavi Laravel za identifikacijo seje uporabnika.', 'description_label' => 'Opis', 'duration_label' => 'Trajanje', 'policy_label' => 'Povezava do politike', 'strictly_necessary' => 'Strogo potrebno', 'performance' => 'Izvedba', 'targeting' => 'Ciljanje', 'marketing' => 'Marketing', 'read_more' => 'Preberi več', 'read_less' => 'Preberi manj', 'selection_saved_message' => 'Izbira soglasja za piškotke je shranjena', 'cookies_settings' => 'Nastavitve piškotkov', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/lang/et/messages.php
lang/et/messages.php
<?php return [ 'title' => 'Küpsiste nõusolek', 'description' => 'Kasutame küpsiseid, et optimeerida meie veebisaiti ja teenust. Saate valida, milliste kategooriatega nõustute.', 'please_visit_1' => 'Küpsiste kohta üksikasjalikuma teabe saamiseks külastage meie', 'cookie_policy_page' => 'küpsiste poliitika lehte', 'accept_selection_btn' => 'Nõustu valitud', 'customise_btn' => 'Kohanda', 'accept_all_btn' => 'Nõustu kõigiga', 'reject_optional_btn' => 'Lükka tagasi valikulised', 'accept_additional_cookies_btn' => 'Nõustu täiendavate küpsistega', 'reject_additional_cookies_btn' => 'Lükka tagasi täiendavad küpsised', 'cookie_policy_title' => 'Küpsiste poliitika', 'cookie_policy_text_1' => 'See on küpsiste poliitika leht. Siin saate lugeda rakenduses kasutatavate küpsiste kohta ja valida, milliseid küpsiseid lubada.', 'what_are_cookies_title' => 'Mis on küpsised?', 'what_are_cookies_text_1' => 'Küpsis on väike tekstifail, mille veebisait või rakendus saadab kasutaja seadmesse. See tekstifail kogub teavet kasutaja tegevuste kohta teie saidil.', 'what_are_cookies_text_2' => 'Küpsised salvestavad kasulikku teavet, et parandada kasutajate kogemusi teie saidil ja võimalusel parandada teie võimet nendega hiljem uuesti ühendust võtta.', 'what_are_cookies_text_3' => 'Küpsiste kogutud teave võib sisaldada kasutaja eelistatud keelt, seadme seadeid, sirvimistegevusi ja muud kasulikku teavet.', 'what_are_cookies_text_4' => 'Sellised veebisaidid nagu Google kasutavad küpsiseid, et muuta reklaamid oma kasutajatele asjakohasemaks. Nad jälgivad ka analüütikat, näiteks lehe külastajate arvu, külastajate asukohti, otsingueelistusi jne.', 'what_are_cookies_text_5' => 'Küpsised ei ole teie seadmele kahjulikud. Need ei ole viirused ega pahavara. Need on lihtsalt tekstifailid, mida saab igal ajal kustutada.', 'use_of_cookies_title' => 'Küpsiste kasutamine', 'use_of_cookies_text_1' => 'Küpsiseid kasutatakse tavaliselt ühe või kõigi järgmiste funktsioonide täitmiseks:', 'use_of_cookies_text_2' => '<b>Autentimine:</b> Küpsised aitavad veebisaitidel kindlaks teha, kas kasutaja on sisse logitud, ja seejärel pakkuda sellele ainulaadsele kasutajale õiget kogemust ja funktsioone.', 'use_of_cookies_text_3' => '<b>Turvalisus:</b> Küpsised aitavad veebisaidil turvameetmeid rakendada. Need aitavad ka ebatavalise ja kahtlase tegevuse tuvastamisel.', 'use_of_cookies_text_4' => '<b>Reklaam:</b> Küpsised pakuvad paremat reklaamikogemust nii kasutajatele kui ka reklaamijatele. Küpsised aitavad reklaamijatel ühendust võtta kasutajatega, kes on nende toodetest kõige rohkem huvitatud, tuginedes kasutaja sirvimisajaloole.', 'use_of_cookies_text_5' => '<b>Jõudlus:</b> Küpsised aitavad teie veebisaidil õppida, kuidas teenused erinevate inimeste jaoks töötavad ja kuidas suunata liiklust serverite vahel.', 'use_of_cookies_text_6' => '<b>Analüüs ja uurimine:</b> Veebisaidid ja rakendused kasutavad küpsiseid, et teada saada, milliseid nende teenuseid kõige rohkem kasutatakse. See aitab kindlaks teha, mida tuleb parandada, eemaldada ja samaks jätta.', 'use_of_cookies_text_7' => '<b>Eelistused:</b> Küpsised aitavad veebisaitidel meeles pidada kasutaja eelistusi, nagu keel, asukoht ja muud seaded.', 'use_of_cookies_text_8' => 'Mõned küpsised võivad koguda andmeid mitmelt veebisaidilt, et luua kasutajate käitumisprofiile. Neid profiile kasutatakse seejärel sihitud sisu ja reklaamide saatmiseks kasutajatele.', 'cookies_used_title' => 'Selles rakenduses kasutatavad küpsised', 'cookies_used_text_1' => 'Järgmisi küpsiseid kasutatakse selles rakenduses. Valige, milliseid küpsiseid soovite lubada.', 'hours' => '{1} :count tund|[2,Inf] :count tundi', 'days' => '{1} :count päev|[2,Inf] :count päeva', 'years' => '{1} :count aasta|[2,Inf] :count aastat', 'minutes' => '{1} :count minut|[2,Inf] :count minutit', 'months' => '{1} :count kuu|[2,Inf] :count kuud', 'cookie_cookies_consent_description' => 'Selle küpsise määrab GDPR Cookie Consent plugin ja seda kasutatakse selleks, et salvestada, kas kasutaja on nõustunud küpsiste kasutamisega või mitte. See ei salvesta isikuandmeid.', 'cookie_xsrf_token_description' => 'Selle küpsise määrab Laravel, et vältida Cross-Site Request Forgery (CSRF) rünnakuid.', 'cookie_laravel_session_description' => 'Selle küpsise määrab Laravel, et tuvastada kasutaja seansi eksemplar.', 'description_label' => 'Kirjeldus', 'duration_label' => 'Kestus', 'policy_label' => 'Poliitika link', 'strictly_necessary' => 'Tingimata vajalik', 'performance' => 'Jõudlus', 'targeting' => 'Sihtrühm', 'marketing' => 'Turundus', 'read_more' => 'Loe rohkem', 'read_less' => 'Loe vähem', 'selection_saved_message' => 'Küpsiste nõusoleku valik on salvestatud', 'cookies_settings' => 'Küpsiste seaded', ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/LaravelCookiesConsentServiceProvider.php
src/LaravelCookiesConsentServiceProvider.php
<?php namespace SciFY\LaravelCookiesConsent; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; use Illuminate\Translation\TranslationServiceProvider; use SciFY\LaravelCookiesConsent\View\Components\LaravelCookiesConsentPage; use SciFY\LaravelCookiesConsent\View\Components\LaravelCookiesConsentScripts; class LaravelCookiesConsentServiceProvider extends ServiceProvider { public function boot() { $publishedPathResources = resource_path('lang/vendor/scify/laravel-cookie-guard'); $publishedPathLang = base_path('lang/vendor/scify/laravel-cookie-guard'); $packagePath = __DIR__ . '/../lang'; if (is_dir($publishedPathResources)) { $this->loadTranslationsFrom($publishedPathResources, 'cookies_consent'); } elseif (is_dir($publishedPathLang)) { $this->loadTranslationsFrom($publishedPathLang, 'cookies_consent'); } else { $this->loadTranslationsFrom($packagePath, 'cookies_consent'); } $this->loadViewsFrom(__DIR__ . '/../resources/views', 'cookies_consent'); $this->publishes([ __DIR__ . '/../resources/views/components/' => resource_path('views/vendor/scify/laravel-cookie-guard/components'), ], 'cookies-consent-components'); $this->publishes([ __DIR__ . '/../public' => public_path('vendor/scify/laravel-cookie-guard'), ], 'cookies-consent-public'); $this->publishes([ __DIR__ . '/../config/cookies_consent.php' => config_path('cookies_consent.php'), ], 'cookies-consent-config'); $this->publishes([ __DIR__ . '/../lang' => app()->langPath() . '/vendor/scify/laravel-cookie-guard', ], 'cookies-consent-translations'); $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); Blade::component('laravel-cookie-guard', \SciFY\LaravelCookiesConsent\View\Components\LaravelCookiesConsent::class); Blade::component('laravel-cookie-guard-page', LaravelCookiesConsentPage::class); Blade::component('laravel-cookie-guard-scripts', LaravelCookiesConsentScripts::class); } public function register() { // Ensure the translation service is registered $this->app->register(TranslationServiceProvider::class); $this->mergeConfigFrom( __DIR__ . '/../config/cookies_consent.php', 'cookies_consent' ); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/LaravelCookiesConsent.php
src/LaravelCookiesConsent.php
<?php namespace SciFY\LaravelCookiesConsent; class LaravelCookiesConsent {}
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/Http/Controllers/CookiesController.php
src/Http/Controllers/CookiesController.php
<?php namespace SciFY\LaravelCookiesConsent\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Cookie; /** * Manages the cookies consent submission */ class CookiesController extends Controller { private static $MINUTES_IN_A_DAY = 1440; /** * Called when the user clicks on "ACCEPT SELECTION" * This method goes over all the input fields (checkboxes) * submitted by the cookies consent form, and stores * all the relevant cookies. * * @return JsonResponse the result of the operation */ public function save_cookies_consent_selection(Request $request): JsonResponse { $data = $request->all(); // store the JSON in a cookie Cookie::queue($this->get_cookie_prefix() . 'cookies_consent_selection', json_encode($data), (self::$MINUTES_IN_A_DAY * config('cookies_consent.cookie_lifetime'))); $locale = $request->get('locale'); // get the message for the specific locale $message = __('cookies_consent::messages.selection_saved_message', [], $locale); return response()->json(['message' => $message, 'data' => $data, 'success' => true]); } private function get_cookie_prefix(): string { return config('cookies_consent.cookie_prefix'); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/Facades/LaravelCookiesConsent.php
src/Facades/LaravelCookiesConsent.php
<?php namespace SciFY\LaravelCookiesConsent\Facades; use Illuminate\Support\Facades\Facade; /** * @see \SciFY\LaravelCookiesConsent\LaravelCookiesConsent */ class LaravelCookiesConsent extends Facade { protected static function getFacadeAccessor() { return \SciFY\LaravelCookiesConsent\LaravelCookiesConsent::class; } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/View/Components/LaravelCookiesConsentScripts.php
src/View/Components/LaravelCookiesConsentScripts.php
<?php namespace SciFY\LaravelCookiesConsent\View\Components; use Illuminate\View\Component; class LaravelCookiesConsentScripts extends Component { public function render() { return view('cookies_consent::components.laravel-cookie-guard-scripts'); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/View/Components/LaravelCookiesConsentPage.php
src/View/Components/LaravelCookiesConsentPage.php
<?php namespace SciFY\LaravelCookiesConsent\View\Components; use Illuminate\View\Component; class LaravelCookiesConsentPage extends Component { public function render() { return view('cookies_consent::components.laravel-cookie-guard-page'); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/src/View/Components/LaravelCookiesConsent.php
src/View/Components/LaravelCookiesConsent.php
<?php namespace SciFY\LaravelCookiesConsent\View\Components; use Illuminate\View\Component; class LaravelCookiesConsent extends Component { public $heading; public $accordionHeading; public function __construct($heading = 'h2', $accordionHeading = 'h5') { $this->heading = $heading; $this->accordionHeading = $accordionHeading; } public function render() { return view('cookies_consent::components.laravel-cookie-guard'); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/tests/Pest.php
tests/Pest.php
<?php use SciFY\LaravelCookiesConsent\Tests\TestCase; uses(TestCase::class)->in(__DIR__);
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/tests/TestCase.php
tests/TestCase.php
<?php namespace SciFY\LaravelCookiesConsent\Tests; use Orchestra\Testbench\TestCase as Orchestra; use SciFY\LaravelCookiesConsent\LaravelCookiesConsentServiceProvider; class TestCase extends Orchestra { protected function getPackageProviders($app): array { return [ LaravelCookiesConsentServiceProvider::class, ]; } public function assertTranslationExists(string $key) { $this->assertTrue(trans($key) != $key, "Failed to assert that a translation exists for key `{$key}`"); } }
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/tests/TranslationTest.php
tests/TranslationTest.php
<?php it('provides translations', function () { $this->assertTranslationExists('cookies_consent::messages.title'); $this->assertTranslationExists('cookies_consent::messages.description'); });
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/routes/web.php
routes/web.php
<?php use Illuminate\Support\Facades\Route; use SciFY\LaravelCookiesConsent\Http\Controllers\CookiesController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where the routes of the package are defined | */ Route::get('/cookie-policy/{locale}', function (string $locale) { app()->setLocale($locale); return view('cookies_consent::pages.cookie-policy-default-page'); }); Route::post('/guard-settings/save', [CookiesController::class, 'save_cookies_consent_selection']);
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/config/cookies_consent.php
config/cookies_consent.php
<?php return [ /** * This prefix will be applied when setting and getting all cookies. * If not set, the cookies will not be prefixed. * If set, a good strategy is to also add a trailing underscore "_", that will be added between the field value, and each cookie. * For example, if `cookie_prefix` is set to `my_app_`, then the cookies will be stored in a JSON object with the key `my_app_cookies_consent_selection`. * Example: * * { * "my_app_cookies_consent_selection": { * "strictly_necessary": true, * "performance": false, * "targeting": false * } * } */ 'cookie_prefix' => 'my_app_', 'display_floating_button' => true, // Set to false to display the footer link instead 'hide_floating_button_on_mobile' => false, // Set to true to hide the floating button on mobile 'use_separate_page' => false, // Set to true to use a separate page for cookies explanation 'categories_collapsed_by_default' => true, // Set to false to initially collapse the optional categories 'cookie_policy_page_custom_url' => null, // Set the custom page URL if use_separate_page is set to true and you want to use a custom URL or Laravel route 'use_floating_modal' => false, // Set to true to disable the use of showModal() on the dialog HTML element /* |-------------------------------------------------------------------------- | Editor |-------------------------------------------------------------------------- | | Choose your preferred cookies to be shown. You can add more cookies as desired. | | Built-in: "strictly_necessary" | */ 'cookies' => [ 'strictly_necessary' => [ [ // you need to change this in order to reflect the cookie_prefix from above 'name' => 'my_app_cookies_consent', 'description' => 'cookies_consent::messages.cookie_cookies_consent_description', 'duration' => 'cookies_consent::messages.years', 'duration_count' => 1, 'policy_external_link' => null, ], [ 'name' => 'XSRF-TOKEN', 'description' => 'cookies_consent::messages.cookie_xsrf_token_description', 'duration' => 'cookies_consent::messages.hours', 'duration_count' => 2, 'policy_external_link' => null, ], [ 'name' => 'laravel_session', 'description' => 'cookies_consent::messages.cookie_laravel_session_description', 'duration' => 'cookies_consent::messages.hours', 'duration_count' => 2, 'policy_external_link' => null, ], ], ], 'enabled' => [ 'strictly_necessary', ], 'required' => ['strictly_necessary'], /* * Set the cookie duration in days. Default is 365 days. */ 'cookie_lifetime' => 365, ];
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/pages/cookie-policy-default-page.blade.php
resources/views/pages/cookie-policy-default-page.blade.php
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{{ __('cookies_consent::messages.cookie_policy_title') }}</title> @include('cookies_consent::components.laravel-cookie-guard-scripts') </head> <body id="scify-cookie-policy-page"> <div class="container p-5"> <div class="row"> <div class="col-lg-9 col-sm-12 mx-auto my-3"> <button class="btn btn-secondary text-lg" id="close-cookie-policy-page" aria-label="{{ __('cookies_consent::messages.close_btn') }}"> <svg id="Capa_1" enable-background="new 0 0 320.591 320.591" height="20" viewBox="0 0 320.591 320.591" width="20" xmlns="http://www.w3.org/2000/svg" class="close-icon"> <g> <g id="close_1_"> <path fill="currentColor" d="m30.391 318.583c-7.86.457-15.59-2.156-21.56-7.288-11.774-11.844-11.774-30.973 0-42.817l257.812-257.813c12.246-11.459 31.462-10.822 42.921 1.424 10.362 11.074 10.966 28.095 1.414 39.875l-259.331 259.331c-5.893 5.058-13.499 7.666-21.256 7.288z" /> <path fill="currentColor" d="m287.9 318.583c-7.966-.034-15.601-3.196-21.257-8.806l-257.813-257.814c-10.908-12.738-9.425-31.908 3.313-42.817 11.369-9.736 28.136-9.736 39.504 0l259.331 257.813c12.243 11.462 12.876 30.679 1.414 42.922-.456.487-.927.958-1.414 1.414-6.35 5.522-14.707 8.161-23.078 7.288z" /> </g> </g> </svg> {{ __('cookies_consent::messages.close_btn') }} </button> </div> </div> <div class="row"> <div class="col-lg-9 col-sm-12 mx-auto"> @include('cookies_consent::components.laravel-cookie-guard-page') </div> </div> </div> </body> </html>
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/components/_cookie-categories.blade.php
resources/views/components/_cookie-categories.blade.php
@php $alwaysOpen = $alwaysOpen ?? false; $cookieCategories = config('cookies_consent.cookies'); $categoriesCollapsedByDefault = config('cookies_consent.categories_collapsed_by_default', false); $accordionHeading = $accordionHeading ?? 'h5'; @endphp <meta name="csrf-token" content="{{ csrf_token() }}"> <div class="accordion" id="cookieAccordion"> @foreach ($cookieCategories as $category => $cookies) <div class="form-check form-switch"> <input class="form-check-input cookie-category" type="checkbox" id="{{ $category }}" {{ in_array($category, config('cookies_consent.required')) ? 'checked disabled' : '' }}> <label class="form-check-label" for="{{ $category }}"> {{ __('cookies_consent::messages.' . $category) }} @if (in_array($category, config('cookies_consent.required'))) <span class="always-active">({{ __('cookies_consent::messages.always_active') }})</span> @endif </label> </div> <div class="accordion-item cookies-consent-category-item"> <{{ $accordionHeading }} class="accordion-header h5" id="heading-{{ $category }}"> <button class="accordion-button {{ $alwaysOpen || (!$categoriesCollapsedByDefault && $category === 'strictly_necessary') ? '' : 'collapsed' }}" type="button" data-toggle="collapse" data-target="#collapse-{{ $category }}" aria-expanded="{{ $alwaysOpen || (!$categoriesCollapsedByDefault && $category === 'strictly_necessary') ? 'true' : 'false' }}" aria-controls="collapse-{{ $category }}"> @if ($alwaysOpen || (!$categoriesCollapsedByDefault && $category === 'strictly_necessary')) {{ __('cookies_consent::messages.read_less') }} @else {{ __('cookies_consent::messages.read_more') }} @endif </button> </{{ $accordionHeading }}> <div id="collapse-{{ $category }}" class="accordion-collapse {{ $alwaysOpen || (!$categoriesCollapsedByDefault && $category === 'strictly_necessary') ? 'show' : '' }}" aria-labelledby="heading-{{ $category }}" data-parent="#cookieAccordion"> <div class="accordion-body"> <ul class="list-group mt-3"> @foreach ($cookies as $cookie) <li class="list-group-item cookie-content-text small"> <dl> <dt> <strong>Cookie: </strong> <code>{{ $cookie['name'] }}</code> </dt> <dd> <strong>{{ __('cookies_consent::messages.description_label') }}: </strong> {{ __($cookie['description']) }} </dd> <dd> <strong>{{ __('cookies_consent::messages.duration_label') }}: </strong> {{ trans_choice($cookie['duration'], $cookie['duration_count'] ?? 1) }} </dd> @if ($cookie['policy_external_link']) <dd> <a class="policy-link" href="{{ $cookie['policy_external_link'] }}" target="_blank">{{ __('cookies_consent::messages.policy_label') }} &#x1F517;</a> </dd> @endif </dl> </li> @endforeach </ul> </div> </div> </div> @endforeach </div>
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/components/cookie-icon.blade.php
resources/views/components/cookie-icon.blade.php
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 306.4 306.4" style="enable-background:new 0 0 306.4 306.4;" xml:space="preserve"> <path d="M305.8,140.3c-25.6-0.3-46.3-21.2-46.3-46.9c0-6.3,1.2-12.3,3.5-17.7c-6.1,2.1-12.7,3.2-19.6,3.2c-33.2,0-60.2-27-60.2-60.2 c0-5.3,0.7-10.5,2-15.4c-10.3-2.2-21-3.3-32-3.3C68.6,0,0,68.6,0,153.2s68.6,153.2,153.2,153.2s153.2-68.6,153.2-153.2 C306.4,148.8,306.2,144.5,305.8,140.3z M100.2,200.3c-12.4,0-22.5-10.1-22.5-22.5c0-12.4,10.1-22.5,22.5-22.5 c12.4,0,22.5,10.1,22.5,22.5C122.7,190.2,112.6,200.3,100.2,200.3z M130.7,123.9c-12.4,0-22.5-10.1-22.5-22.5 c0-12.4,10.1-22.5,22.5-22.5s22.5,10.1,22.5,22.5C153.2,113.9,143.1,123.9,130.7,123.9z M198.9,216c-8.7,0-15.7-7-15.7-15.7 s7-15.7,15.7-15.7c8.7,0,15.7,7,15.7,15.7S207.6,216,198.9,216z" style="fill:currentColor;stroke:none;"/> </svg>
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/components/laravel-cookie-guard.blade.php
resources/views/components/laravel-cookie-guard.blade.php
<div id="scify-cookies-consent-wrapper"> <div id="scify-cookies-consent" data-ajax-url="{{ url('/guard-settings/save') }}" data-show-floating-button="{{ config('cookies_consent.display_floating_button') }}" data-hide-floating-button-on-mobile="{{ config('cookies_consent.hide_floating_button_on_mobile') }}" data-cookie-prefix="{{ config('cookies_consent.cookie_prefix') }}" data-locale="{{ app()->getLocale() }}" data-use-show-modal="{{ !config('cookies_consent.use_floating_modal') }}" style="display: none;"> <dialog class="scify-cookies-consent-banner cookies-policy-wrapper {{ config('cookies_consent.use_separate_page') ? 'separate-page-mode' : '' }} {{ config('cookies_consent.use_floating_modal') ? 'custom-dialog' : 'modal-base-dialog' }}" aria-labelledby="cookie-consent-title" aria-describedby="cookie-consent-description" > <div class="scify-cookies-container"> <{{ $heading }} id="cookie-consent-title" class="h5 pt-0 pb-2"> {{ __('cookies_consent::messages.title') }} </{{ $heading }}> <p id="cookie-consent-description" class="small mb-4">{{ __('cookies_consent::messages.description') }}</p> @if (config('cookies_consent.use_separate_page')) <p class="small">{{ __('cookies_consent::messages.please_visit_1') }} <a href="{{ config('cookies_consent.cookie_policy_page_custom_url') ?? url('/cookie-policy', ['locale' => app()->getLocale()]) }}" ><b>{{ __('cookies_consent::messages.cookie_policy_page') }}</b></a>.</p> @else <div id="cookie-categories-container" class="display-none"> @include('cookies_consent::components._cookie-categories') </div> @endif <div class="cookie-actions"> <div class="container-fluid p-0"> <div class="row g-0"> @if (config('cookies_consent.use_separate_page')) <div class="button-col col-lg-6 col-sm-12 pl-0"> <button type="button" class="btn btn-light w-100" id="reject-optional-cookies" aria-label="{{ __('cookies_consent::messages.reject_optional_btn') }}"> {{ __('cookies_consent::messages.reject_optional_btn') }} </button> </div> <div class="button-col col-lg-6 col-sm-12 pr-0"> <button type="button" class="btn btn-light w-100" id="accept-all-cookies" aria-label="{{ __('cookies_consent::messages.accept_all_btn') }}"> {{ __('cookies_consent::messages.accept_all_btn') }} </button> </div> @else <div class="button-col col-lg-4 col-sm-12 pl-0"> <button type="button" class="btn btn-light w-100" id="customise-cookies" aria-label="{{ __('cookies_consent::messages.customise_btn') }}"> {{ __('cookies_consent::messages.customise_btn') }} </button> </div> <div class="button-col col-lg-4 col-sm-12 pl-0 display-none"> <button type="button" class="btn btn-light w-100" id="accept-selected-cookies" aria-label="{{ __('cookies_consent::messages.accept_selection_btn') }}"> {{ __('cookies_consent::messages.accept_selection_btn') }} </button> </div> <div class="button-col col-lg-4 col-sm-12"> <button type="button" class="btn btn-light w-100" id="reject-optional-cookies" aria-label="{{ __('cookies_consent::messages.reject_optional_btn') }}"> {{ __('cookies_consent::messages.reject_optional_btn') }} </button> </div> <div class="button-col col-lg-4 col-sm-12 pr-0"> <button type="button" class="btn btn-light w-100" id="accept-all-cookies" aria-label="{{ __('cookies_consent::messages.accept_all_btn') }}"> {{ __('cookies_consent::messages.accept_all_btn') }} </button> </div> @endif </div> </div> </div> </div> </dialog> </div> </div> @if (config('cookies_consent.display_floating_button')) <button id="scify-cookie-consent-floating-button" class="cookie-button" style="display: none;" onclick="toggleCookieBanner()" onkeyup="if (event.key === 'Enter') toggleCookieBanner()" tabindex="0"> @include('cookies_consent::components.cookie-icon') </button> @endif
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/components/laravel-cookie-guard-scripts.blade.php
resources/views/components/laravel-cookie-guard-scripts.blade.php
<link rel="stylesheet" href="{{ asset('vendor/scify/laravel-cookie-guard/_variables.css') }}"> <link rel="stylesheet" href="{{ asset('vendor/scify/laravel-cookie-guard/styles.css') }}"> <script> window.cookies_consent_translations = { read_more: "{{ __('cookies_consent::messages.read_more') }}", read_less: "{{ __('cookies_consent::messages.read_less') }}" }; </script> <script src="{{ asset('vendor/scify/laravel-cookie-guard/scripts.js') }}"></script>
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
scify/laravel-cookie-guard
https://github.com/scify/laravel-cookie-guard/blob/9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6/resources/views/components/laravel-cookie-guard-page.blade.php
resources/views/components/laravel-cookie-guard-page.blade.php
<div id="scify-cookies-consent-wrapper" class="scify-cookies-consent-wrapper-page"> <div id="scify-cookies-consent" class="scify-cookies-consent-banner cookies-policy-wrapper" aria-labelledby="cookie-consent-title" aria-describedby="cookie-consent-description" data-ajax-url="{{ url('/guard-settings/save') }}" data-cookie-prefix="{{ config('cookies_consent.cookie_prefix') }}" data-show-floating-button="false" data-on-cookies-page="true" data-hide-floating-button-on-mobile="{{ config('cookies_consent.hide_floating_button_on_mobile') }}"> <div class="cookies-external-page"> <div class="container"> <div class="row"> <div class="col-sm-12 px-5"> <h1>{{ __('cookies_consent::messages.cookie_policy_title') }}</h1> <p>{{ __('cookies_consent::messages.cookie_policy_text_1') }}</p> <h2>{{ __('cookies_consent::messages.what_are_cookies_title') }}</h2> <p> {{ __('cookies_consent::messages.what_are_cookies_text_1') }} {{ __('cookies_consent::messages.what_are_cookies_text_2') }} {{ __('cookies_consent::messages.what_are_cookies_text_3') }} {{ __('cookies_consent::messages.what_are_cookies_text_4') }} {{ __('cookies_consent::messages.what_are_cookies_text_5') }} </p> <h2>{{ __('cookies_consent::messages.use_of_cookies_title') }}</h2> <p>{{ __('cookies_consent::messages.use_of_cookies_text_1') }}</p> <ul> <li>{!! __('cookies_consent::messages.use_of_cookies_text_2') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_3') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_4') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_5') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_6') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_7') !!}</li> <li>{!! __('cookies_consent::messages.use_of_cookies_text_8') !!}</li> </ul> </div> </div> <div class="row" style="margin-bottom: 3rem;"> <div class="col-sm-12 px-5"> <h2>{{ __('cookies_consent::messages.cookies_used_title') }}</h2> <p> {{ __('cookies_consent::messages.cookies_used_text_1') }} </p> </div> </div> <div class="row"> <div class="col"> <div> @include('cookies_consent::components._cookie-categories', [ 'alwaysOpen' => true, ]) <div class="cookie-actions"> <div class="container-fluid p-0"> <div class="row g-0"> <div class="col-lg-4 col-sm-12 pl-0"> <button type="button" class="btn btn-light w-100" id="accept-selected-cookies" aria-label="{{ __('cookies_consent::messages.accept_selection_btn') }}"> {{ __('cookies_consent::messages.accept_selection_btn') }} </button> </div> <div class="col-lg-4 col-sm-12"> <button type="button" class="btn btn-light w-100" id="reject-optional-cookies" aria-label="{{ __('cookies_consent::messages.reject_optional_btn') }}"> {{ __('cookies_consent::messages.reject_optional_btn') }} </button> </div> <div class="col-lg-4 col-sm-12 pr-0"> <button type="button" class="btn btn-light w-100" id="accept-all-cookies" aria-label="{{ __('cookies_consent::messages.accept_all_btn') }}"> {{ __('cookies_consent::messages.accept_all_btn') }} </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>
php
Apache-2.0
9a7b4ecccc0fa5743138ffc71dc0afc2f9a2f3c6
2026-01-05T05:01:37.859756Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/loader.php
loader.php
<?php define('APP_TIME_START', microtime(true)); define('IPHP_PATH', dirname(__FILE__)); include_once(dirname(__FILE__) . '/functions.php'); mb_internal_encoding("UTF-8"); $AUTOLOAD_PATH = array( dirname(__FILE__) . '/framework', APP_PATH . '/models', APP_PATH . '/classes', ); spl_autoload_register(function ($cls){ global $AUTOLOAD_PATH; foreach($AUTOLOAD_PATH as $dir){ $file = $dir . '/' . $cls . '.php'; if(file_exists($file)){ require_once($file); return; } } // 有很多代码会使用 class_exists(), 需要和它们兼容, 所以不能在这里 throw # if(!class_exists($cls, false)){ # throw new Exception("Class $cls not found!"); # } }); // init application App::init();
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/functions.php
functions.php
<?php function base_path(){ static $path = false; if($path === false){ $uri = $_SERVER['REQUEST_URI']; if(($pos = strpos($uri, '?')) !== false){ $uri = substr($uri, 0, $pos); } $uri = secure_path($uri); /* if(preg_match('/^(.*)\/(\d+)$/', $uri, $ms)){ $uri = $ms[1] . '/view'; $_GET['id'] = $ms[2]; } */ // URL rewrite $ps = explode('/', $uri); if($ps[count($ps)-1] == 'index'){ unset($ps[count($ps)-1]); } $np = count($ps); if(preg_match('/^\d+$/', $ps[$np-1])){ $_GET['id'] = $ps[$np-1]; $ps[$np-1] = 'view'; }else if($np >= 2 && preg_match('/^\d+$/', $ps[$np-2])){ $_GET['id'] = $ps[$np-2]; $act = $ps[$np-1]; $ps = array_slice($ps, 0, -2); $ps[] = $act; } $uri = join('/', $ps); $basepath = dirname($_SERVER['SCRIPT_NAME']); $path = substr($uri, strlen($basepath)); $path = trim(trim($path), '/'); } return $path; } function _url($url='', $params=array()){ static $special_actions = array('view'); if(is_object($params)){ $p = array(); if(isset($params->id)){ $p['id'] = $params->id; } $params = $p; } if(strpos($url, 'http://') === false && strpos($url, 'https://') === false){ $ps = explode('/', $url); $act = $ps[count($ps)-1]; if(isset($params['id']) && preg_match('/^\d+$/', $params['id']) && in_array($act, $special_actions)){ $ps[count($ps)-1] = $params['id']; if($act != 'view'){ $ps[count($ps)] = $act; } unset($params['id']); }else if($act == 'list'){ unset($ps[count($ps)-1]); } $url = join('/', $ps); } $url = Html::link($url, $params); return $url; } function secure_path($path){ $path = preg_replace('/[\.]+/', '.', $path); $path = preg_replace('/[\/]+/', '/', $path); $path = str_replace(array('./', '\'', '"', '<', '>'), '', $path); return $path; } function real_ip(){ return $_SERVER["REMOTE_ADDR"]; } function ip(){ static $cip = null; if($cip === null){ if($_SERVER["HTTP_X_FORWARDED_FOR"] && $_SERVER["HTTP_X_FORWARDED_FOR"]!='0.0.0.0'){ $cip = $_SERVER["HTTP_X_FORWARDED_FOR"]; $cip = explode(',', $cip); $cip = trim($cip[0]); }else if($_SERVER["REMOTE_ADDR"] && $_SERVER["REMOTE_ADDR"]!='0.0.0.0'){ $cip = $_SERVER["REMOTE_ADDR"]; }else{ $cip = "0.0.0.0"; } } $cip = explode(',', $cip); $cip = trim($cip[count($cip) - 1]); return $cip; } function _view(){ iphp_Response::output(); } function _widget($name, $params=array()){ $ps = explode('/', App::$controller->module); foreach(App::$controller->view_path as $view_path){ for($i=count($ps); $i>=0; $i--){ $dir = join('/', array_slice($ps, 0, $i)); $dir = APP_PATH . "/$view_path/$dir/"; $file = $dir . "$name.tpl.php"; if(file_exists($file)){ #Logger::trace("widget: $file"); $params = $params + App::$context->as_array(); extract($params); include($file); return; } } } } // $$params_or_http_code: array | int function _redirect($url, $params_or_http_code=array()){ App::_redirect($url, $params_or_http_code); } function _image($url){ $url = _url($url); return "<img src=\"$url\" />"; } // 从数组列表中, 使用 k_attr 和 v_attr 指定的字段, 组成一个关联数组. function _kvs($arr_arr, $k_attr, $v_attr){ $kvs = array(); foreach($arr_arr as $arr){ if(is_array($arr)){ $k = $arr[$k_attr]; $v = $arr[$v_attr]; }else{ $k = $arr->$k_attr; $v = $arr->$v_attr; } $kvs[$k] = $v; } return $kvs; } function _render($name){ App::$controller->_render_view = $name; } /** * 用于生成指向 module#action 的 URL * @param string action 动作的名字 * @param mixed m Model 对象的实例, 或者是参数数组 * @param string module 如果不指定, 则为当前的 controller */ function _action($action='', $m=null, $module=null){ if(is_array($m)){ $params = $m; }else if(is_object($m)){ $params = array('id' => $m->id); }else{ $params = array(); } $mod = $module? $module : App::$controller->module; if($action){ return _url($mod . '/' . $action, $params); }else{ return _url($mod, $params); } } function _new_url($params=array()){ return _action('new', $params); } function _save_url($params=array()){ return _action('save', $params); } function _list_url($params=array()){ return _action('list', $params); } function _view_url($m, $params=array()){ if(is_object($m)){ $params['id'] = $m->id; }else if(is_array($m)){ $params = $m + $params; } return _action('view', $params); } function _edit_url($m, $params=array()){ if(is_object($m)){ $params['id'] = $m->id; }else if(is_array($m)){ $params = $m + $params; } return _action('edit', $params); } function _update_url($params=array()){ return _action('update', $params); } function _days_from_now($date){ return ceil((strtotime($date) - time())/86400); } function _days_until_now($date){ return -_days_from_now($date); } function _throw($msg, $code=0){ if(is_object($msg) && (is_a($msg, 'Exception') || is_subclass_of($msg, 'Exception'))){ if($code === 0){ $code = $msg->getCode(); } throw new Exception($msg->getMessage(), $code); } throw new Exception($msg, $code); }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app.php
tools/new_app.php
<?php define('TEMPLATE_DIR', dirname(__FILE__) . '/new_app_files'); $APP = array( ); read_conf('NAME'); if(!preg_match('/^[a-z0-9-\.]+$/i', $APP['NAME'])){ echo "Error: Invalid APP.NAME\n"; die(); } read_conf('DOMAIN'); read_conf('PHP_FPM.PORT'); read_conf('PHP_FPM.USER', 'www-data'); read_conf('PHP_FPM.GROUP', 'www-data'); $ret = generate(); if($ret !== false){ echo "Done!\n"; echo "\n"; } function generate(){ global $APP; $app_dir = getcwd() . '/' . $APP['NAME']; if(file_exists($app_dir)){ echo "\n"; echo "Warnning: App path[$app_dir] already exists!\n"; echo "Overwrite?(n/y): "; $line = strtolower(trim(fgets(STDIN))); if($line !== 'y'){ die(); } } echo "\n"; echo "Generate app into: $app_dir ...\n"; $template_files = scan_dir(TEMPLATE_DIR); foreach($template_files as $file){ $src = TEMPLATE_DIR . '/' . $file; $dst = $app_dir . '/' . $file; if(is_dir($src)){ $dst_dir = $dst; }else{ $dst_dir = dirname($dst); } if(!file_exists($dst_dir)){ mkdir($dst_dir, 0755, true); } if(is_dir($src)){ continue; } #echo "$src => $dst\n"; $ps = explode('.', $src); $ext = $ps[count($ps) - 1]; if(in_array($ext, array('sh', 'txt', 'conf', 'php'))){ $text = compile_file($src); }else{ $text = file_get_contents($src); } file_put_contents($dst, $text); } copy(TEMPLATE_DIR . '/.gitignore', $app_dir . '/.gitignore'); } function compile_file($file){ global $APP; $text = file_get_contents($file); foreach($APP as $k=>$v){ $text = str_replace("{\$APP['$k']}", $v, $text); } return $text; } function read_conf($k, $def=null){ global $APP; while(1){ if($def === null){ echo "\$APP['$k']: "; }else{ echo "\$APP['$k'] (default: $def): "; } $line = fgets(STDIN); $line = trim($line); if(strlen($line)){ $APP[$k] = $line; break; }else{ if($def !== null){ $APP[$k] = $def; break; } } } } function scan_dir($dir, $base=false){ if($base === false){ $base = $dir; } $files = scandir($dir); $tmp = array(); foreach($files as $f){ if($f == '.' || $f == '..'){ continue; } if(strpos($f, '.') === 0){ continue; } $f = $dir . '/' . $f; $tmp[] = ltrim(substr($f, strlen($base)), '/'); if(is_dir($f)){ $subs = scan_dir($f, $base); $tmp = array_merge($tmp, $subs); } } return $tmp; }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/assets_md5.php
tools/assets_md5.php
<?php /* 生成当前工作目录下的js、css文件md5映射表 默认是当前目录下的js、css、static文件夹,可传入参数更改 在工作目录下调用 php /data/lib/iphp/tools/resourece_md5.php dir1 dir2... md5.json生成在当前目录下 */ $cwd = getcwd(); $md5_file_name = 'assets.json'; $static_dir = array('js', 'css', 'static', 'imgs'); $extnames = array('js', 'css', 'jpg', 'png', 'gif'); if ($argc > 1) { $static_dir = array_slice($argv, 1); } $files = walk_file($static_dir); $results = array(); foreach($files as $file){ $ext = pathinfo($file, PATHINFO_EXTENSION); if (in_array($ext, $extnames)) { $results[$file] = md5_file($file); } } file_put_contents($md5_file_name, pretty_json($results) . "\n"); function walk_file($path) { $res = array(); if (is_array($path)) { foreach ($path as $p) { $res = array_merge($res, walk_file($p)); } } elseif (is_string($path)) { if (file_exists($path)) { if (is_dir($path)) { $files = scandir($path); foreach($files as $file){ if($file == '.' || $file == '..'){ continue; } $file = $path . '/' . $file; $res = array_merge($res, walk_file($file)); } } elseif (is_file($path)) { array_push($res, $path); } } } return $res; } function pretty_json ($json) { // php version >= 5.4 if (defined('JSON_PRETTY_PRINT')) { if (is_string($json)) { $json_obj = json_decode($json); } else { $json_obj = $json; } return json_encode($json_obj, JSON_PRETTY_PRINT); } else { if (is_string($json)) { return $json; } else { return json_encode($json); } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/index.php
tools/new_app_files/index.php
<?php error_reporting(E_ALL & ~E_NOTICE); define('APP_PATH', dirname(__FILE__) . '/app'); require_once('/data/lib/iphp/loader.php'); App::run();
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/controllers/index.php
tools/new_app_files/app/controllers/index.php
<?php class IndexController extends AppController { function init($ctx){ parent::init($ctx); // your codes here... } function index($ctx){ // ... } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/console/test.php
tools/new_app_files/app/console/test.php
<?php error_reporting(E_ALL & ~E_NOTICE); define('APP_PATH', dirname(__FILE__) . '/..'); require_once('/data/lib/iphp/loader.php'); Logger::debug('running...');
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/models/Post.php
tools/new_app_files/app/models/Post.php
<?php class Post extends Model { static $table_name = 'posts'; }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/views/layout.tpl.php
tools/new_app_files/app/views/layout.tpl.php
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>iphp</title> <meta name="description" content="iphp framework" /> <meta name="keywords" content="iphp framework" /> <link href="<?= _url('/css/style.css') ?>" rel="stylesheet" /> </head> <body> <div class="container"> <?php _view(); ?> <div class="footer"> Copyright&copy;2014-2016 <a href="http://github.com/ideawu/iphp">iphp</a>. All rights reserved. </div> </div> <!-- /container --> </body> </html>
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/views/index.tpl.php
tools/new_app_files/app/views/index.tpl.php
<h1>Hello World!</h1> <p>Great!</p>
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/views/_error/ajax.tpl.php
tools/new_app_files/app/views/_error/ajax.tpl.php
<?php $msg = htmlspecialchars($_e->getMessage()); if(strpos($msg, 'in SQL:') !== false || strpos($msg, 'db error') !== false || get_class($_e) == 'SSDBException'){ Logger::error($_e); $msg = 'db error'; } iphp_Response::ajax($_e->getCode(), $msg);
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/views/_error/404.tpl.php
tools/new_app_files/app/views/_error/404.tpl.php
<h1 style="text-align: center">404 - Not Found!</h1> <p style="margin-top: 20px; padding-top: 10px; border-top: 1px solid #ccc; text-align: center;">iphp</p>
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/views/_error/default.tpl.php
tools/new_app_files/app/views/_error/default.tpl.php
<!doctype html> <html> <head> <meta charset="UTF-8"> <title><?= htmlspecialchars($_e->getMessage()) ?></title> <style>body{font-size: 14px; font-family: monospace;}</style> </head> <body> <h1 style="text-align: center;"> <?php $msg = htmlspecialchars($_e->getMessage()); if(strpos($msg, 'in SQL:') !== false || strpos($msg, 'db error') !== false || get_class($_e) == 'SSDBException'){ Logger::error($_e); $msg = 'db error'; } echo ($msg ? $msg : 'server error'); ?> </h1> <div> <?php if(App::$env == 'dev'){ $ts = $_e->getTrace(); $html = ''; foreach($ts as $t){ $html .= "{$t['file']}:{$t['line']} {$t['function']}()<br/>\n"; } echo $html; } ?> </div> <p style="margin-top: 20px; padding-top: 10px; border-top: 1px solid #ccc; text-align: center;">iphp</p> </body> </html>
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/config/config_dev.php
tools/new_app_files/app/config/config_dev.php
<?php define('ENV', 'dev'); return array( 'env' => ENV, 'logger' => array( 'level' => 'debug', // none/off|(LEVEL) 'dump' => 'file', // none|html|file, 可用'|'组合 'files' => array( // ALL|(LEVEL) 'ALL' => "/data/applogs/{$APP['NAME']}/" . date('Y-m') . '.log', ), ), 'db' => array( 'host' => 'localhost', 'dbname' => 'db', 'username' => 'u', 'password' => '123456', 'charset' => 'utf8', ), // usage: Db::use_db('my'); //'db_my' => ... );
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/config/config_online.php
tools/new_app_files/app/config/config_online.php
<?php define('ENV', 'online'); return array( 'env' => ENV, 'logger' => array( 'level' => 'debug', // none/off|(LEVEL) 'dump' => 'file', // none|html|file, 可用'|'组合 'files' => array( // ALL|(LEVEL) 'ALL' => "/data/applogs/{$APP['NAME']}/" . date('Y-m-d') . '.log', ), ), 'db' => array( 'host' => 'localhost', 'dbname' => 'db', 'username' => 'u', 'password' => 'p', 'charset' => 'utf8', ), // usage: Db::use_db('my'); //'db_my' => ... );
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/tools/new_app_files/app/classes/AppController.php
tools/new_app_files/app/classes/AppController.php
<?php // Normally, all controllers of this application should inherit // from AppController, not directly from Controller. class AppController extends Controller { function init($ctx){ parent::init($ctx); // your codes here... } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/iphp_Response.php
framework/iphp_Response.php
<?php class iphp_Response { // view 的渲染结果先保存在此变量中 private static $view_content = ''; static function output(){ echo self::$view_content; } static function ajax($code, $msg, $data=null){ if($msg === null){ $msg = 'error'; } $resp = array( 'code' => $code, 'message' => $msg, 'data' => $data, ); if(defined('JSON_UNESCAPED_UNICODE')){ $json = json_encode($resp, JSON_UNESCAPED_UNICODE); }else{ $json = json_encode($resp); } $jp = App::$controller->jp; if(!preg_match('/^[a-z0-9_]+$/i', $jp)){ $jp = false; } if($jp){ echo "$jp($json);"; }else{ echo $json; } } static function html(){ list($__view, $__layout) = self::find_view_and_layout(); if(!$__view){ Logger::trace("No view for " . base_path()); }else{ Logger::trace("View $__view"); $__params = App::$context->as_array(); extract($__params); ob_start(); include($__view); self::$view_content = ob_get_clean(); } if($__layout){ Logger::trace("Layout $__layout"); $__params = App::$context->as_array(); extract($__params); include($__layout); }else{ if(App::$controller->layout !== false){ Logger::error("No layout for " . base_path()); } _view(); } } static function error($e){ if(!App::$controller){ App::$controller = new Controller(); } if(App::$controller && App::$controller->is_ajax){ // }else{ $code = $e->getCode() === 0? 200 : $e->getCode(); if($code == 404){ header('Content-Type: text/html; charset=utf-8', true, 404); }else if($code == 403){ header('Content-Type: text/html; charset=utf-8', true, 403); }else if($code == 200){ header('Content-Type: text/html; charset=utf-8', true, 200); }else{ header('Content-Type: text/html; charset=utf-8', true, 500); } } $error_page = self::find_error_page($code); if($error_page !== false){ $__params = App::$context->as_array(); $__params['_e'] = $e; extract($__params); try{ include($error_page); }catch(Exception $e){ // } return; } if(App::$controller && App::$controller->is_ajax){ $code = $e->getCode(); $msg = $e->getMessage(); self::ajax($code, $msg, null); return; } $msg = htmlspecialchars($e->getMessage()); $html = ''; $html .= '<html><head>'; $html .= '<meta charset="UTF-8"/>'; $html .= "<title>$msg</title>\n"; $html .= "<style>body{font-size: 14px; font-family: monospace;}</style>\n"; $html .= "</head><body>\n"; $html .= "<h1 style=\"text-align: center;\">$msg</h1>"; if(App::$env == 'dev'){ $ts = $e->getTrace(); foreach($ts as $t){ $html .= "{$t['file']}:{$t['line']} {$t['function']}()<br/>\n"; } } $html .= '<p style=" margin-top: 20px; padding-top: 10px; border-top: 1px solid #ccc; text-align: center;">iphp</p>'; $html .= '</body></html>'; echo "$html\n"; } private static function find_error_page($code){ if(App::$controller && App::$controller->is_ajax){ $pages = array('ajax'); }else{ $pages = array($code, 'default'); } if(App::$controller){ $view_path_list = App::$controller->view_path; }else{ $view_path_list = array('views'); } $path = base_path(); foreach($view_path_list as $view_path){ $ps = explode('/', $path); while(1){ $base = join('/', $ps); if($ps){ $dir = APP_PATH . "/$view_path/$base"; }else{ $dir = APP_PATH . "/$view_path"; } foreach($pages as $page){ $file = "$dir/_error/{$page}.tpl.php"; #echo $file . "\n<br/>"; if(file_exists($file)){ return $file; } } if(!$ps){ break; } array_pop($ps); } } return false; } private static function find_view_and_layout(){ // 先找 view, 如果找到, 那么找离该 view 最近的 layout $view = self::find_view(); $view_file = false; $layout_file = false; if($view){ $view_path = $view[0]; $view_file = $view[1]; // 将 view 所在的目录加到前面, 优先查找 array_unshift(App::$controller->view_path, $view_path); } $layout_file = self::find_layout(); return array($view_file, $layout_file); } private static function find_view(){ foreach(App::$controller->view_path as $view_path){ foreach(App::include_paths() as $path){ // 由 Controller 指定模板的名字 if(App::$controller->_render_view){ $action = App::$controller->_render_view; }else{ $action = $path['action']; } $base = $path['base']; $dir = rtrim(APP_PATH . "/$view_path/$base", '/'); if($action == 'index'){ $file = $dir . '.tpl.php'; }else{ $file = $dir . "/$action.tpl.php"; } #echo 'DIR: ' . $dir . "\n"; #echo $file . "\n"; if(file_exists($file)){ return array($view_path, $file); } } } return false; } private static function find_layout(){ if(App::$controller->layout === false){ return false; } foreach(App::$controller->view_path as $view_path){ $file = self::find_layout_file($view_path); if($file){ return $file; } } return false; } private static function find_layout_file($view_path){ $layout = 'layout'; if(App::$controller->layout){ $layout = App::$controller->layout; } $path = base_path(); $ps = explode('/', $path); while(1){ $base = join('/', $ps); $file = APP_PATH . "/$view_path/$base/$layout.tpl.php"; if(file_exists($file)){ return $file; } if(!$ps){ break; } array_pop($ps); } return false; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Http.php
framework/Http.php
<?php class Http { static $error = ''; static $connect_timeout = 5; static $request_timeout = 25; static function post($url, $data=array()){ self::$error = ''; if(is_array($data)){ $data = http_build_query($data); } $ch = curl_init($url) ; curl_setopt($ch, CURLOPT_POST, 1) ; curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) ; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, self::$connect_timeout); curl_setopt($ch, CURLOPT_TIMEOUT, self::$request_timeout); $result = @curl_exec($ch) ; self::$error = curl_error($ch); curl_close($ch) ; return $result; } static function get($url, $data=null){ self::$error = ''; if(is_array($data)){ $data = http_build_query($data); if(strpos($url, '?') === false){ $url .= '?' . $data; }else{ $url .= '&' . $data; } } $ch = curl_init($url) ; curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) ; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, self::$connect_timeout); curl_setopt($ch, CURLOPT_TIMEOUT, self::$request_timeout); $result = @curl_exec($ch) ; self::$error = curl_error($ch); curl_close($ch) ; return $result; } // 根据 $data 长度自动选择 GET/POST static function request($url, $params=array()){ $data = array(); $total_len = 0; foreach($params as $k=>$v){ $len = strlen($v); $total_len += $len; $is_post_data = false; if($len > 128 || $total_len > 1024){ $is_post_data = true; } if($is_post_data){ $data[$k] = $v; unset($params[$k]); } } $params = http_build_query($params); if(strpos($url, '?') === false){ $url .= '?' . $data; }else{ $url .= '&' . $data; } if($data){ return self::get($url); }else{ return self::post($url, $data); } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Db.php
framework/Db.php
<?php /* Use for multiple-dbs: 1. config 'db_my' => array() 2. php Db::use_db('my'); */ /* Db 类: 实现多个数据库的选择, 并以静态方法形式调用 iphp_DbInstance 类: 对应单个数据库, 同时实现读写分离 Mysql_i 类: 数据库连接(可建立只读连接), 所有对数据库的操作均通过此类 */ // Db 类是为了方便使用 iphp_DbInstance, iphp_DbInstance 支持的所有实例方法, // 均可作为本类的静态方法调用. class Db{ private static $app_config = array(); private static $instances = array(); private static $current_dbname = ''; function __construct(){ throw new Exception("Static class"); } static function init($app_config=array()){ self::$app_config = $app_config; } static function use_db($dbname=''){ self::$current_dbname = $dbname; } static function instance(){ $dbname = self::$current_dbname; $key = $dbname? "db_{$dbname}" : 'db'; if(!isset(self::$app_config[$key])){ _throw("no config for db: $dbname"); } if(!isset(self::$instances[$dbname])){ $instance = new iphp_DbInstance(self::$app_config[$key]); self::$instances[$dbname] = $instance; } return self::$instances[$dbname]; } static function __callStatic($cmd, $params=array()){ return call_user_func_array(array(self::instance(), $cmd), $params); } static function build_in_string($val){ if(is_string($val)){ $val = explode(',', $val); }else if(is_array($val)){ // }else{ $val = array($val); } $tmp = array(); foreach($val as $p){ $p = trim($p); if(!strlen($p)){ continue; } $p = self::escape($p); $tmp[$p] = $p; } return "'" . join("', '", $tmp) . "'"; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Text.php
framework/Text.php
<?php class Text { static function json_decode($str, $assoc=false){ return json_decode($str, $assoc); } static function json_encode($input, $opt=0){ if(defined('JSON_UNESCAPED_UNICODE')){ return json_encode($input, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | $opt); }else{ # 某些系统不支持转义过的中文, 所以需要自己拼JSON, 支持 JSON_UNESCAPED_UNICODE #return json_encode($input, $opt); } if(is_string($input)){ $text = $input; $text = str_replace('\\', '\\\\', $text); $text = str_replace( array("\r", "\n", "\t", "\""), array('\r', '\n', '\t', '\\"'), $text); return '"' . $text . '"'; }else if($input === null){ return 'null'; }else if($input === true){ return 'true'; }else if($input === false){ return 'false'; }else if(is_array($input) || is_object($input)){ $arr = array(); $is_obj = is_object($input) || (array_keys($input) !== range(0, count($input) - 1)); foreach($input as $k=>$v){ if($is_obj){ // 数据的key如果是整数, PHP会自动将其强制转换成int型 // 而int型没有引号, 是错误的JSON语法 if(!is_string($k)){ $k .= ""; } $arr[] = self::json_encode($k) . ':' . self::json_encode($v); }else{ $arr[] = self::json_encode($v); } } if($is_obj){ return '{' . join(',', $arr) . '}'; }else{ return '[' . join(',', $arr) . ']'; } }else{ return $input . ''; } } static function xml_to_obj($str){ $xml = @simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA); if($xml){ $xml = @json_decode(@json_encode($xml)); } if($xml){ $xml = self::trim_xml_obj($xml); } return $xml; } private static function trim_xml_obj($obj){ foreach($obj as $k=>$v){ if(is_object($v)){ if(count((array)$v) == 0){ $v = ''; }else{ $v = self::trim_xml_obj($v); } } $obj->$k = $v; } return $obj; } static function xml_to_array($str){ $xml = @simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA); if($xml){ $xml = @json_decode(@json_encode($xml), 1); } return $xml; } /** * forbidden_tags 比 allow_tags 优先 * @allow_tags, @forbidden_tags: 逗号分隔的标签名字符串. */ static function clean_html($html, $allow_tags=null, $forbidden_tags=null, $urlbase=''){ if(!is_array($allow_tags)){ if(!is_string($allow_tags) || !$allow_tags){ $allow_tags = 'a,img,br,pre,del,p,h1,h2,h3,h4,table,caption,tbody,tr,th,td,ul,ol,li,b,strong,div,embed,blockquote'; } $ps = explode(',', $allow_tags); $allow_tags = array(); foreach($ps as $p){ $p = trim($p); $allow_tags[$p] = 1; } } if(!is_array($forbidden_tags)){ if(!is_string($forbidden_tags) || !$forbidden_tags){ $forbidden_tags = ''; } $ps = explode(',', $forbidden_tags); $forbidden_tags = array(); foreach($ps as $p){ $p = trim($p); $forbidden_tags[$p] = 1; } } if(strpos($urlbase, '/') !== strlen($urlbase) - 1){ $urlbase .= '/'; } $dom = new DOMDocument(); @$dom->loadHTML('<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>' . $html); $root = $dom->documentElement; $html = self::clean_html_node($root, $allow_tags, $forbidden_tags, 0, $urlbase); return $html; } private static function clean_html_node($node, $allow_tags, $forbidden_tags, $indent=0, $urlbase=''){ static $attr_define = array( 'a' => 'href|title', 'img' => 'src|alt', 'td' => 'rowspan|colspan', 'th' => 'rowspan|colspan', 'table' => 'border|cellspacing|cellpadding|bordercolor|width', 'embed' => 'src|type|width|height', ); $tag = strtolower($node->nodeName); if($node->nodeType == XML_TEXT_NODE){ return htmlspecialchars(trim($node->nodeValue)); } if($node->nodeType != XML_ELEMENT_NODE){ return ''; } if($tag == 'pre'){ return '<pre>' . htmlspecialchars($node->textContent) . '</pre>'; } $ps = array(); if($node->childNodes == null){ return ''; } foreach($node->childNodes as $n){ $ps[] = self::clean_html_node($n, $allow_tags, $forbidden_tags, $indent+1, $urlbase); } $child_text = join('', $ps); // if(!$tag || isset($forbidden_tags[$tag]) || !isset($allow_tags[$tag])){ return $child_text; } //$text = str_pad('', $indent, "\t", STR_PAD_LEFT); $text = ''; switch($tag){ case 'br': $text .= "\n<br/>\n"; break; case 'div': case 'p': case 'h1': case 'h2': case 'h3': case 'h4': case 'tbody': case 'tr': case 'ul': case 'ol': case 'li': case 'blockquote': case 'strong': $text .= "<$tag>$child_text</$tag>\n"; break; case 'del': case 'caption': case 'b': case 'strong': $text .= "<$tag>$child_text</$tag>"; break; default: if(isset($attr_define[$tag])){ $attr = ''; $attr_list = explode('|', $attr_define[$tag]); foreach($attr_list as $k){ $v = trim($node->getAttribute($k)); if(strlen($v) > 0){ if(in_array($k, array('src','href'))){ if(strpos($v, 'http://') === false && strpos($v, 'https://') === false){ if($v[0] === '/'){ $v = substr($v, 1); } $v = $urlbase . $v; } } $v = htmlspecialchars($v); $attr .= " $k=\"$v\""; } } $text .= "<{$tag}{$attr}>$child_text</$tag>"; if(in_array($tag, array('embed','table','td','th'))){ $text .= "\n"; } }else{ $text .= $child_text; } break; } return $text; } static function stripslashes($mixed){ if(is_string($mixed)){ return stripslashes($mixed); }else if(is_array($mixed)){ foreach($mixed as $k=>$v){ $mixed[$k] = self::stripslashes($v); } return $mixed; }else if(is_object($mixed)){ foreach($mixed as $k=>$v){ $mixed->$k = self::stripslashes($v); } return $mixed; }else{ return $mixed; } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Controller.php
framework/Controller.php
<?php class Controller { public $module = ''; public $action = ''; public $layout = ''; public $is_ajax = false; public $view_path = array('views'); // 默认不设置, 根据 App::include_paths() 的返回值决定要显示的 view public $_render_view = ''; function init($ctx){ } function index($ctx){ } function _view($m){ _redirect($this->_view_url($m)); } function _new_url(){ return _action('new', null, $this->module); } function _list_url(){ return _action('list', null, $this->module); } function _save_url(){ return _action('save', null, $this->module); } function _update_url(){ return _action('update', null, $this->module); } function _view_url($m){ return _action('view', $m, $this->module); } function _edit_url($m){ return _action('edit', $m, $this->module); } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/iphp_DbInstance.php
framework/iphp_DbInstance.php
<?php // 实现数据库的读写分离 // Mysql_i 所支持的全部实例方法, 均可作为本类的实例方法调用. class iphp_DbInstance { private $config = array(); private $master = null; private $slave = null; function __construct($config=array()){ $this->config = $config; } function load_balance($yesno=true){ $this->load_balance = $yesno; $this->readonly = $yesno; } function readonly($yesno=true){ $this->load_balance = false; $this->readonly = $yesno; } function is_readonly(){ return $this->readonly; } private $readonly_vars = array(); function push_readonly($yesno){ $this->readonly_vars[] = $this->readonly; $this->readonly($yesno); } function pop_readonly(){ if(!$this->readonly_vars){ throw new Exception("No vars to pop from readonly_vars!"); } $yesno = array_pop($this->readonly_vars); $this->readonly($yesno); return $yesno; } function connection(){ if($this->readonly){ if($this->slave === null){ if(isset($this->config['readonly_db']) && $this->config['readonly_db']){ $this->slave = new Mysql_i($this->config['readonly_db']); $this->slave->readonly = true; } } if($this->slave){ return $this->slave; } } if($this->master === null){ $this->master = new Mysql_i($this->config); } return $this->master; } function query($sql){ if($this->load_balance){ if(Mysql_i::is_write_query($sql)){ $this->readonly(false); } } return $this->connection()->query($sql); } function update($sql){ $this->readonly(false); $this->query($sql); return $this->connection()->affected_rows(); } function begin(){ $this->readonly(false); return $this->connection()->begin(); } function save_row($table, $attrs){ $this->readonly(false); $ret = $this->connection()->save($table, $attrs); return $ret; } function update_row($table, $id, $attrs){ $this->readonly(false); $attrs['id'] = $id; $ret = $this->connection()->update($table, $attrs); return $ret; } function delete_row($table, $id){ $this->readonly(false); return $this->connection()->remove($table, $id); } function __call($cmd, $params=array()){ return call_user_func_array(array($this->connection(), $cmd), $params); } function __get($name){ if($name == 'query_count'){ $ret = 0; if($this->master){ $ret += $this->master->query_count; } if($this->slave){ $ret += $this->slave->query_count; } return $ret; }else{ return $this->$name; } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Mysql.php
framework/Mysql.php
<?php /** * MySQL 数据库操作工具类, 方便数据库操作. * 示例见底部注释. * @author: wuzuyang@gmail.com */ class Mysql{ var $conn; var $query_list = array(); public $query_count = 0; var $readonly = false; public function __construct($c){ if(!isset($c['port'])){ $c['port'] = '3306'; } $server = $c['host'] . ':' . $c['port']; $this->conn = @mysql_connect($server, $c['username'], $c['password'], true); if(!$this->conn){ throw new Exception('connect db error'); } $ret = @mysql_select_db($c['dbname'], $this->conn); if(!$ret){ throw new Exception("select db {$c['dbname']} error: ".mysql_error($this->conn)); } if($c['charset']){ mysql_query("set names " . $c['charset'], $this->conn); } } public static function is_write_query($sql){ $sql = trim($sql); if(strcasecmp($sql, 'begin') == 0){ return true; } return (bool) @preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql); } /** * 执行 mysql_query 并返回其结果. */ public function query($sql){ if($this->readonly){ if(self::is_write_query($sql)){ throw new Exception("write operation is not allowed on readonly db!"); } } $stime = microtime(true); $result = mysql_query($sql, $this->conn); $this->query_count ++; if($result === false){ Logger::error(mysql_error($this->conn)." in SQL: $sql"); if(defined('ENV') && ENV == 'dev'){ throw new Exception(mysql_error($this->conn)." in SQL: $sql"); }else{ throw new Exception('db error'); } } $etime = microtime(true); $time = number_format(($etime - $stime) * 1000, 2); $ro = $this->readonly? '[RO]' : '[RW]'; $log = "{$ro} {$time} $sql"; if(defined('ENV') && ENV == 'dev'){ $this->query_list[] = $log; } #Logger::debug($log); return $result; } function affected_rows(){ return mysql_affected_rows($this->conn); } /** * 执行 SQL 语句, 返回结果的第一条记录(是一个对象). */ public function get($sql, $type='object'){ $result = $this->query($sql); if($type == 'object'){ $row = mysql_fetch_object($result); }else{ $row = mysql_fetch_assoc($result); } if($row){ return $row; }else{ return null; } } /** * 返回查询结果集, 以 key 为键组织成关联数组, 每一个元素是一个对象. * 如果 key 为空, 则将结果组织成普通的数组. */ public function find($sql, $key=null, $type='object'){ $data = array(); $result = $this->query($sql); if($type == 'object'){ while($row = mysql_fetch_object($result)){ if(!empty($key)){ $data[$row->{$key}] = $row; }else{ $data[] = $row; } } }else{ while($row = mysql_fetch_assoc($result)){ if(!empty($key)){ $data[$row[$key]] = $row; }else{ $data[] = $row; } } } return $data; } public function last_insert_id(){ return mysql_insert_id($this->conn); } /** * 执行一条带有结果集计数的 count SQL 语句, 并返该计数. */ public function count($sql){ return $this->get_num($sql); } public function get_num($sql){ $row = $this->get($sql, 'array'); if($row){ $row = array_values($row); return (int)$row[0]; }else{ return 0; } } /** * 开始一个事务. */ public function begin(){ return mysql_query('begin', $this->conn); } /** * 提交一个事务. */ public function commit(){ return mysql_query('commit', $this->conn); } /** * 回滚一个事务. */ public function rollback(){ return mysql_query('rollback', $this->conn); } /** * 获取指定编号的记录. * @param int $id 要获取的记录的编号. * @param string $field 字段名, 默认为'id'. */ function load($table, $id, $field='id'){ $id = $this->escape($id); $sql = "select * from `{$table}` where `{$field}`='{$id}' limit 1"; $row = $this->get($sql); return $row; } /** * 保存一条记录, 调用后, id被设置. * @param object $row */ function save($table, &$row){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); $sql = "insert into `{$table}` set $sqlA"; $ret = $this->query($sql); if(is_object($row)){ if(!$row->id){ $row->id = $this->last_insert_id(); } }else if(is_array($row)){ if(!$row['id']){ $row['id'] = $this->last_insert_id(); } } return $ret; } /** * 保存一条记录, 调用后, id被设置. * @param object $row */ function replace($table, &$row){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); $sql = "replace into `{$table}` set $sqlA"; $ret = $this->query($sql); if(is_object($row)){ $row->id = $this->last_insert_id(); }else if(is_array($row)){ $row['id'] = $this->last_insert_id(); } return $ret; } /** * 更新$arr[id]所指定的记录. * @param array $row 要更新的记录, 键名为id的数组项的值指示了所要更新的记录. * @return int 影响的行数. * @param string $field 字段名, 默认为'id'. */ function update($table, &$row, $field='id'){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); if(is_object($row)){ $id = $row->{$field}; }else if(is_array($row)){ $id = $row[$field]; } $sql = "update `{$table}` set $sqlA where `{$field}`='$id'"; return $this->query($sql); } /** * 删除一条记录. * @param int $id 要删除的记录编号. * @return int 影响的行数. * @param string $field 字段名, 默认为'id'. */ function remove($table, $id, $field='id'){ $id = $this->escape($id); $sql = "delete from `{$table}` where `{$field}`='{$id}'"; return $this->query($sql); } function escape(&$val){ if($val === NULL){ // }else if(is_object($val) || is_array($val)){ $this->escape_row($val); }else if(is_string($val)){ $val = mysql_real_escape_string($val); } return $val; } function escape_row(&$row){ if(is_object($row)){ foreach($row as $k=>$v){ $row->$k = $this->escape($v); } }else if(is_array($row)){ foreach($row as $k=>$v){ $row[$k] = $this->escape($v); } } return $row; } function escape_like_string($str){ $str = $this->escape($str); $find = array('%', '_'); $replace = array('\%', '\_'); $str = str_replace($find, $replace, $str); return $str; } } /* 示例: // file: inc.php, 所有需要数据库连接的代码都include该文件 include('Mysql.php'); $conf= array( 'host' => 'localhost', 'dbname' => 'database1', 'username' => 'test', 'password' => '123456', ); $db = new Mysql($conf); // app.php include('inc.php'); // 把所有的行当做对象返回. $rows = $db->find("select * from table"); foreach($rows as $r){ echo $r->id . ' ' . $r->name; } // 计数, 注意SQL文句中的count(*) $count = $db->count("select count(*) from table"); // 插入数据 $db->query("insert into ..."); */
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/AjaxController.php
framework/AjaxController.php
<?php class AjaxController extends Controller { public $is_ajax = true; public $layout = false; public $jp = ''; function init($ctx){ parent::init($ctx); $jp = trim($_GET['callback']); if(preg_match('/^[a-z0-9_]+$/i', $jp)){ $this->jp = $jp; } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/iphp_Context.php
framework/iphp_Context.php
<?php class iphp_Context { private $lazy_regs = array(); function as_array(){ $arr = get_object_vars($this); unset($arr['lazy_regs']); return $arr; } function __get($name){ if(!property_exists($this, $name)){ $this->$name = null; if(isset($this->lazy_regs[$name])){ $callback = $this->lazy_regs[$name]; $this->$name = call_user_func($callback, $name, $this); } } return $this->$name; } // $value = callback($name, $ctx); function lazyload($name, $callback_func){ $this->lazy_regs[$name] = $callback_func; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/App.php
framework/App.php
<?php class App{ static $env; static $context; static $controller; private static $finish = false; static $config = array(); static $version = ''; static $asset_md5 = array(); static $base_url = null; static function host(){ $host = $_SERVER['HTTP_HOST']; $port = $_SERVER['SERVER_PORT']; if(strpos($host, ':') === false && $port != 80 && $port != 443){ $host .= ":{$port}"; } return $host; } static function set_base_url($base_url){ $base_url = rtrim($base_url, '/'); self::$base_url = $base_url; } // 兼容老代码 static function ajax_resp($code, $msg, $data=null){ return iphp_Response::ajax($code, $msg, $data); } static function init(){ static $inited = false; if($inited){ return; } $inited = true; $md5_file = APP_PATH . '/../assets.json'; if(file_exists($md5_file)){ self::$asset_md5 = @json_decode(@file_get_contents($md5_file), true); if(!is_array(self::$asset_md5)){ self::$asset_md5 = array(); } }else{ $version_file = APP_PATH . '/../version'; if(file_exists($version_file)){ self::$version = trim(@file_get_contents($version_file)); } } $config_file = APP_PATH . '/config/config.php'; if(!file_exists($config_file)){ throw new Exception("No config file"); } $config = include($config_file); self::$config = $config; self::$env = $config['env']; Logger::init($config['logger']); Db::init($config); if(get_magic_quotes_gpc()){ foreach($_GET as $k=>$v){ $_GET[$k] = Text::stripslashes($v); } foreach($_POST as $k=>$v){ $_POST[$k] = Text::stripslashes($v); } foreach($_COOKIE as $k=>$v){ $_COOKIE[$k] = Text::stripslashes($v); } } $_REQUEST = $_GET + $_POST + $_COOKIE; } static function run(){ // before any exception self::$context = new iphp_Context(); try{ $data = self::_run(); }catch(AppBreakException $e){ return; }catch(AppRedirectException $e){ $url = $e->getMessage(); @header("Location: $url", true, $e->getCode()); return; }catch(Exception $e){ return iphp_Response::error($e); } if(App::$finish){ return; } if(App::$controller && App::$controller->is_ajax){ iphp_Response::ajax(1, '', $data); }else{ iphp_Response::html(); } } static function _run(){ if(base_path() == 'index.php'){ _redirect(''); } ob_start(); try{ App::init(); }catch(Exception $e){ ob_clean(); throw $e; } ob_clean(); if(App::$finish){ return null; } $route = iphp_Router::route(); list($base, $controller, $action) = $route; App::$controller = $controller; $controller->init(App::$context); if(App::$finish){ return null; } $ret = $controller->$action(App::$context); return $ret; } static function _break(){ self::$finish = true; throw new AppBreakException(); } static function _redirect($url, $params_or_http_code=array()){ if(App::$controller){ App::$controller->layout = false; } App::$finish = true; $http_code = 302; if(is_array($params_or_http_code)){ $url = _url($url, $params_or_http_code); }else{ $url = _url($url); $http_code = intval($params_or_http_code); } // 某些代码在 try-catch 里执行 _redirect, 所以要输出 header, 以让 // 那些代码能工作 @header("Location: $url", true, $http_code); throw new AppRedirectException($url, $http_code); } static function include_paths(){ static $paths = array(); if(!$paths){ $path = base_path(); if(strlen($path) == 0){ $ps = array('index'); }else{ $ps = explode('/', $path); } $act = $ps[count($ps) - 1]; if($act == 'new'){ $act = 'create'; } $paths[] = array( 'base' => join('/', array_slice($ps, 0, -1)), 'action' => $act, ); $paths[] = array( 'base' => join('/', $ps), 'action' => 'index', ); if($act != 'index'){ $paths[] = array( 'base' => join('/', $ps) . '/index', 'action' => 'index', ); $paths[] = array( 'base' => ltrim(join('/', array_slice($ps, 0, -1)) . '/index', '/'), 'action' => $act, ); } } return $paths; } } class AppBreakException extends Exception { function __construct($msg='', $code=1){ parent::__construct($msg, $code); } } class AppRedirectException extends Exception { function __construct($msg='', $code=302){ parent::__construct($msg, $code); } } class App404Exception extends Exception { function __construct($msg='404 - Not Found'){ parent::__construct($msg, 404); } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Html.php
framework/Html.php
<?php class Html{ private static $config = array(); function __construct(){ throw new Exception("Static class"); } static function host(){ $host = $_SERVER['HTTP_HOST']; $port = $_SERVER['SERVER_PORT']; if(strpos($host, ':') === false && $port != 80 && $port != 443){ $host .= ":{$port}"; } return $host; } static function base_url(){ if(App::$base_url){ return App::$base_url; } static $link = null; if($link === null){ $host = $_SERVER['HTTP_HOST']; $port = $_SERVER['SERVER_PORT']; if(strpos($host, ':') === false && $port != 80 && $port != 443){ $host .= ":{$port}"; } $path = dirname($_SERVER['SCRIPT_NAME']); if($path == '/' || $path == "\\"){ $path = ''; } if($_SERVER['HTTPS'] || $port == 443){ $link = "https://{$host}{$path}"; }else{ $link = "http://{$host}{$path}"; } } return $link; } static function init($config=array()){ self::$config = $config; } static function build_url_query($param, $static=false){ $arr = array(); foreach($param as $k=>$v){ if($static && !is_array($v)){ // 路径中不能包含%2F $v = urlencode(str_replace('/', '%2F', $v)); $arr[] = $k . '/' . $v; }else{ if(is_array($v)){ foreach($v as $n=>$s){ $n = urlencode($n); $arr[] = $k . "[$n]=" . urlencode($s); } }else{ $arr[] = $k . '=' . urlencode($v); } } } if($static){ $query = join('/', $arr); }else{ $query = join('&', $arr); } return $query; } private static function is_static_resource($url){ static $exts = array('js', 'css'); $ps = explode('?', $url); $url = $ps[0]; $ps = explode('#', $url); $url = $ps[0]; $ps = explode('.', $url); $ext = $ps[count($ps) - 1]; return in_array($ext, $exts); } static function link($url, $param=array()){ if(strpos($url, 'http://') === false && strpos($url, 'https://') === false){ $url = trim($url, '/'); $url = self::base_url() . '/' . $url; } if(!isset($param['_v']) && self::is_static_resource($url)){ if(App::$asset_md5){ $relative_path = substr($url, strlen(self::base_url().'/')); if(isset(App::$asset_md5[$relative_path])){ $param['_v'] = App::$asset_md5[$relative_path]; } }else{ if(App::$version){ $param['_v'] = App::$version; } } // dev 环境不走缓存 if(defined('ENV') && ENV == 'dev'){ $param['_v'] = time(); } } if($param){ if(strpos($url, '?')){ $url .= '&'; }else{ $url .= '?'; } $url .= self::build_url_query($param); } return $url; } /** * 生成操作的链接 */ static function action($act, $param=array()){ $rewrite = App::$router->rewrite == true; $url = App::$baseUrl . '/'; if($act == '' && $param){ $act = App::$router->act; } $param_url = self::build_url_query($param, $rewrite); if($rewrite){ if($act){ $url .= "{$act}"; } if($param_url){ if($rewrite){ $url .= '/' . $param_url; }else{ $url .= '?' . $param_url; } } }else{ $url .= ''; if($act && $act != 'index'){ $url .= "?act={$act}"; if($param_url){ $url .= '&' . $param_url; } }else{ if($param_url){ if($rewrite){ $url .= '/' . $param_url; }else{ $url .= '?' . $param_url; } } } } return $url; } static function select($name, $options, $default=''){ $html = ''; $html .= "<select name=\"$name\">"; foreach($options as $k=>$v){ $k = trim($k); $sel = strcmp($k, $default)==0? ' selected="selected"' : ''; $html .= "<option value=\"$k\"$sel>$v</option>"; } $html .= "</select>\n"; return $html; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Form.php
framework/Form.php
<?php class Form{ private $m; private $html = ''; function __construct($m, $action='', $method='POST'){ $this->m = $m; $this->action = $action; $this->method = $method; $this->html .= <<<HTML <script type="text/javascript"> $(document).ready(function(){ $('input.datetimepicker').datetimepicker({ timeText: '', hourText: '时', minuteText: '分', //showSecond: true, showMinute: true, dateFormat: 'yy-mm-dd', timeFormat: 'hh:mm:00' }); }) </script> HTML; } function hidden($name){ $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <input type="hidden" name="$field" value="$val" />\n HTML; } function text($name, $label=false){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10"> <p class="form-control-static">$val</p> </div> </div>\n HTML; } function input($name, $label=false, $placeholder='', $tag_attrs=array()){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10"> <input type="text" class="form-control" id="$id" name="$field" value="$val" /> <span class="help-block">$placeholder</span> </div> </div>\n HTML; } function textarea($name, $label=false, $placeholder='', $tag_attrs=array()){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $tags = ''; foreach($tag_attrs as $k=>$v){ $tags .= " $k=\"$v\""; } $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10"> <textarea class="form-control" name="$field" id="$id"$tags>$val</textarea> </div> </div>\n HTML; } function submit($text='Submit'){ $this->html .= <<<HTML <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">$text</button> </div> </div>\n HTML; } function render(){ echo <<<HTML <form action="{$this->action}" method="{$this->method}" class="form-horizontal" role="form">\n HTML; echo "\n"; echo $this->html; echo '</form>'; echo "\n"; } function radio($name, $label=false, $options=array()){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10">\n HTML; foreach($options as $k=>$v){ $s = ''; if($k == $val){ $s = ' checked="checked"'; } $this->html .= <<<HTML <label class="radio-inline"> <input type="radio" id="$id" name="$field" value="$k"$s /> $v </label>\n HTML; } $this->html .= <<<HTML </div> </div>\n HTML; } function select($name, $label, $options=array()){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10"> <select name="$field" class="form-control">\n HTML; foreach($options as $k=>$v){ $s = ''; if($k == $val){ $s = ' selected="selected"'; } $this->html .= <<<HTML <option value="$k"$s>$v</option>\n HTML; } $this->html .= <<<HTML </select> </div> </div>\n HTML; } function datetime($name, $label){ $id = "input_$name"; $field = "form[$name]"; $val = htmlspecialchars($this->m->$name); $this->html .= <<<HTML <div class="form-group"> <label for="$id" class="col-sm-2 control-label">$label</label> <div class="col-sm-10"> <input type="text" class="form-control datetimepicker" id="$id" name="$field" value="$val" /> <span class="help-block">$placeholder</span> </div> </div>\n HTML; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/MasterWorker.php
framework/MasterWorker.php
<?php /// @require Logger include_once(dirname(__FILE__) . '/mw/iphp_MW_Link.php'); include_once(dirname(__FILE__) . '/mw/iphp_MW_Master.php'); include_once(dirname(__FILE__) . '/mw/iphp_MW_Worker.php'); include_once(dirname(__FILE__) . '/mw/iphp_MW_Manager.php'); abstract class MasterWorker { // 该方法负责生产任务, 然后调用 add_job 添加进队列中 // 运行于一个单独的进程 abstract function master(); // 每当一个 job 需要被处理时, 该方法都会被调用一次 // 运行于一个单独的进程 abstract function worker($job); function set_num_workers($num){ $this->num_workers = $num; } // 默认 300 秒 function set_max_idle_time($secs){ $this->manager->set_max_idle_time($secs); } // @param array|int|string job // 注意: 不能传对象 function add_job($job){ $this->master->add_job($job); } // 等待全部已添加的任务处理完毕 function wait(){ $this->master->wait(); } private $name = ''; private $master = null; private $manager = null; private $num_workers = 1; private $pids = array(); function __construct(){ global $argv; $this->name = basename($argv[0]); $this->manager = new iphp_MW_Manager(); $this->master = new iphp_MW_Master($this); } function run(){ $this->manager->init(); $this->start_master($this->manager); for($i=0; $i<$this->num_workers; $i++){ $this->start_worker($this->manager, $i); } try{ $this->manager->run(); }catch(Exception $e){ Logger::debug("[{$this->name}] " . $e->getMessage()); } // 等待全部子进程结束 $stime = microtime(1); while(pcntl_wait($status) > 0){ usleep(10 * 1000); $wait_secs = microtime(1) - $stime; if($wait_secs > 10 || $wait_secs < -10){ Logger::debug("[{$this->name}] wait to long, force to kill all processes"); foreach($this->pids as $pid){ posix_kill($pid, SIGKILL); } break; } } } private function start_master($manager){ $pid = pcntl_fork(); if($pid < 0){ // }else if($pid > 0){ $this->pids[] = $pid; #Logger::debug("[{$this->name}] fork child pid: $pid"); }else{ try{ $this->master->run($manager); }catch(Exception $e){ Logger::debug("[{$this->name}] " . $e->getMessage()); } exit(0); // 显式的 exit 子进程 } } private function start_worker($manager, $id){ $pid = pcntl_fork(); if($pid < 0){ // }else if($pid > 0){ $this->pids[] = $pid; #Logger::debug("[{$this->name}] fork child pid: $pid"); }else{ try{ $worker = new iphp_MW_Worker($this); $worker->id = $id; $worker->run($manager); }catch(Exception $e){ #Logger::debug("[{$this->name}] " . $e->getMessage()); } exit(0); // 显式的 exit 子进程 } } } /* ### Usage: include_once(dirname(__FILE__) . '/MasterWorker.php'); class MyMasterWorker extends MasterWorker { function master(){ for($i=0; $i<500; $i++){ $this->add_job($i); } } function worker($job){ sleep(1); // ... return true; } } $mw = new MyMasterWorker(); $mw->set_num_workers(2); $mw->run(); */ /* 实现方式: 多进程之间使用 socket 进行通信. 1. 首先启动 Manager, 其创建一个 tcp server, 监控于随机端口. 2. 启动 Worker 3. 启动 Master 4. Master 逻辑 * 使用 socket_select 接受 Master 和 Worker 的连接, 连接成功后, 进行握手, 确定 socket 的角色(Master/Worker) * 接收 Master 发来的 job, 转发给空闲的 Worker, 如果所有 Worker 忙, 等到有一个空闲为止 * 接收 Worker 发来的 result, 更新任务计数, Worker 状态等 * 当所有 job 处理完毕后, Master 结束, 退出. */
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/iphp_Router.php
framework/iphp_Router.php
<?php class iphp_Router { static function route(){ foreach(App::include_paths() as $path){ $base = $path['base']; $action = $path['action']; $controller = self::load_controller($base, $action); if($controller){ if(strpos($base, '/index') === strlen($base) - 6){ $base = substr($base, 0, strlen($base) - 6); } $controller->module = ($base == 'index')? '' : $base; break; } } if(!$controller){ $path = base_path(); Logger::trace("No route for $path!"); throw new App404Exception(); } return array($base, $controller, $action); } private static function load_controller($base, $action){ $dir = APP_PATH . '/controllers/' . $base; $file = $dir . '.php'; #echo join(', ', array($base, $action, $file)) . "\n"; if(file_exists($file)){ include($file); $ps = explode('/', $base); $controller = ucfirst($ps[count($ps) - 1]); $cls = "{$controller}Controller"; if(!class_exists($cls)){ throw new Exception("Controller $cls not found!"); } $ins = new $cls(); $found = false; if(method_exists($ins, $action)){ $ins->action = $action; $found = true; } if($found){ Logger::trace("Controller: $file"); return $ins; } } return false; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Logger.php
framework/Logger.php
<?php class Logger{ private static $level = 0; private static $logs = array(); private static $level_map = array( 1 => 'FATAL', 2 => 'ERROR', 3 => 'WARN', 4 => 'INFO', 5 => 'DEBUG', 6 => 'TRACE', 7 => 'ALL', ); private static $max_level = 7; private static $dump = 0; private static $config; private static $escape = true; private static $showip = true; const DUMP_FILE = 1; const DUMP_HTML = 2; public function __construct(){ throw new Exception("Static class"); } static function escape($yesno){ self::$escape = $yesno; } static function showip($yesno){ self::$showip = $yesno; } static function init($config=array()){ if(!isset($config['level'])){ self::$level = self::$max_level; }else if($config['level'] == '*' || strcasecmp($config['level'], 'all') === 0){ self::$level = self::$max_level; }else{ foreach(self::$level_map as $k=>$v){ if($v === strtoupper($config['level'])){ self::$level = $k; break; } } } if(!isset($config['dump'])){ $config['dump'] = 'file'; $config['files']['ALL'] = 'php://stdout'; } if(isset($config['dump'])){ $ps = explode('|', $config['dump']); if(in_array('file', $ps)){ self::$dump |= self::DUMP_FILE; } if(in_array('html', $ps)){ self::$dump |= self::DUMP_HTML; } if(self::$dump & self::DUMP_FILE){ if(!isset($config['files'])){ $config['files'] = array(); } foreach($config['files'] as $k=>$v){ $k = strtoupper($k); $config['files'][$k] = $v; } } } self::$config = $config; } private static function write($level, $msg){ if($level > self::$level){ return; } $log = new stdClass(); $log->time = microtime(true); $log->level = $level; $log->msg = $msg; if(self::$dump & self::DUMP_HTML){ self::$logs[] = $log; } if(self::$dump & self::DUMP_FILE){ self::write_file($log); } } private static function write_file($log){ $filename = null; foreach(self::$level_map as $level=>$name){ if($log->level <= $level && isset(self::$config['files'][$name])){ $filename = self::$config['files'][$name]; break; } } // TODO: client_ip if($filename){ $level = self::$level_map[$log->level]; list($sec, $usec) = explode('.', $log->time); $usec = substr(sprintf('%03d', $usec), 0, 3); $time = date("Y-m-d H:i:s.{$usec}", $sec); $msg = $log->msg; if(self::$escape){ $msg = preg_replace('/[ \r\n\t]*\n[ \r\n\t]*/', ' ', $msg); $msg = preg_replace('/[ \r\n\t]+/', ' ', $msg); } if(self::$showip){ if($_SERVER["HTTP_CLIENT_IP"] && $_SERVER["HTTP_CLIENT_IP"]!='0.0.0.0'){ $cip = $_SERVER["HTTP_CLIENT_IP"]; }else if($_SERVER["HTTP_X_FORWARDED_FOR"] && $_SERVER["HTTP_X_FORWARDED_FOR"]!='0.0.0.0'){ $cip = $_SERVER["HTTP_X_FORWARDED_FOR"]; }else if($_SERVER["REMOTE_ADDR"] && $_SERVER["REMOTE_ADDR"]!='0.0.0.0'){ $cip = $_SERVER["REMOTE_ADDR"]; }else{ $cip = "0.0.0.0"; } $cip = explode(',', $cip); $cip = trim($cip[count($cip) - 1]); $cip = " [{$cip}]"; }else{ $cip = ''; } $bt = debug_backtrace(false); $c_file = basename($bt[2]['file']); $c_line = $bt[2]['line']; $line = sprintf("%s [%-5s]$cip [%s:%s] %s\n", $time, $level, $c_file, $c_line, $msg); file_put_contents($filename, $line, FILE_APPEND); @chmod($filename, 0666); } } static function trace($msg){ self::write(6, $msg); } static function debug($msg){ self::write(5, $msg); } static function info($msg){ self::write(4, $msg); } static function warn($msg){ self::write(3, $msg); } static function error($msg){ self::write(2, $msg); } static function fatal($msg){ self::write(1, $msg); } static function dump(){ if(!(self::$dump & self::DUMP_HTML)){ return; } echo <<<HTML <div style="clear: both;"></div> <table width="100%" id="iphp_log_console" border="1" style="border-collapse: collapse;"> <tr style="background: #ccc;"> <th>Timestamp</th> <th>Level</th> <th>Time</th> <th>Message</th> </tr> HTML; foreach(self::$logs as $log){ // APP_TIME_START defined in iphp.php $ts = intval(($log->time - APP_TIME_START) * 1000); $level = self::$level_map[$log->level]; list($sec, $usec) = explode('.', $log->time); $usec = sprintf('%03d', $usec); $time = date("Y-m-d H:i:s.{$usec}", $sec); $msg = nl2br(htmlspecialchars($log->msg)); echo <<<HTML <td width="80" style="text-align: center;" class="timestamp">{$ts}</td> <td width="60" style="text-align: center;" class="level">{$level}</td> <td width="160" style="text-align: center;" class="time">{$time}</td> <td class="msg">{$msg}</td> </tr> HTML; } echo "</table>\n\n"; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Model.php
framework/Model.php
<?php class Model { static $table_name = false; static function db(){ return Db::instance(); } static function table(){ if(static::$table_name === false){ $table_name = get_called_class(); $table_name{0} = strtolower($table_name{0}); static::$table_name = $table_name; } return static::$table_name; } function __construct($table_name=null){ if($table_name === null && static::$table_name === false){ $table_name = self::table(); } if($table_name){ static::$table_name = $table_name; } } function __get($name){ if(!property_exists($this, $name) && $this->id && strpos($name, '_id') !== strlen($name) - 3){ $cls = ucfirst($name); if(property_exists($this, $name . '_id')){ $val = $this->{$name . '_id'}; $this->$name = $cls::get($val); }else{ $this->$name = null; } } return $this->$name; } static function get($id){ $row = Db::load(static::table(), $id); if(!$row){ return null; } return self::_model($row); } // 返回以 id 作为 key, value 是对象的关联数组. static function get_by_ids($ids){ if(is_array($ids) && count($ids) == 0){ return array(); } $in = Db::build_in_string($ids); $where = "id in ($in)"; $tmp = self::find(0, count($ids), $where); $ret = array(); // 要求顺序,所以重新组织一便 foreach($ids as $id){ foreach($tmp as $v){ if($v->id == $id){ $ret[$v->id] = $v; break; } } } return $ret; } private static function _model($row){ $m = new static(); foreach($row as $k=>$v){ $m->$k = $v; } return $m; } static function all(){ $table = self::table(); $ret = array(); $sql = "select * from $table order by id"; $rows = Db::find($sql); foreach($rows as $k=>$v){ $ret[] = self::_model($v); } return $ret; } static function paginate($page, $size, $where='', $order=''){ if($page < 1){ $page = 1; } $start = ($page - 1) * $size; if(strlen($where)){ $where = "where 1 and $where"; } if(strlen($order)){ $order = "order by $order"; } $start = intval($start); $size = intval($size); $limit = "limit $start, $size"; $table = self::table(); $ds = array(); $sql = "select count(*) from $table $where"; $ds['total'] = Db::count($sql); $sql = "select * from $table $where $order $limit"; $ds['items'] = Db::find($sql); foreach($ds['items'] as $k=>$v){ $ds['items'][$k] = self::_model($v); } return $ds; } static function save($attrs){ $attrs = Db::save_row(self::table(), $attrs); $ret = self::get($attrs['id']); if(!$ret){ throw new Exception("无法写入数据库"); } return $ret; } function update($attrs){ $tmp = $attrs; $ret = Db::update_row(self::table(), $this->id, $attrs); foreach($tmp as $k=>$v){ $this->$k = $v; } return $ret; } static function delete($id){ return Db::delete_row(self::table(), $id); } static function deleteByWhere($where){ return self::delete_by_where($where); } static function delete_by_where($where){ $table = self::table(); $sql = "delete from $table where 1"; if($where){ $sql .= " and $where"; } return Db::query($sql); } static function getBy($field, $val){ return self::get_by($field, $val); } static function get_by($field, $val){ $table = self::table(); $row = Db::load($table, $val, $field); if(!$row){ return null; } return self::_model($row); } static function find($start, $size, $where='', $order=''){ if(strlen($where)){ $where = "where 1 and $where"; } if(strlen($order)){ $order = "order by $order"; } $start = intval($start); $size = intval($size); $limit = "limit $start, $size"; $table = self::table(); $sql = "select * from $table $where $order $limit"; $ret = Db::find($sql); foreach($ret as $k=>$v){ $ret[$k] = self::_model($v); } return $ret; } static function findOne($where='', $order=''){ return self::find_one($where, $order); } static function find_one($where='', $order=''){ $rs = self::find(0, 1, $where, $order); if($rs){ return $rs[0]; } return null; } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/Mysql_i.php
framework/Mysql_i.php
<?php /** * MySQL 数据库操作工具类, 方便数据库操作. * 示例见底部注释. * @author: wuzuyang@gmail.com */ class Mysql_i{ var $conn; var $query_list = array(); public $query_count = 0; var $readonly = false; private $dbname = ''; private $tranx_stime = 0; private $tranx_queries = 0; public function __construct($c){ if(!isset($c['port'])){ $c['port'] = '3306'; } $this->dbname = $c['dbname']; $this->conn = @mysqli_connect($c['host'], $c['username'], $c['password'], $c['dbname'], $c['port']); if(!$this->conn){ Logger::error('connect db error: ' . mysqli_connect_error()); throw new Exception('connect db error'); } // $this->conn = new mysqli($c['host'], $c['username'], $c['password'], $c['dbname'], $c['port']); // if($this->conn->connect_error){ // throw new Exception('connect db error'); // } if($c['charset']){ $this->conn->set_charset($c['charset']); } } public static function is_write_query($sql){ $sql = trim($sql); if(strcasecmp($sql, 'begin') == 0){ return true; } return (bool) @preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql); } /** * 执行 mysqli_query 并返回其结果. */ public function query($sql){ if($this->readonly){ if(self::is_write_query($sql)){ throw new Exception("write operation is not allowed on readonly db!"); } } $stime = microtime(true); $result = $this->conn->query($sql); $this->query_count ++; if($result === false){ Logger::error(mysqli_error($this->conn)." in SQL: $sql"); if(defined('ENV') && ENV == 'dev'){ throw new Exception(mysqli_error($this->conn)." in SQL: $sql"); }else{ throw new Exception('db error'); } } if($this->tranx_stime){ $this->tranx_queries ++; } $etime = microtime(true); $time = ($etime - $stime) * 1000; $time_s = number_format($time, 2); $ro = $this->readonly? '[RO]' : '[RW]'; $log = "{$this->dbname} {$ro} {$time_s} $sql"; if(defined('ENV') && ENV == 'dev'){ $this->query_list[] = $log; } #Logger::debug($log); if($time > 200){ Logger::debug($log); } return $result; } function affected_rows(){ return $this->conn->affected_rows; } /** * 执行 SQL 语句, 返回结果的第一条记录(是一个对象). */ public function get($sql, $type='object'){ $result = $this->query($sql); if($type == 'object'){ $row = mysqli_fetch_object($result); }else{ $row = mysqli_fetch_assoc($result); } if($row){ return $row; }else{ return null; } } /** * 返回查询结果集, 以 key 为键组织成关联数组, 每一个元素是一个对象. * 如果 key 为空, 则将结果组织成普通的数组. */ public function find($sql, $key=null, $type='object'){ $data = array(); $result = $this->query($sql); if($type == 'object'){ while($row = mysqli_fetch_object($result)){ if(!empty($key)){ $data[$row->{$key}] = $row; }else{ $data[] = $row; } } }else{ while($row = mysqli_fetch_assoc($result)){ if(!empty($key)){ $data[$row[$key]] = $row; }else{ $data[] = $row; } } } return $data; } public function last_insert_id(){ return $this->conn->insert_id; } /** * 执行一条带有结果集计数的 count SQL 语句, 并返该计数. */ public function count($sql){ return $this->get_num($sql); } public function get_num($sql){ $row = $this->get($sql, 'array'); if($row){ $row = array_values($row); return (int)$row[0]; }else{ return 0; } } /** * 开始一个事务. */ public function begin(){ $this->tranx_stime = microtime(1); $this->tranx_queries = 0; return $this->conn->query("begin"); } /** * 提交一个事务. */ public function commit(){ $etime = microtime(true); $time = ($etime - $this->tranx_stime) * 1000; if($time > 1000){ $bt = debug_backtrace(false); $c_file = basename($bt[5]['file']); $c_line = $bt[5]['line']; $time_s = number_format($time, 2); Logger::debug("{$c_file}:{$c_line} long transaction: $time_s ms, queries: {$this->tranx_queries}"); } $this->tranx_stime = 0; $this->tranx_queries = 0; return $this->conn->query("commit"); } /** * 回滚一个事务. */ public function rollback(){ $this->tranx_stime = 0; $this->tranx_queries = 0; return $this->conn->query("rollback"); } /** * 获取指定编号的记录. * @param int $id 要获取的记录的编号. * @param string $field 字段名, 默认为'id'. */ function load($table, $id, $field='id'){ $id = $this->escape($id); $sql = "select * from `{$table}` where `{$field}`='{$id}' limit 1"; $row = $this->get($sql); return $row; } /** * 保存一条记录, 调用后, id被设置. * @param object $row */ function save($table, $row){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); $sql = "insert into `{$table}` set $sqlA"; $ret = $this->query($sql); if(is_object($row)){ if(!$row->id){ $row->id = $this->last_insert_id(); } }else if(is_array($row)){ if(!$row['id']){ $row['id'] = $this->last_insert_id(); } } return $row; } /** * 保存一条记录, 调用后, id被设置. * @param object $row */ function replace($table, $row){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); $sql = "replace into `{$table}` set $sqlA"; $ret = $this->query($sql); if(is_object($row)){ $row->id = $this->last_insert_id(); }else if(is_array($row)){ $row['id'] = $this->last_insert_id(); } return $row; } /** * 更新$arr[id]所指定的记录. * @param array $row 要更新的记录, 键名为id的数组项的值指示了所要更新的记录. * @return int 影响的行数. * @param string $field 字段名, 默认为'id'. */ function update($table, $row, $field='id'){ $row = $this->escape($row); $sqlA = array(); foreach($row as $k=>$v){ if($v === NULL){ $sqlA[] = "`$k` = NULL"; }else{ $sqlA[] = "`$k` = '$v'"; } } $sqlA = join(',', $sqlA); if(is_object($row)){ $id = $row->{$field}; }else if(is_array($row)){ $id = $row[$field]; } $sql = "update `{$table}` set $sqlA where `{$field}`='$id'"; return $this->query($sql); } /** * 删除一条记录. * @param int $id 要删除的记录编号. * @return int 影响的行数. * @param string $field 字段名, 默认为'id'. */ function remove($table, $id, $field='id'){ $id = $this->escape($id); $sql = "delete from `{$table}` where `{$field}`='{$id}'"; return $this->query($sql); } function escape($val){ if($val === NULL){ // }else if(is_object($val) || is_array($val)){ $val = $this->escape_row($val); }else if(is_string($val)){ $val = $this->conn->real_escape_string($val); } return $val; } function escape_row($row){ if(is_object($row)){ foreach($row as $k=>$v){ $row->$k = $this->escape($v); } }else if(is_array($row)){ foreach($row as $k=>$v){ $row[$k] = $this->escape($v); } } return $row; } function escape_like_string($str){ $str = $this->escape($str); $find = array('%', '_'); $replace = array('\%', '\_'); $str = str_replace($find, $replace, $str); return $str; } } /* 示例: // file: inc.php, 所有需要数据库连接的代码都include该文件 include('Mysql_i.php'); $conf= array( 'host' => 'localhost', 'dbname' => 'database1', 'username' => 'test', 'password' => '123456', ); $db = new Mysql_i($conf); // app.php include('inc.php'); // 把所有的行当做对象返回. $rows = $db->find("select * from table"); foreach($rows as $r){ echo $r->id . ' ' . $r->name; } // 计数, 注意SQL文句中的count(*) $count = $db->count("select count(*) from table"); // 插入数据 $db->query("insert into ..."); */
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/mw/iphp_MW_Manager.php
framework/mw/iphp_MW_Manager.php
<?php class iphp_MW_Manager { public $link = null; private $name = ''; private $master_link = null; private $master_wait = false; private $master_finished = false; private $workers = array(); private $job_id = 1; private $jobs = array(); private $quit = false; private $job_pending = 0; function __construct(){ global $argv; $this->name = basename($argv[0]); } function init(){ declare (ticks = 1); pcntl_signal(SIGTERM, array($this, 'sig_term')); pcntl_signal(SIGINT, array($this, 'sig_term')); $this->link = new iphp_MW_Link(); $this->link->listen('127.0.0.1', 0); } function run(){ while(!$this->quit){ declare (ticks = 1); // 告诉PHP编译器, 这里可以插入中断(signal)检查语句 if($this->loop_once() === false){ break; } } foreach($this->workers as $worker){ $worker['link']->send('quit'); $worker['link']->close(); } $this->link->close(); if($this->master_link){ $this->master_link->close(); } //Logger::debug("[{$this->name}] manager quit"); } function sig_term($sig){ $this->quit = true; } private function dispatch_jobs(){ foreach($this->workers as &$worker){ if(!$this->jobs){ break; } if($worker['job_pending'] == 0){ $job = array_shift($this->jobs); $worker['job_pending'] ++; $worker['link']->send('job', $job); } } } // 如果 300s 内 master/worker 都空闲, 则认为系统异常, 退出 private $max_idle_time = 300; private $last_active_time = 0; function set_max_idle_time($secs){ $this->max_idle_time = $secs; } private function loop_once(){ $this->dispatch_jobs(); $read = array(); $write = array(); $except = array(); $read[] = $this->link->sock; if($this->master_link){ // 如果还有任务未处理, 则不再生产新任务(忽略 master_link 的消息) if(!$this->jobs){ $read[] = $this->master_link->sock; } } foreach($this->workers as $worker){ $read[] = $worker['link']->sock; } #var_dump($read); $ret = @socket_select($read, $write, $except, 1, 200*1000); if($ret === false){ return false; } // 异常空闲检测 if($this->last_active_time === 0){ $this->last_active_time = time(); } if($ret === 0){ // timeout if(time() - $this->last_active_time > $this->max_idle_time){ Logger::info("[{$this->name}] master/workers idle too long, force quit"); return false; } }else{ $this->last_active_time = time(); } foreach($read as $sock){ if($sock == $this->link->sock){ $this->proc_connect(); }else if($sock == $this->master_link->sock){ $this->proc_master(); }else{ $this->proc_worker($sock); } } if($this->master_wait && $this->job_pending == 0){ $this->master_wait = false; //Logger::debug("[{$this->name}] wait finish"); $this->master_link->send('ok'); } if($this->master_finished && $this->job_pending == 0){ $this->quit = true; } } private function proc_master(){ $ret = $this->master_link->read(); if(!$ret){ #Logger::debug("[{$this->name}] master closed"); $this->master_link->close(); $this->master_link = null; $this->master_finished = true; return; } while(1){ $req = $this->master_link->recv(false); if(!$req){ break; } if($req['type'] == 'job'){ $data = $req['data']; $job = array( 'id' => $this->job_id ++, 'time' => sprintf('%.3f', microtime(1)), 'data' => $data, ); $this->jobs[] = $job; $this->job_pending ++; #Logger::debug("[{$this->name}] new job: " . json_encode($job)); }else if($req['type'] == 'wait'){ //Logger::debug("[{$this->name}] receive wait"); $this->master_wait = true; } } } private function proc_worker($sock){ foreach($this->workers as $index=>&$worker){ if($worker['link']->sock == $sock){ $this->proce_worker_one($index, $worker); break; } } } private function proce_worker_one($index, &$worker){ $link = $worker['link']; $ret = $link->read(); if(!$ret){ //Logger::debug("[{$this->name}] worker closed"); unset($this->workers[$index]); return; } while(1){ $req = $link->recv(false); if(!$req){ break; } if($req['type'] == 'result'){ $job = $req['data']; $worker['job_pending'] --; $this->job_pending --; $use_time = sprintf('%.3f', microtime(1) - $job['time']); #Logger::debug("[{$this->name}] finish job: {$job['id']}, use_time: $use_time, result: " . json_encode($job['result'])); } } } private function proc_connect(){ $link = $this->link->accept(); if(!$link){ throw new Exception("accept failed"); } $req = $link->recv(); if($req['type'] == 'role'){ if($req['data'] == 'master'){ #Logger::debug("[{$this->name}] master connected from {$link->ip}:{$link->port}"); $this->master_link = $link; $link->send('ok'); } if($req['data'] == 'worker'){ #Logger::debug("[{$this->name}] worker connected from {$link->ip}:{$link->port}"); $this->workers[] = array( 'link' => $link, 'job_pending' => 0, ); $link->send('ok'); } } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/mw/iphp_MW_Link.php
framework/mw/iphp_MW_Link.php
<?php class iphp_MW_Link { public $sock = null; public $ip = '127.0.0.1'; public $port = -1; function listen($ip, $port){ $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($sock, $ip, $port); socket_listen($sock); socket_getsockname($sock, $addr, $port); $this->sock = $sock; $this->ip = $addr; $this->port = $port; #Logger::debug("server listen at {$this->ip}:{$this->port}"); return true; } function connect($ip, $port){ $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); if(!@socket_connect($sock, $ip, $port)){ return false; } $this->sock = $sock; $this->ip = $ip; $this->port = $port; #Logger::debug("connected to {$ip}:{$port}"); return true; } function accept(){ $sock = @socket_accept($this->sock); if(!$sock){ return null; } socket_getpeername($sock, $addr, $port); $link = new iphp_MW_Link(); $link->sock = $sock; $link->ip = $addr; $link->port = $port; return $link; } function close(){ if($this->sock){ @socket_shutdown($this->sock); socket_close($this->sock); $this->sock = null; } } private $recv_buf = ''; function send($type, $data=null){ $msg = array( 'type' => $type, 'data' => $data, ); $buf = json_encode($msg) . "\n"; $ret = @socket_write($this->sock, $buf); return $ret; } // 从网络中读数据 function read(){ $buf = @socket_read($this->sock, 8*1024); if($buf === false){ return false; } $this->recv_buf .= $buf; return strlen($buf); } /** * 尝试读取一个完整的报文, 返回 * false: 出错 * null: 报文未接收完毕, 应该继续调用 read() * array: {type: '', data: mixed} */ function recv($block=true){ while(1){ $pos = strpos($this->recv_buf, "\n"); if($pos === false){ if($block){ $ret = $this->read(); if($ret === false){ return false; }else if($ret === 0){ // TODO: return null; } continue; }else{ return null; } } $pos += 1; $str = substr($this->recv_buf, 0, $pos); $this->recv_buf = substr($this->recv_buf, $pos); $ret = @json_decode($str, true); return $ret; } } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/mw/iphp_MW_Worker.php
framework/mw/iphp_MW_Worker.php
<?php class iphp_MW_Worker { public $id = ''; public $link = null; private $mw = null; private $name = ''; function __construct($mw){ global $argv; $this->name = basename($argv[0]); $this->mw = $mw; } function init($ip, $port){ $this->link = new iphp_MW_Link(); if(!$this->link->connect($ip, $port)){ throw new Exception("could not connect to manager"); } $this->link->send('role', 'worker'); $resp = $this->link->recv(); if(!$resp){ throw new Exception("manager gone"); } if($resp['type'] == 'ok'){ //Logger::debug("[{$this->name}] worker[{$this->id}] started"); }else{ throw new Exception("bad response"); } } function run($manager){ $this->init($manager->link->ip, $manager->link->port); while(1){ $req = $this->link->recv(); if(!$req){ break; } if($req['type'] == 'quit'){ #Logger::debug("[{$this->name}] receive quit"); break; } $job = $req['data']; #Logger::debug("[{$this->name}] process job: " . json_encode($job)); // process job... #sleep(mt_rand(1, 2)); $error = ''; try{ $ret = $this->mw->worker($job['data']); }catch(Exception $e){ $ret = false; $error = $e->getMessage(); Logger::error("[{$this->name}] worker throw exception: " . $e->getMessage()); } $result = array( 'id' => $job['id'], 'time' => $job['time'], 'error' => $error, 'result' => $ret, ); $ret = $this->link->send('result', $result); if(!$ret){ Logger::debug("[{$this->name}] worker[{$this->id}] send result error."); break; } } //Logger::debug("[{$this->name}] worker[{$this->id}] quit"); } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/mw/iphp_MW_Master.php
framework/mw/iphp_MW_Master.php
<?php class iphp_MW_Master { public $link = null; private $mw = null; private $name = ''; function __construct($mw){ global $argv; $this->name = basename($argv[0]); $this->mw = $mw; } function init($ip, $port){ $this->link = new iphp_MW_Link(); $this->link->connect($ip, $port); $this->link->send('role', 'master'); $resp = $this->link->recv(); if(!$resp){ throw new Exception("manager gone"); } if($resp['type'] == 'ok'){ //Logger::debug("[{$this->name}] master started"); }else{ throw new Exception("bad response"); } } function add_job($job){ if(is_object($job)){ throw new Exception("job must not be PHP object!"); } $ret = $this->link->send('job', $job); if(!$ret){ throw new Exception("manager gone, failed to add job"); } } function wait(){ //Logger::debug("[{$this->name}] send wait"); $ret = $this->link->send('wait'); if(!$ret){ throw new Exception("manager gone, failed to wait"); } $resp = $this->link->recv(); if(!$resp){ throw new Exception("manager gone"); } if($resp['type'] == 'ok'){ //Logger::debug("[{$this->name}] wait return ok"); }else{ Logger::debug("[{$this->name}] wait return error: " . json_encode($resp)); } } function run($manager){ $this->init($manager->link->ip, $manager->link->port); try{ $this->mw->master(); }catch(Exception $e){ Logger::error("[{$this->name}] master throw exception: " . $e->getMessage()); } $this->wait(); //Logger::debug("[{$this->name}] master quit"); // 当空任务时, master 会立即退出, 导致 woker 启动过程失败, // 虽然无影响, 但最好让 worker 启动成功后正常退出. 所以在这里等待一下. usleep(200 * 1000); } }
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/framework/mw/test.php
framework/mw/test.php
<?php include_once(dirname(__FILE__) . '/../Logger.php'); Logger::init(); include_once(dirname(__FILE__) . '/../MasterWorker.php'); class MyMasterWorker extends MasterWorker { function master(){ for($i=0; $i<30; $i++){ #Logger::debug("add job $i"); $this->add_job($i); #$this->wait(); // 如果每添加一个任务便 wait 的话, 将无法实现并发! #Logger::debug(""); } Logger::debug("master added all $i jobs"); // 当需要在确保所有任务处理完毕后再做其它操作时, 才需要调用 wait $this->wait(); // ... Logger::debug("all job done"); } function worker($job){ if(mt_rand(0, 10) == 0){ throw new Exception('worker exception'); } usleep(mt_rand(2, 6) * 100 * 1000); // ... if(function_exists('posix_getpid')){ $pid = posix_getpid(); }else{ $pid = 0; } Logger::debug("[$pid] process job: " . json_encode($job)); return true; } } $mw = new MyMasterWorker(); $mw->set_num_workers(3); $mw->set_max_idle_time(2); $mw->run();
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false
ideawu/iphp
https://github.com/ideawu/iphp/blob/47d322cd119dcbe5e5f246146c1bfb6d440fe51b/demo/index.php
demo/index.php
<?php error_reporting(E_ALL & ~E_NOTICE); define('APP_PATH', dirname(__FILE__) . '/app'); require_once('/data/lib/iphp/loader.php'); App::run();
php
BSD-3-Clause
47d322cd119dcbe5e5f246146c1bfb6d440fe51b
2026-01-05T05:02:00.171683Z
false