Changeset 9789 for extensions/SmiliesSupport/admin.php
- Timestamp:
- Mar 20, 2011, 2:26:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/admin.php
r9764 r9789 15 15 16 16 $conf_smiliessupport = array( 17 isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies ',18 isset($_POST['text2']) ? $_POST['text2'] : ' 5',19 isset($_POST['text3']) ? $_POST['text3'] : 's ourire.gif',17 isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies_1', 18 isset($_POST['text2']) ? $_POST['text2'] : '6', 19 isset($_POST['text3']) ? $_POST['text3'] : 'smile.png', 20 20 ); 21 21 22 if (empty($_POST['text'])) $_POST['text'] = ':) s ourire.gif';22 if (empty($_POST['text'])) $_POST['text'] = ':) smile.png'; 23 23 24 24 $new_value_smiliessupport = implode (",", $conf_smiliessupport); … … 43 43 } 44 44 45 $template->assign(array('TEXT1_VALUE' => $conf_smiliessupport[0])); 46 $template->assign(array('TEXT2_VALUE' => $conf_smiliessupport[1])); 47 $template->assign(array('TEXT3_VALUE' => $conf_smiliessupport[2])); 45 $template->assign(array( 46 'TEXT1_VALUE' => $conf_smiliessupport[0], 47 'TEXT2_VALUE' => $conf_smiliessupport[1], 48 'TEXT3_VALUE' => $conf_smiliessupport[2], 49 )); 48 50 49 51 include_once(SMILIES_PATH . '/smiliessupport.inc.php'); … … 51 53 52 54 $smilies_file = PHPWG_ROOT_PATH.$conf_smiliessupport[0].'/smilies.txt'; 53 $content_file = null;54 55 55 56 if (file_exists($smilies_file)) { … … 58 59 } 59 60 60 $template->set_filename('smiliessupport_conf', dirname(__FILE__).'/smiliessupport_admin.tpl'); 61 $template->assign('SMILIES_PATH', SMILIES_PATH); 62 $template->set_filename('smiliessupport_conf', dirname(__FILE__).'/template/smiliessupport_admin.tpl'); 61 63 $template->assign_var_from_handle('ADMIN_CONTENT', 'smiliessupport_conf'); 62 64
Note: See TracChangeset
for help on using the changeset viewer.