Skip to content

Commit

Permalink
ADD auto RTL support
Browse files Browse the repository at this point in the history
Update hybrid auth
  • Loading branch information
daniel authored and daniel committed May 23, 2019
1 parent 22e8f62 commit 968ba3a
Show file tree
Hide file tree
Showing 46 changed files with 2,067 additions and 406 deletions.
107 changes: 54 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
/nbproject/private/
/videos/
/nbproject/
/plugin/LiveOnlineUsers/
/plugin/LiveUsers/
/plugin/VideoResolutionSwitcher/
/plugin/AudioTrackSwitcher/
/plugin/Customize/
/plugin/VideoThumbnails/
/plugin/MP4ThumbsAndGif/
/plugin/MP4ThumbsAndGifLocal/
/plugin/PayPalToWatch/
/plugin/predefinedCategory/
/plugin/SecureVideosDirectory/
/plugin/PointsSystem/
/plugin/GoogleAds_IMA/
/plugin/LoginLDAP/
/plugin/SendRecordedToEncoder/
/plugin/SupportAuthor/
/plugin/CountryRedirect/
/plugin/SubtitleSwitcher/
/plugin/AWS_S3/
/plugin/SignUpAgreement/
/plugin/PromoteVideos/
/plugin/Livesearch/
/plugin/AudioVisualizer/
/plugin/Notifications/
/plugin/DIY/
/plugin/AutoShare/
/plugin/LiveCountdownEvent/
/plugin/ReturnToLastPosition/
/plugin/SecondWatch/
/plugin/Tecorio/
/plugin/AD_Server_Promote_Videos/
/plugin/Blackblaze_B2/
/plugin/VideoDocuments/
/plugin/VideoSpeed/
/plugin/FTPAutoImport/
/plugin/IPDirectConnect/
/plugin/Bookmark/
/plugin/Subscription/
/plugin/LifeStreamLayout/
/plugin/Backup/
/plugin/FTP_Storage/
/plugin/SecondLife/
/plugin/YouPHPTV/
/plugin/CreateUserManager/
/plugin/ImportFromOtherVideoPlatform/
/plugin/PayPerView/
/plugin/VideoHLS/
/plugin/Chat2/
/plugin/User_Controll/
/plugin/FlixHouse/
/nbproject/private/
/videos/
/nbproject/
/plugin/LiveOnlineUsers/
/plugin/LiveUsers/
/plugin/VideoResolutionSwitcher/
/plugin/AudioTrackSwitcher/
/plugin/Customize/
/plugin/VideoThumbnails/
/plugin/MP4ThumbsAndGif/
/plugin/MP4ThumbsAndGifLocal/
/plugin/PayPalToWatch/
/plugin/predefinedCategory/
/plugin/SecureVideosDirectory/
/plugin/PointsSystem/
/plugin/GoogleAds_IMA/
/plugin/LoginLDAP/
/plugin/SendRecordedToEncoder/
/plugin/SupportAuthor/
/plugin/CountryRedirect/
/plugin/SubtitleSwitcher/
/plugin/AWS_S3/
/plugin/SignUpAgreement/
/plugin/PromoteVideos/
/plugin/Livesearch/
/plugin/AudioVisualizer/
/plugin/Notifications/
/plugin/DIY/
/plugin/AutoShare/
/plugin/LiveCountdownEvent/
/plugin/ReturnToLastPosition/
/plugin/SecondWatch/
/plugin/Tecorio/
/plugin/AD_Server_Promote_Videos/
/plugin/Blackblaze_B2/
/plugin/VideoDocuments/
/plugin/VideoSpeed/
/plugin/FTPAutoImport/
/plugin/IPDirectConnect/
/plugin/Bookmark/
/plugin/Subscription/
/plugin/LifeStreamLayout/
/plugin/Backup/
/plugin/FTP_Storage/
/plugin/SecondLife/
/plugin/YouPHPTV/
/plugin/CreateUserManager/
/plugin/ImportFromOtherVideoPlatform/
/plugin/PayPerView/
/plugin/VideoHLS/
/plugin/Chat2/
/plugin/User_Controll/
/plugin/FlixHouse/
/plugin/Video_Location_Block/
Empty file modified locale/de.php
100755 → 100644
Empty file.
24 changes: 24 additions & 0 deletions locale/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ function __($str) {
}
}

function isRTL(){
/*
Arabic
Aramaic
Azeri
Dhivehi/Maldivian
Hebrew
Kurdish (Sorani)
Persian/Farsi
Urdu
*/
$array = array(
'JO', // Arabic Jordan
'PS', // Arabic Palestinian Territory, Occupied
'SY', // Arabic Syrian Arab Republic
'IL' // Hebrew
);

if(preg_grep( "/{$_SESSION['language']}/i" , $array )){
return true;
}
return false;
}

function getAllFlags() {
global $global;
$dir = "{$global['systemRootPath']}view/css/flag-icon-css-master/flags/4x3";
Expand Down
Loading

0 comments on commit 968ba3a

Please sign in to comment.