To excuse me for bad English language.
I bring to your attention updating which can more one is required if managers. Updating allows to leave brief messages for other managers in the administrative panel.
Keep all data and make a backup copy 4 images
Brought changes:
admin\home.php
lang\english\admin.php
new file messages.txt
1. Find in a file lang\english\admin.php
$lang ['headline_stats'] = " Statistika ";
Also insert after this line
$lang ['headline_mesag'] = " Messages for admin ";
2. In a file admin\home.php
Find:
---------------------------------------------------------------------
$total_images + = $val ['num_images'];
}
}
---------------------------------------------------------------------
Also insert after last} the following text:
// messages for admin's *********************************************************
printf (" <span class = \ " headline \ "> % s </span> <br/> <br/> ", $lang ['headline_mesag']);
show_table_header ($lang ['headline_mesag'], 4);
echo " <table class = \ "".get_row_bg (). " \ " border=0 width=100 %> ";
echo " <tr class = \ "".get_row_bg (). " \ "> \n ";
echo " <td> \n ";
$file=file ("messages.txt");
while (list ($index, $val) = each ($file)) {
echo " <font color = \ " * CC3300 \ " size = \ " 2 \ "> <b> ";
echo (" $val <BR> ");
echo " </b> </font> ";
$num = $index;
}
if (isset ($ _POST ['ok']) ** isset ($ _POST ['id'])) {
$key = $ _POST ['id'];
if (! is_numeric ($key)) exit ();
$key-;
$file [$key] = $ _POST ['ok.'] " \n ";
if ($fp = fopen ("messages.txt", "w")) {
fwrite ($fp, implode (" ", $file));
fclose ($fp);
echo " <html> <head> ";
echo " <META HTTP-EQUIV ='Refresh ' CONTENT = ' 0; URL = ". $ _ SERVER ['PHP_SELF']. " '> ";
echo " </head> </html> ";
}
}
echo " <center> \n ";
echo " <form action=home.php method=post>
<input type ='text ' size=100 name=ok> <BR>
<input type ='hidden ' name=id value = ". $ num. ">
<input type ='submit ' value ='send messages'>
<input TYPE ='button ' VALUE ='refresh ' ONCLICK ='ReloadButton () '>
<script>
function ReloadButton ()
{
location.href ='home.php ';
}
</script>
</form> ";
echo " </center> \n ";
echo " </td> \n ";
echo " </tr> \n ";
echo " </table> \n ";
show_table_footer ();
// messages for admin's *********************************************************
Create a new file in a folder admin - message.txt