-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgm-authenticate.php
47 lines (39 loc) · 2.11 KB
/
pgm-authenticate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
error_reporting(E_PARSE);
if($_GET['_SESSION'] != '' || $_POST['_SESSION'] != '' || $_COOKIE['_SESSION'] != '') { exit; }
###############################################################################
## Soholaunch(R) Site Management Tool
## Version 4.5
##
## Author: Mike Johnston [mike.johnston@soholaunch.com]
## Homepage: http://www.soholaunch.com
## Bug Reports: http://bugzilla.soholaunch.com
## Release Notes: sohoadmin/build.dat.php
###############################################################################
##############################################################################
## COPYRIGHT NOTICE
## Copyright 1999-2003 Soholaunch.com, Inc. and Mike Johnston
## Copyright 2003-2007 Soholaunch.com, Inc.
## All Rights Reserved.
##
## This script may be used and modified in accordance to the license
## agreement attached (license.txt) except where expressly noted within
## commented areas of the code body. This copyright notice and the comments
## comments above and below must remain intact at all times. By using this
## code you agree to indemnify Soholaunch.com, Inc, its coporate agents
## and affiliates from any liability that might arise from its use.
##
## Selling the code for this program without prior written consent is
## expressly forbidden and in violation of Domestic and International
## copyright laws.
###############################################################################
$this_ip = str_replace(basename(__FILE__), "", $this_ip);
if (!isset($SOHO_AUTH) || !isset($SOHO_PW) || !isset($GROUPS)) {
header("Location: http://$this_ip/pgm-secure_login.php?notice=required&pa=$pr&=SID");
exit;
}
if (!eregi("$security_code", $GROUPS)) {
header("Location: http://$this_ip/pgm-secure_login.php?notice=noaccess&pa=$pr&=SID");
exit;
}
?>