2013-02-26, 09:02:04
(This post was last modified: 2013-02-26, 12:00:27 by WebDevandPhoto.)
AH ha! thanks!
but I'm still doing something wrong...
now the buffer gets thrown to the browser instead of the file.. not to mention to buffer is wrong... it's not including the data I want.
Yea.. I need to do something about the globals....
Edit:
Here I'd like to show you where it's at now:
Click for fullsize:
PHP Code:
# This generates our PHP powered CSS files on demand
function generate_styles_css() {
$stylefile_style = GSROOTPATH . "theme/FoundationNation/style.php";
$stylefile_app = GSROOTPATH . "theme/FoundationNation/appstyle.php";
if(file_exists($stylefile_style) && file_exists($stylefile_app)){
ob_start();
require($stylefile_style) &&
require($stylefile_app);
$stylescss = ob_get_clean();
file_put_contents(GSROOTPATH . "theme/FoundationNation/style.css", $stylescss, LOCK_EX);
} else {
$error .= i18n_r($thisfile_found.'/STYLES_ERROR').' ';
}
};
now the buffer gets thrown to the browser instead of the file.. not to mention to buffer is wrong... it's not including the data I want.
Yea.. I need to do something about the globals....
Edit:
Here I'd like to show you where it's at now:
Click for fullsize: