diff --git a/index.php b/index.php index c256802..303e2a6 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,8 @@ assign("headline", $headline); $smarty->assign("web_url", $web_url); $smarty->assign("lists", $lists_new); $smarty->assign("domain", $domain); $smarty->assign("username", $_SESSION["username"]); +$smarty->assign("loadingtime", $loadingtime); $smarty->display("index.tpl"); ?> diff --git a/info.svg b/info.svg new file mode 100644 index 0000000..1fcd24f --- /dev/null +++ b/info.svg @@ -0,0 +1 @@ + diff --git a/misc/smarty/templates_en/index.tpl b/misc/smarty/templates_en/index.tpl index dd80361..7c5c296 100644 --- a/misc/smarty/templates_en/index.tpl +++ b/misc/smarty/templates_en/index.tpl @@ -58,13 +58,19 @@ {foreach $lists as $list} - {if $list == 1} + {if $list.iamowner == 1} ✓ {$list@key} +
+ + + Description
{$list.description}

List owner(s)
{foreach $list.owners as $owner}{$owner}
{/foreach} +
+
{/if} @@ -94,18 +100,26 @@ {foreach $lists as $list} - {if $list == 0} + {if $list.iamowner == 0} ✗ {$list@key} +
+ + + Description
{$list.description}

List owner(s)
{foreach $list.owners as $owner}{$owner}
{/foreach} +
+
{/if} {/foreach} +
+ Loading time: {$loadingtime} seconds diff --git a/save_list.php b/save_list.php index 2223e3c..811807c 100644 --- a/save_list.php +++ b/save_list.php @@ -19,6 +19,7 @@ function trim_array($arr) $list_name = isset( $_POST["list_name"] ) ? $_POST["list_name"] : NULL; $prefix = isset ( $_POST["prefix"] ) ? $_POST["prefix"] : NULL; +$listdescription = isset ( $_POST["listdescription"] ) ? $_POST["listdescription"] : NULL; $new_subscribers = isset ( $_POST["subscribers"] ) ? $_POST["subscribers"] : NULL; $moderators = isset ( $_POST["moderators"] ) ? $_POST["moderators"] : NULL; @@ -158,11 +159,18 @@ if ($moderators !== NULL) } } +# Add prefix to the respective file if ($prefix !== NULL) { file_put_contents("$lists_path/$domain/$list_name/control/prefix", "$prefix"); } +# Add listdescription to the respective file +if ($listdescription !== NULL) +{ + file_put_contents("$lists_path/$domain/$list_name/control/listdescription", "$listdescription"); +} + # The following code section is for audit log only # -------------------------------------------------------------