本文整理汇总了PHP中OtarEncrypt函数的典型用法代码示例。如果您正苦于以下问题:PHP OtarEncrypt函数的具体用法?PHP OtarEncrypt怎么用?PHP OtarEncrypt使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OtarEncrypt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
}
// CONNECT INFORMATION TO TAGS SEARCH DATABASE \\
$TagArticle = $Article_Id;
$Tags = explode(",", $Tags);
foreach ($Tags as $value) {
$query = "SELECT * FROM cw_tags WHERE name='{$value}'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$TagSearchId = $row["id"];
if ($TagSearchId == "") {
$TagId = array("{$TagArticle}");
$TagId = OtarEncrypt($key, $TagId);
if ($value == "") {
} else {
mysql_query("INSERT INTO cw_tags\n\t\t\t\t(name, content) VALUES('{$value}', '{$TagId}') ") or die(mysql_error());
}
} else {
$TagId = $row["content"];
$TagId = OtarDecrypt($key, $TagId);
if (in_array($TagArticle, $TagId)) {
} else {
array_push($TagId, $TagArticle);
$NewTagArray = OtarEncrypt($key, $TagId);
$result = mysql_query("UPDATE cw_tags SET content='{$NewTagArray}' WHERE id='{$TagSearchId}'") or die(mysql_error());
}
}
}
$REDIRECT = "admin/Menu";
$Domain = $Array["siteinfo"]["domain"];
header("Location: {$Domain}/{$REDIRECT}");
}
示例2: OtarEncrypt
<?php
$PageIds['article'] = $Article['id'];
$PageIds = OtarEncrypt($key, $PageIds);
?>
<div class="cl-mcont">
<div class="page-head">
<ol class="breadcrumb">
<li><a href="/admin">Dashboard</a></li>
<li><a href="/admin/Menu">Menu</a></li>
<li class="active">Menu Link</li>
</ol></div>
<div class="row wizard-row">
<div class="col-md-12 fuelux">
<div class="block-wizard">
<div class="step-content">
<form class="form-horizontal group-border-dashed" action="/Process/Menu" method='post' id="articlewizard" data-parsley-namespace="data-parsley-" data-parsley-validate novalidate enctype="multipart/form-data">
<div class="step-pane active" id="step1">
<div class="form-group no-padding">
<div class="col-sm-7">
<h3 class="hthin">Menu Info</h3>
</div></div>
<div class="form-group">
<label class="col-sm-3 control-label">Active</label>
<div class="col-sm-6">
<select class="form-control" name='active'>
<option value="<?php
if ($Article['active'] == "") {
示例3: mysql_query
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Status</th>
<th>Template</th>
<th>Settings</th>
</tr>
</thead>
<tbody>
<?php
$Query = "SELECT * FROM page_template WHERE trash='0'";
$Result = mysql_query($Query) or die(mysql_error());
while ($Row = mysql_fetch_array($Result)) {
$ArticleId = OtarEncrypt($key, $Row['id']);
$Row = PbUnSerial($Row);
$query = "SELECT * FROM page_settings WHERE article='{$ArticleId}'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$row = PbUnSerial($row);
$qUery = "SELECT * FROM page_structure WHERE url='{$Row['url']}' AND urltype='{$Row['urltype']}' AND end='{$Row['end']}' AND urlid='{$Row['urlid']}' AND template='{$Row['template']}'";
$rEsult = mysql_query($qUery) or die(mysql_error());
$rOw = mysql_fetch_array($rEsult);
$rOw = PbUnSerial($rOw);
$qUerY = "SELECT * FROM articles WHERE id='{$Row['article']}'";
$rEsulT = mysql_query($qUerY) or die(mysql_error());
$rOW = mysql_fetch_array($rEsulT);
$rOW = PbUnSerial($rOW);
$ArticleName = $rOW['content']['name'];
if ($ArticleName == "") {
示例4: OtarEncrypt
<?php
$ReturnComplete[id] = $_POST[transid];
$ReturnComplete[status] = "1";
$ReturnComplete = OtarEncrypt($Array, $ReturnComplete);
$ReturnCanceled[id] = $_POST[transid];
$ReturnCanceled[status] = "0";
$ReturnCanceled = OtarEncrypt($Array, $ReturnCanceled);
?>
<form action="https://secure.paypal.com/uk/cgi-bin/webscr" id='camceleb' method="post" name="paypal">
<!-- Pre Populate the Paypal Checkout Page With Customer Details, -->
<input type="hidden" name="first_name" value="<?php
echo $_POST[firstname];
?>
">
<input type="hidden" name="last_name" value="<?php
echo $_POST[lastname];
?>
">
<input type="hidden" name="email" value="<?php
echo $_POST[email];
?>
">
<input type="hidden" name="address1" value="<?php
echo $_POST[address];
?>
">
<input type="hidden" name="address2" value="<?php
echo $_POST[address2];
?>
">
示例5: OtarEncrypt
</td>
<td><?php
if ($Row[active] == "1") {
echo "Active";
} else {
echo "In-Active";
}
?>
</td>
<td class="center">
<div class="btn-group">
<button class="btn btn-default btn-xs" type="button">Actions</button>
<button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul role="menu" class="dropdown-menu">
<li><a href="/admin/Functions/<?php
echo OtarEncrypt($Array, $FunctionId);
?>
" target="function">Edit</a></li>
<li><a href="#">Copy</a></li>
<li><a href="#">Details</a></li>
<li class="divider"></li>
<li><a href="/Process/Delete/Functions/<?php
echo OtarEncrypt($Array, $FunctionId);
?>
" target="function">Remove</a></li>
</ul></div></td>
</tr><?php
}
?>
示例6: mysql_real_escape_string
</td>
<td><?php
echo mysql_real_escape_string($Access);
?>
</td>
<td><?php
echo mysql_real_escape_string($Status);
?>
</td>
<td class="center">
<div class="btn-group">
<button class="btn btn-default btn-xs" type="button">Actions</button>
<button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul role="menu" class="dropdown-menu">
<li><a href="/admin/Users/<?php
echo OtarEncrypt($key, $Row['id']);
?>
">Edit</a></li>
<li class="divider"></li>
</ul></div></td>
</tr><?php
}
}
?>
</tbody></table>
</div></div></div>
</div><?php
}
?>
示例7: StatusName
</td>
<td><?php
echo StatusName($Row['active']);
?>
</td>
<td class="center">
<div class="btn-group">
<button class="btn btn-default btn-xs" type="button">Actions</button>
<button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul role="menu" class="dropdown-menu">
<li><a href="/admin/Cinema/<?php
echo $ArticleId;
?>
">Edit</a></li>
<li><a href="/Process/Copy/Cinema/<?php
echo OtarEncrypt($key, $ArticleId);
?>
">Copy</a></li>
<li class="divider"></li>
<li><a href="/Process/Delete/Article/<?php
echo $ArticleId;
?>
">Remove</a></li>
</ul></div></td>
</tr>
<?php
}
?>
</tbody>
</table>
示例8: OtarDecrypt
$Status = $Value[status];
$TransId = $Value[id];
$TransId = OtarDecrypt($Array, $TransId);
$query = "SELECT * FROM trans WHERE transid='{$TransId}' AND active='1' AND trash='0'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$TransId = $row[transid];
if ($TransId == "") {
$REDIRECT = "Events";
} else {
if ($Status == "1") {
$result = mysql_query("UPDATE trans SET status='Complete' WHERE transid='{$TransId}'") or die(mysql_error());
$TransId = OtarEncrypt($Array, $TransId);
$REDIRECT = "Dashboard/Orders/{$TransId}";
} else {
$result = mysql_query("UPDATE trans SET status='Pending' WHERE transid='{$TransId}'") or die(mysql_error());
$TransId = OtarEncrypt($Array, $TransId);
$REDIRECT = "Dashboard/Orders/{$TransId}";
// CREATE QR BARCODE \\
}
}
$Domain = $Array[siteinfo][domain];
?>
<script type="text/javascript">
<!--
window.location = "<?php
echo "{$Domain}/{$REDIRECT}";
?>
"
//-->
</script>
示例9: OtarEncrypt
<div class="form-group">
<div class="col-sm-12">
<button data-wizard="#wizard1" class="btn btn-default wizard-previous"><i class="fa fa-caret-left"></i> Previous</button>
<button data-wizard="#wizard1" type="submit" onclick="document.forms[0].submit();" class="btn btn-success wizard-next"><i class="fa fa-check"></i> Continue</button>
</div></div></div>
<input type="hidden" name='articleid' value="<?php
echo OtarEncrypt($key, $Article['id']);
?>
">
<input type="hidden" name='id' value="<?php
echo OtarEncrypt($key, $FunctionId);
?>
">
<input type="hidden" name='random' value="<?php
echo OtarEncrypt($key, $Random);
?>
">
<input type="hidden" name='updatetype' value="function">
<input type="hidden" name='template' value="<?php
echo $FunctionTheme;
?>
">
</form></div>
</div></div></div>
</div></div></div>
示例10: Pulltheme
<div class="content">
<div class="table-responsive">
<table class="table table-bordered" id="datatable" >
<thead>
<tr>
<th>Name</th>
<th>Settings</th>
</tr>
</thead>
<tbody>
<?php
$Templates = Pulltheme($ThemePath, "0");
foreach ($Templates as $Template) {
$TempId = OtarEncrypt($key, $Template);
?>
<tr class="odd gradeX">
<td><?php
echo $Template['1'];
?>
</td>
<td class="center">
<div class="btn-group">
<button class="btn btn-default btn-xs" type="button">Actions</button>
<button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul role="menu" class="dropdown-menu">
<li><a href="/admin/Design/<?php
echo $TempId;
?>
">Edit</a></li>
示例11: serialize
$Other['lastname'] = $_POST['lastname'];
$Other['email'] = $_POST['email'];
$Other['address'] = $_POST['address'];
$Other['message'] = $_POST['message'];
$Other = serialize($Other);
if ($CwCartTotal == "") {
$CwCartTotal = "0.00";
}
if ($Type == "") {
$Type = "General Merchandise";
}
// SELECT PAYMENT METHOD \\
$Method = $_POST['method'];
$Redirect = $_POST['method'];
// CHECK FOR PREVIOUS TRANSACTION LISTING \\
if ($Prev_Trans == "1") {
$TransId = "";
} else {
// CREATE TRANSACTION INFO \\
mysql_query("INSERT INTO trans\n (user, id, status, method, type, price, typeid, cart, delivery_option, other) VALUES('{$Current_Admin_Id}', '{$TransId}', 'Pending', '{$Method}', '{$Type}', '{$CartTotal}', '{$Id}', '{$Cart}', '{$Delivery}', '{$Other}') ") or die(mysql_error());
}
$TransId = OtarEncrypt($key, $TransId);
?>
<form action="/Checkout" id='payment' method="post" name="paymentmethod">
<input type='hidden' name='trans' value='<?php
echo $TransId;
?>
'>
<script type="text/javascript">
document.getElementById("payment").submit();
</script>
示例12: mysql_query
<div class="table-responsive">
<table class="table table-bordered" id="datatable" >
<thead>
<tr>
<th>Name</th>
<th>Page Views</th>
<th>Settings</th>
</tr>
</thead>
<tbody>
<?php
$Query = "SELECT * FROM transfer WHERE trash='0' ORDER BY id";
$Result = mysql_query($Query) or die(mysql_error());
while ($Row = mysql_fetch_array($Result)) {
$ArticleId = OtarEncrypt($key, $Row[id]);
?>
<tr class="odd gradeX">
<td><?php
echo $Row['name'];
?>
</td>
<td><?php
echo $Row['hits'];
?>
</td>
<td class="center">
<div class="btn-group">
<button class="btn btn-default btn-xs" type="button">Actions</button>
<button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul role="menu" class="dropdown-menu">
示例13: OtarDecrypt
<?php
$Trans_Id = OtarDecrypt($key, $_GET['type']);
$query = "SELECT * FROM trans WHERE id='{$Trans_Id}'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$Cw_Shipment = "10";
$Cart_Total = $row['price'];
$ReturnComplete['id'] = $Trans_Id;
$ReturnComplete['status'] = "1";
$ReturnComplete = OtarEncrypt($key, $ReturnComplete);
$ReturnCanceled['id'] = $Trans_Id;
$ReturnCanceled['status'] = "0";
$ReturnCanceled = OtarEncrypt($key, $ReturnCanceled);
$Structure_Type = "payment-process";
include "{$THEME}/layout.php";
include "api/paypal/payment.php";
示例14: OtarEncrypt
$Info = OtarEncrypt($Ad_Secret, $Info);
$Method['service'] = "advertisement";
$Method['id'] = "";
$Method['website'] = "";
$Request['info'] = $Info;
$Request['appid'] = $Array['pblast']['appid'];
$Request['method'] = $Method;
$Request['website'] = $Website_Url_Auth;
$Request = OtarEncrypt($PB_Access, $Request);
$Loc = "uploads/temp/";
$file = $Loc . "Ad-" . $Ad_Id . ".txt";
$myfile = fopen("{$file}", "w") or die("Unable to open file!");
fwrite($myfile, $Request);
fclose($myfile);
$Loc = $Array['siteinfo']['domain'] . "/" . $file;
$Loc = OtarEncrypt($PB_Access, $Loc);
$url = "http://pblast.in/api/request.php?request=file&loc={$Loc}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, '3');
$content = trim(curl_exec($ch));
curl_close($ch);
#$curl = curl_init();
#curl_setopt ($curl, CURLOPT_URL, "http://www.pblast.in/api/request.php");
#curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
#$result = curl_exec ($curl);
#curl_close ($curl);
#print $result;
#$result = mysql_query("UPDATE cw_ads SET pb='$content' WHERE id='$Ad_Id'")
#or die(mysql_error());
示例15: mysql_query
/Functions/New">Create New</a></th>
</tr>
</thead>
<tbody>
<?php
$Query = "SELECT * FROM articles WHERE category='{$ThemeId['2']}' AND type='function' AND trash='0'";
$Result = mysql_query($Query) or die(mysql_error());
while ($Row = mysql_fetch_array($Result)) {
$Row = PbUnSerial($Row);
$QuerY = "SELECT * FROM page_function WHERE article='{$Row['id']}'";
$ResulT = mysql_query($QuerY) or die(mysql_error());
$RoW = mysql_fetch_array($ResulT);
$Shortcode = $RoW['shortcode'];
$ArticleCat = $Row['category'];
$artFunId = $Row['id'];
$artFunId = OtarEncrypt($key, $artFunId);
$query = "SELECT * FROM articles WHERE id='{$ArticleCat}' AND active='1' AND trash='0'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$row = PbUnSerial($row);
?>
<tr class="odd gradeX">
<td><?php
echo $Row['content']['name'];
?>
</td>
<td><?php
if ($Row['active'] == "1") {
echo "Active";
} else {
echo "In-Active";