sub.php

main 50 lines · 1.2 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php
2/* Znote AAC Sub System
3 - Used to create custom pages
4 - Place the contents of the page in /layout/sub/ folder.
5 : You don't need to include init, header or footer.
6 Its already taken care of, just write the contents you want.
7
8 Then add that page to the configuration below. Config syntax:
9 'PAGENAME' => array(
10 'file' => 'fileName.php',
11 'override' => false
12 ),
13 ................
14 There are 2 ways to view your page, by using sub.php file, or by overriding an existing default page.
15 1: yourwebiste.com/sub.php?page=PAGENAME
16 2: By having override => true, then it will load your sub file instead of the default znote aac file.
17
18*/
19
20$subpages = array(
21 // website.com/sub.php?page=blank
22 'blank' => array(
23 // layout/sub/blank.php
24 'file' => 'blank.php',
25 // false means don't run this file instead of the regular file at website.com/blank.php
26 'override' => false
27 ),
28 'recover' => array(
29 'file' => 'recover.php',
30 'override' => false
31 ),
32 'search' => array(
33 'file' => 'search.php',
34 'override' => false
35 ),
36 'houses' => array(
37 'file' => 'houses.php',
38 'override' => false
39 ),
40 'downloads' => array(
41 'file' => 'downloads.php',
42 'override' => false
43 ),
44 'loginhelp' => array(
45 'file' => 'loginhelp.php',
46 'override' => false
47 )
48);
49?>
50
Top