rework seed generation: this is something that really belongs in init.php
[squirrelmail.git] / plugins / squirrelspell / sqspell_functions.php
index 7f8d771d893838abaf5e9bf5936bb52984bed6f2..66adcc59fb16e232c605908e1a5981d0833cb47b 100644 (file)
@@ -63,13 +63,12 @@ function squirrelspell_setup_function() {
    */
   if (checkForJavascript()) {
 
-    global $oTemplate, $base_uri;
-    $nbsp = $oTemplate->fetch('non_breaking_space.tpl');
+    global $oTemplate, $base_uri, $nbsp;
 
     $output = addButton(_("Check Spelling"), 
                         'check_spelling', 
                         array('onclick' => 'window.open(\'' . $base_uri 
-                                         . '/plugins/squirrelspell/sqspell_interface.php\', \'sqspell\', \'status=yes,width=550,height=370,resizable=yes\')')) . $nbsp;
+                                         . 'plugins/squirrelspell/sqspell_interface.php\', \'sqspell\', \'status=yes,width=550,height=370,resizable=yes\')')) . $nbsp;
 
     return array('compose_button_row' => $output);
   }
@@ -119,7 +118,7 @@ function squirrelspell_upgrade_function() {
  * @return            void
  */
 function sqspell_makePage($title, $scriptsrc, $body){
-  global $color, $SQSPELL_VERSION;
+  global $color;
 
   if (! sqgetGlobalVar('MOD', $MOD, SQ_GET) ) {
       $MOD = 'options_main';
@@ -186,7 +185,7 @@ function sqspell_makePage($title, $scriptsrc, $body){
  * @return            void
  */
 function sqspell_makeWindow($onload, $title, $scriptsrc, $body){
-  global $color, $SQSPELL_VERSION;
+  global $color;
 
   displayHtmlHeader($title,
       ($scriptsrc ? "\n<script type=\"text/javascript\" src=\"js/$scriptsrc\"></script>\n" : ''));
@@ -799,7 +798,7 @@ function sqspell_ckMOD($rMOD){
       || strstr($rMOD, '/')
       || strstr($rMOD, '%')
       || strstr($rMOD, "\\")){
-    echo _("Cute.");
+    echo _("Invalid URL");
     exit;
   }
 }