├── .gitignore ├── Changelog.md ├── Credits.md ├── README.md ├── app ├── Controllers │ ├── AdminPanel.php │ ├── Auth.php │ ├── ChangeLang.php │ ├── Home.php │ ├── LiveCheck.php │ └── Members.php ├── Example-Config.php ├── Install │ ├── Footer.php │ ├── Header.php │ ├── Install.php │ ├── Step1.php │ ├── Step2.php │ ├── Step3.php │ ├── Step4.php │ ├── Step5.php │ ├── database_check.php │ ├── database_import.php │ ├── email_check.php │ ├── recap_check.php │ └── recaptcha.php ├── Models │ ├── AdminPanel.php │ ├── Auth.php │ ├── Home.php │ ├── Members.php │ ├── Recent.php │ └── Users.php ├── Plugins │ ├── Comments │ │ ├── CommentsVersion.php │ │ ├── Controllers │ │ │ └── Comments.php │ │ ├── Models │ │ │ └── Comments.php │ │ └── Views │ │ │ ├── comments_sidebar.php │ │ │ └── view_comments_status.php │ ├── Forum │ │ ├── Controllers │ │ │ ├── Forum.php │ │ │ └── ForumAdmin.php │ │ ├── ForumVersion.php │ │ ├── Models │ │ │ ├── Forum.php │ │ │ └── ForumAdmin.php │ │ └── Views │ │ │ ├── forum_blocked.php │ │ │ ├── forum_categories.php │ │ │ ├── forum_home.php │ │ │ ├── forum_settings.php │ │ │ ├── forum_sidebar.php │ │ │ ├── forum_top_sweets_card.php │ │ │ ├── forum_top_viewed_card.php │ │ │ ├── forum_unpublished.php │ │ │ ├── newtopic.php │ │ │ ├── searchForum.php │ │ │ ├── topic.php │ │ │ └── topics.php │ ├── Friends │ │ ├── Controllers │ │ │ └── Friends.php │ │ ├── FriendsVersion.php │ │ ├── Models │ │ │ └── Friends.php │ │ └── Views │ │ │ ├── friend_requests.php │ │ │ ├── friends.php │ │ │ └── friends_sidebar.php │ └── Messages │ │ ├── Controllers │ │ └── Messages.php │ │ ├── MessagesVersion.php │ │ ├── Models │ │ └── Messages.php │ │ └── Views │ │ ├── message_display.php │ │ ├── message_new.php │ │ ├── messages.php │ │ ├── messages_list.php │ │ └── messages_sidebar.php ├── Routes.php ├── System │ ├── Controller.php │ ├── Error.php │ ├── ErrorLogger.php │ ├── Language │ │ ├── En │ │ │ ├── 404.php │ │ │ ├── Auth.php │ │ │ ├── Friends.php │ │ │ ├── Members.php │ │ │ └── Welcome.php │ │ ├── Es │ │ │ ├── 404.php │ │ │ ├── Auth.php │ │ │ ├── Friends.php │ │ │ ├── Members.php │ │ │ └── Welcome.php │ │ ├── LangList.php │ │ └── fr │ │ │ ├── 404.php │ │ │ ├── Auth.php │ │ │ ├── Friends.php │ │ │ ├── Members.php │ │ │ └── Welcome.php │ ├── Libraries │ │ ├── Adds.php │ │ ├── Assets.php │ │ ├── Auth │ │ │ ├── Auth.php │ │ │ ├── Cookie.php │ │ │ └── Cookie_Multi_Domain.php │ │ ├── BBCode.php │ │ ├── Comments.php │ │ ├── Common.php │ │ ├── Csrf.php │ │ ├── CurrentUserData.php │ │ ├── Database.php │ │ ├── ErrorMessages.php │ │ ├── Form.php │ │ ├── ForumStats.php │ │ ├── Images.php │ │ ├── Inflector.php │ │ ├── Language.php │ │ ├── PageFunctions.php │ │ ├── PageViews.php │ │ ├── Paginator.php │ │ ├── Password.php │ │ ├── PhpMailer │ │ │ ├── Exception.php │ │ │ ├── Mail.php │ │ │ ├── PhpMailer.php │ │ │ ├── Pop3.php │ │ │ └── Smtp.php │ │ ├── Request.php │ │ ├── Session.php │ │ ├── SimpleImage.php │ │ ├── SiteStats.php │ │ ├── SuccessMessages.php │ │ ├── Sweets.php │ │ ├── TimeDiff.php │ │ ├── Url.php │ │ └── ZipCode.php │ ├── Load.php │ ├── LoadSiteSettings.php │ ├── Models.php │ └── Router.php ├── Templates │ ├── AdminPanel │ │ ├── Assets │ │ │ ├── css │ │ │ │ ├── datepicker.css │ │ │ │ ├── datepicker3.css │ │ │ │ ├── index.htm │ │ │ │ └── sb-admin.css │ │ │ ├── images │ │ │ │ ├── favicon.ico │ │ │ │ ├── index.htm │ │ │ │ ├── logo.gif │ │ │ │ └── uap3logolg.gif │ │ │ └── js │ │ │ │ ├── bootstrap.bundle.min.js │ │ │ │ ├── chart-data.js │ │ │ │ ├── chart.min.js │ │ │ │ ├── index.htm │ │ │ │ ├── jquery.easing.min.js │ │ │ │ ├── jquery.min.js │ │ │ │ └── sb-admin.min.js │ │ ├── Footer.php │ │ └── Header.php │ └── Default │ │ ├── Assets │ │ ├── css │ │ │ ├── index.htm │ │ │ └── style.css │ │ ├── images │ │ │ ├── favicon.ico │ │ │ ├── index.htm │ │ │ ├── logo.gif │ │ │ ├── uap3logolg.gif │ │ │ └── uap4logo_wait_animation.gif │ │ └── js │ │ │ ├── bbcode.js │ │ │ ├── bbcode_status.js │ │ │ ├── form_check_all.js │ │ │ ├── forum_autosave_topic.js │ │ │ ├── forum_autosave_topic_reply.js │ │ │ ├── index.htm │ │ │ ├── index.html │ │ │ ├── lang.En.js │ │ │ ├── lang.Es.js │ │ │ ├── live_email.js │ │ │ ├── live_username_check.js │ │ │ ├── loader.js │ │ │ └── password_strength_match.js │ │ ├── Footer.php │ │ └── Header.php ├── Update │ ├── Update.php │ └── db_updates_421_to_430.sql └── Views │ ├── Adds │ ├── AddsBottom.php │ ├── AddsSidebarBottom.php │ ├── AddsSidebarTop.php │ └── AddsTop.php │ ├── AdminPanel │ ├── Adds.php │ ├── AdminPanel.php │ ├── AdvancedSettings.php │ ├── AuthLogs.php │ ├── EmailSettings.php │ ├── Group.php │ ├── Groups.php │ ├── MassEmail.php │ ├── PagePermissions.php │ ├── PagesPermissions.php │ ├── Settings.php │ ├── SiteLink.php │ ├── SiteLinks.php │ ├── SystemRoute.php │ ├── SystemRoutes.php │ ├── TermsPrivacy.php │ ├── Upgrade.php │ ├── User.php │ └── Users.php │ ├── Error │ └── 404.php │ ├── Home │ ├── About.php │ ├── Contact.php │ ├── Content.php │ ├── Error.php │ ├── Home.php │ ├── Member-Forum-Sidebar.php │ ├── Member-Friends-Sidebar.php │ └── Recent.php │ └── Members │ ├── Account-Settings.php │ ├── Activate.php │ ├── Change-Email.php │ ├── Change-Password.php │ ├── Edit-Profile-Image.php │ ├── Edit-Profile-Images.php │ ├── Edit-Profile.php │ ├── Forgot-Password.php │ ├── LiveCheck.php │ ├── Login.php │ ├── Member-Account-Sidebar.php │ ├── Member-Stats-Sidebar.php │ ├── Members.php │ ├── Privacy-Settings.php │ ├── Register.php │ ├── Resend-Activation.php │ ├── Reset-Password.php │ └── View-Profile.php ├── assets ├── images │ ├── forum-pics │ │ ├── index.html │ │ ├── replies │ │ │ └── index.html │ │ └── topics │ │ │ └── index.html │ ├── index.html │ └── profile-pics │ │ ├── default-1.jpg │ │ ├── default-2.jpg │ │ ├── default-3.jpg │ │ ├── default-4.jpg │ │ ├── default-5.jpg │ │ └── index.html ├── index.html └── themes │ ├── cerulean │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── cosmo │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── cyborg │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── darkly │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── default │ └── uap-custom.css │ ├── flatly │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── index.html │ ├── journal │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── litera │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── lumen │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── lux │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── materia │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── minty │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── pulse │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── sandstone │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── simplex │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── sketchy │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── slate │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── solar │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── spacelab │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── superhero │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ ├── united │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css │ └── yeti │ ├── _bootswatch.scss │ ├── _variables.scss │ ├── bootstrap.css │ ├── bootstrap.min.css │ └── uap-custom.css ├── composer.json ├── composer.lock ├── database.sql ├── errors ├── missing-lang.log └── php-error.log └── public ├── .htaccess ├── index.php └── uap4logo_wait_animation.gif /.gitignore: -------------------------------------------------------------------------------- 1 | app/Config.php 2 | app/_notes/dwsync.xml 3 | app/Templates/Default/_notes/dwsync.xml 4 | *.xml 5 | [Vv]endor/ 6 | app/Example-Config.php 7 | app/Example-Config.php 8 | assets/images/profile-pics/DaVaR/DaVaR_PROFILE_53498547eb.jpg 9 | assets/images/profile-pics/DaVaR/DaVaR_PROFILE_b32cf2b964.jpg 10 | errors/php-error.log -------------------------------------------------------------------------------- /Credits.md: -------------------------------------------------------------------------------- 1 | Credits 2 | -- 3 | Thank You to all who helped make UserApplePie possible. 4 | The following contributed to the UAP build. 5 | If your name is not on the list, please let us know so that we can add it. 6 | -- 7 | David (DaVaR) Sargent – https://www.userapplepie.com/ 8 | 9 | Gary Mathis - https://www.youtube.com/channel/UCtDDxnmPWXcTj1GSrkFMqKg 10 | 11 | David Carr @ Nova Framework - http://novaframework.com/ 12 | 13 | Bartek Kuśmierczuk - contact@qsma.pl - http://qsma.pl 14 | 15 | Jhobanny Morillo - geomorillo@yahoo.com 16 | 17 | Bryan Yeh 18 | 19 | Cam Tosh 20 | 21 | EddyBeaupre 22 | 23 | Bootswatch Themes - https://www.bootswatch.com 24 | 25 | Lightbox - https://lokeshdhakar.com/projects/lightbox2/ 26 | -------------------------------------------------------------------------------- /app/Controllers/ChangeLang.php: -------------------------------------------------------------------------------- 1 | 7 | * @version 4.3.0 8 | */ 9 | 10 | namespace App\Controllers; 11 | 12 | use App\System\Load, 13 | App\System\Controller, 14 | Libs\Session, 15 | Libs\Url, 16 | Libs\SuccessMessages; 17 | 18 | /** 19 | * Language Changer Controller. 20 | */ 21 | class ChangeLang extends Controller 22 | { 23 | 24 | /** 25 | * Call the parent construct 26 | */ 27 | public function __construct() 28 | { 29 | parent::__construct(); 30 | $this->language->load('Welcome'); 31 | } 32 | 33 | /** 34 | * Define the change lang page 35 | * @param $new_lang_code 36 | */ 37 | public function index($new_lang_code = null) 38 | { 39 | if(isset($new_lang_code)){ 40 | $_SESSION['cur_lang'] = $new_lang_code; 41 | /** 42 | * Check to see if user came from another page within the site 43 | */ 44 | if(isset($_SESSION['lang_prev_page'])){ $lang_prev_page = $_SESSION['lang_prev_page']; }else{ $lang_prev_page = ""; } 45 | /** 46 | * Checking to see if user user was viewing anything before lang change 47 | * If they were viewing a page on this site, then after lange change 48 | * send them to that page they were on. 49 | */ 50 | if(!empty($lang_prev_page)){ 51 | /* Clear the prev page session if set */ 52 | if(isset($_SESSION['lang_prev_page'])){ 53 | unset($_SESSION['lang_prev_page']); 54 | } 55 | $prev_page = $lang_prev_page; 56 | /* Send user back to page they were at before lang change */ 57 | /* Success Message Display */ 58 | Url::redirect($prev_page); 59 | }else{ 60 | Url::redirect(); 61 | } 62 | }else{ 63 | Url::redirect(); 64 | } 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /app/Controllers/LiveCheck.php: -------------------------------------------------------------------------------- 1 | 7 | * @version 4.3.0 8 | */ 9 | 10 | namespace App\Controllers; 11 | 12 | use App\System\Load; 13 | use App\System\Controller; 14 | use Libs\Database; 15 | 16 | /** 17 | * Live Check for Email 18 | */ 19 | 20 | class LiveCheck extends Controller 21 | { 22 | 23 | protected $db; 24 | 25 | /** 26 | * Call the parent construct 27 | */ 28 | public function __construct() { 29 | $this->db = Database::get(); 30 | } 31 | 32 | /** 33 | * Define email live check and load template file 34 | */ 35 | public function emailCheck() 36 | { 37 | if(isset($_POST['email'])){ 38 | $email = $_POST['email']; 39 | }else if(isset($_POST['newemail'])){ 40 | $email = $_POST['newemail']; 41 | } 42 | if(isSet($email)) 43 | { 44 | $query = $this->db->select('SELECT email FROM '.PREFIX.'users WHERE email=:email', 45 | array(':email' => $email)); 46 | $count = count($query); 47 | if($count == "0") 48 | { 49 | // Check input to be sure it meets the site standards for emails 50 | if(filter_var($email, FILTER_VALIDATE_EMAIL)) { 51 | $data['welcomeMessage'] = "OK"; 52 | }else{ 53 | $data['welcomeMessage'] = "BAD"; 54 | } 55 | } 56 | else 57 | { 58 | $data['welcomeMessage'] = "INUSE"; 59 | } 60 | unset($email, $ttl_un_rows); 61 | }else{ 62 | $data['welcomeMessage'] = "BAD"; 63 | } 64 | /** Push data to the view **/ 65 | Load::View('Members/LiveCheck', $data, '', '', false); 66 | 67 | } 68 | 69 | /** 70 | * Define email live check and load template file 71 | */ 72 | public function userNameCheck() 73 | { 74 | (isset($_POST['username'])) ? $username = $_POST['username'] : $username = ""; 75 | if(isSet($username)) 76 | { 77 | $query = $this->db->select('SELECT username FROM '.PREFIX.'users WHERE username=:username', 78 | array(':username' => $username)); 79 | $count = count($query); 80 | if($count == "0") 81 | { 82 | // Check input to be sure it meets the site standards for usernames 83 | if(!preg_match("/^[a-zA-Z\p{Cyrillic}0-9]+$/u", $username)){ 84 | // UserName Chars wrong 85 | $data['welcomeMessage'] = "CHAR"; 86 | }else{ 87 | // UserName is good 88 | $data['welcomeMessage'] = "OK"; 89 | } 90 | } 91 | else 92 | { 93 | $data['welcomeMessage'] = "INUSE"; 94 | } 95 | unset($username, $ttl_un_rows); 96 | } 97 | /** Push data to the view **/ 98 | Load::View('Members/LiveCheck', $data, '', '', false); 99 | } 100 | 101 | } 102 | 103 | ?> 104 | -------------------------------------------------------------------------------- /app/Install/Footer.php: -------------------------------------------------------------------------------- 1 | 7 | * @version 4.3.0 8 | */ 9 | use Libs\Url; 10 | ?> 11 | 12 | 13 |