├── tailwind.config.js
├── .gitignore
├── system
├── fonts
│ ├── texb.ttf
│ └── index.html
├── .htaccess
├── index.html
├── core
│ ├── index.html
│ ├── compat
│ │ └── index.html
│ └── Model.php
├── database
│ ├── index.html
│ └── drivers
│ │ ├── index.html
│ │ ├── cubrid
│ │ └── index.html
│ │ ├── ibase
│ │ ├── index.html
│ │ └── ibase_utility.php
│ │ ├── mssql
│ │ ├── index.html
│ │ └── mssql_utility.php
│ │ ├── mysql
│ │ └── index.html
│ │ ├── mysqli
│ │ └── index.html
│ │ ├── oci8
│ │ ├── index.html
│ │ └── oci8_utility.php
│ │ ├── odbc
│ │ ├── index.html
│ │ └── odbc_utility.php
│ │ ├── pdo
│ │ ├── index.html
│ │ ├── subdrivers
│ │ │ ├── index.html
│ │ │ └── pdo_odbc_forge.php
│ │ ├── pdo_forge.php
│ │ └── pdo_utility.php
│ │ ├── sqlite
│ │ ├── index.html
│ │ └── sqlite_utility.php
│ │ ├── sqlsrv
│ │ ├── index.html
│ │ └── sqlsrv_utility.php
│ │ ├── postgre
│ │ └── index.html
│ │ └── sqlite3
│ │ ├── index.html
│ │ └── sqlite3_utility.php
├── helpers
│ └── index.html
├── language
│ ├── index.html
│ └── english
│ │ ├── index.html
│ │ ├── number_lang.php
│ │ ├── pagination_lang.php
│ │ ├── migration_lang.php
│ │ └── unit_test_lang.php
└── libraries
│ ├── index.html
│ ├── Cache
│ ├── index.html
│ └── drivers
│ │ └── index.html
│ ├── Session
│ ├── index.html
│ ├── drivers
│ │ └── index.html
│ └── SessionHandlerInterface.php
│ └── Javascript
│ └── index.html
├── assets
├── favicon
│ ├── favicon.ico
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── apple-touch-icon.png
│ ├── android-chrome-192x192.png
│ ├── android-chrome-512x512.png
│ └── site.webmanifest
└── images
│ ├── social-login.png
│ ├── no-profile-pic.png
│ ├── social-login-preview.png
│ ├── twitter-icon.svg
│ ├── google-icon.svg
│ └── facebook-icon.svg
├── screenshots
├── screenshot-1.png
└── screenshot-2.png
├── .htaccess
├── application
├── .htaccess
├── views
│ ├── errors
│ │ ├── cli
│ │ │ ├── error_404.php
│ │ │ ├── error_general.php
│ │ │ ├── error_db.php
│ │ │ ├── index.html
│ │ │ ├── error_php.php
│ │ │ └── error_exception.php
│ │ ├── index.html
│ │ └── html
│ │ │ ├── index.html
│ │ │ ├── error_php.php
│ │ │ ├── error_exception.php
│ │ │ ├── error_general.php
│ │ │ ├── error_db.php
│ │ │ └── error_404.php
│ ├── index.html
│ ├── layout.php
│ ├── elements
│ │ ├── footer.php
│ │ └── head.php
│ └── users
│ │ └── dashboard.php
├── index.html
├── cache
│ └── index.html
├── config
│ ├── index.html
│ ├── hooks.php
│ ├── profiler.php
│ ├── memcached.php
│ ├── social.test.php
│ ├── routes.php
│ └── doctypes.php
├── core
│ └── index.html
├── helpers
│ └── index.html
├── hooks
│ └── index.html
├── language
│ ├── index.html
│ └── english
│ │ └── index.html
├── logs
│ └── index.html
├── models
│ └── index.html
├── controllers
│ ├── index.html
│ └── Privacy_policy.php
├── libraries
│ ├── index.html
│ ├── google-api-php-client
│ │ ├── service
│ │ │ └── Google_Service.php
│ │ ├── auth
│ │ │ ├── Google_Signer.php
│ │ │ ├── Google_Verifier.php
│ │ │ ├── Google_Auth.php
│ │ │ ├── Google_AuthNone.php
│ │ │ ├── Google_LoginTicket.php
│ │ │ ├── Google_PemVerifier.php
│ │ │ └── Google_P12Signer.php
│ │ ├── cache
│ │ │ └── Google_Cache.php
│ │ └── io
│ │ │ └── Google_IO.php
│ ├── Public_init_elements.php
│ └── facebook-php-sdk
│ │ ├── FileUpload
│ │ └── FacebookVideo.php
│ │ ├── src
│ │ └── Facebook
│ │ │ ├── FileUpload
│ │ │ └── FacebookVideo.php
│ │ │ ├── Exceptions
│ │ │ ├── FacebookSDKException.php
│ │ │ ├── FacebookClientException.php
│ │ │ ├── FacebookOtherException.php
│ │ │ ├── FacebookServerException.php
│ │ │ ├── FacebookThrottleException.php
│ │ │ ├── FacebookAuthenticationException.php
│ │ │ └── FacebookAuthorizationException.php
│ │ │ ├── GraphNodes
│ │ │ ├── GraphList.php
│ │ │ ├── GraphObject.php
│ │ │ ├── GraphApplication.php
│ │ │ ├── GraphCoverPhoto.php
│ │ │ └── GraphPicture.php
│ │ │ ├── HttpClients
│ │ │ ├── certs
│ │ │ │ └── DigiCertHighAssuranceEVRootCA.pem
│ │ │ ├── FacebookHttpClientInterface.php
│ │ │ └── FacebookStream.php
│ │ │ ├── Http
│ │ │ ├── RequestBodyInterface.php
│ │ │ └── RequestBodyUrlEncoded.php
│ │ │ ├── Url
│ │ │ └── UrlDetectionInterface.php
│ │ │ ├── Helpers
│ │ │ ├── FacebookJavaScriptHelper.php
│ │ │ └── FacebookCanvasHelper.php
│ │ │ ├── PersistentData
│ │ │ ├── PersistentDataInterface.php
│ │ │ ├── FacebookMemoryPersistentDataHandler.php
│ │ │ └── FacebookSessionPersistentDataHandler.php
│ │ │ └── PseudoRandomString
│ │ │ ├── PseudoRandomStringGeneratorInterface.php
│ │ │ ├── PseudoRandomStringGeneratorTrait.php
│ │ │ └── McryptPseudoRandomStringGenerator.php
│ │ ├── Exceptions
│ │ ├── FacebookSDKException.php
│ │ ├── FacebookOtherException.php
│ │ ├── FacebookClientException.php
│ │ ├── FacebookServerException.php
│ │ ├── FacebookThrottleException.php
│ │ ├── FacebookAuthorizationException.php
│ │ ├── FacebookAuthenticationException.php
│ │ └── FacebookResumableUploadException.php
│ │ ├── GraphNodes
│ │ ├── GraphList.php
│ │ ├── GraphObject.php
│ │ ├── GraphApplication.php
│ │ ├── GraphCoverPhoto.php
│ │ ├── GraphPicture.php
│ │ └── Birthday.php
│ │ ├── HttpClients
│ │ ├── certs
│ │ │ └── DigiCertHighAssuranceEVRootCA.pem
│ │ ├── FacebookHttpClientInterface.php
│ │ └── FacebookStream.php
│ │ ├── Http
│ │ ├── RequestBodyInterface.php
│ │ └── RequestBodyUrlEncoded.php
│ │ ├── Url
│ │ └── UrlDetectionInterface.php
│ │ ├── Helpers
│ │ ├── FacebookJavaScriptHelper.php
│ │ └── FacebookCanvasHelper.php
│ │ ├── PersistentData
│ │ ├── PersistentDataInterface.php
│ │ ├── FacebookMemoryPersistentDataHandler.php
│ │ ├── FacebookSessionPersistentDataHandler.php
│ │ └── PersistentDataFactory.php
│ │ ├── PseudoRandomString
│ │ ├── PseudoRandomStringGeneratorInterface.php
│ │ ├── RandomBytesPseudoRandomStringGenerator.php
│ │ ├── PseudoRandomStringGeneratorTrait.php
│ │ └── McryptPseudoRandomStringGenerator.php
│ │ └── polyfills.php
└── third_party
│ └── index.html
├── composer.json
├── README.md
└── social_login.sql
/tailwind.config.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | application/config/social.php
2 |
--------------------------------------------------------------------------------
/system/fonts/texb.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/system/fonts/texb.ttf
--------------------------------------------------------------------------------
/assets/favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/favicon.ico
--------------------------------------------------------------------------------
/screenshots/screenshot-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/screenshots/screenshot-1.png
--------------------------------------------------------------------------------
/screenshots/screenshot-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/screenshots/screenshot-2.png
--------------------------------------------------------------------------------
/assets/images/social-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/images/social-login.png
--------------------------------------------------------------------------------
/assets/favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/assets/favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/assets/images/no-profile-pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/images/no-profile-pic.png
--------------------------------------------------------------------------------
/assets/favicon/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/apple-touch-icon.png
--------------------------------------------------------------------------------
/assets/images/social-login-preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/images/social-login-preview.png
--------------------------------------------------------------------------------
/assets/favicon/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/android-chrome-192x192.png
--------------------------------------------------------------------------------
/assets/favicon/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/salimi-my/social-login/master/assets/favicon/android-chrome-512x512.png
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 | RewriteEngine on
2 | RewriteCond %{REQUEST_FILENAME} !-f
3 | RewriteCond %{REQUEST_FILENAME} !-d
4 | RewriteRule ^(.*)$ index.php/$1 [L]
5 |
--------------------------------------------------------------------------------
/system/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
--------------------------------------------------------------------------------
/application/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
--------------------------------------------------------------------------------
/application/views/errors/cli/error_404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 | Directory access is forbidden.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/system/core/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/fonts/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/helpers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/language/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/cache/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/config/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/core/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/helpers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/hooks/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/language/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/logs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 | Directory access is forbidden.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/application/models/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/views/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/core/compat/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/controllers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/libraries/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/third_party/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/views/errors/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/language/english/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/Cache/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/Session/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/language/english/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/views/errors/cli/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/views/errors/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/cubrid/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/ibase/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/mssql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/mysql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/mysqli/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/oci8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/odbc/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/pdo/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlite/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlsrv/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/Cache/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/Javascript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/postgre/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlite3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/libraries/Session/drivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/system/database/drivers/pdo/subdrivers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 | Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/assets/favicon/site.webmanifest:
--------------------------------------------------------------------------------
1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
--------------------------------------------------------------------------------
/application/views/layout.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/application/views/elements/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | © config->item('site_name'); ?>. Created by Salimi
5 |
6 |
7 |
--------------------------------------------------------------------------------
/application/config/hooks.php:
--------------------------------------------------------------------------------
1 | array(
15 | 'hostname' => '127.0.0.1',
16 | 'port' => '11211',
17 | 'weight' => '1',
18 | ),
19 | );
20 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "The CodeIgniter framework",
3 | "name": "codeigniter/framework",
4 | "type": "project",
5 | "homepage": "https://codeigniter.com",
6 | "license": "MIT",
7 | "support": {
8 | "forum": "http://forum.codeigniter.com/",
9 | "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki",
10 | "slack": "https://codeigniterchat.slack.com",
11 | "source": "https://github.com/bcit-ci/CodeIgniter"
12 | },
13 | "require": {
14 | "php": ">=5.3.7"
15 | },
16 | "suggest": {
17 | "paragonie/random_compat": "Provides better randomness in PHP 5.x"
18 | },
19 | "require-dev": {
20 | "mikey179/vfsStream": "1.1.*",
21 | "phpunit/phpunit": "4.* || 5.*"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/application/views/errors/cli/error_php.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | A PHP Error was encountered
4 |
5 | Severity:
6 | Message:
7 | Filename:
8 | Line Number:
9 |
10 |
11 |
12 | Backtrace:
13 |
14 |
15 | File:
16 | Line:
17 | Function:
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/service/Google_Service.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | An uncaught Exception was encountered
4 |
5 | Type:
6 | Message:
7 | Filename: getFile(), "\n"; ?>
8 | Line Number: getLine(); ?>
9 |
10 |
11 |
12 | Backtrace:
13 | getTrace() as $error): ?>
14 |
15 | File:
16 | Line:
17 | Function:
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/assets/images/twitter-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/application/views/errors/html/error_php.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
A PHP Error was encountered
8 |
9 |
Severity:
10 |
Message:
11 |
Filename:
12 |
Line Number:
13 |
14 |
15 |
16 |
Backtrace:
17 |
18 |
19 |
20 |
21 |
22 | File:
23 | Line:
24 | Function:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/assets/images/google-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/auth/Google_Signer.php:
--------------------------------------------------------------------------------
1 |
24 | */
25 | abstract class Google_Signer {
26 | /**
27 | * Signs data, returns the signature as binary data.
28 | */
29 | abstract public function sign($data);
30 | }
31 |
--------------------------------------------------------------------------------
/application/views/errors/html/error_exception.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
An uncaught Exception was encountered
8 |
9 |
Type:
10 |
Message:
11 |
Filename: getFile(); ?>
12 |
Line Number: getLine(); ?>
13 |
14 |
15 |
16 |
Backtrace:
17 | getTrace() as $error): ?>
18 |
19 |
20 |
21 |
22 | File:
23 | Line:
24 | Function:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/application/controllers/Privacy_policy.php:
--------------------------------------------------------------------------------
1 | load->library('public_init_elements');
12 | $this->public_init_elements->init_elements();
13 |
14 | // default layout
15 | $this->layout = 'layout';
16 | }
17 |
18 | public function index()
19 | {
20 | // set metadata
21 | $data['title'] = 'Privacy Policy';
22 | $data['page'] = 'privacy-policy';
23 | $data['description'] = 'This is a CodeIgniter Social Media Login App. This simple social media account authentication web app created for educational purposes only.';
24 |
25 | // load privacy policy view
26 | $this->data['head'] = $this->load->view('elements/head', $data, true);
27 | $this->data['maincontent'] = $this->load->view('privacy_policy', $data, true);
28 | $this->load->view($this->layout, $this->data);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/auth/Google_Verifier.php:
--------------------------------------------------------------------------------
1 |
24 | */
25 | abstract class Google_Verifier {
26 | /**
27 | * Checks a signature, returns true if the signature is correct,
28 | * false otherwise.
29 | */
30 | abstract public function verify($data, $signature);
31 | }
32 |
--------------------------------------------------------------------------------
/assets/images/facebook-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
--------------------------------------------------------------------------------
/application/libraries/Public_init_elements.php:
--------------------------------------------------------------------------------
1 | CI = &get_instance();
15 | }
16 |
17 | /*
18 | * Initialize elements
19 | */
20 | function init_elements($args = array())
21 | {
22 | $this->init_head();
23 | $this->init_footer();
24 | }
25 |
26 | /*
27 | * Check user login status
28 | */
29 | function is_user_loggedin()
30 | {
31 | if (!$this->CI->session->userdata('is_user_login') && $this->CI->session->userdata('user_id') == '') {
32 | redirect('users/login');
33 | }
34 | }
35 |
36 | /*
37 | * Head view
38 | */
39 | function init_head()
40 | {
41 | $data = array();
42 | $this->CI->data['head'] = $this->CI->load->view('elements/head', $data, true);
43 | }
44 |
45 | /*
46 | * Footer view
47 | */
48 | function init_footer()
49 | {
50 | $data = array();
51 | $this->CI->data['footer'] = $this->CI->load->view('elements/footer', $data, true);
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/FileUpload/FacebookVideo.php:
--------------------------------------------------------------------------------
1 |
24 | *
25 | */
26 | abstract class Google_Auth {
27 | abstract public function authenticate($service);
28 | abstract public function sign(Google_HttpRequest $request);
29 | abstract public function createAuthUrl($scope);
30 |
31 | abstract public function getAccessToken();
32 | abstract public function setAccessToken($accessToken);
33 | abstract public function setDeveloperKey($developerKey);
34 | abstract public function refreshToken($refreshToken);
35 | abstract public function revokeToken();
36 | }
37 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/Exceptions/FacebookThrottleException.php:
--------------------------------------------------------------------------------
1 |
26 | Direct link: `https://social-login.salimi.my`
27 |
28 | ## Screenshots
29 |
30 | #### Login
31 |
32 | 
33 |
34 | #### Dashboard
35 |
36 | 
37 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/Exceptions/FacebookAuthenticationException.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | Error
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/GraphNodes/GraphList.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | Database Error
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/application/views/errors/html/error_404.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | 404 Page Not Found
8 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/GraphNodes/GraphObject.php:
--------------------------------------------------------------------------------
1 | getField('id');
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/GraphNodes/GraphApplication.php:
--------------------------------------------------------------------------------
1 | getField('id');
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/Helpers/FacebookJavaScriptHelper.php:
--------------------------------------------------------------------------------
1 | getRawSignedRequestFromCookie();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/Helpers/FacebookJavaScriptHelper.php:
--------------------------------------------------------------------------------
1 | getRawSignedRequestFromCookie();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/cache/Google_Cache.php:
--------------------------------------------------------------------------------
1 |
25 | */
26 | abstract class Google_Cache {
27 |
28 | /**
29 | * Retrieves the data for the given key, or false if they
30 | * key is unknown or expired
31 | *
32 | * @param String $key The key who's data to retrieve
33 | * @param boolean|int $expiration Expiration time in seconds
34 | *
35 | */
36 | abstract function get($key, $expiration = false);
37 |
38 | /**
39 | * Store the key => $value set. The $value is serialized
40 | * by this function so can be of any type
41 | *
42 | * @param string $key Key of the data
43 | * @param string $value data
44 | */
45 | abstract function set($key, $value);
46 |
47 | /**
48 | * Removes the key/data pair for the given $key
49 | *
50 | * @param String $key
51 | */
52 | abstract function delete($key);
53 | }
54 |
55 |
56 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/io/Google_IO.php:
--------------------------------------------------------------------------------
1 |
26 | */
27 | interface Google_IO {
28 | /**
29 | * An utility function that first calls $this->auth->sign($request) and then executes makeRequest()
30 | * on that signed request. Used for when a request should be authenticated
31 | * @param Google_HttpRequest $request
32 | * @return Google_HttpRequest $request
33 | */
34 | public function authenticatedRequest(Google_HttpRequest $request);
35 |
36 | /**
37 | * Executes a apIHttpRequest and returns the resulting populated httpRequest
38 | * @param Google_HttpRequest $request
39 | * @return Google_HttpRequest $request
40 | */
41 | public function makeRequest(Google_HttpRequest $request);
42 |
43 | /**
44 | * Set options that update the transport implementation's behavior.
45 | * @param $options
46 | */
47 | public function setOptions($options);
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PersistentData/PersistentDataInterface.php:
--------------------------------------------------------------------------------
1 |
21 | * @author Chirag Shah
22 | */
23 | class Google_AuthNone extends Google_Auth {
24 | public $key = null;
25 |
26 | public function __construct() {
27 | global $apiConfig;
28 | if (!empty($apiConfig['developer_key'])) {
29 | $this->setDeveloperKey($apiConfig['developer_key']);
30 | }
31 | }
32 |
33 | public function setDeveloperKey($key) {$this->key = $key;}
34 | public function authenticate($service) {/*noop*/}
35 | public function setAccessToken($accessToken) {/* noop*/}
36 | public function getAccessToken() {return null;}
37 | public function createAuthUrl($scope) {return null;}
38 | public function refreshToken($refreshToken) {/* noop*/}
39 | public function revokeToken() {/* noop*/}
40 |
41 | public function sign(Google_HttpRequest $request) {
42 | if ($this->key) {
43 | $request->setUrl($request->getUrl() . ((strpos($request->getUrl(), '?') === false) ? '?' : '&')
44 | . 'key='.urlencode($this->key));
45 | }
46 | return $request;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/Helpers/FacebookCanvasHelper.php:
--------------------------------------------------------------------------------
1 | signedRequest ? $this->signedRequest->get('app_data') : null;
41 | }
42 |
43 | /**
44 | * Get raw signed request from POST.
45 | *
46 | * @return string|null
47 | */
48 | public function getRawSignedRequest()
49 | {
50 | return $this->getRawSignedRequestFromPost() ?: null;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/Http/RequestBodyUrlEncoded.php:
--------------------------------------------------------------------------------
1 | params = $params;
46 | }
47 |
48 | /**
49 | * @inheritdoc
50 | */
51 | public function getBody()
52 | {
53 | return http_build_query($this->params, null, '&');
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/Helpers/FacebookCanvasHelper.php:
--------------------------------------------------------------------------------
1 | signedRequest ? $this->signedRequest->get('app_data') : null;
41 | }
42 |
43 | /**
44 | * Get raw signed request from POST.
45 | *
46 | * @return string|null
47 | */
48 | public function getRawSignedRequest()
49 | {
50 | return $this->getRawSignedRequestFromPost() ?: null;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PersistentData/FacebookMemoryPersistentDataHandler.php:
--------------------------------------------------------------------------------
1 | sessionData[$key]) ? $this->sessionData[$key] : null;
44 | }
45 |
46 | /**
47 | * @inheritdoc
48 | */
49 | public function set($key, $value)
50 | {
51 | $this->sessionData[$key] = $value;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/Http/RequestBodyUrlEncoded.php:
--------------------------------------------------------------------------------
1 | params = $params;
46 | }
47 |
48 | /**
49 | * @inheritdoc
50 | */
51 | public function getBody()
52 | {
53 | return http_build_query($this->params, null, '&');
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php:
--------------------------------------------------------------------------------
1 | sessionData[$key]) ? $this->sessionData[$key] : null;
44 | }
45 |
46 | /**
47 | * @inheritdoc
48 | */
49 | public function set($key, $value)
50 | {
51 | $this->sessionData[$key] = $value;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/application/config/social.test.php:
--------------------------------------------------------------------------------
1 | picture, 'http') === false) {
3 | $user_picture = !empty($user->picture) ? base_url() . 'profile_picture/' . $user->picture : base_url() . 'images/no-profile-pic.png';
4 | } else {
5 | $user_picture = $user->picture;
6 | }
7 | $user_name = $user->first_name . ' ' . $user->last_name;
8 | ?>
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
Your Profile Information
17 |
18 |
19 |

