]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-logout.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / admin / action-logout.php
index e24b8eb249711db4031a55689dcd4568b4458b2f..b8a2b0b428f9c64e162d1949ad3a89f8f75226cf 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -47,14 +47,14 @@ ADD_DESCR('admin', __FILE__);
 
 if (REQUEST_ISSET_POST(('no'))) {
        // Do not logout now
-       LOAD_URL("admin.php");
-} elseif ((REQUEST_ISSET_POST(('yes'))) && ($GLOBALS['action'] == "logout")) {
+       redirectToUrl('admin.php');
+} elseif ((REQUEST_ISSET_POST(('yes'))) && ($GLOBALS['action'] == 'logout')) {
        // Redirect to logout link
-       LOAD_URL("modules.php?module=admin&logout=1");
+       redirectToUrl('modules.php?module=admin&logout=1');
 }
 
 // Load logout form template
-LOAD_TEMPLATE("admin_logout_form");
+LOAD_TEMPLATE('admin_logout_form');
 
 //
 ?>