XoopsModules25x/xoopstube

View on GitHub
language/english/admin.php

Summary

Maintainability
C
7 hrs
Test Coverage

File admin.php has 488 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * Module: XoopsTube
 *
Severity: Minor
Found in language/english/admin.php - About 7 hrs to fix

    Line exceeds 120 characters; contains 214 characters
    Open

    define('_AM_XOOPSTUBE_FCATEGORY_GROUPPROMPT', "Category Access Permissions:<div style='padding-top: 8px;'><span style='font-weight: normal;'>Select user groups who will have access to this Category.</span></div>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 140 characters
    Open

    define('_AM_XOOPSTUBE_SUB_APPROVEWAITINGFILE', "<span style='font-weight: bold;'>Approve</span> new video information without validation.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 171 characters
    Open

    <span style='font-weight: bold;'>MySpace TV:</span> https://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=<span style='color: #FF0000;'>13171141</span><br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 121 characters
    Open

    define('_AM_XOOPSTUBE_PERM_RATEPERMISSIONS_TEXT', 'Select the groups that can rate a video in the selected categories.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 418 characters
    Open

        "<div><span style='font-weight: bold;'>NOTE:</span> Please be aware that even if you've set correct viewing permissions here, a group might not see the articles or blocks if you don't also grant that group permissions to access the module. To do that, go to <span style='font-weight: bold;'>System admin > Groups</span>, choose the appropriate group and click the checkboxes to grant its members the access.</div>"
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 128 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_SETNEWPUBLISHDATE', "<span style='font-weight: bold;'>Set New Publish Date: </span><br>Published:");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 188 characters
    Open

    define('_AM_XOOPSTUBE_PINGTIMES', 'Displays the first estimated round ping time to each video.<br><br>NB: These results may not be accurate and should be taken as a rough guide.<br><br>');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 149 characters
    Open

    define('_AM_XOOPSTUBE_READWRITEERROR', 'You either did not choose a file to upload or the server has insufficient read/writes to upload this file!');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 246 characters
    Open

    define('_AM_XOOPSTUBE_FCATEGORY_SUBGROUPPROMPT', "Category Submission Permissions:<div style='padding-top: 8px;'><span style='font-weight: normal;'>Select user groups who will have permission to submit new videos to this Category.</span></div>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 147 characters
    Open

    <span style='font-weight: bold;'>Veoh:</span> https://www.veoh.com/videos/<span style='color: #FF0000;'>v15069875yApCz7r3</span>?jsonParams=...<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 173 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_FILESSTATUS', " Set video offline?<br><br><span style='font-weight: normal;font-size: smaller;'>Video will not be viewable to all users</span>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 176 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_SETASUPDATED', " Set video Status as Updated?<br><br><span style='font-weight: normal;font-size: smaller;'>Video will display updated icon</span>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 128 characters
    Open

    define('_AM_XOOPSTUBE_ALTCAT_INFOTEXT', '<ul><li>Alternate categories can be added or removed easily via this form.</li></ul>');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 129 characters
    Open

    <span style='font-weight: bold;'>SPIKE/ifilm:</span> https://www.ifilm.com/video/<span style='color: #FF0000;'>2718605</span><br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 199 characters
    Open

    <span style='font-weight: bold;'>Maktoob:</span> file=https://<span style='color: #FF0000;'>m003.maktoob.com/files/23/42/95531c25b690e48a3d69966b6a33b8d2/video/131102</span>.flv (from embed-code)<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 174 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_PICURLNOTE', 'Picture url when source is: Google Video, MySpace TV, DailyMotion, Blip.tv, ClipFish, LiveLeak, Veoh, Vimeo, Megavideo or Maktoob');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 183 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_MUSTBEVALID', 'Screenshot image must be a valid image under %s directory (ex. shot.gif). This screenshot is used for XoopsTube internal flv player only.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 297 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_META_DESCRIPTION_DSC', 'In order to help Search Engines, you can customize the meta description you would like to use for this article. if you leave this field empty when creating a category, it will automatically be populated with the Summary field of this article.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 228 characters
    Open

    define('_AM_XOOPSTUBE_WARNINSTALL1', "<span style='font-weight: bold;'>WARNING:</span> <span style='text-decoration: underline;'>Directory</span> %s exists on your server.<br>Please remove this directory for security reasons.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 139 characters
    Open

    define('_AM_XOOPSTUBE_PERM_AUTOPERMISSIONS_TEXT', 'Select the groups that will have new videos auto approved without admin intervention.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 137 characters
    Open

    define('_AM_XOOPSTUBE_NOTWRITABLE', "<span style='color : red;'>" . ' should have permission ( %1$d ), but it has ( %2$d )' . '</span>');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 181 characters
    Open

    <span style='font-weight: bold;'>Google Video:</span> https://video.google.com/videoplay?docid=<span style='color: #FF0000;'>4761076111111865377</span>&q=rov&total=913&start=...<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 272 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_DELEDITMESS', "Delete Broken Report?<br><br><span style='font-weight: normal;'>When you choose <span style='font-weight: bold;'>YES</span> the Broken Report will be automatically deleted and you confirm that the video now works again.</span>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 173 characters
    Open

    <span style='font-weight: bold;'>Blip.tv </span>embed code<span style='font-weight: bold;'>:</span> https://blip.tv/play/<span style='color: #FF0000;'>Abe6EwA</span> ...<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 155 characters
    Open

    define('_AM_XOOPSTUBE_BROKEN_DELETEDESC', "<span style='font-weight: bold;'>Deletes</span> the reported link data and broken video reports for the link.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 140 characters
    Open

    define('_AM_XOOPSTUBE_BROKEN_CONFIRMDESC', "<span style='font-weight: bold;'>Confirmed</span> Set confirmed state of broken video report.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 132 characters
    Open

    define('_AM_XOOPSTUBE_SUB_EDITWAITINGFILE', "<span style='font-weight: bold;'>Edit</span> new video information and then approve.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 169 characters
    Open

    <span style='font-weight: bold;'>MetaCafe:</span> https://www.metacafe.com/watch/<span style='color: #FF0000;'>191543/sperm_whale_encounters_underwater_robot</span>/<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 185 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_NEWSTITLE', "News Title:<div style='padding-top: 4px; padding-bottom: 4px;'><span style='font-weight: normal;'>Leave Blank to use Video Title</span></div>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 236 characters
    Open

    define('_AM_XOOPSTUBE_LISTBROKEN', 'Displays Videos that are possibly broken. NB: These results may not be accurate and should be taken as a rough guide.<br><br>Please check the video does exist first before any action taken.<br><br>');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

    define('_AM_XOOPSTUBE_ALREADYEXISTTRYAGAIN', ' already exists on the server. Please rename this file and try again.<br>');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 221 characters
    Open

    define('_AM_XOOPSTUBE_WARNINSTALL3', "<span style='font-weight: bold;'>WARNING:</span> <span style='text-decoration: underline;'>Folder</span> %s does not exists on your server.<br>This folder is required by XoopsTube.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 272 characters
    Open

    define('_AM_XOOPSTUBE_MINDEX_PAGEINFOTXT', '<ul><li>XoopsTubes main page details.</li><li>You can easily change the image logo, heading, main index header and footer text to suit your own look</li></ul><br>Note: The Logo image choosen will be used throughout XoopsTube.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 176 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_ALLOWEDAMIME', "<div style='padding-top: 4px; padding-bottom: 4px;'><span style='font-weight: bold;'>Allowed Admin Video Extensions</span>:</div>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 154 characters
    Open

    <span style='font-weight: bold;'>ClipFish:</span> https://www.clipfish.de/player.php?videoid=<span style='color: #FF0000;'>MTg1NTYyfDM1Ng</span>%3D%3D<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 141 characters
    Open

    define('_AM_XOOPSTUBE_BROKEN_ACKDESC', "<span style='font-weight: bold;'>Acknowledged</span> Set Acknowledged state of broken file report.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 157 characters
    Open

    <span style='font-weight: bold;'>Photobucket:</span> https://i39.photobucket.com/albums/<span style='color: #FF0000;'>e168/vailtom/th_BigSquid</span>.jpg<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 154 characters
    Open

    <span style='font-weight: bold;'>DailyMotion:</span> https://www.dailymotion.com/video/<span style='color: #FF0000;'>x40bhg</span>_blondesecretary_fun<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 129 characters
    Open

    <span style='font-weight: bold;'>Megavideo:</span> https://www.megavideo.com/?v=<span style='color: #FF0000;'>J6YSRE0T</span><br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 129 characters
    Open

    define('_AM_XOOPSTUBE_VIDEO_SETPUBDATESETS', "<span style='font-weight: bold;'>Publish Date Set: </span><br>Publishes On Date:");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 223 characters
    Open

    define('_AM_XOOPSTUBE_WARNINSTALL2', "<span style='font-weight: bold;'>WARNING:</span> <span style='text-decoration: underline;'>File</span> %s exists on your server.<br>Please remove this directory for security reasons.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 123 characters
    Open

    define('_AM_XOOPSTUBE_SUB_DELETEWAITINGFILE', "<span style='font-weight: bold;'>Delete</span> the new video information.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 137 characters
    Open

    define('_AM_XOOPSTUBE_VOTE_DELETEDSC', "<span style='font-weight: bold;'>Deletes</span> the chosen vote information from the database.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 165 characters
    Open

    <span style='font-size: small;'><span style='font-weight: bold;'>YouTube:</span> https://www.youtube.com/watch?v=<span style='color: #FF0000;'>IsOtq-qCqZ4</span><br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 146 characters
    Open

    define('_AM_XOOPSTUBE_BROKEN_IGNOREDESC', "<span style='font-weight: bold;'>Ignores</span> the report and only deletes the broken video report.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 134 characters
    Open

    define('_AM_XOOPSTUBE_CCATEGORY_AREUSURE', 'WARNING: Are you sure you want to delete this Category and ALL its Videos and Comments?');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 147 characters
    Open

    <span style='font-weight: bold;'>Viddler:</span> https://www.viddler.com/player/<span style='color: #FF0000;'>d32d2b94</span>/ (see embed code)<br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 131 characters
    Open

    <span style='font-weight: bold;'>XoopsTube: </span><span style='color: #FF0000;'>Take over from above selection menu</span></span>"
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 234 characters
    Open

    define('_AM_XOOPSTUBE_FCATEGORY_MODGROUPPROMPT', "Category Moderation Permissions:<div style='padding-top: 8px;'><span style='font-weight: normal;'>Select user groups who will have permission to moderate this Category.</span></div>");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 137 characters
    Open

    <span style='font-weight: bold;'>LiveLeak:</span> https://www.liveleak.com/view?i=<span style='color: #FF0000;'>a59_1205566630</span><br>
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 128 characters
    Open

    define('_AM_XOOPSTUBE_PERM_APERMISSIONS_TEXT', 'Select the groups who have moderator privligages for the selected categories.');
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    Line exceeds 120 characters; contains 231 characters
    Open

    define('_AM_XOOPSTUBE_WARNINSTALL4', "<span style='font-weight: bold;'>WARNING:</span> <span style='text-decoration: underline;'>Folder</span> %s is not writeable. <br>This folder needs to be writeable (CHMOD 777) for XoopsTube.");
    Severity: Minor
    Found in language/english/admin.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status