コード例 #1
0
ファイル: watch-list.php プロジェクト: brycied00d/freshports
    } else {
        if (isset($_REQUEST["add"])) {
            $ButtonName = "Update";
            $Action = "add";
            $Verb = 'added';
            $FromTo = 'to';
            $Object = pg_escape_string($_REQUEST["add"]);
        } else {
            die("I don't know whether you are removing or adding, so I'll just stop here shall I?");
        }
    }
    if ($Object == '') {
        die('I have no idea what I\'m supposed to add or remove here...');
    }
    $port = new Port($db);
    $port->FetchByElementID($Object, $User->id);
    require_once $_SERVER['DOCUMENT_ROOT'] . '/../classes/port-display.php';
    $port_display = new port_display($db, $User);
    $port_display->SetDetailsReports();
    $port_display->port = $port;
    $Port_HTML = $port_display->Display();
    $HTML = $port_display->ReplaceWatchListToken($port->{'onwatchlist'}, $Port_HTML, $port->{'element_id'});
    echo $HTML;
    ?>
Please select the watch lists which should contain this port:
<blockquote>
		<form action="<?php 
    echo $PostURL;
    ?>
" method="POST" NAME=f>
		<?php