Skip to content

Commit

Permalink
Added printing and emailing receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
Surgbc committed Feb 22, 2017
1 parent 964fa26 commit 8bea3a9
Show file tree
Hide file tree
Showing 610 changed files with 170,424 additions and 14,039 deletions.
1 change: 1 addition & 0 deletions ExtraFiles/.~lock.Emails.xlsx#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root ,root,upande-OptiPlex-170L,22.02.2017 13:34,file:///home/upande/.config/libreoffice/3;
Binary file added ExtraFiles/Emails.xlsx
Binary file not shown.
Binary file added ExtraFiles/Receipt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions config/ckccookie
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Netscape HTTP Cookie File
# http://curl.haxx.se/docs/http-cookies.html
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.

ckcfinancialsystem.org FALSE / FALSE 0 PHPSESSID 7ae552c2429433606764ccd34f859bfa
ckcfinancialsystem.org FALSE / FALSE 0 PHPSESSID f3c3bb9e1f4370baed6a80a0e790e0c6
21 changes: 20 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
DEFINE("CKCLOGIN", "http://ckcfinancialsystem.org/login.php");
DEFINE("CKCUSER", "");
DEFINE("CKCPASS", "");
DEFINE("CHURCHNAME","");
DEFINE("CHURCHNAME",sprintf("%s", CKCUSER));
//DEFINE("CKCUSER", "");
//DEFINE("CKCPASS", "");

Expand All @@ -33,4 +33,23 @@

DEFINE("AUTH_SALT", "JKUSDATtr");

define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
define('B','<b>');
define('B1','</b>');

DEFINE("RECEIPTIMGPATH","ExtraFiles/Receipt.png");
DEFINE("RECEIPTSFILE","ExtraFiles/Receipts/");


DEFINE("MAILSERVER",'mail.adhrc.co.ke');
DEFINE("MAILSERVERPORT",25);
DEFINE("MAILSERVERENCRYPTION",'');
DEFINE("MAILSERVERUNAME",'');
DEFINE("MAILSERVERPASS",'');

DEFINE("FROMEMAIL", "jkusda@adhrc.co.ke");
DEFINE("FROMNAME", sprintf("%s Treasury", CHURCHNAME));
DEFINE("REPLYEMAIL", "");
DEFINE("REPLYNAME", "Treasurer");

?>
55 changes: 55 additions & 0 deletions config/config.php~
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

if(!DEFINED("CSYBER")) exit("unauthorised config access!");

/*
* MYSQL SERVER AND DB CREDENTIALS
*/
DEFINE("SERVER", "");
DEFINE("DBUSER", "");
DEFINE("DBPASS", "");

DEFINE("CSYBER_DB", "");


/*
* CKC CREDENTIALS
*/
DEFINE("CKCLOGIN", "http://ckcfinancialsystem.org/login.php");
DEFINE("CKCUSER", "");
DEFINE("CKCPASS", "");
DEFINE("CHURCHNAME",sprintf("%s", CKCUSER));
//DEFINE("CKCUSER", "");
//DEFINE("CKCPASS", "");

//where to store the cookies
/*
Modify this
*/
DEFINE("CKCCOOKIE", dirname(__FILE__)."/ckccookie");
DEFINE("CKCRECEIPT", "http://ckcfinancialsystem.org/addreceipt.php");
DEFINE("CKCRECEIPTSUCCESS","Record has been Added!");
DEFINE("CKCSTATEMENT", "http://ckcfinancialsystem.org/searchtreasurer.php");//searchtreasurer.php

DEFINE("AUTH_SALT", "JKUSDATtr");

define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
define('B','<b>');
define('B1','</b>');

DEFINE("RECEIPTIMGPATH","ExtraFiles/Receipt.png");
DEFINE("RECEIPTSFILE","ExtraFiles/Receipts/");


DEFINE("MAILSERVER",'mail.adhrc.co.ke');
DEFINE("MAILSERVERPORT",25);
DEFINE("MAILSERVERENCRYPTION",'');
DEFINE("MAILSERVERUNAME",'');
DEFINE("MAILSERVERPASS",'');

DEFINE("FROMEMAIL", "jkusda@adhrc.co.ke");
DEFINE("FROMNAME", sprintf("%s Treasury", CHURCHNAME));
DEFINE("REPLYEMAIL", "");
DEFINE("REPLYNAME", "Treasurer");

?>
Loading

0 comments on commit 8bea3a9

Please sign in to comment.