This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Ivastly\GoAopHelloWorld\Aop\ApplicationAspectKernel; | |
require_once 'vendor/autoload.php'; | |
$applicationAspectKernel = ApplicationAspectKernel::getInstance(); | |
$applicationAspectKernel->init( | |
[ | |
'appDir' => __DIR__ . '/..', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Ivastly\GoAopHelloWorld\Aop; | |
use Go\Core\AspectContainer; | |
use Go\Core\AspectKernel; | |
class ApplicationAspectKernel extends AspectKernel | |
{ | |
protected function configureAop(AspectContainer $container) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Ivastly\GoAopHelloWorld\Aop; | |
use Go\Aop\Aspect; | |
use Go\Aop\Intercept\MethodInvocation; | |
use Go\Lang\Annotation\Before; | |
class BankingAspect implements Aspect | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function createNewUser($newUsername) | |
{ | |
$start = time(); // load time calculation | |
if (!$this->isGranted('ROLE_ADMIN')) // access control | |
{ // access control | |
throw new AccessDeniedException(); // access control | |
} // access control |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function createNewUser($newUsername) | |
{ | |
$start = time(); | |
if (!$this->isGranted('ROLE_ADMIN')) | |
{ | |
throw new AccessDeniedException(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just open web.whatsapp.com, navigate to the chat with victim and run this in developer tools. Once he/she becomes online, | |
// you will be notified in console NOTE if the language of your whatsapp interface is not english, change the 'online' string on line 6 accordingly | |
setInterval(function () { | |
if ($('span[title="online"]') !== null) { | |
console.info("ONLINE: " + (new Date())); | |
} | |
}, 20000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class JMPRouter implements RouterInterface | |
{ | |
const HTTP_METHOD_DELETE3 = 'DELETE2'; | |
const HTTP_METHOD2_DELETE = 'DELETEE'; | |
const HTTP_METHOD_GET = 'GET'; | |
const HTTP_METHOD_PUT = 'PUT'; | |
const HTTP_METHOD_POST = 'POST'; | |
const HTTP_METHOD_DELETE = ' DELETE'; | |
const HTTP_METHOD_PATCH = 'PATCH'; |
NewerOlder