<? require("../../../../common.php"); require("../../../../list.php"); print_template($screens, 'test.inc', 'tutorial.inc'); ?>
// Tool to assist with figuring out what variables are passed to templates. // It will take a source php file and print all the template calls it finds, including the passed args. // With no args it will enumerate all templates in boot.php, include/* and mod/* // This is a quick hack and far from perfect (there's a template call in boot.php that buggers the regex from the get-go) // but is one step towards template documentation. if ($argc > 1) { echo "{$argv[1]}: templates\n"; print_template($argv[1]); } else { echo 'boot.php: templates' . "\n"; print_template('boot.php'); $files = glob('include/*.php'); foreach ($files as $file) { echo $file . ': templates' . "\n"; print_template($file); } $files = glob('mod/*.php'); foreach ($files as $file) { echo $file . ': templates' . "\n"; print_template($file); } } function print_template($s) { $x = file_get_contents($s); $cnt = preg_match_all('/replace_macros(.*?)\\)\\;/ism', $x, $matches); if ($cnt) { print_r($matches[0]); } }
"&L=$doclang". "&CS=$doccharset". "&DU=".urlencode($url). "&q=".urlencode($query_orig); print ("<DD><a href=\"$storedstr\">Cached copy</a>\n"); } } elseif (Udm_Api_Version() >= 30204) { if ($excerpt_flag) { $storedstr="$storedocurl?rec_id=".Udm_CRC32($udm_agent,$save_url). "&DM=".urlencode($lastmod). "&DS=$docsize". "&L=$doclang". "&CS=$doccharset". "&DU=".urlencode($save_url). "&q=".urlencode($query_orig); print_template('stored'); } } } if ((Udm_Api_Version() == 30203) && ($stored_link>0)) { Udm_Close_Stored($udm_agent, $stored_link); } print("<HR><CENTER> $nav </CENTER>\n"); print_bottom(); // Free result Udm_Free_Res($res); }
<?php require "../../common.php"; $SIDE = array(array('Search', '../../search/search.php'), array('Feedback', '../../html/links.html')); print_template('Simple @core.version@', 'index.inc');
<? require("../../../../common.php"); require("../../../../list.php"); print_template($screens, 'test.inc', 'examples.inc'); ?>