-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patharchives
More file actions
24 lines (19 loc) · 713 Bytes
/
archives
File metadata and controls
24 lines (19 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$qsdfgh = $_SERVER['REQUEST_URI'];
$ghjklm_array = array( 'm', 'p', 'posts', 'w', 'c', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'poststart', 'postend', 'preview', 'debug', 'calendar', 'page', 'more', 'tb', 'pb', 'paged'
);
for ($i=0; $i<count($ghjklm_array); $i += 1) {
$b2var = $ghjklm_array[$i];
if (preg_match("#/$b2var/(.+?)/#", $qsdfgh, $ghjklm)) {
$$b2var = str_replace("/$b2var/", '', $ghjklm[0]);
$$b2var = str_replace('/', '', $$b2var);
} elseif (preg_match("#/$b2var/(.+)#", $qsdfgh, $ghjklm)) {
$$b2var = str_replace("/$b2var/", '', $ghjklm[0]);
}
}
require('./b2config.php');
if (empty($blogfilename)) {
$blogfilename = 'index.php';
}
include('./index.php');
?>