示例#1
0
function setDiscount()
{
    $s = $_REQUEST['sid'];
    $t = $_REQUEST['total'];
    include "trans.php";
    $obj = new trans();
    if (!$obj->checkTotal($s, $t)) {
        echo '{"result":0,"message": "did not work."}';
        return;
    }
    $row = $obj->fetch();
    echo '{"result":1,"products":[';
    echo json_encode($row);
    echo "]}";
}
示例#2
0
 function raindrops_import_post_meta()
 {
     global $post, $base_info;
     $r = get_post_meta($post->ID, 'template', true);
     foreach ($base_info['root'] as $key => $val) {
         $r = str_replace('%' . $key . '%', $val, $r);
     }
     if (class_exists('trans')) {
         $n = new trans($r);
         return $n->text2html();
     } else {
         return $r;
     }
 }
        $xml = curl_exec($ch);
        return $xml;
        curl_close($ch);
    }
    function between($von, $bis, $string)
    {
        ##$von (<teil>)
        ##$bis (</teil>)
        ##$string = datei
        $a = explode($von, $string);
        $b = explode($bis, $a[1]);
        return $b[0];
    }
}
// Modibild ausgabe
$trans = new trans();
$trans->host = "80.246.59.44";
//Transserver Host
$trans->port = "4444";
//Transserver Port
$trans->adminpass = "******";
//Transserver Admin Passwort
$trans->adminuser = "******";
//Transserver Admin Username
$bild = $trans->between("<name>", "</name>", $trans->getInfoTrans("op=getstatus&seq=45"));
echo ucfirst($bild) . " on Air!";
// echo $bild;
$DJ = $bild . ".png";
//"./pic/".
echo "<br /><br />";
$DJ_PIC = "<img src='http://www.radio-la-familia.de/images/avatars/" . $DJ . "' alt='" . $bild . "' />";
示例#4
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_order_payment.php';
include_once 'db_config/db_user_transaction.php';
$trans = new trans();
$rs_trans = $trans->uniq_trans_list('user_id', $_SESSION['user_id']);
$data_trans = mysql_fetch_array($rs_trans);
$rs_trans_sum_pending_fund = $trans->sum_trans('pending_fund', $_SESSION['user_id']);
$data_trans_sum_pending_fund = mysql_fetch_array($rs_trans_sum_pending_fund);
$rs_trans_sum_withdraw = $trans->sum_trans('withdraw_request_ammount', $_SESSION['user_id']);
$data_trans_sum_withdraw = mysql_fetch_array($rs_trans_sum_withdraw);
$data_trans = mysql_fetch_array($rs_trans);
//echo $data_trans['pending_fund'];
$user = new user();
$gigs = new gigs();
$order_payment = new order_payment();
$rs = $order_payment->uniq_order_payment_list('buyer_id', $_SESSION['user_id']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
示例#5
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_user_transaction.php';
$trans = new trans();
$date = date('y-m-d h:i:s');
$dataArray = array("user_id" => $_SESSION['user_id'], "pending_fund" => $_REQUEST['amt'], "withdraw_request" => "pending", "withdraw_request_ammount" => $_REQUEST['amt'], "tran_date" => $date);
$trans->dataInsert('ninerr_user_transaction', $dataArray);
$dataArray1 = array("seller_withdraw_status" => "pending");
$fldArray = array();
$trans->dataUpdate('ninerr_user_transaction', $dataArray1, $fldArray);
reDirect('sales_balance.php?req=success');
示例#6
0
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_user_transaction.php';
include_once 'db_config/db_user.php';
$user = new user();
$trans = new trans();
$rs_trans = $trans->trans_list();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orders - Admin</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
   
   
   
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>
<body>
<div id="container">
  <?php 
include_once 'header.php';
示例#7
0
        curl_close($ch);
    }
}
//Shoutcast Trans
$config["servers"]["trans"]["sounddata"] = "";
//Voller Pfad zu den MP3 Titeln
$config["servers"]["trans"]["transdata"] = "";
//Voller Pfad zu dem Sc_Trans
$config["servers"]["trans"]["transhost"] = "radio-la-familia.de";
$config["servers"]["trans"]["transport"] = "9874";
//Trans Port
$config["servers"]["trans"]["transuser"] = "******";
//Trans Username
$config["servers"]["trans"]["transpass"] = "******";
//Trans Passwort
$trans = new trans();
$trans->host = $config["servers"]["trans"]["transhost"];
$trans->port = $config["servers"]["trans"]["transport"];
$trans->adminpass = $config["servers"]["trans"]["transpass"];
$trans->adminuser = $config["servers"]["trans"]["transuser"];
echo "<pre>";
echo "<h1>Get Status</h1>";
echo $trans->getInfoTrans("op=getstatus&seq=45");
echo "<h1>Get Options</h1>";
echo $trans->getInfoTrans("op=getoptions&seq=45");
echo "<h1>Get Endpoints</h1>";
echo $trans->getInfoTrans("op=getendpoints&seq=45");
echo "<h1>Logdata</h1>";
echo $trans->getInfoTrans("op=logdata&seq=45");
echo "<h1>List Playlists</h1>";
echo $trans->getInfoTrans("op=listplaylists&seq=45");