* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
// Base directory (should be moved to database)
$usage = getConfig('usage_base') . '/';
getConfig('usage_base')
);
-if (isGetRequestParameterSet('image')) {
- if (getRequestParameter('type') == 'usage') {
+if (isGetRequestElementSet('image')) {
+ if (getRequestElement('type') == 'usage') {
$FQFN = sprintf("%s%s/usage.png",
getPath(),
getConfig('usage_base')
);
} else {
- if (strpos(getRequestParameter('image'), "\\") > 0) setGetRequestParameter('image', substr(getRequestParameter('image'), 0, strpos(getRequestParameter('image'), "\\")));
+ if (strpos(getRequestElement('image'), "\\") > 0) {
+ setGetRequestElement('image', substr(getRequestElement('image'), 0, strpos(getRequestElement('image'), "\\")));
+ } // END - if
$FQFN = sprintf("%s%s/%s_usage_%s.png",
getPath(),
getConfig('usage_base'),
- getRequestParameter('type'),
- getRequestParameter('image')
+ getRequestElement('type'),
+ getRequestElement('image')
);
}
if (isFileReadable($FQFN)) {
$image = imagecreatefrompng($FQFN);
- sendHeader('Content-Type: image/png');
+ setContentType('image/png');
imagepng($image);
imagedestroy($image);
- }
+ } // END - if
shutdown();
-} elseif (isGetRequestParameterSet('usage')) {
+} elseif (isGetRequestElementSet('usage')) {
$FQFN = sprintf("%s%s/usage_%s.html",
getPath(),
getConfig('usage_base'),
- getRequestParameter('usage')
+ getRequestElement('usage')
);
}
outputHtml($content);
} else {
// Nothing to load, then we have no directory 'usage'
- loadTemplate('admin_settings_saved', false, '{--ADMIN_USAGE_DIRECTORY_404--}');
+ displayMessage('{--ADMIN_USAGE_DIRECTORY_404--}');
}
// [EOF]