escape_string($_path_lang)); $_check_q = $obj_db->query($_sql_check); $_check_d = $_check_q->fetch_row(); if ($_check_d[0] > 0) { $_path = $_path_lang; } // query content $_sql_content = sprintf('SELECT * FROM content WHERE content_path=\'%s\'', $obj_db->escape_string($_path)); $_content_q = $obj_db->query($_sql_content); // get content data $_content_d = $_content_q->fetch_assoc(); if (!$_content_d['content_title'] OR !$_content_d['content_path']) { return false; } else { $_content['Title'] = $_content_d['content_title']; $_content['Path'] = $_content_d['content_path']; $_content['Content'] = $_content_d['content_desc']; // strip html if ($this->strip_html) { $_content['Content'] = strip_tags($_content['Content'], $this->allowed_tags); } return $_content; } } }