Code Duplication    Length = 10-10 lines in 5 locations

main/tracking/userLog.php 1 location

@@ 356-365 (lines=10) @@
353
            }
354
            echo "</table>";
355
            echo "</td></tr>";
356
        } else {
357
            $new_view = substr_replace($view, '1', 5, 1);
358
            echo "
359
                <tr>
360
                        <td valign='top'>
361
                        +<font color='#0000FF'>&nbsp;&nbsp;</font><a href='".api_get_self()."?view=".Security::remove_XSS($new_view)."&uInfo=".Security::remove_XSS($uInfo)."' class='specialLink'>".get_lang('ScormAccess')."</a>
362
                        </td>
363
                </tr>
364
            ";
365
        }
366
    }
367
} else {
368
    // not allowed

main/inc/lib/tracking.lib.php 4 locations

@@ 6650-6659 (lines=10) @@
6647
    		}
6648
    		echo "</table>";
6649
    		echo "</td></tr>";
6650
    	} else {
6651
    		$new_view = substr_replace($view,'1',0,1);
6652
    		echo "
6653
                <tr>
6654
                    <td valign='top'>
6655
                    +<font color='#0000FF'>&nbsp;&nbsp;</font><a href='".api_get_self()."?uInfo=".$user_id."&view=".Security::remove_XSS($new_view)."' class='specialLink'>".get_lang('LoginsAndAccessTools')."</a>
6656
                    </td>
6657
                </tr>
6658
            ";
6659
    	}
6660
    }
6661
6662
    /**
@@ 6825-6834 (lines=10) @@
6822
    		}
6823
    		echo "</table>";
6824
    		echo "</td></tr>";
6825
    	} else {
6826
    		$new_view = substr_replace($view,'1',2,1);
6827
    		echo "
6828
                <tr>
6829
                    <td valign='top'>
6830
                    +<font color='#0000FF'>&nbsp;&nbsp;</font><a href='".api_get_self()."?uInfo=".Security::remove_XSS($user_id)."&view=".Security::remove_XSS($new_view)."' class='specialLink'>".get_lang('WorkUploads')."</a>
6831
                    </td>
6832
                </tr>
6833
            ";
6834
    	}
6835
    }
6836
6837
    /**
@@ 6882-6891 (lines=10) @@
6879
    		}
6880
    		echo "</table>";
6881
    		echo "</td></tr>";
6882
    	} else {
6883
    		$new_view = substr_replace($view,'1',3,1);
6884
    		echo "
6885
                <tr>
6886
                    <td valign='top'>
6887
                    +<font color='#0000FF'>&nbsp;&nbsp;</font><a href='".api_get_self()."?uInfo=".Security::remove_XSS($user_id)."&view=".Security::remove_XSS($new_view)."' class='specialLink'>".get_lang('LinksAccess')."</a>
6888
                    </td>
6889
                </tr>
6890
            ";
6891
    	}
6892
    }
6893
6894
    /**
@@ 6949-6958 (lines=10) @@
6946
    		}
6947
    		echo "</table>";
6948
    		echo "</td></tr>";
6949
    	} else {
6950
    		$new_view = substr_replace($view,'1',4,1);
6951
    		echo "
6952
                <tr>
6953
                    <td valign='top'>
6954
                    +<font color='#0000FF'>&nbsp;&nbsp;</font><a href='".api_get_self()."?uInfo=".Security::remove_XSS($user_id)."&view=".Security::remove_XSS($new_view)."' class='specialLink'>".get_lang('DocumentsAccess')."</a>
6955
                    </td>
6956
                </tr>
6957
            ";
6958
    	}
6959
    }
6960
6961
    /**