Browse code

Update eFic2eFic bridge and default file backups

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

Restore eFiction 3.x bridges

Clarissa Walker authored on 2026/07/23 10:30:45
Showing 1 changed files
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
+	include("includes/queries.php");
6
+	session_start( );
7
+	foreach ($_SESSION as $VarName => $Value)  { 
8
+		if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
9
+			if(strpos($VarName, "skin")) continue;
10
+			$_SESSION[$VarName] = "";
11
+			unset($_SESSION[$VarName]);
12
+			unset($_COOKIE[$VarName]);
13
+			setcookie($VarName, '', time() - 1000, '/', '', '' );
14
+		}
15
+	} 
16
+	foreach ($_COOKIE as $VarName => $Value)  { 
17
+		if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
18
+			unset($_COOKIE[$VarName]);
19
+			setcookie($VarName, "", time() - 1000, '/', '', '' );
20
+		}
21
+	} 
22
+require_once("header.php");
23
+//make a new TemplatePower object
24
+if(file_exists("$skindir/default.tpl")) $tpl = new TemplatePower( "$skindir/default.tpl" );
25
+else $tpl = new TemplatePower("default_tpls/default.tpl");
26
+if(file_exists("$skindir/listings.tpl")) $tpl->assignInclude( "listings", "./$skindir/listings.tpl" );
27
+else $tpl->assignInclude( "listings", "./default_tpls/listings.tpl" );
28
+include("includes/pagesetup.php");
29
+
30
+$output .= write_message(_ACTIONSUCCESSFUL);
31
+$tpl->assign("output", $output);
32
+$tpl->printToScreen( );
33
+?>
0 34
\ No newline at end of file