application/controllers/single_page/login.php
Last active
April 9, 2021 21:49
-
-
Save katzueno/17325aecf98baf68f0739384854f02ce to your computer and use it in GitHub Desktop.
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 Application\Controller\SinglePage; | |
use Concrete\Controller\SinglePage\Login as CoreLogin; | |
class Login extends CoreLogin | |
{ | |
public function view($type = null, $element = 'form') | |
{ | |
$key=$this->request->query->get('key'); | |
if ($key =="curryrice") { | |
parent::view($type, $element); | |
} else { | |
$this->replace('/page_not_found'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment