Mini protection
This commit is contained in:
parent
6d56f1faaf
commit
2f97f00fd5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
/nbproject/private/
|
||||
/config/config.php
|
||||
/config.php
|
||||
|
4
ajax.php
4
ajax.php
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once 'config/config.php';
|
||||
require_once 'config/color.php';
|
||||
require_once 'config.php';
|
||||
require_once 'utils.php';
|
||||
require_once 'Net/SSH2.php';
|
||||
global $servers;
|
||||
$gitstatus = 'git fetch && git status';
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once 'config/config.php';
|
||||
require_once 'config.php';
|
||||
global $servers;
|
||||
?><!doctype html>
|
||||
<html>
|
||||
|
@ -1,5 +1,16 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
if (defined('ONGITLAB') && ONGITLAB) {
|
||||
if (!isset($_SESSION['remember_user_token'])) {
|
||||
if (dirname(__FILE__) != '/') {
|
||||
header('Location: /');
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
function ansi2html($string) {
|
||||
$dictionary = array(
|
||||
'[30m' => '<span style="color:blue">',
|
Loading…
Reference in New Issue
Block a user