e-Gold Shell v.0.01

Тема в разделе "Мелочи", создана пользователем sl111, 11 фев 2008.

Статус темы:
Закрыта.
  1. sl111

    sl111 Писатель

    Регистр.:
    11 янв 2008
    Сообщения:
    7
    Симпатии:
    5
    Прикольная штука, мож кому пригодиться...

    <?
    /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
    * e-Gold Shell v.0.01
    * Description: Tha real utility for real brothazzz
    * Date: 1 Jan, 0000
    *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
    * Copyright (c) 2005 M!cr0$0ft
    *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/

    // Class CEGold
    class CEGold {
    var $sError = "";
    var $sText = "";
    // User info
    var $sAccountID;
    var $sPassword;

    // Constructor
    function CEGold () {
    $this->GetVars();
    }// End of constructor

    // Parse incoming variables
    function GetVars () {
    if( is_array($_GET) ){
    while( list($k, $v) = each($_GET) ){
    if( is_array($_GET[$k]) ){
    while( list($k2, $v2) = each($_GET[$k]) ){
    $this->Vars[$k][$k2] = stripslashes ($v2);
    }
    }
    else $this->Vars[$k] = stripslashes ($v);
    }
    }

    // Overwrite GET data with post data
    if( is_array($_POST) ){
    while( list($k, $v) = each($_POST) ){
    if ( is_array($_POST[$k]) ){
    while( list($k2, $v2) = each($_POST[$k]) ){
    $this->Vars[$k][$k2] = stripslashes ($v2);
    }
    }
    else $this->Vars[$k] = stripslashes ($v);
    }
    }
    } // End of GetVars function

    // Show error
    function ShowError ($sMessage) {
    $this->sError = $sMessage;
    return false;
    }// End of ShowError function

    // Init
    function Init ($aUserInfo) {
    if (empty($aUserInfo['account_id'])) return $this->ShowError("Account number can't be empty!");
    if (empty($aUserInfo['password'])) return $this->ShowError("Password can't be empty!");

    $this->sAccountID = $aUserInfo['account_id'];
    $this->sPassword = $aUserInfo['password'];

    return true;
    }// End of Init function

    // Get e-Gold Response
    function GetEGoldResponse ($sRequest) {
    $ch = curl_init($sRequest);
    curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $sResult = curl_exec($ch);
    curl_close($ch);
    $this->sText = $sResult;
    return true;
    }// End of GetEGoldResponse function

    // Check balance
    function CheckBalance () {
    $sRequest = "https://www.e-gold.com/acct/balance.asp?AccountID=".urlencode($this->sAccountID).
    "&PassPhrase=".urlencode($this->sPassword);
    return ($this->GetEGoldResponse($sRequest));
    }// End of CheckBalance function

    // Make payment
    function MakePayment ($aPaymentInfo) {
    // Check data
    if (empty($aPaymentInfo['payment_account'])) return $this->ShowError("Payee account can't be empty!");
    $aPaymentInfo['payment_amount'] += 0;
    if ($aPaymentInfo['payment_amount'] <= 0) return $this->ShowError("Amount can't be empty!");
    // Check currency
    $aPaymentInfo['payment_payin'] += 0;
    if ($aPaymentInfo['payment_payin'] <= 0) return $this->ShowError("Please select currency!");
    // Check e-metal type
    $aEMetal = array ("Gold", "Silver", "Platinum", "Palladium");
    if (!in_array ($aPaymentInfo['payment_emetal'], $aEMetal)) return $this->ShowError("Please select e-Metal to spend!");
    // Check e-metal type
    if (empty($aPaymentInfo['payment_memo'])) return $this->ShowError("Memo can't be empty!");

    // Create request string
    $sRequest = "https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($this->sAccountID).
    "&PassPhrase=".urlencode($this->sPassword)."&Payee_Account=".urlencode($aPaymentInfo['payment_account']).
    "&Amount=".$aPaymentInfo['payment_amount']."&PAY_IN=".$aPaymentInfo['payment_payin'].
    "&WORTH_OF=".$aPaymentInfo['payment_emetal']."&Memo=".urlencode($aPaymentInfo['payment_memo']);
    // Payment ID
    if (!empty($aPaymentInfo['payment_id'])) $sRequest .= "&PAYMENT_ID=".urlencode($aPaymentInfo['payment_id']);

    return ($this->GetEGoldResponse($sRequest));
    }// End of MakePayment function

    // View history
    function ViewHistory ($aHistoryInfo) {
    // Check start date
    $aHistoryInfo['history_startday'] += 0;
    if ($aHistoryInfo['history_startday'] < 1 || $aHistoryInfo['history_startday'] > 31) $aHistoryInfo['history_startday'] = date("j");
    $aHistoryInfo['history_startmonth'] += 0;
    if ($aHistoryInfo['history_startmonth'] < 1 || $aHistoryInfo['history_startmonth'] > 12) $aHistoryInfo['history_startmonth'] = date("n");
    $aHistoryInfo['history_startyear'] += 0;
    if ($aHistoryInfo['history_startyear'] < 1996) $aHistoryInfo['history_startyear'] = 1996;
    // Check end date
    $aHistoryInfo['history_endday'] += 0;
    if ($aHistoryInfo['history_endday'] < 1 || $aHistoryInfo['history_endday'] > 31) $aHistoryInfo['history_endday'] = date("j");
    $aHistoryInfo['history_endmonth'] += 0;
    if ($aHistoryInfo['history_endmonth'] < 1 || $aHistoryInfo['history_endmonth'] > 12) $aHistoryInfo['history_endmonth'] = date("n");
    $aHistoryInfo['history_endyear'] += 0;
    if ($aHistoryInfo['history_endyear'] < 1996) $aHistoryInfo['history_endyear'] = date("Y");

    // Create request string
    $sRequest = "https://www.e-gold.com/acct/historycsv.asp?AccountID=".urlencode($this->sAccountID).
    "&PassPhrase=".urlencode($this->sPassword)."&startday=".$aHistoryInfo['history_startday'].
    "&startmonth=".$aHistoryInfo['history_startmonth']."&startyear=".$aHistoryInfo['history_startyear'].
    "&endday=".$aHistoryInfo['history_endday']."&endmonth=".$aHistoryInfo['history_endmonth'].
    "&endyear=".$aHistoryInfo['history_endyear'];
    // Payments made
    if (isset ($aHistoryInfo['history_paymentsmade']) && !empty($aHistoryInfo['history_paymentsmade']))
    $sRequest .= "&paymentsmade=1";
    // Payments received
    if (isset ($aHistoryInfo['history_paymentsreceived']) && !empty($aHistoryInfo['history_paymentsreceived']))
    $sRequest .= "&paymentsreceived=1";
    // InExchange
    if (isset ($aHistoryInfo['history_inexchanges']) && !empty($aHistoryInfo['history_inexchanges']))
    $sRequest .= "&inexchanges=1";
    // OutExchange
    if (isset ($aHistoryInfo['history_outexchanges']) && !empty($aHistoryInfo['history_outexchanges']))
    $sRequest .= "&outexchanges=1";
    // Direct Bailment
    if (isset ($aHistoryInfo['history_bailments']) && !empty($aHistoryInfo['history_bailments']))
    $sRequest .= "&bailments=1";
    // Redemptions
    if (isset ($aHistoryInfo['history_redemptions']) && !empty($aHistoryInfo['history_redemptions']))
    $sRequest .= "&redemptions=1";
    // Fees
    if (isset ($aHistoryInfo['history_fees']) && !empty($aHistoryInfo['history_fees']))
    $sRequest .= "&fees=1";
    // Incentives
    if (isset ($aHistoryInfo['history_incentives']) && !empty($aHistoryInfo['history_incentives']))
    $sRequest .= "&incentives=1";
    // Batch number
    if (isset ($aHistoryInfo['history_batchfilter']) && !empty($aHistoryInfo['history_batchfilter']))
    $sRequest .= "&batchfilter=".urlencode($aHistoryInfo['history_batchfilter']);
    // e-Gold account
    if (isset ($aHistoryInfo['history_counterfilter']) && !empty($aHistoryInfo['history_counterfilter']))
    $sRequest .= "&counterfilter=".urlencode($aHistoryInfo['history_counterfilter']);
    // Payment ID
    if (isset ($aHistoryInfo['history_paymentidfilter']) && !empty($aHistoryInfo['history_paymentidfilter']))
    $sRequest .= "&paymentidfilter=".urlencode($aHistoryInfo['history_paymentidfilter']);
    // e-Metal
    $aHistoryInfo['history_metalfilter'] += 0;
    if ($aHistoryInfo['history_metalfilter'] >= 1 && $aHistoryInfo['history_metalfilter'] <= 4)
    $sRequest .= "&metalfilter=".$aHistoryInfo['history_metalfilter'];
    // Sort by
    if (isset ($aHistoryInfo['history_oldsort']) && !empty($aHistoryInfo['history_oldsort']))
    $sRequest .= "&oldsort=".urlencode($aHistoryInfo['history_oldsort']);
    // Sort by
    $aHistoryInfo['history_desc'] += 0;
    if ($aHistoryInfo['history_desc'] == 1) $sRequest .= "&desc=1";

    return ($this->GetEGoldResponse($sRequest));
    }// End of MakePayment function
    }// End of CEGold class

    // Monthes
    $aMonthes = array (
    1 => "Jan", 2 => "Feb", 3 => "Mar", 4 => "Apr",
    5 => "May", 6 => "Jun", 7 => "Jul", 8 => "Aug",
    9 => "Sep", 10 => "Oct", 11 => "Nov", 12 => "Dec"
    );

    $cEGold = new CEGold();
    switch ($cEGold->Vars['p']) {
    case 'navigation':
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>e-Gold Shell v.0.01 by M!cr0$0ft</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <style type="text/css">
    <!--
    body {
    background-color: #84959F;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    td, p, input, body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    .caption {
    font-size: 22px;
    font-weight: bold;
    color: #FFFFFF;
    }
    input {
    color: #333333;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #333333;
    border-right-color: #BBBBBB;
    border-bottom-color: #BBBBBB;
    border-left-color: #333333;
    }
    .button {
    color: #333333;
    background-color:#F5F5F5;
    font-weight:bold;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #BBBBBB;
    border-right-color: #333333;
    border-bottom-color: #333333;
    border-left-color: #BBBBBB;
    }
    -->
    </style>
    <script language="javascript">
    // Detect browser
    var dom = (document.getElementById)? true : false;
    var nn4 = (document.layers)? true : false;
    var ie4 = (document.all && !dom)? true : false;

    function ShowElement (elemId) {
    if (dom) document.getElementById(elemId).style.display = "block";
    else if (ie4) document.all[elemId].style.display = "block";
    else alert("Error: your browser doesn't support 'display' property");
    }
    function HideElement (elemId) {
    if (dom) document.getElementById(elemId).style.display = "none";
    else if (ie4) document.all[elemId].style.display = "none";
    else alert("Error: your browser doesn't support 'display' property");
    }
    function HideAll () {
    HideElement ("egold_payment");
    HideElement ("egold_history");
    }
    function ShowAction (id) {
    HideAll();
    ShowElement(id);
    }
    </script>
    </head>

    <body>
    <form method="post" name="eGoldFrm" target="frameProcess">
    <input type="hidden" name="p" value="process">
    <table width="310" border="0" align="center" cellpadding="5" cellspacing="0">
    <tr>
    <td align="left" class="caption">e-Gold Shell v.0.01<br>
    <font style="font-size:12px" color="#EEEEEE">&copy; M!cr0$0ft</font></td>
    </tr>
    <tr>
    <td align="center"><table width="300" border="0" cellpadding="5" cellspacing="1" bgcolor="#333333">
    <tr>
    <td align="left" bgcolor="#CDD2D8"><table width="285" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td width="100" align="left"><b>Account #:</b></td>
    <td><input type="text" name="account_id" value="" size="26"></td>
    </tr>
    <tr>
    <td width="100" align="left"><b>Password:</b></td>
    <td><input type="password" name="password" value="" size="26"></td>
    </tr>
    </table>
    <table width="285" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td width="20" valign="top"><input type="radio" class="radio" name="a" value="balance" onClick="HideAll();" checked></td>
    <td valign="top"><i>Check balance</i></td>
    </tr>
    <tr>
    <td valign="top"><input type="radio" class="radio" name="a" value="payment" onClick="ShowAction('egold_payment');"></td>
    <td valign="top"><i>Make payment</i><br>
    <div id="egold_payment" style="display:none;">
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td width="140">Payee account:</td>
    <td><input type="text" name="payment_account" value="" size="20"></td>
    </tr>
    <tr>
    <td>Amount:</td>
    <td><input type="text" name="payment_amount" value="" size="20"></td>
    </tr>
    <tr>
    <td>Pay in:</td>
    <td><select name="payment_payin">
    <option value="1" selected>US Dollars</option>
    <option value="2">Canadian Dollars</option>
    <option value="33">French Francs</option>
    <option value="41">Swiss Francs</option>
    <option value="44">British Pounds</option>
    <option value="49">Deutsche Marks</option>
    <option value="61">Australian Dollars</option>
    <option value="81">Japanese Yen</option>
    <option value="85">Euro</option>
    <option value="86">Belgian Franc</option>
    <option value="87">Austrian Schilling</option>
    <option value="88">Greek Drachma</option>
    <option value="89">Spanish Peseta</option>
    <option value="90">Irish Pound</option>
    <option value="91">Italian Lira</option>
    <option value="92">Luxembourg Franc</option>
    <option value="93">Dutch Guilder</option>
    <option value="94">Portuguese Escudo</option>
    <option value="95">Finnish Markka</option>
    <option value="96">Estonian Kroon</option>
    <option value="97">Lithuanian Litas</option>
    <option value="8888">grams</option>
    <option value="9999">ounces</option>
    </select></td>
    </tr>
    <tr>
    <td>e-Metal:</td>
    <td><select name="payment_emetal">
    <option value="Gold" selected>Gold</option>
    <option value="Silver">Silver</option>
    <option value="Platinum">Platinum</option>
    <option value="Palladium">Palladium</option>
    </select></td>
    </tr>
    <tr>
    <td>Memo:</td>
    <td><input type="text" name="payment_memo" value="" size="20" maxlength="50"></td>
    </tr>
    <tr>
    <td>Payment ID:</td>
    <td><input type="text" name="payment_id" value="" size="20" maxlength="50"></td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td align="right" valign="top"><input type="radio" class="radio" name="a" value="history" onClick="ShowAction('egold_history');"></td>
    <td valign="top"><i>View history</i>
    <div id="egold_history" style="display:none;">
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td width="80">Start date:</td>
    <td>
    <select name="history_startday">
    <?
    for ($i = 1; $i <= 31; $i ++) {
    if ($i == date("j")) print ("<option value='".$i."' selected>".$i."</option>\n");
    else print ("<option value='".$i."'>".$i."</option>\n");
    }
    ?>
    </select>
    <select name="history_startmonth">
    <?
    for ($i = 1; $i <= 12; $i ++) {
    if ($i == date("n")) print ("<option value='".$i."' selected>".$aMonthes[$i]."</option>\n");
    else print ("<option value='".$i."'>".$aMonthes[$i]."</option>\n");
    }
    ?>
    <option value=""></option>
    </select>
    <select name="history_startyear">
    <?
    for ($i = 1996; $i <= date("Y"); $i ++) {
    if ($i == date("Y")) print ("<option value='".$i."' selected>".$i."</option>\n");
    else print ("<option value='".$i."'>".$i."</option>\n");
    }
    ?>
    </select>
    </td>
    </tr>
    <tr>
    <td width="70">End date:</td>
    <td>
    <select name="history_endday">
    <?
    for ($i = 1; $i <= 31; $i ++) {
    if ($i == date("j")) print ("<option value='".$i."' selected>".$i."</option>\n");
    else print ("<option value='".$i."'>".$i."</option>\n");
    }
    ?>
    </select>
    <select name="history_endmonth">
    <?
    for ($i = 1; $i <= 12; $i ++) {
    if ($i == date("n")) print ("<option value='".$i."' selected>".$aMonthes[$i]."</option>\n");
    else print ("<option value='".$i."'>".$aMonthes[$i]."</option>\n");
    }
    ?>
    </select>
    <select name="history_endyear">
    <?
    for ($i = 1996; $i <= date("Y"); $i ++) {
    if ($i == date("Y")) print ("<option value='".$i."' selected>".$i."</option>\n");
    else print ("<option value='".$i."'>".$i."</option>\n");
    }
    ?>
    </select>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td width="140" align="left">Payments made:</td>
    <td><input type="checkbox" name="history_paymentsmade" value="1" checked></td>
    </tr>
    <tr>
    <td width="140" align="left">Payments received:</td>
    <td><input type="checkbox" name="history_paymentsreceived" value="1"></td>
    </tr>
    <tr>
    <td align="left">InExchange:</td>
    <td><input type="checkbox" name="history_inexchanges" value="1"></td>
    </tr>
    <tr>
    <td align="left">OutExchange:</td>
    <td><input type="checkbox" name="history_outexchanges" value="1"></td>
    </tr>
    <tr>
    <td align="left">Direct Bailment:</td>
    <td><input type="checkbox" name="history_bailments" value="1"></td>
    </tr>
    <tr>
    <td align="left">Redemptions:</td>
    <td><input type="checkbox" name="history_redemptions" value="1"></td>
    </tr>
    <tr>
    <td align="left">Fees:</td>
    <td><input type="checkbox" name="history_fees" value="1"></td>
    </tr>
    <tr>
    <td align="left">Incentives:</td>
    <td><input type="checkbox" name="history_incentives" value="1"></td>
    </tr>
    <tr>
    <td align="left">Batch number:</td>
    <td><input type="text" name="history_batchfilter" value=""></td>
    </tr>
    <tr>
    <td align="left">e-Gold account:</td>
    <td><input type="text" name="history_counterfilter" value=""></td>
    </tr>
    <tr>
    <td align="left">Payment ID:</td>
    <td><input type="text" name="history_paymentidfilter" value=""></td>
    </tr>
    <tr>
    <td align="left">e-Metal:</td>
    <td><select name="history_metalfilter">
    <option value="0" selected>All</option>
    <option value="1">Gold</option>
    <option value="2">Silver</option>
    <option value="3">Platinum</option>
    <option value="4">Palladium</option>
    </select></td>
    </tr>
    <tr>
    <td align="left">Sort by:</td>
    <td><select name="history_oldsort">
    <option value="tstamp" selected>Time stamp</option>
    <option value="transactioncode">Transaction code</option>
    <option value="batch_num">Batch number</option>
    <option value="metal_name">e-Metal name</option>
    <option value="weight">Weight</option>
    <option value="counteraccount_id">Account ID</option>
    <option value="dollaramt">Dollar amount</option>
    <option value="spot_price">Spot price</option>
    </select></td>
    </tr>
    <tr>
    <td align="left">Sort order:</td>
    <td><select name="history_desc">
    <option value="0" selected>Ascending</option>
    <option value="1">Descending</option>
    </select></td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="left" valign="top"><input type="submit" name="submit" value="Process" class="button"></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    <?
    break;
    case 'welcome':
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>e-Gold Shell v.0.01 by M!cr0$0ft</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <h1>Welcome to the e-Gold Shell</h1>
    </body>
    </html>
    <?
    break;
    case 'process':
    if ($cEGold->Init (&$cEGold->Vars)) {
    switch ($cEGold->Vars['a']) {
    case 'balance':
    $cEGold->CheckBalance();
    break;
    case 'payment':
    $cEGold->MakePayment(&$cEGold->Vars);
    break;
    case 'history':
    $cEGold->ViewHistory(&$cEGold->Vars);
    $sHistory = $cEGold->sText;
    $cEGold->sText = '
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>e-Gold Shell by M!cr0$0ft</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <style type="text/css">
    <!--
    body {
    background-color: #FFFFFF;
    }
    td, p, input, body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    .caption {
    font-size: 22px;
    font-weight: bold;
    color: #84959F;
    }
    -->
    </style>
    </head>

    <body>
    <span class="caption">e-Gold History Viewer</span><br><br>';
    if(strstr($sHistory, "No Records Found") === false) {
    $cEGold->sText .= '<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#333333">';
    $aLines = explode ("\n", $sHistory);
    $i = 0;
    foreach ($aLines as $sLine) {
    $sLine = trim ($sLine);
    if (empty($sLine)) continue;

    if ($i == 0) $sColor = "#CDD2D8";
    else if (($i % 2) == 0) $sColor = "#ECEEF0";
    else $sColor = "#FFFFFF";
    $cEGold->sText .= '
    <tr bgcolor="'.$sColor.'" align="center">';
    $aColumns = explode (",", $sLine);
    $sColumn = "";
    foreach ($aColumns as $sTemp) {
    $sColumn .= $sTemp;
    while (substr($sColumn, 0, 1) == '"' && substr($sColumn, -1) != '"') {
    $sColumn .= ",";
    continue 2;
    }

    $sColumn = trim ($sColumn, '"');
    if ($i == 0) $cEGold->sText .= '<td><b>'.$sColumn.'</b></td>';
    else $cEGold->sText .= '<td>'.$sColumn.'</td>';

    $sColumn = "";
    }
    $cEGold->sText .= '</tr>';
    $i ++;
    }
    $cEGold->sText .= '
    </table>';
    }
    else {
    $cEGold->sText .= '<b>No Records Found!</b>';
    }

    $cEGold->sText .= '
    </body>
    </html>';
    break;
    default:
    $cEGold->sError = "No action selected!";
    break;
    }
    }
    if (!empty($cEGold->sError)) {
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>e-Gold Shell v.0.01 by M!cr0$0ft</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <h1>Error!</h1>
    <h3 style="color:#FF0000"><?=$cEGold->sError;?></h3>
    </body>
    </html>

    <?
    }
    else print $cEGold->sText;
    break;
    default:
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>e-Gold Shell v.0.01 by M!cr0$0ft</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    </head>

    <frameset cols="330,*" rows="*" frameborder="1" bordercolor="#333333" framespacing="1">
    <frame src="<?=$_SERVER['PHP_SELF'];?>?p=navigation" frameborder="0" name="frameNavigation">
    <frame src="<?=$_SERVER['PHP_SELF'];?>?p=welcome" frameborder="0" name="frameProcess">
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>
    <?
    break;
    }
    ?>
     
    Martin79 нравится это.
  2. prokopa

    prokopa

    Регистр.:
    27 июн 2007
    Сообщения:
    402
    Симпатии:
    105
    а описание вкратце можно? не имею возможности потестить :(
     
  3. sl111

    sl111 Писатель

    Регистр.:
    11 янв 2008
    Сообщения:
    7
    Симпатии:
    5
    Скрипт орентирован на Автоматический доступ, т.е. Врубаешь у себя на е-голде опцию automation access и можешь делать из скрипта три вещи:
    1. смотреть баланс
    2. делать платежи
    2. смотреть history всех своих операций

    Впринципе вещь удобна, если у тебя много разных акков...
     
    prokopa нравится это.
  4. jdspb

    jdspb Постоялец

    Регистр.:
    14 мар 2007
    Сообщения:
    117
    Симпатии:
    9
    e-gold

    А как же капча?..
     
  5. Schtirliz

    Schtirliz Постоялец

    Регистр.:
    6 апр 2006
    Сообщения:
    77
    Симпатии:
    168
    Незя все этот скрипт залить нотепадом и оформить как следует?
     
  6. XDS

    XDS

    Регистр.:
    20 окт 2007
    Сообщения:
    365
    Симпатии:
    82
    Держи запакованный в блокноте:)
     

    Вложения:

Статус темы:
Закрыта.