Skip to content

Commit

Permalink
Updated Code ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
hariketsheth committed Jan 21, 2024
1 parent c5cd06a commit 09c0654
Show file tree
Hide file tree
Showing 850 changed files with 2,771 additions and 72,819 deletions.
7 changes: 6 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
php_value display_errors Off
php_value mbstring.http_input auto
php_value date.timezone America/New_York
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
Expand All @@ -9,4 +12,6 @@ ErrorDocument 401 https://athena-dbms.42web.io/error/401.htm
ErrorDocument 403 https://athena-dbms.42web.io/error/403.htm
ErrorDocument 404 https://athena-dbms.42web.io/error/404.htm
ErrorDocument 501 https://athena-dbms.42web.io/error/501.htm
ErrorDocument 503 https://athena-dbms.42web.io/error/503.htm
ErrorDocument 503 https://athena-dbms.42web.io/error/503.htm
php_value post_max_size 1000M
php_value upload_max_filesize 1000M
147 changes: 98 additions & 49 deletions account/PHPMailer/PHPMailerAutoload.php
Original file line number Diff line number Diff line change
@@ -1,49 +1,98 @@
<?php
/**
* PHPMailer SPL autoloader.
* PHP Version 5
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2014 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/

/**
* PHPMailer SPL autoloader.
* @param string $classname The name of the class to load
*/
function PHPMailerAutoload($classname)
{
//Can't use __DIR__ as it's only in PHP 5.3+
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
if (is_readable($filename)) {
require $filename;
}
}

if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
//SPL autoloading was introduced in PHP 5.1.2
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
spl_autoload_register('PHPMailerAutoload', true, true);
} else {
spl_autoload_register('PHPMailerAutoload');
}
} else {
/**
* Fall back to traditional autoload for old PHP versions
* @param string $classname The name of the class to load
*/
function __autoload($classname)
{
PHPMailerAutoload($classname);
}
}
<?php

/**
* PHPMailer SPL autoloader.
* PHP Version 5
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2014 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/



/**
* PHPMailer SPL autoloader.
* @param string $classname The name of the class to load
*/

function PHPMailerAutoload($classname)

{

//Can't use __DIR__ as it's only in PHP 5.3+

$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';

if (is_readable($filename)) {

require $filename;

}

}



if (version_compare(PHP_VERSION, '5.1.2', '>=')) {

//SPL autoloading was introduced in PHP 5.1.2

if (version_compare(PHP_VERSION, '5.3.0', '>=')) {

spl_autoload_register('PHPMailerAutoload', true, true);

} else {

spl_autoload_register('PHPMailerAutoload');

}

} else {

/**
* Fall back to traditional autoload for old PHP versions
* @param string $classname The name of the class to load
*/

function spl_autoload_register($classname)

{

PHPMailerAutoload($classname);

}

}

6 changes: 3 additions & 3 deletions account/connection.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

<?php
session_start();
$con = mysqli_connect('sql210.epizy.com', 'epiz_29868134', 'RHfJN2hyR34WY', 'epiz_29868134_arms');
$con = mysqli_connect('DB_HOST', 'DB_USER', 'DB_PASS', 'DB_USER_arms');
if (!$con){
$_SESSION['connectiondb']="false";
}
else {
$_SESSION['connectiondb']="true";
}

define('CONTACTFORM_RECAPTCHA_SITE_KEY', '6Lc97uMiAAAAANO7vVT1Bco4nz-5eYFQ2-MBFz7e');
define('CONTACTFORM_RECAPTCHA_SECRET_KEY', '6Lc97uMiAAAAANtRbXZStVRlRyCe6n-5xJ1oMwwj');
define('CONTACTFORM_RECAPTCHA_SITE_KEY', 'PLACE_YOUR_OWN');
define('CONTACTFORM_RECAPTCHA_SECRET_KEY', 'PLACE_YOUR_OWN');
?>

Loading

0 comments on commit 09c0654

Please sign in to comment.