Permalink
Browse files

Fix codes

  • Loading branch information...
RobiNN1 committed Dec 20, 2017
1 parent 0a4aa2f commit c5887ace8e17a44986ac79163772e85065fe032e
@@ -142,6 +142,8 @@ abstract class RewriteDriver {
protected $buffer_search_regex = [];
protected $path_search_regex = [];
protected $dbid = [];
/**
* Import Handlers from Database
* This will import all the Enabled Handlers from the Database Table
@@ -528,8 +530,7 @@ abstract class RewriteDriver {
reset($tag_values);
while (list($regexTag, $tag_replacement) = each($tag_values)) {
foreach ($tag_values as $regexTag => $tag_replacement) {
for ($i = 0; $i < count($output_matches[0]); $i++) {
$statements[$i]["search"] = str_replace($regexTag, $tag_replacement[$i],
@@ -569,7 +570,7 @@ abstract class RewriteDriver {
}
$output_capture_buffer = [
/*$output_capture_buffer = [
"search" => $search,
"output_matches" => $output_matches[0],
"replace_matches" => $replace_matches[0],
@@ -578,7 +579,7 @@ abstract class RewriteDriver {
"tag_values" => $tag_values,
"statements" => $statements,
"loop_counter" => $loop_count,
];
];*/
} else {
@@ -850,8 +851,8 @@ abstract class RewriteDriver {
}
reset($tag_values);
while (list($regexTag, $tag_replacement) = each($tag_values)) {
foreach ($tag_values as $regexTag => $tag_replacement) {
for ($i = 0; $i < count($output_matches[0]); $i++) {
$statements[$i]["search"] = str_replace($regexTag, $tag_replacement[$i],
@@ -868,7 +869,7 @@ abstract class RewriteDriver {
$this->redirect_301($this->cleanURL($statements[0]['replace']));
}
$output_capture_buffer = [
/*$output_capture_buffer = [
"search" => $search,
"output_matches" => $output_matches[0],
"replace_matches" => $replace_matches[0],
@@ -877,7 +878,7 @@ abstract class RewriteDriver {
"tag_values" => $tag_values,
"statements" => $statements,
"loop_counter" => $loop_count,
];
];*/
} else {
@@ -898,7 +899,7 @@ abstract class RewriteDriver {
* This function invoked to prevent of caching any kinds of Non SEO URL on render.
* Let search engine mark as 301 permanently
*
* @param $target The target URL
* @param string $target The target URL
* @param bool $debug
* @access protected
*/
@@ -52,7 +52,7 @@ class Router extends RewriteDriver {
* @data_type Array
* @access private
*/
private $parameters = [];
//private $parameters = [];
/**
* Array of Parameters with their
* actual values.
@@ -403,7 +403,7 @@ class Router extends RewriteDriver {
* This function will build the Regex pattern for a specific string, which is
* passed to the function.
*
* @param $pattern
* @param string $pattern
* @param string $type
* @return mixed|string
*/
@@ -155,7 +155,7 @@ class SiteLinks {
public static function get_LinkVisibility() {
static $visibility_opts = [];
$user_groups = getusergroups();
while (list($key, $user_group) = each($user_groups)) {
foreach ($user_groups as $key => $user_group) {
$visibility_opts[$user_group['0']] = $user_group['1'];
}
@@ -1018,7 +1018,7 @@ private function display_forum_permissions_form() {
opentable($locale['forum_030'], 'm-t-15');
$_access = getusergroups();
$access_opts['0'] = $locale['531'];
while (list($key, $option) = each($_access)) {
foreach ($_access as $key => $option) {
$access_opts[$option['0']] = $option['1'];
}
$public_access_opts = $access_opts;
@@ -255,7 +255,7 @@ private function set_forumDB() {
// Uploads or copy forum image or use back the forum image existing
if (!empty($_FILES) && is_uploaded_file($_FILES['forum_image']['tmp_name'])) {
$upload = form_sanitizer($_FILES['forum_image'], '', 'forum_image');
if ($upload['error'] == 0) {
if (!empty($upload) && $upload['error'] === UPLOAD_ERR_OK) {
if (!empty($upload['thumb1_name'])) {
$this->data['forum_image'] = $upload['thumb1_name'];
} else {
@@ -731,7 +731,7 @@ public function display_forum_admin() {
$tab_title['id'][] = 'fs';
$tab_title['icon'][] = 'fa fa-cogs';
echo opentab($tab_title, (isset($_GET['section']) ? $_GET['section'] : 'fm'), 'forum-admin-tabs', TRUE, 'nav-tabs', 'section', ['action', 'ref', 'mood_id', 'forum_id']);
echo opentab($tab_title, (isset($_GET['section']) ? $_GET['section'] : 'fm'), 'forum-admin-tabs', TRUE, 'nav-tabs m-b-10', 'section', ['action', 'ref', 'mood_id', 'forum_id']);
if (isset($_GET['section'])) {
switch ($_GET['section']) {
@@ -2,10 +2,8 @@
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="polls" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve">
<path fill="#F39C12" stroke="#000000" stroke-miterlimit="10" d="M25.6,22.3h22.3C47.1,10.4,37.6,0.9,25.6,0V22.3z"/>
<path fill="#E74C3C" stroke="#000000" stroke-miterlimit="10" d="M41.7,40.3c3.6-3.9,5.9-9,6.3-14.6H27.1L41.7,40.3z"/>
<path fill="#2980B9" stroke="#000000" stroke-miterlimit="10" d="M22.3,23.3V0C9.8,0.9,0,11.3,0,24c0,6,2.2,11.5,5.9,15.8L22.3,23.3
z"/>
<path fill="#27AE60" stroke="#000000" stroke-miterlimit="10" d="M23.5,26.8L8.2,42.1C12.4,45.8,18,48,24,48
c5.8,0,11.1-2.1,15.2-5.5L23.5,26.8z"/>
<path fill="#F39C12" d="M25.6,22.3h22.3C47.1,10.4,37.6,0.9,25.6,0V22.3z"/>
<path fill="#E74C3C" d="M41.7,40.3c3.6-3.9,5.9-9,6.3-14.6H27.1L41.7,40.3z"/>
<path fill="#2980B9" d="M22.3,23.3V0C9.8,0.9,0,11.3,0,24c0,6,2.2,11.5,5.9,15.8L22.3,23.3z"/>
<path fill="#27AE60" d="M23.5,26.8L8.2,42.1C12.4,45.8,18,48,24,48c5.8,0,11.1-2.1,15.2-5.5L23.5,26.8z"/>
</svg>

0 comments on commit c5887ac

Please sign in to comment.