Theme: Integrate settings to customize the style of edit form tables (label, field, heading and row cells).

Editor: Prevent / (slashes) in clip name.
Dialplan Editor: Code cleanup, and minor adjustments for theme compatibility.
Functions: Add option to check_str() to skip string trim.
This commit is contained in:
reliberate
2016-04-07 12:00:19 -06:00
parent 87adfbae24
commit 75ec879ff9
6 changed files with 250 additions and 95 deletions
+6 -2
View File
@@ -42,11 +42,15 @@ if (count($_POST)>0) {
$clip_uuid = check_str($_POST["id"]);
$clip_name = check_str($_POST["clip_name"]);
$clip_folder = check_str($_POST["clip_folder"]);
$clip_text_start = check_str($_POST["clip_text_start"]);
$clip_text_end = check_str($_POST["clip_text_end"]);
$clip_text_start = check_str($_POST["clip_text_start"], false);
$clip_text_end = check_str($_POST["clip_text_end"], false);
$clip_desc = check_str($_POST["clip_desc"]);
$clip_order = check_str($_POST["clip_order"]);
//no slashes
$clip_name = str_replace('/', '|', $clip_name);
$clip_name = str_replace('\\', '|', $clip_name);
//sql update
$sql = "update v_clips set ";
$sql .= "clip_name = '$clip_name', ";