plugins/Decir.php
changeset 6 3f66ec435f08
parent 5 6eea55374f5b
child 7 37387f84fe25
--- a/plugins/Decir.php	Wed Oct 24 18:30:03 2007 -0400
+++ b/plugins/Decir.php	Tue Nov 13 19:39:50 2007 -0500
@@ -33,6 +33,8 @@
       ));
   ');
 
+require( DECIR_ROOT . '/admincp/admin_base.php' );
+
 function decir_early_init(&$paths, &$session)
 {
   $paths->addAdminNode('Decir forum configuration', 'General settings', 'DecirGeneral');
@@ -52,6 +54,7 @@
   
   if ( getConfig('decir_version') != ENANO_DECIR_VERSION || isset($_POST['do_install_finish']) )
   {
+    chdir(DECIR_ROOT);
     require(DECIR_ROOT . '/install.php');
     return false;
   }
@@ -84,10 +87,4 @@
   
 }
 
-function page_Admin_DecirGeneral()
-{
-  global $db, $session, $paths, $template, $plugins; if($session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN) { header('Location: '.makeUrl($paths->nslist['Special'].'Administration'.urlSeparator.'noheaders')); die('Hacking attempt'); }
-  echo 'Hello world!';
-}
-
 ?>