Skip to content

Instantly share code, notes, and snippets.

View Tjoosten's full-sized avatar
🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
  • 23:53 (UTC +02:00)
  • X @x0rif
View GitHub Profile
query:
sql = "SELECT * FROM users WHERE password='"+ req.body.password +"' AND WHERE email='"+ req.body.email +"";
error slack
Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE email='Topairy@gmail.com' at line 1
at Query.Sequence._packetToError (/Users/tim/WebstormProjects/untitled3/node_modules/mysql/lib/protocol/sequences/Sequence.js:48:14)
at Query.ErrorPacket (/Users/tim/WebstormProjects/untitled3/node_modules/mysql/lib/protocol/sequences/Query.js:83:18)
<!DOCTYPE html>
<html lang="nl">
<head>
<title>Contact style scoutnet.</title>
</head>
<style type="text/css">
/* body styling word alleen gebruikt voor de dummy weergave. */
body {
* 70X - Inexcusable
- 701 - Meh
- 702 - Emacs
- 703 - Explosion
- 704 - Goto Fail
- 705 - I wrote the code and missed the necessary validation by an oversight (see 795)
* 71X - Novelty Implementations
- 710 - PHP
- 711 - Convenience Store
- 712 - NoSQL
.leidingitem {
background: none repeat scroll 0 0 #fcfcfc;
border: 1px solid #d7d4cc;
border-radius: 5px;
line-height: 22px;
margin-bottom: 15px;
overflow: auto;
padding: 20px;
width: 100%;
}
<?php
/*
|--------------------------------------------------------------------------
| Application & Route Filters
|--------------------------------------------------------------------------
|
| Below you will find the "before" and "after" events for the application
| which may be used to do any work before or after a request into your
| application. Here you may also register your custom route filters.
|
<ol>
<li> Maandag
<ol>
<li> Cisco </li>
<li> C#
<ul>
<li> Toledo nakijken! </li>
</ul>
</li>
</ol>
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEWE.EEEEEEEEEEEEEEEEEEE 60 / 40355 (0%)
EEEEEEE.EEE.E.EE.E.EEEEEEEEEEEE.EEEEEEEE.EEE.E.EE.E.EEEEEEEE 120 / 40355 (0%)
EEEEEEEEEEEE.EEEEEEEEEE.EEEEEEEEEEEEEEEEEEEEEE.EEEEEEEEEEWE. 180 / 40355 (0%)
EEE.EEEEEEEEEEEEEEEEEE.EEEEEEEEEEEEEEEEEEEE.EEEEEEEEEEEEE... 240 / 40355 (1%)
.EEEEEEEEEEEEEEE.EEEEEEE.EEEEE....EEEEE.EEEEEEE.EEEEEEEE..E. 300 / 40355 (1%)
.EEEEEEE.EEEEEEEEEEEEEEEEEEEEEE.EEE.E.EE.E.EEEEEEEEEEEEEEEEE 360 / 40355 (1%)
E.EEE.EE....EE.EEEEE...........E...................E.E...E.E 420 / 40355 (1%)
E.....E...E.EEEEEEEEEEEEEEWEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 480 / 40355 (1%)
EEE.EEEEEEEEEEEE.E.EE.E.EEEEEEEEEEEEEEEEEEEEEEEEEEWEWEWEEEEE 540 / 40355 (1%)
EEE.EEEEE....EE.EEEEEEEEE.E....E........E.E.E.E...EEEE..EEEE 600 / 40355 (1%)
@Tjoosten
Tjoosten / 01_Laravel 5 Simple ACL manager_Readme.md
Created November 7, 2015 02:35 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

Psy Shell v0.6.1 (PHP 5.5.29 — cli) by Justin Hileman
>>> var_dump(factory(App\Verhuring::class)->make());
object(App\Verhuring)#838 (23) {
["table":protected]=>
string(7) "Verhuur"
["fillable":protected]=>
array(0) {
}
["connection":protected]=>
NULL
["original":protected]=> array(9) { ["id"]=> int(1) ["Start_Datum"]=> string(10) "1444608000" ["Eind_datum"]=> string(10) "1444780800" ["Groep"]=> string(4) "test" ["Email"]=> string(14) "test@gmail.com" ["Status"]=> int(0) ["GSM"]=> string(0) "" ["created_at"]=> string(19) "2015-12-02 13:22:25" ["updated_at"]=> string(19) "2015-12-02 13:22:25" }