| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,33 @@ |
| 1 |
+<?php |
|
| 2 |
+if(!defined("_LOGOUTCHECK")) exit( );
|
|
| 3 |
+ define("_BASEDIR", "");
|
|
| 4 |
+ include("config.php");
|
|
| 5 |
+ session_start( ); |
|
| 6 |
+ foreach ($_SESSION as $VarName => $Value) {
|
|
| 7 |
+ if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
|
|
| 8 |
+ if(strpos($VarName, "skin")) continue; |
|
| 9 |
+ $_SESSION[$VarName] = ""; |
|
| 10 |
+ unset($_SESSION[$VarName]); |
|
| 11 |
+ unset($_COOKIE[$VarName]); |
|
| 12 |
+ setcookie($VarName, '', time() - 1000, '/', '', '' ); |
|
| 13 |
+ } |
|
| 14 |
+ } |
|
| 15 |
+ foreach ($_COOKIE as $VarName => $Value) {
|
|
| 16 |
+ if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
|
|
| 17 |
+ unset($_COOKIE[$VarName]); |
|
| 18 |
+ setcookie($VarName, "", time() - 1000, '/', '', '' ); |
|
| 19 |
+ } |
|
| 20 |
+ } |
|
| 21 |
+require_once("header.php");
|
|
| 22 |
+//make a new TemplatePower object |
|
| 23 |
+if(file_exists("$skindir/default.tpl")) $tpl = new TemplatePower( "$skindir/default.tpl" );
|
|
| 24 |
+else $tpl = new TemplatePower("default_tpls/default.tpl");
|
|
| 25 |
+if(file_exists("$skindir/listings.tpl")) $tpl->assignInclude( "listings", "./$skindir/listings.tpl" );
|
|
| 26 |
+else $tpl->assignInclude( "listings", "./default_tpls/listings.tpl" ); |
|
| 27 |
+include("includes/pagesetup.php");
|
|
| 28 |
+ |
|
| 29 |
+$output .= write_message(_ACTIONSUCCESSFUL); |
|
| 30 |
+$tpl->assign("output", $output);
|
|
| 31 |
+$tpl->printToScreen( ); |
|
| 32 |
+exit( ); |
|
| 33 |
+?> |
|
| 0 | 34 |
\ No newline at end of file |