Example #1
0
            $q .= "WHERE ID = " . intval($_REQUEST["comment_id"]);
            db_query($q, $dbh);
            print __("Comment has been deleted.") . "<br />\n";
        } else {
            print __("You are not allowed to delete this comment.") . "<br />\n";
        }
    } else {
        print __("Missing comment ID.") . "<br />\n";
    }
    html_footer(AUR_VERSION);
    exit;
}
# Change package category
#
if ($_REQUEST["change_Category"]) {
    $cat_array = pkgCategories();
    $dbh = db_connect();
    if ($_REQUEST["category_id"]) {
        # Try and set the requested category_id
        #
        if (array_key_exists($_REQUEST["category_id"], $cat_array)) {
            $q = "UPDATE Packages SET CategoryID = " . intval($_REQUEST["category_id"]);
            $q .= " WHERE ID = " . intval($_REQUEST["ID"]);
            db_query($q, $dbh);
            print __("Package category updated.") . "<br />\n";
        } else {
            print __("Invalid category ID.") . "<br />\n";
        }
    } else {
        # Prompt visitor for new category_id
        #
Example #2
0
    ?>
			<div id="advanced-search" class="blue">
				<input type="hidden" name="detail" value="1" />
				<ul>
					<li>
						<label><?php 
    print __("Category");
    ?>
</label>
						<select name='C'>
							<option value='0'><?php 
    print __("Any");
    ?>
</option>
							<?php 
    foreach (pkgCategories() as $id => $cat) {
        if (intval($_GET["C"]) == $id) {
            ?>
							<option value="<?php 
            print $id;
            ?>
" selected="selected"><?php 
            print $cat;
            ?>
</option>
							<?php 
        } else {
            ?>
							<option value="<?php 
            print $id;
            ?>
Example #3
0
    print __("Submit");
    ?>
</span>
	</div>
	<div class="pgboxbody">
	<p><?php 
    echo __("Upload your source packages here. Create source packages with `makepkg --source`.");
    ?>
</p>

<?php 
    if (empty($_REQUEST['pkgsubmit']) || $error) {
        # User is not uploading, or there were errors uploading - then
        # give the visitor the default upload form
        if (ini_get("file_uploads")) {
            $pkg_categories = pkgCategories();
            $pkg_locations = pkgLocations();
            ?>

<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
	<div> <input type='hidden' name='pkgsubmit' value='1' /> </div>
	<table border='0' cellspacing='5'>
		<tr>
			<td class='f4' align='right'><?php 
            print __("Package Category");
            ?>
:</td>
			<td class='f4' align='left'>
			<select name='category'>
				<option value='1'><?php 
            print __("Select Category");