changeset 922:b92549a3372d

Moar work.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 27 Nov 2014 16:37:49 +0200
parents 6234816c1e43
children 36741dbb4528
files faptool.php
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Thu Nov 27 14:04:59 2014 +0200
+++ b/faptool.php	Thu Nov 27 16:37:49 2014 +0200
@@ -366,7 +366,7 @@
 stReloadSettings();
 
 // Set some globals for our benefit
-$setWidth = 75;
+$setTermWidth = 75;
 $setEntryPath = stGetSetting("entryPath");
 $setPreviewPath = stGetSetting("previewPath");
 $setPreviewURL = stGetSetting("previewURL");
@@ -378,7 +378,7 @@
     $setPreviewURL === FALSE || $setThumbDir === FALSE ||
     $setEntryPathPerms === FALSE || $setPrevPathPerms === FALSE)
 {
-  die("Some required settings not defined in mconfig.inc.php!\n");
+  die("Some required settings are not defined in mconfig.inc.php!\n");
 }
 
 
@@ -398,10 +398,10 @@
     if (stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$compo["id"]) > 0)
     {
       printf(
-        "==%'=-".($setWidth-2)."s\n".
+        "==%'=-".($setTermWidth-2)."s\n".
         sprintf("[ #%03d - %s ]", $compo["id"], substr($compo["name"], 0, 40))
         );
-      echo str_repeat("-", $setWidth)."\n";
+      echo str_repeat("-", $setTermWidth)."\n";
 
       foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$compo["id"]) as $entry)
       {
@@ -414,7 +414,7 @@
         }
       }
       echo "\n";
-      echo str_repeat("-", $setWidth)."\n";
+      echo str_repeat("-", $setTermWidth)."\n";
     }
     break;
 
@@ -431,15 +431,15 @@
         if (stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$compo["id"]) > 0)
         {
           printf(
-            "==%'=-".($setWidth-2)."s\n".
+            "==%'=-".($setTermWidth-2)."s\n".
             sprintf("[ #%03d - %s ]", $compo["id"], substr($compo["name"], 0, 40))
             );
-          echo str_repeat("-", $setWidth)."\n";
+          echo str_repeat("-", $setTermWidth)."\n";
 
           foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$compo["id"]) as $entry)
             wtHandleEntry($compo, $entry, $mode);
 
-          echo str_repeat("-", $setWidth)."\n";
+          echo str_repeat("-", $setTermWidth)."\n";
         }
         break;
 
@@ -471,7 +471,7 @@
         if (stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$compo["id"]) > 0)
         {
           printf(
-            "==%'=-".($setWidth-2)."s\n".
+            "==%'=-".($setTermWidth-2)."s\n".
             "PrevType : %s\n",
             sprintf("[ #%03d - %s ]", $compo["id"], substr($compo["name"], 0, 40)),
             $previewTypeList[$compo["preview_type"]][0]);
@@ -479,12 +479,12 @@
           printf(" %-3s | %-3s | %-40s |\n",
             "#ID", "FLG", "Entry name/author");
           
-          echo str_repeat("-", $setWidth)."\n";
+          echo str_repeat("-", $setTermWidth)."\n";
 
           foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$compo["id"]) as $entry)
             wtHandleEntryPreview($compo, $entry, $mode);
 
-          echo str_repeat("=", $setWidth)."\n\n";
+          echo str_repeat("=", $setTermWidth)."\n\n";
         }
         break;