Codice PHP:
<?php
/*
+---------------------------------------------------------+
+ Calendar Script by Midgard (bahadir@eggdrop.gen.tr) +
+ It's a free software +
+---------------------------------------------------------+
+ http://www.eggdrop.gen.tr +
+---------------------------------------------------------+
*/
// Variables for MySQL
// Usage:
// MySQL_Hostname:MySQL_UserName:MySQL_Password:MySQL_Database
// Example:
// 192.168.1.4:MyU:MyPw:MyDb
$SQLconn = '192.168.1.4:MyU:MyPw:MyDb';
list($hostname, $username, $password, $database) = explode(':', $SQLconn);
// MySQL Connection:
mysql_connect($hostname, $username, $password);
mysql_select_db($database);
// MySQL Charset Collation:
mysql_query("SET NAMES 'latin5'");
mysql_query("SET collation_connection = 'latin5_turkish_ci'");
// Support Specialist Informations:
$support_name = 'Eggdrop Inc.';
$support_mail = 'bahadir@eggdrop.gen.tr';
$support_addr = '<a href="http://www.eggdrop.gen.tr">http://www.eggdrop.gen.tr</a>';
// Calendar Version
$ver = "v2.0";
// Site Name:
$site_name = 'Calendar '.$ver;
/*
+-------------------------------------------+
+ USEFUL CUSTOM FUNCTIONS - 07.03.2007 +
+-------------------------------------------+
*/
function top_navigation($message, $act, $home_link, $refresh_link, $back_link, $logout_link)
{
?>
<div style="margin-bottom: 8px;">
<table cellspacing="1" border="0" cellpadding="0" width="100%" style="background-color: #CCCCCC;">
<tr>
<td align="left" valign="middle" class="TopNavy" style="padding-left: 6px; padding-right: 6px;">
<span style="float: left; cursor: hand;" onClick="window.parent.document.location.href='index.php?act=<?php echo $act; ?>';"><?php echo $message; ?></span>
<span style="float: right;">
<?php if ($back_link) { ?><a href="javascript:history.back();">« Go Back</a> -<?php } ?>
<?php if ($refresh_link) { ?><a href="javascript:window.location.reload(true);">Refresh This Page</a> -<?php } ?>
<?php if ($home_link) { ?><a href="index.php">Home</a> -<?php } ?>
<?php if ($logout_link) { ?><a href="logout.php">Logout</a><?php } ?>
</span>
</td>
</tr>
</table>
</div>
<?php
}
// Random Keys
function randomkeys($length)
{
$pattern = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for($i=0;$i<$length;$i++) {
$key .= $pattern{rand(0,35)};
}
return $key;
Questo è quello che compare come codice su config.php