Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 2.0.0.0
- * @ Author : DeZender
- * @ Release on : 2011.01.05
- * @ Official site : http://DeZender.Net
- *
- */
- function agent_test() {
- global $agent;
- $agent->close_buffering_( );
- }
- function agent_error($e) {
- global $agent;
- $agent->exitError_( $e );
- }
- function agent_log($log_message) {
- }
- function agent_db_query($sql) {
- $res = db_query( $sql );
- if (!$res) {
- agent_error( new PleskFatalException( 'Unable to query the database: ' . mysql_error( ) . ' SQL: ' . $sql ) );
- }
- return $res;
- }
- function agent_make_sqlin(&$where, $filter_ids, $id_col) {
- if (!count( $filter_ids )) {
- return NULL;
- }
- if (is_null( $where )) {
- $where = '(';
- } else {
- $where .= ' AND (';
- }
- $where .= '(' . $id_col . ' in (';
- $opened = false;
- foreach ($filter_ids as $id) {
- if ($opened) {
- $where .= ',';
- } else {
- $opened = true;
- }
- $where .= $id;
- }
- $where .= ')))';
- }
- ......................................
- ....................
- .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement