Changeset 5323 for extensions/pwgCumulus/admin.php
- Timestamp:
- Mar 24, 2010, 11:26:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pwgCumulus/admin.php
r5201 r5323 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 32 32 33 33 if (!empty($_POST['submit'])) { 34 Log::getInstance()->debug($_POST); 34 35 if (!empty($_POST['pwg_cumulus_width']) && intval($_POST['pwg_cumulus_width'])!=$me->pwg_cumulus_width) { 35 36 $me->pwg_cumulus_width = intval($_POST['pwg_cumulus_width']); 36 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_width_changed']);37 array_push($GLOBALS['page']['infos'], $lang['Width updated']); 37 38 $save_config = true; 38 39 } 39 40 if (!empty($_POST['pwg_cumulus_height']) && intval($_POST['pwg_cumulus_height'])!=$me->pwg_cumulus_height) { 40 41 $me->pwg_cumulus_height = intval($_POST['pwg_cumulus_height']); 41 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_height_changed']);42 array_push($GLOBALS['page']['infos'], $lang['Height updated']); 42 43 $save_config = true; 43 44 } 44 45 if (!empty($_POST['pwg_cumulus_coeff']) && intval($_POST['pwg_cumulus_coeff'])!=$me->pwg_cumulus_coeff) { 45 46 $me->pwg_cumulus_coeff = intval($_POST['pwg_cumulus_coeff']); 46 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_coeff_changed']);47 array_push($GLOBALS['page']['infos'], $lang['Coefficient for tags size updated']); 47 48 $save_config = true; 48 49 } 49 50 50 51 if (!empty($_POST['pwg_cumulus_color1']) && trim($_POST['pwg_cumulus_color1'])!=$me->pwg_cumulus_color1) { 51 // $me->pwg_cumulus_color1 = trim($_POST['pwg_cumulus_color1'], " /\n\t\r\0\x0B");52 52 $me->pwg_cumulus_color1 = $_POST['pwg_cumulus_color1']; 53 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_color1_changed']);53 array_push($GLOBALS['page']['infos'], $lang['Color 1 updated']); 54 54 $save_config = true; 55 55 } 56 56 if (!empty($_POST['pwg_cumulus_color2']) && trim($_POST['pwg_cumulus_color2'])!=$me->pwg_cumulus_color2) { 57 // $me->pwg_cumulus_color2 = trim($_POST['pwg_cumulus_color2'], " /\n\t\r\0\x0B");58 57 $me->pwg_cumulus_color2 = $_POST['pwg_cumulus_color2']; 59 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_color2_changed']);58 array_push($GLOBALS['page']['infos'], $lang['Color 2 updated']); 60 59 $save_config = true; 61 60 } 62 61 if (!empty($_POST['pwg_cumulus_hicolor']) && trim($_POST['pwg_cumulus_hicolor'])!=$me->pwg_cumulus_hicolor) { 63 // $me->pwg_cumulus_hicolor = trim($_POST['pwg_cumulus_hicolor'], " /\n\t\r\0\x0B");64 62 $me->pwg_cumulus_hicolor = $_POST['pwg_cumulus_hicolor']; 65 array_push($GLOBALS['page']['infos'], $lang[' pwg_cumulus_hicolor_changed']);63 array_push($GLOBALS['page']['infos'], $lang['Mouseover color updated']); 66 64 $save_config = true; 67 65 } … … 89 87 PWG_CUMULUS_PLUGIN_CSS, 90 88 'admin' 91 92 89 ) 90 ); 93 91 $GLOBALS['template']->append('head_elements', 94 92 sprintf($css_format, 95 93 PWG_CUMULUS_PLUGIN_CSS, 96 94 'farbtastic' 97 98 95 ) 96 ); 99 97 $GLOBALS['template']->func_known_script(array('id' => 'farbtastic', 100 98 'src' => PWG_CUMULUS_PLUGIN_JS. '/farbtastic.js' 101 99 ), 102 100 $GLOBALS['template']->smarty 103 101 ); 104 102 105 103
Note: See TracChangeset
for help on using the changeset viewer.