function print_modable($file) { require "config.php"; $text = $this->parse_modable(implode("", file("misc/groupware/documents/" . YAC_LANG . "/" . $file))); echo $text; if (groupware_is_admin()) { echo "<br><a href=\"index.php?mod=" . GROUPWARE_MOD_PATH . "none_admin&file=edit_html.php&what=" . $file . "\" title=\"Edit `" . $file . "'\"<img src=\"themes/{$theme}/images/modify.png\" alt=\"Edit file `" . $file . "'\"> Edit file</a>"; } }
function __option_box($file, $type) { echo "<br><div class=\"under\">"; if ($this->box_type == 1) { echo "<a href=\"index.php?mod=" . GROUPWARE_MOD_PATH . "none_project&type={$type}&id=" . eregi_replace(".xml", "", $file) . "\">Visualizza</a>"; } else { echo "<a href=\"index.php?mod=" . GROUPWARE_MOD_PATH . "none_mantainer&type={$type}&id=" . eregi_replace(".xml", "", $file) . "\">Diventa il mantainer!</a>"; } echo " <a href=\"index.php?mod=" . GROUPWARE_MOD_PATH . "none_sign_prj_man&type={$type}&id=" . eregi_replace(".xml", "", $file) . "\">Segnala cambiamenti</a>"; if (groupware_is_admin()) { echo " <span style=\"color:red\">"; echo " <a href=\"index.php?##\">Modifica</a>"; echo " <a href=\"#\" onclick=\"check('verify.php?mod=delnews&file=misc/groupware/writeable/projects/{$type}/{$file}')\">Elimina</a>"; echo "</span>"; } echo "</div><br>"; }
mode : "textareas", theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom", extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]" }); </script> '; # print title echo "<h3>Modifica configurazione: modifica di un file</h3>"; # print welcome message echo $groupware_general->welcome("Da questa comoda interfaccia potrai iniziare la personalizzazione di alcuni testi del groupware.<br>"); $formClass->openForm($_SERVER['REQUEST_URI'], false); $formClass->textarea("text", "", implode("", file($_GET['what']))); echo "<br>"; $formClass->submit("", true, "Save data"); $formClass->closeForm($_SERVER['PHP_SELF']); # if there are posting data, write data } elseif (groupware_is_admin() and isset($_POST['submit'])) { $fp = fopen($_GET['what'], "w+"); if ($fp) { fputs($fp, $_POST['text']); fclose($fp); echo "Bene, hai compiuto il tuo dovere...."; } }
theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom", extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]" }); </script> '; # print title echo "<h3>Modifica configurazione: modifica di un file</h3>"; # print welcome message echo $groupware_general->welcome("Da questa comoda interfaccia potrai iniziare la personalizzazione di alcuni testi del groupware.<br>Ricorda che il testo <strong>{YAC_SECTION}</strong> verrà <strong>automaticamente rimpiazzato</strong> con il nome della sezione di YAC.\n\t<blockquote><em>es.<br><a href=\"index.php?mod=<strong>{YAC_SECTION}</strong>none_add_app\">Add</a><br>diventerà:<br>\n\t<a href=\"index.php?mod=<strong>Groupware/</strong>none_add_app\">Add</a></em></blockquote>"); $formClass->openForm($_SERVER['REQUEST_URI'], false); $formClass->textarea("text", "", stripslashes(implode("", file("misc/groupware/documents/" . YAC_LANG . "/" . $_GET['what']))), 15); echo "<br>"; $formClass->submit("", true, "Save data"); $formClass->closeForm($_SERVER['PHP_SELF']); # if there are posting data, write data } elseif (groupware_is_admin() and isset($_POST['text'])) { $fp = fopen("misc/groupware/documents/" . YAC_LANG . "/" . $_GET['what'], "w+"); if ($fp) { $tmp = ereg_replace("{YAC_SECTION}", GROUPWARE_MOD_PATH, $_POST['text']); fputs($fp, stripslashes($tmp)); fclose($fp); echo "Hai postato:<br>" . $tmp; } }