diff --git a/.env b/.env new file mode 100644 index 0000000..e6e72e0 --- /dev/null +++ b/.env @@ -0,0 +1,14 @@ +API_URL=http://iolovolio.local/api +SITE_URL=http://iolovolio.local + +PP_ACCOUNT=dslaky-seller@gmail.com +PP_CLIENTID=AfnGR9VCjtBF_M0TemwikSG7q0sIm0mE4maIWw9vhiT1-X7vd9ONTvf-D3mEw1AaG9t2CWjoNbHIltI8 +PP_SECRET=ENR4dvs4Y4836E-rDGUUMRIY6QEsCzOLsy16yoIBUrDpyt-Jfqi9PwNzBIDeKUpTuTbZUxQBvIe44jC0 + +PP_CANCEL=http://iolovolio.local/checkout +PP_RETURN=http://iolovolio.local/thankyou +PP_AUTH_URL=https://api-m.sandbox.paypal.com/v1/oauth2/token +PP_ORDER_URL=https://api-m.sandbox.paypal.com/v2/checkout/orders + +#dslaky-buyer@gmail.com dslakyPwd +#dslaky-facilitator@gmail.com dslakyPwd diff --git a/.env_prod b/.env_prod new file mode 100644 index 0000000..56e2129 --- /dev/null +++ b/.env_prod @@ -0,0 +1,11 @@ +API_URL=http://www.iolovolio.com/api +SITE_URL=http://www.iolovolio.com + +PP_ACCOUNT=dslaky-seller@gmail.com +PP_CLIENTID=AfnGR9VCjtBF_M0TemwikSG7q0sIm0mE4maIWw9vhiT1-X7vd9ONTvf-D3mEw1AaG9t2CWjoNbHIltI8 +PP_SECRET=ENR4dvs4Y4836E-rDGUUMRIY6QEsCzOLsy16yoIBUrDpyt-Jfqi9PwNzBIDeKUpTuTbZUxQBvIe44jC0 + +PP_CANCEL=http://www.iolovolio.com/checkout +PP_RETURN=http://www.iolovolio.com/thankyou +PP_AUTH_URL=https://api-m.sandbox.paypal.com/v1/oauth2/token +PP_ORDER_URL=https://api-m.sandbox.paypal.com/v2/checkout/orders diff --git a/admin/.htaccess b/admin/.htaccess new file mode 100644 index 0000000..1dbe967 --- /dev/null +++ b/admin/.htaccess @@ -0,0 +1,16 @@ + +AuthType Basic +AuthName "Iolovolio ADMIN" +AuthUserFile /www/iolovolio/admin/.htpasswd +Require valid-user + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ index.php?q=$1 [NC,L] + +#10l0v0l104dm1nPwd +# +# Rewritebase / +# RewriteCond %{REQUEST_FILENAME} !-f +# RewriteCond %{REQUEST_FILENAME} !-d +# RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] diff --git a/admin/.htpasswd b/admin/.htpasswd new file mode 100644 index 0000000..097cba8 --- /dev/null +++ b/admin/.htpasswd @@ -0,0 +1 @@ +admin:{SHA}7YC5wks0QslZEMixf4Zv25PucmU= diff --git a/admin/index.php b/admin/index.php new file mode 100644 index 0000000..c0f39f7 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,48 @@ + + + + +
+ +
+ ![]() |
+
'; + foreach ($this->errors as $e) { + print_r($e); + } + echo ''; + } + } + + /** + * Get an array of error messages, if any. + * + * @return array + */ + public function getErrors() + { + return $this->errors; + } + + /** + * POP3 connection error handler. + * + * @param int $errno + * @param string $errstr + * @param string $errfile + * @param int $errline + */ + protected function catchWarning($errno, $errstr, $errfile, $errline) + { + $this->setError( + 'Connecting to the POP3 server raised a PHP warning:' . + "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline" + ); + } +} diff --git a/api/vendor/phpmailer/phpmailer/src/SMTP.php b/api/vendor/phpmailer/phpmailer/src/SMTP.php new file mode 100644 index 0000000..ab7f46e --- /dev/null +++ b/api/vendor/phpmailer/phpmailer/src/SMTP.php @@ -0,0 +1,1431 @@ + + * @author Jim Jagielski (jimjag)