Changeset 30429 for extensions/see_photos_by_user/admin.php
- Timestamp:
- Nov 11, 2014, 7:24:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/see_photos_by_user/admin.php
r30415 r30429 23 23 'SPBU5' => $conf['see_photos_by_user_color'], 24 24 'SPBU6' => $conf['see_photos_by_user_show_user_home'], 25 'SPBU7' => $conf['see_photos_by_user_shape'], 25 26 'SPBA_PATH2'=> get_root_url() . SPBA_PATH, 26 27 ) … … 60 61 61 62 $SPBU4T2 = array( 62 l10n('nothing'),63 // l10n('nothing'), 63 64 l10n('users cloud'), 64 65 l10n('cumulus users cloud'), … … 67 68 68 69 $SPBU42 = array( 69 '-1',70 // '-1', 70 71 '1', 71 72 '2', … … 75 76 $template->assign('spbu6', $SPBU42); 76 77 $template->assign('spbuT6', $SPBU4T2); 78 79 $SPBU7 = array( 80 'sphere', 81 'vcylinder', 82 'hcylinder', 83 'vring', 84 'hring', 85 ); 86 87 $SPBUT7 = array( 88 l10n('sphere'), 89 l10n('vertical cylinder'), 90 l10n('horizontal cylinder'), 91 l10n('vertical ring'), 92 l10n('horizontal ring'), 93 ); 94 95 $template->assign('spbu7', $SPBU7); 96 $template->assign('spbuT7', $SPBUT7); 77 97 78 98 if (isset($_POST['submitspbu'])) { … … 91 111 conf_update_param('see_photos_by_user_color', $_POST['insspbu5']); 92 112 conf_update_param('see_photos_by_user_show_user_home', $_POST['insspbu6']); 93 113 conf_update_param('see_photos_by_user_shape', $_POST['insspbu7']); 94 114 if (!$page['errors']) { 95 115 array_push($page['infos'], l10n('Update Complete')); … … 104 124 'SPBU5' => stripslashes($_POST['insspbu5']), 105 125 'SPBU6' => stripslashes($_POST['insspbu6']), 126 'SPBU7' => stripslashes($_POST['insspbu7']), 106 127 ) 107 128 ); 108 129 } 109 130 110 $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) .'/admin.tpl'));111 $template->assign_var_from_handle('ADMIN_CONTENT', 131 $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__).'/admin.tpl')); 132 $template->assign_var_from_handle('ADMIN_CONTENT','plugin_admin_content'); 112 133 ?>
Note: See TracChangeset
for help on using the changeset viewer.