diff --git a/config.json b/config.json new file mode 100644 index 0000000..da71248 --- /dev/null +++ b/config.json @@ -0,0 +1,28 @@ +{ + "database": { + "driver": "mysql", + "pdo": true, + "hostname": "localhost", + "username": "root", + "password": "", + "database": "redonate" + }, + "locale": { + "path": "locales", + "extension": "lng", + "default_locale": "english", + "default_timezone": "Europe/Amsterdam" + }, + "memcache": { + "enabled": true, + "compressed": true, + "hostname": "localhost", + "port": 11211 + }, + "class_map": { + }, + "components": [ + "router", + "errorhandler" + ] +} diff --git a/index2.html b/index2.html deleted file mode 100644 index d9b7599..0000000 --- a/index2.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - -
-
-

- ReDonate -

-
-
-

Contribute to AnonNews monthly, no automatic charges.

- -
-

How does it work?

-

- Most recurring services - even charities! - will automatically charge your account every month. - ReDonate is different. -

-

- When you subscribe to a ReDonate campaign, you only have to tell us how much you want to donate, and provide - your e-mail address. Every month, we will e-mail you to remind you of your pledge. The e-mail you receive will - include a list of payment methods, and an unsubscribe link. -

-

- What this means in simple terms is that you'll never be automatically charged for a donation - - you can decide to cancel your subscription at any time, without hassle, and without "oops, I forgot to cancel" - moments! -

- -

Why use ReDonate?

-

- Many donors wish to donate to a cause at regular intervals, but do not want to have their account charged automatically. - To take away the hassle of having to remember to donate every month, ReDonate was born. No need to remember a - donation schedule, and no automatic charges either! -

-
- -
-
-
-

Is this safe?

-

- Short answer: Yes. -

-

- The longer answer: ReDonate does not actually process any payments. You'll be using the same payment processor - that you'd be using to donate otherwise - we're just here to remind you. We do not have access to any of your - accounts, nor can we control where donations go. -

-

- We also have no reason to sell or otherwise misuse your data. ReDonate is an entirely non-profit project. It's - supported by the Cryto Coding Collective, a collective of developers that has - been running off donations for nearly two years now. We won't use your - e-mail address for anything other than sending you reminders, and every e-mail includes an unsubscribe link. -

-
-
-
-
- - diff --git a/public_html/cphp b/public_html/cphp new file mode 120000 index 0000000..aaeddf6 --- /dev/null +++ b/public_html/cphp @@ -0,0 +1 @@ +../../cphp \ No newline at end of file diff --git a/public_html/index.php b/public_html/index.php new file mode 100644 index 0000000..87af2cf --- /dev/null +++ b/public_html/index.php @@ -0,0 +1,27 @@ +strings, array('can-donate-once' => $can_once))); diff --git a/public_html/locales/english.lng b/public_html/locales/english.lng new file mode 100644 index 0000000..2b24f5a --- /dev/null +++ b/public_html/locales/english.lng @@ -0,0 +1,24 @@ +_locale; en_US.UTF-8,en_US +_datetime_short; %d/%m/%Y %H:%M:%S +_datetime_long; %A %B %d, %Y %H:%M:%S +_date_short; %d/%m/%Y +_date_long; %A %B %d, %Y +_time; %H:%M:%S + +event-now; now +event-future; in the future +event-past; in the past +event-1second-ago; 1 second ago +event-seconds-ago; %1$d seconds ago +event-1minutes-ago; 1 minute ago +event-minutes-ago; %1$d minutes ago +event-1hour-ago; 1 hour ago +event-hours-ago; %1$d hours ago +event-1day-ago; 1 day ago +event-days-ago; %1$d days ago +event-1week-ago; 1 week ago +event-weeks-ago; %1$d weeks ago +event-1month-ago; 1 month ago +event-months-ago; %1$d months ago +event-1year-ago; 1 year ago +event-years-ago; %1$d years ago diff --git a/bitcoin.png b/public_html/static/images/bitcoin.png similarity index 100% rename from bitcoin.png rename to public_html/static/images/bitcoin.png diff --git a/paypal.png b/public_html/static/images/paypal.png similarity index 100% rename from paypal.png rename to public_html/static/images/paypal.png diff --git a/index.html b/public_html/templates/landing.tpl similarity index 90% rename from index.html rename to public_html/templates/landing.tpl index b57c508..3b8bf79 100644 --- a/index.html +++ b/public_html/templates/landing.tpl @@ -138,6 +138,8 @@ width: 335px; } + /* Thanks, Ari! */ + .green-button { margin-top: 0px; @@ -221,6 +223,15 @@ you can decide to cancel your subscription at any time, without hassle, and without "oops, I forgot to cancel" moments!

+ + {%if can-donate-once == true} +

Why use ReDonate?

+

+ Many donors wish to donate to a cause at regular intervals, but do not want to have their account charged automatically. + To take away the hassle of having to remember to donate every month, ReDonate was born. No need to remember a + donation schedule, and no automatic charges either! +

+ {%/if}

Subscribe to a recurring donation

@@ -241,16 +252,26 @@

+ + {%if can-donate-once == true} +

One-off donation

+

+ + +

+ {%/if}
-

Why use ReDonate?

-

- Many donors wish to donate to a cause at regular intervals, but do not want to have their account charged automatically. - To take away the hassle of having to remember to donate every month, ReDonate was born. No need to remember a - donation schedule, and no automatic charges either! -

+ {%if can-donate-once == false} +

Why use ReDonate?

+

+ Many donors wish to donate to a cause at regular intervals, but do not want to have their account charged automatically. + To take away the hassle of having to remember to donate every month, ReDonate was born. No need to remember a + donation schedule, and no automatic charges either! +

+ {%/if}

Is this safe?