Lines Matching refs:ini
103 #FIXME only if preview.ini exists:
112 #FIXME only if local.ini exists:
152 * saves the preview.ini (alos called from ajax directly)
157 $ini = $conf['cachedir'] . '/preview.ini';
158 io_saveFile($ini, $this->makeini());
162 * deletes the preview.ini
167 $ini = $conf['cachedir'] . '/preview.ini';
168 io_saveFile($ini, '');
172 * deletes the local style.ini replacements
181 * save the local style.ini replacements
190 * create the replacement part of a style.ini from submitted data
198 $ini = "[replacements]\n";
199 $ini .= ";These overwrites have been generated from the Template styling Admin interface\n";
200 $ini .= ";Any values in this section will be overwritten by that tool again\n";
202 $ini .= $key . ' = "' . addslashes($val) . '"' . "\n";
205 return $ini;
209 * replaces the replacement parts in the local ini
211 * @param string $new the new ini contents
216 $ini = DOKU_CONF . "tpl/" . $conf['template'] . "/style.ini";
217 if (file_exists($ini)) {
218 $old = io_readFile($ini);
225 io_makeFileDir($ini);
226 io_saveFile($ini, "$old\n\n$new");