php include in content admin surface

queenyoda

No avatar

2006-04-13 14:19

hello,

i need your help:

how can i include a voting script into the page or something else with
the content admin.php menue?

it does´t work here

royalrags

wallace

No avatar

2006-04-14 09:04

The actual (php) scripts you need to include in the index.php NOT in the templates: that would not work. Then in the Template call your "variable" ...

For instance in index.php:

//SELF DEFINED VARIABLES - BEGIN
//Last Modified
$sMyFooterUpdate = "<span>&copy; " . date('Y') . "</span>";
$last_modified = filemtime('db/categories.php');
$lastmodified = "<span class='tekst10'>Last update :&nbsp;". date("d-m-Y", $last_modified) . "</span>";

And where you want to have the output insert in the template:
padding-bottom: 3px;'>$lastmodified&nbsp;</td>

Offcourse you can do a simple include in index.php if it is a bigger script or even a complete system like a voting....

Back to top
about us | contact