forked from services/mlmmj-light-web-ecg
Added display of list owners and list descriptions on index page, Added save function for list description
This commit is contained in:
@@ -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
|
||||
|
||||
# -------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user