snippets.php
changeset 8 0acb8d9a3194
parent 5 fcc1eac04772
--- a/snippets.php	Fri May 09 22:37:57 2008 -0400
+++ b/snippets.php	Mon Aug 25 12:34:26 2008 -0400
@@ -11,9 +11,10 @@
  * This script MUST be placed in an Enano installation directory.
  *****************************************************************/
 
-define('ENANOBOT_ROOT', './');
+define('ENANOBOT_ROOT', dirname(__FILE__) . '/');
 
 // load Enano for auth
+/*
 require('includes/common.php');
 if ( $session->user_level < USER_LEVEL_ADMIN )
 {
@@ -22,6 +23,7 @@
 
 $db->close();
 unset($db, $session, $paths, $template, $plugins);
+*/
 
 // We're authed.
 // Load config
@@ -63,7 +65,7 @@
   </head>
   <body>
     <h1>EnanoBot snippet management</h1>
-    <form action="enanobot-snippets.php" method="post" enctype="multipart/form-data">
+    <form action="snippets.php" method="post" enctype="multipart/form-data">
       <fieldset>
         <legend>Add a snippet</legend>
         <table border="1" cellspacing="0" cellpadding="4">