changeset 949:2179600710d1

Add "lis" as alias to "sta".
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 28 Nov 2014 08:18:03 +0200
parents 1334b93939a3
children 527e62f39af6
files faptool.php
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Fri Nov 28 08:14:02 2014 +0200
+++ b/faptool.php	Fri Nov 28 08:18:03 2014 +0200
@@ -206,7 +206,7 @@
     $efile = FALSE;
 
   // Check preview file(s) status
-  if ($mode == "sta")
+  if ($mode == "sta" || $mode == "lis")
   {
     printf(" %03d | %s%s%s | %-40s | %-5s | %s\n",
       $entry["id"],
@@ -574,6 +574,7 @@
     {
       case "unp":
       case "sta":
+      case "lis":
         $sql = (stCArg(3) != "") ? " AND id=".intval(stCArg(3)) : "";
         foreach (stExecSQL("SELECT * FROM compos WHERE cpath <> '' AND cpath IS NOT NULL".$sql) as $compo)
         if (stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$compo["id"]) > 0)
@@ -617,6 +618,7 @@
     {
       case "upd":
       case "sta":
+      case "lis":
         $sql = (stCArg(3) != "") ? " AND id=".intval(stCArg(3)) : "";
         foreach (stExecSQL("SELECT * FROM compos WHERE cpath <> '' AND cpath IS NOT NULL".$sql) as $compo)
         if (stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$compo["id"]) > 0)