13 lines
356 B
PHP
13 lines
356 B
PHP
<?php
|
|
|
|
class Crunchbutton_Controller_Account extends Cana_Controller {
|
|
public function __construct() {
|
|
if (!c::admin()->id_admin) {
|
|
header('WWW-Authenticate: Basic realm="Crunchbutton - '.$_SERVER['PHP_AUTH_USER'].'"');
|
|
header('HTTP/1.0 401 Unauthorized');
|
|
die('unauth.');
|
|
exit;
|
|
}
|
|
c::view()->layout('layout/core');
|
|
}
|
|
} |