" style="display: none;"> <td id="changeLog" colspan="6" style="background:lightskyblue;"><?php echo nl2br(file_get_contents('http://207.224.102.177/faceBot/' . $plug['name'] . '.txt')); ?> </td> </tr> <?php } ?> </table> </form> </div> <?php } if ($botver == 'chinese') { $cparser = GetParser('chinese'); ?> <div class="tabbertab" id="FarmvilleCH"> <h2>Farmville - Chinese</h2> <a href="index.php">Refresh Plugin List</a> <form method="post"> <input type="hidden" name="botversion" value="chinese" /> <table border="1" class="mainTable" width="750"> <tr id="header"> <td colspan=5 align="center"><b>Parser/fBSettings</b></td> </tr> <tr id="header"> <td align="center"><b>Installed Version</b></td> <td align="center"><b>Available Version</b></td> <td align="center"><b>What's New</b></td> <td align="center"><b>Update</b></td>
<?php $base_path = getcwd(); $pos1 = strpos($base_path, '\\'); $pos2 = strpos($base_path, '\\', $pos1 + 1); $_SESSION['base_path'] = getcwd() . '\\'; echo $_SESSION['base_path']; GetPlugins(); GetParser(); CreatePluginManifest(); function GetPlugins() { $allplugs = unserialize(file_get_contents('plugins.manifest')); $dir = $_SESSION['base_path'] . 'plugins'; foreach ($allplugs as $aplugs) { if ($aplugs['name'] == 'fBSettings') { continue; } $x = getFileList($dir . '/' . $aplugs['name'], true); if (!empty($x)) { file_put_contents($aplugs['name'] . '.manifest', serialize($x)); } } } function GetParser() { $dir = $_SESSION['base_path'] . 'plugins'; $x = getFileList($dir . '/fBSettings', true); $x2 = getFileList('xulrunner', true); $x4 = getFileList('amfphp', true); $x3 = array_merge($x, $x4, $x2);