| File inc/user/repo-page.php changed (mode: 100644) (index 05f94ed..757ed81) |
| ... |
... |
if (strcmp($subop, "history") == 0) { |
| 256 |
256 |
|
|
| 257 |
257 |
$repo_more['HTML:repo_body'] = $_repo_body; |
$repo_more['HTML:repo_body'] = $_repo_body; |
| 258 |
258 |
$repo_more['HTML:repo_right'] = $_repo_right; |
$repo_more['HTML:repo_right'] = $_repo_right; |
| 259 |
|
file_put_contents("/tmp/repo-body.txt", print_r($_repo_body, TRUE)); |
|
| 260 |
|
file_put_contents("/tmp/repo-more.txt", print_r($repo_more, TRUE)); |
|
| 261 |
259 |
$_repo_page = rg_template("repo/main.html", $repo_more); |
$_repo_page = rg_template("repo/main.html", $repo_more); |
| 262 |
|
file_put_contents("/tmp/repo-page.txt", $_repo_page); |
|
| 263 |
260 |
?> |
?> |
| File inc/util.inc.php changed (mode: 100644) (index c3f3e6a..a0f3380) |
| ... |
... |
function rg_replace_lookup(&$data, $var) |
| 450 |
450 |
*/ |
*/ |
| 451 |
451 |
function rg_replace_conditionals_block($block, &$data, &$stack) |
function rg_replace_conditionals_block($block, &$data, &$stack) |
| 452 |
452 |
{ |
{ |
| 453 |
|
rg_log("rg_replace_conditionals_block: block=[$block]" |
|
| 454 |
|
. " stack=" . rg_array2string($stack)); |
|
|
453 |
|
//rg_log("DEBUG: rg_replace_conditionals_block: block=[$block]" |
|
454 |
|
// . " stack=" . rg_array2string($stack)); |
| 455 |
455 |
|
|
| 456 |
456 |
if (!is_string($block)) { |
if (!is_string($block)) { |
| 457 |
457 |
rg_internal_error("Block is not a string!"); |
rg_internal_error("Block is not a string!"); |
| |
| ... |
... |
function rg_template($file, &$data) |
| 675 |
675 |
|
|
| 676 |
676 |
$r = rg_replace_conditionals($body, $data); |
$r = rg_replace_conditionals($body, $data); |
| 677 |
677 |
// TODO: check error code! |
// TODO: check error code! |
| 678 |
|
rg_log_ml("r=" . print_r($r, TRUE)); |
|
| 679 |
678 |
|
|
| 680 |
679 |
$ret = preg_replace($what, $values, $r); |
$ret = preg_replace($what, $values, $r); |
| 681 |
680 |
// TODO: check error code! |
// TODO: check error code! |