[guadec-web] Move the gopay credentials out of git



commit 94de59000d582d8a938bbe7a170a83cceb603e01
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Jun 28 14:28:04 2013 +0200

    Move the gopay credentials out of git
    
    They are not meant to be public. The ones that were there were only
    for testing so no harm done, but when we switch to production they
    really can't be in git.

 wordcamp-base/.gitignore                |    1 +
 wordcamp-base/template-registration.php |    5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/wordcamp-base/.gitignore b/wordcamp-base/.gitignore
new file mode 100644
index 0000000..826a6a3
--- /dev/null
+++ b/wordcamp-base/.gitignore
@@ -0,0 +1 @@
+gopay-credentials.php
diff --git a/wordcamp-base/template-registration.php b/wordcamp-base/template-registration.php
index 2bd9ba9..f979416 100644
--- a/wordcamp-base/template-registration.php
+++ b/wordcamp-base/template-registration.php
@@ -3,14 +3,13 @@
 Template Name: Registration
 */
 
-define('GOID', 8881354867);
-define('SECURE_KEY', "BcGk8p8EWRhNwHQnz5wpkZFY");
-
 require_once(WP_CONTENT_DIR . '/gopay-api/gopay_config.php');
 require_once(WP_CONTENT_DIR . '/gopay-api/gopay_helper.php');
 require_once(WP_CONTENT_DIR . '/gopay-api/gopay_soap.php');
 GopayConfig::init(GopayConfig::TEST);
 
+require_once('gopay-credentials.php');
+
 class ValidationInfo {
   var $valid = true;
   var $registration_code = false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]