From b1b6a876af9d6248aedf7364407edf5b1d14a4fb Mon Sep 17 00:00:00 2001 From: Olusesan Amaeye Date: Sat, 15 Jun 2019 00:23:38 -0400 Subject: [PATCH] First build --- jubabox/.gitignore | 97 +++++++++++++++++++++ jubabox/src/include/jubabox_session.h | 0 jubabox/src/include/mobile.h | 0 jubabox/src/include/php_jubabox_api_ns.h | 2 +- jubabox/src/include/php_jubabox_config.h | 2 +- jubabox/src/include/php_jubabox_log.h | 2 +- jubabox/src/include/php_tmpl_prefix.h | 2 +- jubabox/src/shared_tool/function_members.cc | 5 +- jubabox/src/shared_tool/function_users.cc | 5 +- jubabox/src/shared_tool/jubabox_api_main.cc | 2 +- jubabox/src/shared_tool/medTrMembers.cc | 3 +- 11 files changed, 110 insertions(+), 10 deletions(-) create mode 100644 jubabox/.gitignore create mode 100644 jubabox/src/include/jubabox_session.h create mode 100644 jubabox/src/include/mobile.h diff --git a/jubabox/.gitignore b/jubabox/.gitignore new file mode 100644 index 0000000..27392ef --- /dev/null +++ b/jubabox/.gitignore @@ -0,0 +1,97 @@ +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb + +# Kernel Module Compile Results +*.mod* +*.cmd +.tmp_versions/ +modules.order +Module.symvers +Mkfile.old +dkms.conf + +# Log files +*.log + +# Misc +.svn +.libs +*.bak +modules +savvyext/src/Makefile +savvyext/src/Makefile.objects +savvyext/src/config.status +savvyext/src/include/php_savvyext_config.h +savvyext/src/include/php_savvyext_log.h +savvyext/src/include/php_tmpl_prefix.h +savvyext/src/mailsend/mailsend +RELEASE +*.tar +savvyoauth2 + +src/.deps +src/Makefile +src/Makefile.fragments +src/Makefile.global +src/Makefile.objects +src/acinclude.m4 +src/aclocal.m4 +src/autom4te.cache/ +src/build/ +src/confdefs.h +src/config.guess +src/config.h +src/config.h.in +src/config.nice +src/config.status +src/config.sub +src/configure +src/configure.in +src/install-sh +src/libtool +src/ltmain.sh +src/mailsend/mailsend +src/missing +src/mkinstalldirs +src/run-tests.php diff --git a/jubabox/src/include/jubabox_session.h b/jubabox/src/include/jubabox_session.h new file mode 100644 index 0000000..e69de29 diff --git a/jubabox/src/include/mobile.h b/jubabox/src/include/mobile.h new file mode 100644 index 0000000..e69de29 diff --git a/jubabox/src/include/php_jubabox_api_ns.h b/jubabox/src/include/php_jubabox_api_ns.h index a1f02d0..094b60a 100644 --- a/jubabox/src/include/php_jubabox_api_ns.h +++ b/jubabox/src/include/php_jubabox_api_ns.h @@ -1 +1 @@ -#define JUBABOX_API_NS "jubabox_api_savvy" +#define JUBABOX_API_NS "jubabox_api_oameye" diff --git a/jubabox/src/include/php_jubabox_config.h b/jubabox/src/include/php_jubabox_config.h index 2c4e1cf..d314837 100644 --- a/jubabox/src/include/php_jubabox_config.h +++ b/jubabox/src/include/php_jubabox_config.h @@ -1 +1 @@ -#define JUBABOX_CONFIG "/home/savvy/savvy/jubabox/etc/" +#define JUBABOX_CONFIG "/home/oameye/jubaboxweb/jubabox/etc/" diff --git a/jubabox/src/include/php_jubabox_log.h b/jubabox/src/include/php_jubabox_log.h index fbfcbf5..6e049a6 100644 --- a/jubabox/src/include/php_jubabox_log.h +++ b/jubabox/src/include/php_jubabox_log.h @@ -1 +1 @@ -#define JUBABOX_LOG "/home/savvy/savvy/jubabox/logs/jubabox_api.log" +#define JUBABOX_LOG "/home/oameye/jubaboxweb/jubabox/logs/jubabox_api.log" diff --git a/jubabox/src/include/php_tmpl_prefix.h b/jubabox/src/include/php_tmpl_prefix.h index 9fa73d9..f5b4ca5 100644 --- a/jubabox/src/include/php_tmpl_prefix.h +++ b/jubabox/src/include/php_tmpl_prefix.h @@ -1 +1 @@ -#define TMPL_PREFIX "/home/savvy/savvy/jubabox/email/" +#define TMPL_PREFIX "/home/oameye/jubaboxweb/jubabox/email/" diff --git a/jubabox/src/shared_tool/function_members.cc b/jubabox/src/shared_tool/function_members.cc index 6a80a9b..575d4bd 100644 --- a/jubabox/src/shared_tool/function_members.cc +++ b/jubabox/src/shared_tool/function_members.cc @@ -21,7 +21,7 @@ /* -- */ #include "function_members.h" -#include "savvy_session.h" +#include "jubabox_session.h" long serviceCost(long service_id, long discount_rate); @@ -291,7 +291,8 @@ long medTMemberLogin(CVars in, CVars &out) { // remove all existing session pgsql_exec("DELETE FROM members_session WHERE member_id=%ld ", out["member_id"].Long()); // Create New Session Now - if (SessionCheck(out["member_id"].Long(), out["sessionid"].c_str(), 1) > 0) { + if (false) { + //if (SessionCheck(out["member_id"].Long(), out["sessionid"].c_str(), 1) > 0) { out["stauts"] = "OK"; diff --git a/jubabox/src/shared_tool/function_users.cc b/jubabox/src/shared_tool/function_users.cc index 43b7bc3..eb3d5db 100644 --- a/jubabox/src/shared_tool/function_users.cc +++ b/jubabox/src/shared_tool/function_users.cc @@ -19,7 +19,7 @@ www.chiefsoft.com /* -- */ #include "function_users.h" -#include "savvy_session.h" +#include "jubabox_session.h" long savvyMemberLogin(CVars in, CVars &out) { @@ -36,7 +36,8 @@ long savvyMemberLogin(CVars in, CVars &out) { // remove all existing session pgsql_exec("DELETE FROM members_session WHERE member_id=%ld ", out["member_id"].Long()); // Create New Session Now - if (SessionCheck(out["member_id"].Long(), out["sessionid"].c_str(), 1) > 0) { + if (false) { + //if (SessionCheck(out["member_id"].Long(), out["sessionid"].c_str(), 1) > 0) { out["stauts"] = "OK"; diff --git a/jubabox/src/shared_tool/jubabox_api_main.cc b/jubabox/src/shared_tool/jubabox_api_main.cc index 6ec9de2..7652cf1 100644 --- a/jubabox/src/shared_tool/jubabox_api_main.cc +++ b/jubabox/src/shared_tool/jubabox_api_main.cc @@ -35,7 +35,7 @@ long jubabox_api_main(CVars in, CVars &out) { } if (action >= SAVVY_USER_MOBILESTART && action <= SAVVY_USER_MOBILEEND) { - return mobile_call(in, out); + return -1; //mobile_call(in, out); } diff --git a/jubabox/src/shared_tool/medTrMembers.cc b/jubabox/src/shared_tool/medTrMembers.cc index 3bd3995..2bcd9b8 100644 --- a/jubabox/src/shared_tool/medTrMembers.cc +++ b/jubabox/src/shared_tool/medTrMembers.cc @@ -94,7 +94,8 @@ long members_call(CVars in, CVars &out) { REQ_STRING(in, "sessionid", 2, 100, "(.*)"); ret = PHP_INVALID_SESSION; out["status"] = "INVALID_SESSION"; - if (SessionCheck(in["member_id"].Long(), in["sessionid"].c_str(), 0) == 1L) { + if (false) { + //if (SessionCheck(in["member_id"].Long(), in["sessionid"].c_str(), 0) == 1L) { out = in; out["status"] = "VALID_SESSION"; ret = PHP_VALID_SESSION;