Example #1
0
<!-- start table 'Subtitle' -->
<table  width="<?php 
if (NW_IS_GECKO || NW_IS_OPERA) {
    echo "99%";
} else {
    echo "95%";
}
?>
"  border='0' cellpadding='4' cellspacing='0' class="hidden" id="extended0">
    <tr>
      <td width="90"><strong><?php 
echo lang('entries', 'subtitle');
?>
:</strong></td>
      <td colspan="3"><input type='text' name='f_subtitle' size='50' value="<?php 
echo addquotes($entry['subtitle']);
?>
" class='input' style='height:22px;'></td>
        <td align="right">

          <input type='button' name='button' value='t2e' class='button hidden' onClick="allTextareaToContent();"></td>
    </tr>	</table>
<!-- end table 'Subtitle' -->
<!-- start table 'Less Options' -->
<table  width="<?php 
if (NW_IS_GECKO || NW_IS_OPERA) {
    echo "99%";
} else {
    echo "95%";
}
?>
Example #2
0
        } else {
            $persist = "false";
        }
        if (isset($_POST["ip_override"])) {
            $ip_override = "true";
        } else {
            $ip_override = "false";
        }
        if (isset($_POST["countbytes"])) {
            $countbytes = "true";
        } else {
            $countbytes = "false";
        }
        //write config.php file
        $fd = fopen("config.php", "w") or die(errorMessage() . "Warning: write to config.php!</p>");
        fwrite($fd, "<?php //Please do NOT edit this file, use the admin page for changes.\n" . "\$GLOBALS['hiddentracker'] = " . $hiddentracker . ";\n" . "\$GLOBALS['scrape'] = " . $scrape . ";\n" . "\$GLOBALS['report_interval'] = " . htmlspecialchars($_POST["report_interval"]) . ";\n" . "\$GLOBALS['min_interval'] = " . htmlspecialchars($_POST["min_interval"]) . ";\n" . "\$GLOBALS['maxpeers'] = " . htmlspecialchars($_POST["maxpeers"]) . ";\n" . "\$GLOBALS['NAT'] = " . $NAT . ";\n" . "\$GLOBALS['persist'] = " . $persist . ";\n" . "\$GLOBALS['ip_override'] = " . $ip_override . ";\n" . "\$GLOBALS['countbytes'] = " . $countbytes . ";\n" . "\$upload_username = '******';\n" . "\$upload_password = '******';\n" . "\$admin_username = '******';\n" . "\$admin_password = '******';\n" . "\$GLOBALS['title'] = '" . htmlspecialchars(addquotes($_POST["title"])) . "';\n" . "\$dbhost = '" . htmlspecialchars($_POST["dbhost"]) . "';\n" . "\$dbuser = '******';\n" . "\$dbpass = '******';\n" . "\$database = '" . htmlspecialchars($_POST["database"]) . "';\n" . "\$enablerss = " . $enablerss . ";\n" . "\$rss_title = '" . htmlspecialchars(addquotes($_POST["rss_title"])) . "';\n" . "\$rss_link = '" . htmlspecialchars($_POST["rss_link"]) . "';\n" . "\$rss_description = '" . htmlspecialchars(addquotes($_POST["rss_description"])) . "';\n" . "\$website_url = '" . htmlspecialchars($_POST["website_url"]) . "';\n" . "\$GLOBALS['max_upload_rate'] = " . htmlspecialchars($_POST['max_upload_rate']) . ";\n" . "\$GLOBALS['max_uploads'] = " . htmlspecialchars($_POST['max_uploads']) . ";\n" . "\$timezone = '" . htmlspecialchars($_POST["timezone"]) . "';\n" . "\$prefix = '" . htmlspecialchars($_POST["prefix"]) . "';\n" . "?>");
        fclose($fd);
        echo "<br><p class=\"success\">config.php file was edited successfully!</p>\n";
        //run RSS generator
        require_once "rss_generator.php";
    } else {
        echo errorMessage() . "config.php was not able to be written.  Please check the permissions and try again.</p>\n";
    }
}
?>
<br>
<br>
<a href="admin.php"><img src="images/admin.png" border="0" class="icon" alt="Admin Page" title="Admin Page" /></a><a href="admin.php">Return to Admin Page</a>
</body>
</html>