XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
core.php
Go to the documentation of this file.
1 <?php
20 defined('XOOPS_ROOT_PATH') or die('Restricted access');
21 
30 {
31  function eventCoreUserStart($args)
32  {
33  $op = 'main';
34  if (isset($_POST['op'])) {
35  $op = trim($_POST['op']);
36  } else if (isset($_GET['op'])) {
37  $op = trim($_GET['op']);
38  }
39  if ($op != 'login' && (empty($_GET['from']) || 'profile' != $_GET['from'])) {
40  header("location: ./modules/profile/user.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING']));
41  exit();
42  }
43  }
44 
45  function eventCoreEdituserStart($args)
46  {
47  header("location: ./modules/profile/edituser.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING']));
48  exit();
49  }
50 
51  function eventCoreLostpassStart($args)
52  {
53  $email = isset($_GET['email']) ? trim($_GET['email']) : '';
54  $email = isset($_POST['email']) ? trim($_POST['email']) : $email;
55  header("location: ./modules/profile/lostpass.php?email={$email}" . (empty($_GET['code']) ? "" : "&" . $_GET['code']));
56  exit();
57  }
58 
59  function eventCoreRegisterStart($args)
60  {
61  header("location: ./modules/profile/register.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING']) );
62  exit();
63  }
64 
65  function eventCoreUserinfoStart($args)
66  {
67  header("location: ./modules/profile/userinfo.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING']) );
68  exit();
69  }
70 
71 }
72 ?>