20 |
21 |
22 |
23 |
24 |
25 | email; ?>
26 |
27 |
28 |
29 |
30 |
31 |
32 | You are logged in using oauth_provider); ?>
33 |
34 |
35 | Logout
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/system/language/english/number_lang.php:
--------------------------------------------------------------------------------
1 |
22 | */
23 | class Google_LoginTicket {
24 | const USER_ATTR = "id";
25 |
26 | // Information from id token envelope.
27 | private $envelope;
28 |
29 | // Information from id token payload.
30 | private $payload;
31 |
32 | /**
33 | * Creates a user based on the supplied token.
34 | *
35 | * @param string $envelope Header from a verified authentication token.
36 | * @param string $payload Information from a verified authentication token.
37 | */
38 | public function __construct($envelope, $payload) {
39 | $this->envelope = $envelope;
40 | $this->payload = $payload;
41 | }
42 |
43 | /**
44 | * Returns the numeric identifier for the user.
45 | * @throws Google_AuthException
46 | * @return
47 | */
48 | public function getUserId() {
49 | if (array_key_exists(self::USER_ATTR, $this->payload)) {
50 | return $this->payload[self::USER_ATTR];
51 | }
52 | throw new Google_AuthException("No user_id in token");
53 | }
54 |
55 | /**
56 | * Returns attributes from the login ticket. This can contain
57 | * various information about the user session.
58 | * @return array
59 | */
60 | public function getAttributes() {
61 | return array("envelope" => $this->envelope, "payload" => $this->payload);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/Exceptions/FacebookResumableUploadException.php:
--------------------------------------------------------------------------------
1 | startOffset;
43 | }
44 |
45 | /**
46 | * @param int|null $startOffset
47 | */
48 | public function setStartOffset($startOffset)
49 | {
50 | $this->startOffset = $startOffset;
51 | }
52 |
53 | /**
54 | * @return int|null
55 | */
56 | public function getEndOffset()
57 | {
58 | return $this->endOffset;
59 | }
60 |
61 | /**
62 | * @param int|null $endOffset
63 | */
64 | public function setEndOffset($endOffset)
65 | {
66 | $this->endOffset = $endOffset;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/auth/Google_PemVerifier.php:
--------------------------------------------------------------------------------
1 |
22 | */
23 | class Google_PemVerifier extends Google_Verifier {
24 | private $publicKey;
25 |
26 | /**
27 | * Constructs a verifier from the supplied PEM-encoded certificate.
28 | *
29 | * $pem: a PEM encoded certificate (not a file).
30 | * @param $pem
31 | * @throws Google_AuthException
32 | * @throws Google_Exception
33 | */
34 | function __construct($pem) {
35 | if (!function_exists('openssl_x509_read')) {
36 | throw new Google_Exception('Google API PHP client needs the openssl PHP extension');
37 | }
38 | $this->publicKey = openssl_x509_read($pem);
39 | if (!$this->publicKey) {
40 | throw new Google_AuthException("Unable to parse PEM: $pem");
41 | }
42 | }
43 |
44 | function __destruct() {
45 | if ($this->publicKey) {
46 | openssl_x509_free($this->publicKey);
47 | }
48 | }
49 |
50 | /**
51 | * Verifies the signature on data.
52 | *
53 | * Returns true if the signature is valid, false otherwise.
54 | * @param $data
55 | * @param $signature
56 | * @throws Google_AuthException
57 | * @return bool
58 | */
59 | function verify($data, $signature) {
60 | $status = openssl_verify($data, $signature, $this->publicKey, "sha256");
61 | if ($status === -1) {
62 | throw new Google_AuthException('Signature verification error: ' . openssl_error_string());
63 | }
64 | return $status === 1;
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/application/views/elements/head.php:
--------------------------------------------------------------------------------
1 | config->item('site_name') . ' | ' . $title; ?>
2 |
3 |
4 |
5 |
6 | ' />
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
42 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/GraphNodes/GraphCoverPhoto.php:
--------------------------------------------------------------------------------
1 | getField('id');
41 | }
42 |
43 | /**
44 | * Returns the source of cover if it exists
45 | *
46 | * @return string|null
47 | */
48 | public function getSource()
49 | {
50 | return $this->getField('source');
51 | }
52 |
53 | /**
54 | * Returns the offset_x of cover if it exists
55 | *
56 | * @return int|null
57 | */
58 | public function getOffsetX()
59 | {
60 | return $this->getField('offset_x');
61 | }
62 |
63 | /**
64 | * Returns the offset_y of cover if it exists
65 | *
66 | * @return int|null
67 | */
68 | public function getOffsetY()
69 | {
70 | return $this->getField('offset_y');
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/GraphNodes/GraphPicture.php:
--------------------------------------------------------------------------------
1 | getField('is_silhouette');
41 | }
42 |
43 | /**
44 | * Returns the url of user picture if it exists
45 | *
46 | * @return string|null
47 | */
48 | public function getUrl()
49 | {
50 | return $this->getField('url');
51 | }
52 |
53 | /**
54 | * Returns the width of user picture if it exists
55 | *
56 | * @return int|null
57 | */
58 | public function getWidth()
59 | {
60 | return $this->getField('width');
61 | }
62 |
63 | /**
64 | * Returns the height of user picture if it exists
65 | *
66 | * @return int|null
67 | */
68 | public function getHeight()
69 | {
70 | return $this->getField('height');
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php:
--------------------------------------------------------------------------------
1 | getField('id');
41 | }
42 |
43 | /**
44 | * Returns the source of cover if it exists
45 | *
46 | * @return string|null
47 | */
48 | public function getSource()
49 | {
50 | return $this->getField('source');
51 | }
52 |
53 | /**
54 | * Returns the offset_x of cover if it exists
55 | *
56 | * @return int|null
57 | */
58 | public function getOffsetX()
59 | {
60 | return $this->getField('offset_x');
61 | }
62 |
63 | /**
64 | * Returns the offset_y of cover if it exists
65 | *
66 | * @return int|null
67 | */
68 | public function getOffsetY()
69 | {
70 | return $this->getField('offset_y');
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/application/config/routes.php:
--------------------------------------------------------------------------------
1 | my_controller/index
50 | | my-controller/my-method -> my_controller/my_method
51 | */
52 | $route['default_controller'] = 'users';
53 | $route['404_override'] = '';
54 | $route['translate_uri_dashes'] = TRUE;
55 |
56 | $route['login'] = 'users/login';
57 | $route['dashboard'] = 'users/dashboard';
58 | $route['logout'] = 'users/logout';
59 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php:
--------------------------------------------------------------------------------
1 | getField('is_silhouette');
41 | }
42 |
43 | /**
44 | * Returns the url of user picture if it exists
45 | *
46 | * @return string|null
47 | */
48 | public function getUrl()
49 | {
50 | return $this->getField('url');
51 | }
52 |
53 | /**
54 | * Returns the width of user picture if it exists
55 | *
56 | * @return int|null
57 | */
58 | public function getWidth()
59 | {
60 | return $this->getField('width');
61 | }
62 |
63 | /**
64 | * Returns the height of user picture if it exists
65 | *
66 | * @return int|null
67 | */
68 | public function getHeight()
69 | {
70 | return $this->getField('height');
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php:
--------------------------------------------------------------------------------
1 | validateLength($length);
56 |
57 | return $this->binToHex(random_bytes($length), $length);
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PseudoRandomString/PseudoRandomStringGeneratorTrait.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlite/sqlite_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/system/database/drivers/pdo/pdo_forge.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/system/database/drivers/odbc/odbc_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/application/config/doctypes.php:
--------------------------------------------------------------------------------
1 | '',
6 | 'xhtml1-strict' => '',
7 | 'xhtml1-trans' => '',
8 | 'xhtml1-frame' => '',
9 | 'xhtml-basic11' => '',
10 | 'html5' => '',
11 | 'html4-strict' => '',
12 | 'html4-trans' => '',
13 | 'html4-frame' => '',
14 | 'mathml1' => '',
15 | 'mathml2' => '',
16 | 'svg10' => '',
17 | 'svg11' => '',
18 | 'svg11-basic' => '',
19 | 'svg11-tiny' => '',
20 | 'xhtml-math-svg-xh' => '',
21 | 'xhtml-math-svg-sh' => '',
22 | 'xhtml-rdfa-1' => '',
23 | 'xhtml-rdfa-2' => ''
24 | );
25 |
--------------------------------------------------------------------------------
/system/libraries/Session/SessionHandlerInterface.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/application/libraries/google-api-php-client/auth/Google_P12Signer.php:
--------------------------------------------------------------------------------
1 |
24 | */
25 | class Google_P12Signer extends Google_Signer {
26 | // OpenSSL private key resource
27 | private $privateKey;
28 |
29 | // Creates a new signer from a .p12 file.
30 | function __construct($p12, $password) {
31 | if (!function_exists('openssl_x509_read')) {
32 | throw new Exception(
33 | 'The Google PHP API library needs the openssl PHP extension');
34 | }
35 |
36 | // This throws on error
37 | $certs = array();
38 | if (!openssl_pkcs12_read($p12, $certs, $password)) {
39 | throw new Google_AuthException("Unable to parse the p12 file. " .
40 | "Is this a .p12 file? Is the password correct? OpenSSL error: " .
41 | openssl_error_string());
42 | }
43 | // TODO(beaton): is this part of the contract for the openssl_pkcs12_read
44 | // method? What happens if there are multiple private keys? Do we care?
45 | if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) {
46 | throw new Google_AuthException("No private key found in p12 file.");
47 | }
48 | $this->privateKey = openssl_pkey_get_private($certs["pkey"]);
49 | if (!$this->privateKey) {
50 | throw new Google_AuthException("Unable to load private key in ");
51 | }
52 | }
53 |
54 | function __destruct() {
55 | if ($this->privateKey) {
56 | openssl_pkey_free($this->privateKey);
57 | }
58 | }
59 |
60 | function sign($data) {
61 | if(version_compare(PHP_VERSION, '5.3.0') < 0) {
62 | throw new Google_AuthException(
63 | "PHP 5.3.0 or higher is required to use service accounts.");
64 | }
65 | if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
66 | throw new Google_AuthException("Unable to sign data");
67 | }
68 | return $signature;
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/social_login.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 5.0.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jan 29, 2023 at 06:39 AM
7 | -- Server version: 10.4.17-MariaDB
8 | -- PHP Version: 7.4.14
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | START TRANSACTION;
12 | SET time_zone = "+00:00";
13 |
14 |
15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18 | /*!40101 SET NAMES utf8mb4 */;
19 |
20 | --
21 | -- Database: `social_login`
22 | --
23 |
24 | -- --------------------------------------------------------
25 |
26 | --
27 | -- Table structure for table `users`
28 | --
29 |
30 | CREATE TABLE `users` (
31 | `id` bigint(10) NOT NULL,
32 | `oauth_provider` enum('','facebook','google','twitter') COLLATE utf8_unicode_ci NOT NULL,
33 | `oauth_uid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
34 | `first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
35 | `last_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
36 | `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
37 | `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
38 | `gender` enum('Male','Female') COLLATE utf8_unicode_ci NOT NULL,
39 | `phone` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
40 | `picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
41 | `address` text COLLATE utf8_unicode_ci NOT NULL,
42 | `link` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
43 | `activation_code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
44 | `forgot_pass_identity` varchar(36) COLLATE utf8_unicode_ci NOT NULL,
45 | `activated` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
46 | `created` datetime NOT NULL,
47 | `modified` datetime NOT NULL,
48 | `status` enum('1','0') COLLATE utf8_unicode_ci NOT NULL,
49 | `is_deleted` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0'
50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
51 |
52 | --
53 | -- Indexes for dumped tables
54 | --
55 |
56 | --
57 | -- Indexes for table `users`
58 | --
59 | ALTER TABLE `users`
60 | ADD PRIMARY KEY (`id`);
61 |
62 | --
63 | -- AUTO_INCREMENT for dumped tables
64 | --
65 |
66 | --
67 | -- AUTO_INCREMENT for table `users`
68 | --
69 | ALTER TABLE `users`
70 | MODIFY `id` bigint(10) NOT NULL AUTO_INCREMENT;
71 | COMMIT;
72 |
73 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
74 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
75 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
76 |
--------------------------------------------------------------------------------
/system/database/drivers/pdo/subdrivers/pdo_odbc_forge.php:
--------------------------------------------------------------------------------
1 | db->hostname, $this->db->username, $this->db->password))
58 | {
59 | $res = ibase_backup($service, $this->db->database, $filename.'.fbk');
60 |
61 | // Close the service connection
62 | ibase_service_detach($service);
63 | return $res;
64 | }
65 |
66 | return FALSE;
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/system/language/english/unit_test_lang.php:
--------------------------------------------------------------------------------
1 | hasYear = count($parts) === 3 || count($parts) === 1;
61 | $this->hasDate = count($parts) === 3 || count($parts) === 2;
62 |
63 | parent::__construct($date);
64 | }
65 |
66 | /**
67 | * Returns whether date object contains birth day and month
68 | *
69 | * @return bool
70 | */
71 | public function hasDate()
72 | {
73 | return $this->hasDate;
74 | }
75 |
76 | /**
77 | * Returns whether date object contains birth year
78 | *
79 | * @return bool
80 | */
81 | public function hasYear()
82 | {
83 | return $this->hasYear;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/HttpClients/FacebookStream.php:
--------------------------------------------------------------------------------
1 | stream = stream_context_create($options);
54 | }
55 |
56 | /**
57 | * The response headers from the stream wrapper
58 | *
59 | * @return array
60 | */
61 | public function getResponseHeaders()
62 | {
63 | return $this->responseHeaders;
64 | }
65 |
66 | /**
67 | * Send a stream wrapped request
68 | *
69 | * @param string $url
70 | *
71 | * @return mixed
72 | */
73 | public function fileGetContents($url)
74 | {
75 | $rawResponse = file_get_contents($url, false, $this->stream);
76 | $this->responseHeaders = $http_response_header ?: [];
77 |
78 | return $rawResponse;
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PseudoRandomString/McryptPseudoRandomStringGenerator.php:
--------------------------------------------------------------------------------
1 | validateLength($length);
56 |
57 | $binaryString = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM);
58 |
59 | if ($binaryString === false) {
60 | throw new FacebookSDKException(
61 | static::ERROR_MESSAGE .
62 | 'mcrypt_create_iv() returned an error.'
63 | );
64 | }
65 |
66 | return $this->binToHex($binaryString, $length);
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/HttpClients/FacebookStream.php:
--------------------------------------------------------------------------------
1 | stream = stream_context_create($options);
54 | }
55 |
56 | /**
57 | * The response headers from the stream wrapper
58 | *
59 | * @return array|null
60 | */
61 | public function getResponseHeaders()
62 | {
63 | return $this->responseHeaders;
64 | }
65 |
66 | /**
67 | * Send a stream wrapped request
68 | *
69 | * @param string $url
70 | *
71 | * @return mixed
72 | */
73 | public function fileGetContents($url)
74 | {
75 | $rawResponse = file_get_contents($url, false, $this->stream);
76 | $this->responseHeaders = $http_response_header;
77 |
78 | return $rawResponse;
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php:
--------------------------------------------------------------------------------
1 | validateLength($length);
56 |
57 | $binaryString = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM);
58 |
59 | if ($binaryString === false) {
60 | throw new FacebookSDKException(
61 | static::ERROR_MESSAGE .
62 | 'mcrypt_create_iv() returned an error.'
63 | );
64 | }
65 |
66 | return $this->binToHex($binaryString, $length);
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PersistentData/FacebookSessionPersistentDataHandler.php:
--------------------------------------------------------------------------------
1 | sessionPrefix . $key])) {
63 | return $_SESSION[$this->sessionPrefix . $key];
64 | }
65 |
66 | return null;
67 | }
68 |
69 | /**
70 | * @inheritdoc
71 | */
72 | public function set($key, $value)
73 | {
74 | $_SESSION[$this->sessionPrefix . $key] = $value;
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/src/Facebook/PersistentData/FacebookSessionPersistentDataHandler.php:
--------------------------------------------------------------------------------
1 | sessionPrefix . $key])) {
63 | return $_SESSION[$this->sessionPrefix . $key];
64 | }
65 |
66 | return null;
67 | }
68 |
69 | /**
70 | * @inheritdoc
71 | */
72 | public function set($key, $value)
73 | {
74 | $_SESSION[$this->sessionPrefix . $key] = $value;
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/application/libraries/facebook-php-sdk/PersistentData/PersistentDataFactory.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/system/core/Model.php:
--------------------------------------------------------------------------------
1 | $key;
74 | }
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlsrv/sqlsrv_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsupported_feature');
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------