index.php
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- #=============================
- # Safe and Secure
- #=============================
- {
- }
- {
- {
- }
- }
- #=============================
- # Itsy Bitsy Stuff
- #=============================
- #ini_set( 'display_errors', 1 );
- #=============================
- # Define Our Paths
- #=============================
- #=============================
- # Main Class
- #=============================
- require_once HD_INC . "ifthd.php";
- $ifthd = new ifthd();
- #=============================
- # Are We Banned?
- #=============================
- if ( in_array( strtolower( $ifthd->member['name'] ), $banned_users ) || ( $ifthd->member['email'] && in_array( strtolower( $ifthd->member['email'] ), $banned_emails ) ) || in_array( strtolower( $ifthd->input['ip_address'] ), $banned_ips ) )
- {
- $ifthd->skin->error('no_perm_banned');
- }
- #=============================
- # Other Junk
- #=============================
- 'article' => 'article',
- 'kb' => 'article',
- 'myaccount' => 'account',
- 'feed' => 'feed',
- 'portal' => 'portal',
- 'pages' => 'pages',
- 'news' => 'news',
- 'register' => 'register',
- 'tickets' => 'tickets',
- );
- #=============================
- # Require & Run
- #=============================
- $required = $choice[ $ifthd->input['act'] ];
- {
- $required = 'portal';
- }
- require_once HD_SRC . $required .".php";
- $run = new $required();
- $run->ifthd =& $ifthd;
- $run->auto_run();
- ?>