forked from web2project/web2project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnewuser.php
48 lines (41 loc) · 1.66 KB
/
newuser.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
48
<?php /* $Id$ $URL$ */
require_once 'base.php';
require_once W2P_BASE_DIR . '/includes/config.php';
if (!isset($GLOBALS['OS_WIN'])) {
$GLOBALS['OS_WIN'] = (stristr(PHP_OS, 'WIN') !== false);
}
// tweak for pathname consistence on windows machines
require_once W2P_BASE_DIR . '/includes/main_functions.php';
require_once W2P_BASE_DIR . '/includes/db_adodb.php';
$AppUI = new CAppUI();
if (w2PgetConfig('activate_external_user_creation') != 'true') {
echo $AppUI->_('You should not access this file directly');
die();
}
$uistyle = 'web2project';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo $AppUI->_('New User Signup'); ?></title>
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo 'UTF-8'; ?>" />
<meta http-equiv="Pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="./style/<?php echo $uistyle; ?>/main.css" media="all" charset="utf-8"/>
<style type="text/css" media="all">@import "./style/<?php echo $uistyle; ?>/main.css";</style>
<link rel="shortcut icon" href="./style/<?php echo $uistyle; ?>/favicon.ico" type="image/ico" charset="utf-8"/>
</head>
<body bgcolor="#f0f0f0" onload="//document.loginform.username.focus();">
<?php include 'createuser.php'; ?>
<?php if ($AppUI->getVersion()) { ?>
<div align="center">
<span style="font-size:7pt">Version <?php echo $AppUI->getVersion(); ?></span>
</div>
<?php } ?>
<div align="center">
<?php
echo '<span class="error">' . $AppUI->getMsg() . '</span>';
?>
</div>
</body>
</html>