Пример #1
0
 function Form_FTPDetails()
 {
     global $langmessage;
     $_POST += array('ftp_server' => gpftp::GetFTPServer(), 'ftp_user' => '');
     echo '<form action="' . common::GetUrl('') . '" method="post">';
     echo '<table class="padded_table">';
     echo '<tr><td align="left">' . $langmessage['FTP_Server'] . ' </td><td>';
     echo '<input type="text" class="text" size="20" name="ftp_server" value="' . htmlspecialchars($_POST['ftp_server']) . '" required />';
     echo '</td></tr>';
     echo '<tr><td align="left">' . $langmessage['FTP_Username'] . ' </td><td>';
     echo '<input type="text" class="text" size="20" name="ftp_user" value="' . htmlspecialchars($_POST['ftp_user']) . '" />';
     echo '</td></tr>';
     echo '<tr><td align="left">' . $langmessage['FTP_Password'] . ' </td><td>';
     echo '<input type="password" class="text" size="20" name="ftp_pass" value="" />';
     echo '</td></tr>';
     echo '<tr><td align="left">&nbsp;</td><td>';
     echo '<input type="hidden" name="cmd" value="Continue" />';
     echo '<input type="submit" class="submit" name="aaa" value="' . $langmessage['continue'] . '" />';
     echo '</td></tr>';
     echo '</table>';
     echo '</form>';
 }
Пример #2
0
 function SettingsForm($values = array())
 {
     global $langmessage, $config;
     $values += array('service_provider_id' => '', 'service_provider_name' => '');
     $ftp_vals = $_POST + $config + array('ftp_server' => gpftp::GetFTPServer(), 'ftp_user' => '');
     echo '<div id="install_wrap">';
     echo '<h3>Settings</h3>';
     echo '<form action="' . common::GetUrl('Admin_Site_Setup') . '" method="post">';
     echo '<table class="bordered" width="100%">';
     echo '<tr>';
     echo '<th colspan="2">Service Provider Identification</th>';
     echo '</tr>';
     echo '<tr>';
     echo '<td colspan="2">';
     echo 'When your provider id is entered, <a href="http://www.gpeasy.com/Special_Services">gpEasy.com Services</a> can attribute each installation to your service.';
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo 'Service Provider ID';
     echo '</td>';
     echo '<td>';
     echo '<input type="text" name="service_provider_id" value="' . htmlspecialchars($values['service_provider_id']) . '" size="30" />';
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo 'Service Provider Name';
     echo '</td>';
     echo '<td>';
     echo '<input type="text" name="service_provider_name" value="' . htmlspecialchars($values['service_provider_name']) . '" size="30" />';
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>&nbsp;</td>';
     echo '<td>&nbsp;</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<th>FTP</th>';
     echo '<th>&nbsp;</th>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>FTP Server</td>';
     echo '<td>';
     echo '<input type="text" name="ftp_server" value="' . $ftp_vals['ftp_server'] . '" size="30" />';
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>FTP Username</td>';
     echo '<td>';
     echo '<input type="text" name="ftp_user" value="' . $ftp_vals['ftp_user'] . '" size="30" />';
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>FTP Password</td>';
     echo '<td>';
     echo '<input type="password" name="ftp_pass" value="" size="30" />';
     echo '</td>';
     echo '</tr>';
     echo '</table>';
     echo '<div id="install_continue">';
     echo '<input type="submit" name="cmd" value="Save Settings" class="continue"/>';
     echo ' <input type="submit" name="" value="Cancel" />';
     echo '</div>';
     echo '</form>';
     echo '</div>';
 }
Пример #3
0
 function connectForm($args = false)
 {
     if (!is_array($args)) {
         $args = $_POST;
     }
     $args += $this->connect_vars;
     if (empty($args['ftp_server'])) {
         $args['ftp_server'] = gpftp::GetFTPServer();
     }
     echo '<input type="hidden" name="filesystem_method" value="' . htmlspecialchars($this->method) . '" />';
     echo '<input type="hidden" name="connect_values_submitted" value="true" />';
     echo '<tr><td>';
     echo 'FTP Hostname';
     echo '</td><td>';
     echo '<input type="text" name="ftp_server" value="' . htmlspecialchars($args['ftp_server']) . '" class="gpinput"/>';
     echo '</td></tr>';
     echo '<tr><td>';
     echo 'FTP Username';
     echo '</td><td>';
     echo '<input type="text" name="ftp_user" value="' . htmlspecialchars($args['ftp_user']) . '" class="gpinput"/>';
     echo '</td></tr>';
     echo '<tr><td>';
     echo 'FTP Password';
     echo '</td><td>';
     echo '<input type="password" name="ftp_pass" value="" class="gpinput"/>';
     echo '</td></tr>';
     echo '<tr><td>';
     echo 'FTP Port';
     echo '</td><td>';
     echo '<input type="text" name="port" value="' . htmlspecialchars($args['port']) . '" class="gpinput"/>';
     echo '</td></tr>';
 }
Пример #4
0
function Form_FTPDetails($required = false)
{
    global $langmessage;
    $_POST += array('ftp_server' => gpftp::GetFTPServer(), 'ftp_user' => '');
    if ($required) {
        $required = '*';
    }
    echo '<tr>';
    echo '<td align="left">' . $langmessage['FTP_Server'] . $required . ' </td><td>';
    echo '<input type="text" class="text" size="20" name="ftp_server" value="' . htmlspecialchars($_POST['ftp_server']) . '" />';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td align="left">' . $langmessage['FTP_Username'] . $required . ' </td><td>';
    echo '<input type="text" class="text" size="20" name="ftp_user" value="' . htmlspecialchars($_POST['ftp_user']) . '" />';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td align="left">' . $langmessage['FTP_Password'] . $required . ' </td><td>';
    echo '<input type="password" class="text" size="20" name="ftp_pass" value="" />';
    echo '</td>';
    echo '</tr>';
}