fixed bug in #load
This commit is contained in:
parent
5df52146be
commit
3a9dfba86c
@ -1,9 +1,10 @@
|
||||
#load "config/settings.uce"
|
||||
#load "lib.uce"
|
||||
|
||||
RENDER()
|
||||
{
|
||||
<>
|
||||
Hello world2
|
||||
Hello world23
|
||||
<?= bla("!x") ?>
|
||||
</>
|
||||
}
|
||||
|
||||
@ -152,10 +152,11 @@ String preprocess_shared_unit_char_wise(Request* context, SharedUnit* su, String
|
||||
pc.resize(pc.length() - current_line.length());
|
||||
nibble(current_line, "\"");
|
||||
String unit_name = nibble(current_line, "\"");
|
||||
//printf("(i) #load %s\n", unit_name.c_str());
|
||||
SharedUnit* sub_su = compiler_load_shared_unit(context, unit_name, su->src_path, true);
|
||||
if(sub_su)
|
||||
{
|
||||
pc.append("#include \"" + sub_su->pre_file_name + "\"");
|
||||
pc.append("#include \"" + sub_su->bin_path + "/" + sub_su->pre_file_name + "\"\n");
|
||||
}
|
||||
}
|
||||
else if(current_line.length() == 4 && current_line.substr(0, 4) == "API ")
|
||||
|
||||
@ -26,7 +26,7 @@ RENDER()
|
||||
<li><a href="memcached.uce">Memcached</a></li>
|
||||
<li><a href="mysql.uce">MySQL Connector</a></li>
|
||||
<li><a href="fileio.uce">File I/O</a></li>
|
||||
<li><a href="shell.uce">Shell Stuff</a></li>
|
||||
<li><a href="shell.uce">Shell</a></li>
|
||||
<li><a href="file_append.uce">File Append</a></li>
|
||||
<li><a href="random.uce">RNG/Noise</a></li>
|
||||
<li><a href="task.uce">Task API</a></li>
|
||||
|
||||
@ -20,12 +20,20 @@ RENDER()
|
||||
|
||||
<div>shell_escape()</div>
|
||||
|
||||
<pre><?
|
||||
<pre style="height:80px"><?
|
||||
|
||||
print(shell_exec("echo "+shell_escape("kasjdf 1ölkasj öflkjasdö\\lkfjsöa'ldkfj 23487692\"bla83746")));
|
||||
|
||||
?></pre>
|
||||
|
||||
<div>Git</div>
|
||||
|
||||
<pre><?
|
||||
|
||||
print(shell_exec("git show"));
|
||||
|
||||
?></pre>
|
||||
|
||||
<pre><?= var_dump(context->params) ?></pre>
|
||||
</html></>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user