////$fullName = $row['title_ar'] ; # endforeach; // return the full name; ////return $fullName; #} #} //------------------------------------------------------- //------------------------------------------------------- if (!function_exists('seo_admin')) { function seo_admin($Id,$table) { $ci=& get_instance(); $ci->load->database(); $ci->db->where('Id',$Id); $query=$ci->db->get($table); foreach($query->result_array() as $row): ?> <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: Warning</p> <p>Message: Undefined variable $row</p> <p>Filename: helpers/khaled_helper.php</p> <p>Line Number: 252</p> <p>Backtrace:</p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php<br /> Line: 252<br /> Function: _error_handler </p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php<br /> Line: 18<br /> Function: helper </p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php<br /> Line: 181<br /> Function: require_once </p> </div> <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: Warning</p> <p>Message: Trying to access array offset on null</p> <p>Filename: helpers/khaled_helper.php</p> <p>Line Number: 252</p> <p>Backtrace:</p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php<br /> Line: 252<br /> Function: _error_handler </p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php<br /> Line: 18<br /> Function: helper </p> <p style="margin-left:10px"> File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php<br /> Line: 181<br /> Function: require_once </p> </div>

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $row

Filename: helpers/khaled_helper.php

Line Number: 253

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 253
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on null

Filename: helpers/khaled_helper.php

Line Number: 253

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 253
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

" />

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $row

Filename: helpers/khaled_helper.php

Line Number: 254

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 254
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on null

Filename: helpers/khaled_helper.php

Line Number: 254

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 254
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

" /> load->database(); $ci->db->where('Id',$Id); $query=$ci->db->get($table); foreach($query->result_array() as $row): ?>

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $row

Filename: helpers/khaled_helper.php

Line Number: 281

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 281
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on null

Filename: helpers/khaled_helper.php

Line Number: 281

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 281
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

" />

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $row

Filename: helpers/khaled_helper.php

Line Number: 282

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 282
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on null

Filename: helpers/khaled_helper.php

Line Number: 282

Backtrace:

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/helpers/khaled_helper.php
Line: 282
Function: _error_handler

File: /home/u224775367/domains/hilift-egypt.com/public_html/application/controllers/Home.php
Line: 18
Function: helper

File: /home/u224775367/domains/hilift-egypt.com/public_html/index.php
Line: 181
Function: require_once

" /> load->database(); $ci->db->where('Id',$Id); $query=$ci->db->get($table); foreach($query->result_array() as $row): if($row['site_open']=='2'){ echo $row['message_Site_Close']; exit() ; } ////$fullName = $row['title_ar'] ; endforeach; // return the full name; ////return $fullName; } } //------------------------------------------------------- //------------------------------------------------------- if (!function_exists('Mail_Site')) { function Mail_Site($Id,$table) { $ci=& get_instance(); $ci->load->database(); $ci->db->where('Id',$Id); $query=$ci->db->get($table); foreach($query->result_array() as $row): $fullName = $row['mail_site'] ; endforeach; // return the full name; return $fullName; } } //------------------------------------------------------- //------------------------------------------------------- if (!function_exists('select_table')) { function select_table($table,$filde,$Id) { $ci=& get_instance(); $ci->load->database(); $ci->db->where('Id',$Id); $query = $ci->db->get($table); foreach($query->result_array() as $row): $fullName = $row[$filde] ; endforeach; // return the full name; return $fullName; } } //------------------------------------------------------- //------------------------------------------------------- if (!function_exists('alert')) { function alert($alert) { ?> load->database(); ///$ci->db->where('show','1'); $query=$ci->db->query("select count(Id) as count_Id from inbox where shows='1' and Recipient='0' "); foreach($query->result_array() as $row): $fullName = $row['count_Id'] ; endforeach; // return the full name; return $fullName; } } //------------------------------------------------------- //------------------------------------------------------- //------------------------------------------------------- //------------------------------------------------------- //------------------------------------------------------------- if (!function_exists('html2txt')) { function html2txt($document){ $search = array('@]*.*?@si', // Strip out javascript '@<[\/\!]*?[^<>]*@si', // Strip out HTML tags '@]*.*?@siU', // Strip style tags properly '@@' // Strip multi-line comments including CDATA ); $text = preg_replace($search, '', $document); return $text; } } function rip123($string) { // ----- remove HTML TAGs ----- $string = preg_replace ('/<[^>]*>/', ' ', $string); // ----- remove control characters ----- $string = str_replace("\r", '', $string); // --- replace with empty space $string = str_replace("\n", ' ', $string); // --- replace with space $string = str_replace("\t", ' ', $string); // --- replace with space // ----- remove multiple spaces ----- $string = trim(preg_replace('/ {2,}/', ' ', $string)); return $string; } if (!function_exists('sort_my')) { function sort_my($document,$num){ $str=stripcslashes($document) ; $v_text=html2txt($str) ; $v_text2 = str_replace(">", "", $v_text); $v_text = trim($v_text2); $v_array = explode(" ", $v_text); $x=0 ; foreach ($v_array as $value) { $x=$x+1 ; if($x <= $num){ echo $value." "; } } return $value; } } //------------------------------------------------------- if (!function_exists('check')) { function check($id){ $ci=& get_instance(); $ci->load->database(); $ci->db->where('catalog_sub', $id); $q=$ci->db->get('category'); if ($q->num_rows()>0){ $row=$q->row(); return TRUE; }else{ return FALSE; } } } if (!function_exists('check_more')) { function check_more($id,$filde,$table){ $ci=& get_instance(); $ci->load->database(); $ci->db->where($filde, $id); $q=$ci->db->get($table); if ($q->num_rows()>0){ $row=$q->row(); return TRUE; }else{ return FALSE; } } } //------------------------------------------------------- //------------------------------------------------------- if (!function_exists('nationality')) { function nationality() { $ci=& get_instance(); $ci->load->database(); $query=$ci->db->get('nationality'); foreach($query->result_array() as $row): ?> load->database(); $ci->db->where('catalog_sub',$Id); $query=$ci->db->get('category'); echo "