This commit is contained in:
dev-chiefworks
2023-09-30 11:49:57 -04:00
parent 52611fc82b
commit 38b38b1c8f
71 changed files with 1131 additions and 29 deletions
+53
View File
@@ -0,0 +1,53 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$arrayVar = [
"data" => [
[
"id" => "0",
"name" => "Possible Topics on ",
"question_key" => "ASK01",
],
[
"id" => "1",
"name" => "Summary description of",
"question_key" => "ASK02",
],
]
];
$arrayQes = [
"data" => [
[
"id" => "0",
"name" => "Possible Topics on ",
"question" => ['Automotive Engines','Best Programmimng laguages'],
],
[
"id" => "1",
"name" => "Summary description of",
"question" => ['Space travel','Quantum Computing'],
],
]
];
$qc= rand(0,1);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"question_key" => $arrayVar["data"][$qc]["question_key"],
"question" => $arrayQes["data"][$qc]["question"][rand(0,1)],
'action'=>WRENCHBOARD_FAMILY_LIST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'askresources');
?>
@@ -0,0 +1,28 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$famList=['e1ed7857-5dd0-4b78-b640-310bb224fd95','a24f1193-7885-4c26-afac-3e5ad744ef40'];
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"country" => 'NG',
"price" => rand(2,10)*1000,
"timeline_days" => rand(2,10),
"banner" => 'default.jpg',
"title" => "This is the job title " .rand(1,9000)." job title" ,
"description" => "This is the job description " .rand(1,9000)." job description" ,
"job_detail" => "This is the job detail " .rand(1,9000)." job detail" ,
"family_uid" => $famList[rand(0,1)],
'action'=>WRENCHBOARD_JOB_OFFER_SYSTEM,
'assign_mode' => ASSIGN_MODE_CREATEASSIGN,
"category" => ""
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'assigntask');
//jobmanagerupdatejob
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$data['auth_type'] = "GOOGLE";
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'authstart');
echo "=========================================================.....======================================";
var_dump($out);
?>
+22
View File
@@ -0,0 +1,22 @@
FILTER THIS TO JUST A BLOG ITEM <a href="/wrenchboard/blogdata_blog_id.php"> One Item </a>
<hr>
<?php
include_once('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$data['limit'] = 4;
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'blogdata');
echo "=========================================================.....======================================";
var_dump($out);
?>
+23
View File
@@ -0,0 +1,23 @@
Return to all item <a href="/wrenchboard/blogdata.php"> More Item </a>
<hr>
<?php
include_once('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$data['blog_id'] = 78;
$data['limit'] = 4;
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'blogdata');
echo "=========================================================.....======================================";
var_dump($out);
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"code" => 'ADGB5688798',
"code_id" => 14,
'action'=>WRENCHBOARD_COUPON_REDEEM
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'couponredeem');
?>
+48
View File
@@ -0,0 +1,48 @@
<?php
define('WRB_JOB_CRONJOB',770);
$data['action'] = WRB_JOB_CRONJOB;
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$data['limit'] = 4;
$out = array();
$ret = wrenchboard_cron_api($data,$out,'cron');
echo "=========================================================.....======================================";
var_dump($out);
function wrenchboard_cron_api($in, &$out = array(),$pathWay='') {
$ret = 0;
$REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
$REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
// $urlPath = ($pathWay!='')? $pathWay :$this->baseUrlPath($in);
$local_url = $REACT_APP_USERS_ENDPOINT;
$url = $local_url ."/".$pathWay; //"/generics";
$data = $in;
$content = json_encode($data);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type" => "application/json"));
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
$json_response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($status != 200) {
echo ("Error: call to URL $url failed with status $status, response $json_response, | curl_error " . curl_error($curl) . ", | curl_errno " . curl_errno($curl));
}
curl_close($curl);
$response = json_decode($json_response, true);
// $this->showResult($url, $in, $response);
$out = $response;
return $response["internal_return"];
}
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
'action'=>1009,
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'dashrecent');
?>
+72 -8
View File
@@ -1,16 +1,31 @@
<?php
//require_once 'config.php';
$tArr =[
['cronjobs','Cron Jobs layers','',''],
['dashrecent','Dash Recent layer','',''],
['playground','Playground layer','',''],
['getmedia','Read Files from server','',''],
['getaccsettings','Get Account Settings','',''],
['setaccsettings','Set Account Settings','',''],
['startcredit','Start Credit','',''],
['authstart-google','Auth Start for google','',''],
['resources','Resources Dev','',''],
['askresources','Resources Ask Engine','',''],
['blogdata','Blog Data','',''],
['mynotifications','Notifications hx','',''],
['faq','Faq page *******','',''],
['login','This is the username password login call','https://docs.google.com/document/d/16wQi3vK2sEPexIU-MVLL_tbqiLn0brUfErdKMO26D9A/edit',''],
['qrlogin','This is the QR login call','https://docs.google.com/document/d/16wQi3vK2sEPexIU-MVLL_tbqiLn0brUfErdKMO26D9A/edit',''],
['login-google','This is the username password login call','https://docs.google.com/document/d/16wQi3vK2sEPexIU-MVLL_tbqiLn0brUfErdKMO26D9A/edit',''],
['signup','This is the sign up endpoint for manual account creation , we will have modified version for OAuth latter','',''],
['signup2','Country Removed This is the sign up endpoint for manual account creation , we will have modified version for OAuth latter','',''],
['profilepasschange','Reset Pass from Profile','',''],
['userscards','What are you for really *******','',''],
['wallet','This list the user wallets. Note the user can have multiple wallets of different currencies and behavior. We will start with the primary wallets.','',''],
['paymenthx','Payment Hx','',''],
['couponhx','Coupon Hx','',''],
['couponredeem','Coupon Redeem','',''],
['purchasehx','Purchase Hx','',''],
['startjoblist', 'List Jobs in the market space','',''],
['signupcountry','List countries signup allowed from','', ''],
@@ -27,14 +42,16 @@ $tArr =[
['offersresponse-accept','Accept to start an offer','','style="background-color:#F3FA98;"'],
['offersresponse-reject','Reject to start an offer','','style="background-color:#F3FA98;"'],
['startresetpasword', 'Reset Password Process','',''],
['verifyresetpasword', 'Verify Reset Password Process can cointinue','',''],
['stepresetpass-final','Final; Step Reset pass','',''],
['accounttypes', 'Used for account typed when adding a bank account','',''],
['loadprofile','Load user profile','',''],
['verifysignuplink','VERIFY Signup link','',''],
['completesignuplink','Complete Signup Link','',''],
['homebanners','Home Banners + Recomendation Engine 1','', ''],
['recentactivities','Recent Activities','', ''],
['getjobsdata','?? confirm','',''],
['LINE','?? confirm','',''],
['activejoblist','Job Beign Worked On USERS','','style="background-color:red" '],
['activejobmsglist','Listing message to active job','','style="background-color:#A9DDE2" '],
@@ -48,6 +65,7 @@ $tArr =[
['jobmanageragree', 'Job Agree','','style="background-color:Orange" '],
['jobmanagerlist', 'Job owner job list', '','style="background-color:Orange" '],
['jobmanagerlist_family', 'Job owner job FAMILY list', '','style="background-color:Orange" '],
['jobmanagercreatejob', 'Create a new Job - general job mode', '','style="background-color:Orange"'],
['jobmanagerupdatejob', 'Update a Job - general job mode','','style="background-color:Orange" '],
['jobmanagerdeletejob', 'Delete a Job - general job mode','','style="background-color:Orange" '],
@@ -56,7 +74,8 @@ $tArr =[
['pendingjobsendtome',' - Re-Send Offer Message','','style="background-color:#FFEBCD" '],
['pendingjobcancel',' - Cancel Pending Offer','','style="background-color:#FFEBCD" '],
['starttopup', 'Start naira top up','',''],
['starttopup', 'Retired USE *** startcredit *** Instead Start naira top up','',''],
['topupresult', 'Use this for status of the Flutterwave based credit result','',''],
['familylist', 'Get list of Family Accounts','','style="background-color:aliceblue" '],
['familyadd', 'Add Family Account','','style="background-color:aliceblue" '],
['familyupdate', 'Update Family Account','','style="background-color:aliceblue" '],
@@ -64,6 +83,12 @@ $tArr =[
['familylogin', 'LoginA Family Account','','style="background-color:aliceblue" '],
['familytasks', 'All or Family Member Tasks','','style="background-color:aliceblue" '],
['familysuggesttasks', 'The action of suggestiing a task to parent','','style="background-color:cyan" '],
['familysuggestlist', 'The list of What is already suggested','','style="background-color:cyan" '],
['familysampletasks', 'Possible Tasks List A Kids can Select From','','style="background-color:cyan" '],
['familywaitingtasks', 'This is the Parent View of all waiting list','','style="background-color:cyan" '],
['assigntask', 'Assign a task to a user. Note different call method','','style="background-color:#E4EBD2" '],
['assigntask-family', 'Assign a task to a user FAMILY TYPE.','','style="background-color:#E4EBD2" '],
@@ -73,6 +98,21 @@ $tArr =[
['marketmessage', 'Send message from market task ','','style="background-color:#edcae3" '],
['marketinterest', 'Send interest from market task ','','style="background-color:#edcae3" '],
['offersinterestlist', 'interest Lists ','','style="background-color:#edcae3" '],
['offersinterestproc', 'Process Selected Interest','','style="background-color:#edcae3" '],
['offerinterestmsg', 'Message On Offer Interest Page ','','style="background-color:#edcae3" '],
['offerinterestlistmsg', 'List Selection Messages','','style="background-color:#edcae3" '],
['LINE','?? confirm','',''],
['paylistcard', 'List Cards on the account', '','style="background-color:violet" '],
['paynewcard', 'Pay with new card', '','style="background-color:violet" '],
['payprevcard','Pay with previous card','','style="background-color:violet" '],
['payremcard','Removed Previously added card','','style="background-color:violet" '],
['LINE','?? confirm','',''],
];
//
@@ -87,11 +127,11 @@ define('PHP_CREATED_OK', 10);
define('PHP_API_BAD_PARAM', -1);
define('SESSION_TIMEOUT_LOGOUT',6000);
define('ASSIGN_MODE_FAMILY', 110011);
define('ASSIGN_MODE_INDIVIDUAL', 110022);
define('ASSIGN_MODE_EMAIL', 110033);
define('ASSIGN_MODE_GROUP', 110044);
define('ASSIGN_MODE_FAMILY', 110011);
define('ASSIGN_MODE_INDIVIDUAL', 110022);
define('ASSIGN_MODE_EMAIL', 110033);
define('ASSIGN_MODE_GROUP', 110044);
define('ASSIGN_MODE_CREATEASSIGN', 110055);
define('MOBILE_LOGIN', 1101);
@@ -118,6 +158,7 @@ define('SMONEY_PROCC_INTERSWITCH',300);
define('ACCOUNT_AGREE_JOBS',100);
define('ACCOUNT_AGREE_REFER',200);
define('WRENCHBOARD_GET_MEDIA',650);
define('WRENCHBOARD_SESSION_CHECK', 299);
define('WRENCHBOARD_USER_LOGIN', 300);
@@ -131,6 +172,13 @@ define('CONTRACT_REQUEST_CANCEL', 3);
define('CONTRACT_ACCEPT_COMPLETE', 5);
define('CONTRACT_REJECT_COMPLETE', 1);
define('WRENCHBOARD_USER_ADNEWCC', 11054);
define('WRENCHBOARD_USER_CARDLIST', 11055);
define('WRENCHBOARD_USER_USESAVEDCC', 11056);
define('WRENCH_EXISTING_ACCOUNT', 100);
define('WRENCH_NEWBANK_ACCOUNT', 500);
//**************************************************************
define('WRENCHBOARD_BKO_START', 10000);
@@ -191,6 +239,9 @@ define('WRENCHBOARD_USER_GETBANKLIST', 11050);
define('WRENCHBOARD_USER_SENDMONEY', 11051);
define('WRENCHBOARD_USER_SENDJOBINT', 11052);
define('WRENCHBOARD_USER_SETTINGS', 11058);
define('WRENCHBOARD_GETUSER_SETTINGS', 11059);
define('WRENCHBOARD_ACCOUNT_WALLETS', 11060);
define('WRENCHBOARD_ACCOUNT_REFFERHX', 11064);
@@ -207,10 +258,13 @@ define('WRENCHBOARD_ACCOUNT_JOB_COUNTRY', 11181);
define('WRENCHBOARD_ACCOUNT_COUNTRY_BANKS', 11183);
define('WRENCHBOARD_ACCOUNT_HOMEBANNERS', 11200);
define('WRENCHBOARD_ACCOUNT_RECENTS', 11202);
define('WRENCHBOARD_ACCOUNT_NOTIFICATIONS',11205);
define('WRENCHBOARD_PICTURE_PROFILE', 11300);
define('WRENCHBOARD_PICTURE_FAMMEMBER',11305);
define('WRENCHBOARD_RESOURCE_MYFILES', 11307);
define('WRENCHBOARD_ACCOUNT_END', 11999);
//**************************************************************
@@ -227,6 +281,7 @@ define('WRENCHBOARD_JOB_DELETE_GROUPMEMBER',13017);
define('WRENCHBOARD_JOB_CREATE_GROUP', 13020);
define('WRENCHBOARD_JOB_DELETE_GROUP',13023);
define('WRENCHBOARD_JOB_OFFER_INTLIST', 13024); // offers interest list
define('WRENCHBOARD_JOB_OFFER_SYSTEM',13025);
define('WRENCHBOARD_JOB_OFFER_FAMILY',13029);
define('WRENCHBOARD_JOB_OFFER_INDVI',13030);
@@ -258,6 +313,11 @@ define('WRENCHBOARD_FAMILY_LIST', 22010);
define('WRENCHBOARD_FAMILY_ADD', 22015);
define('WRENCHBOARD_FAMILY_UPDATE', 22020);
define('WRENCHBOARD_FAMILY_MANAGE', 22025);
define('WRENCHBOARD_FAMILY_SAMPLETASKS', 22027);
define('WRENCHBOARD_FAMILY_SGGESTTASKS', 22028);
define('WRENCHBOARD_FAMILY_SGGESTLIST', 22029);
define('WRENCHBOARD_FAMILY_SGGESTWAITING', 22030);
define('WRENCHBOARD_CONTRACT_MESSAGE', 14010);
define('WRENCHBOARD_CONTRACT_MSGLIST', 14011);
@@ -316,6 +376,10 @@ define('WRENCHBOARD_USER_ACCOUNT_LOGIN', 710);
define('WRENCHBOARD_START_PASSWORDRESET', 720);
define('WRENCHBOARD_COMPLETE_PASSWORDRESET', 730);
//const WRENCHBOARD_START_PASSWORDRESET = 720;
const WRENCHBOARD_VERIFY_PASSWD_RESETLINK = 725;
//const WRENCHBOARD_COMPLETE_PASSWORDRESET = 730;
//#define WRENCHBOARD_START_ADDMONEY', 770 );
//#define WRENCHBOARD_COMPLETE_ADDMONEY' 775 );
+4 -3
View File
@@ -10,11 +10,12 @@ $data = array(
"uid" => $uid,
"firstname" => "First".rand(0,1000),
"lastname" => "Last".rand(0,1000),
"age" => rand(10,16),
"year" => 2000 +rand(0,25) ,
"month" => 1 + rand(0,11),
'action'=>WRENCHBOARD_FAMILY_ADD
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'familyadd');
?>
// "age" => rand(10,16),
?>
+21
View File
@@ -0,0 +1,21 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
'action'=>WRENCHBOARD_FAMILY_SAMPLETASKS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'familysampletasks');
?>
+29
View File
@@ -0,0 +1,29 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$sam =[
['188','745db27f-db41-4045-a9a8-6c2a4abceea7'],
['187','b4f14eb5-b663-4f88-a7e3-2e2131a7543a'],
['195','518cd0c7-cb18-4398-b7a7-8c800dd967e3'],
['194','44566427-6310-462a-81e9-cbd037d6d94a'],
];
$ranAcc = $sam[rand(0,3)];
$data = array(
"member_id" => $ranAcc[0] ,
"sessionid" => $session_id ,
"uid" => $ranAcc[1],
"limit" => 30,
"offset" => 0,
'action'=>WRENCHBOARD_JOB_CREATEJOB,
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'familysuggestlist');
?>
+39
View File
@@ -0,0 +1,39 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
/*
id | uid
-----+--------------------------------------
188 | 745db27f-db41-4045-a9a8-6c2a4abceea7
187 | b4f14eb5-b663-4f88-a7e3-2e2131a7543a
195 | 518cd0c7-cb18-4398-b7a7-8c800dd967e3
194 | 44566427-6310-462a-81e9-cbd037d6d94a
*/
$jobT =['Do the Dishes','Clean My Room','Clean the house','Do the laundary'];
$sam =[
['188','745db27f-db41-4045-a9a8-6c2a4abceea7'],
['187','b4f14eb5-b663-4f88-a7e3-2e2131a7543a'],
['195','518cd0c7-cb18-4398-b7a7-8c800dd967e3'],
['194','44566427-6310-462a-81e9-cbd037d6d94a'],
];
$ranAcc = $sam[rand(0,3)];
$tt = $jobT[rand(0,3)];
$data = array(
"member_id" => $ranAcc[0] ,
"sessionid" => $session_id ,
"uid" => $ranAcc[1],
"title" => $tt ,
"description" => "This is the job description " .rand(1,9000)." job description" ,
"banner" => 'default.jpg',
'action'=>WRENCHBOARD_FAMILY_SGGESTTASKS,
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'familysuggesttasks');
//C:\WORKS\PROJECTS\WRB\WrenchBoard\Users-Wrench\src\assets\images\family\default.jpg
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
'action'=>WRENCHBOARD_JOB_CREATEJOB,
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'familywaitingtasks');
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'faq');
echo "=========================================================.....======================================";
var_dump($out);
?>
+17
View File
@@ -0,0 +1,17 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'action'=>WRENCHBOARD_GETUSER_SETTINGS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'getaccsettings');
?>
+86
View File
@@ -0,0 +1,86 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
// public $REACT_APP_AUX_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
// public $REACT_APP_USERS_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"msg_uid" => "3ba22926-f734-4440-9651-ed848b6b1043",
"process" => WRENCHBOARD_CONTRACT_MESSAGE,
'action'=>WRENCHBOARD_GET_MEDIA
);
$SERVER_URL = "https://apigate.lotus.g1.wrenchboard.com";
//$out = array();
//$ret = $wrenchboard->wrenchboard_api($data,$out,'getmedia');
$myFile_sample = $SERVER_URL."/en/wrench/api/v1/getmedia/".$session_id."/myfile/8be7f3dc-7fd8-4c0b-bc78-33dc5537cc3f";
$myFile_profile = $SERVER_URL."/en/wrench/api/v1/getmedia/".$session_id."/profile/".$uid;
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>WrenchBoard Secure Media File </title>
</head>
<body>
<h1>WrenchBoard Secure Media File </h1>
<hr />
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Type</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>USERS UPLADED FILES</td>
<td>
<a href='<?=$myFile_sample?>'><?=$myFile_sample?></a> <hr size="1">
<?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<b>session_id</b>/myfile/<b>file_uid</b> </td>
<td>......</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Active Job Files</td>
<td><?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<?=$session_id?>/contrats/9af67a04-6f4f-477f-a0a5-3336c7e9022b
<hr size="1">
<?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<b>session_id</b>/contrats/<b>msg_uid</b>
</td>
<td>....</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Profile Picture</td>
<td><a href='<?=$myFile_profile?>'><?=$myFile_profile?></a></td>
<td>.....</td>
</tr>
</tbody>
</table>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="add-user"><path fill="#9bcb5b" d="M12 13.4c-2 0-3.7-1.6-3.7-3.6s1.6-3.7 3.6-3.7 3.7 1.6 3.7 3.6-1.6 3.6-3.6 3.7zm0-6.2c-1.4 0-2.6 1.1-2.6 2.6 0 1.4 1.1 2.6 2.6 2.6s2.6-1.1 2.6-2.6c-.1-1.5-1.2-2.6-2.6-2.6z"></path><path fill="#9bcb5b" d="M16.6 17.9c-.3 0-.5-.2-.6-.5 0-2.2-1.8-4-4-4s-4 1.8-4 4c0 .3-.3.5-.6.5-.2 0-.4-.2-.5-.5 0-2.8 2.3-5.1 5.1-5.1s5.1 2.3 5.1 5.1c0 .3-.2.5-.5.5z"></path><path fill="#0376bc" d="M12 23.7C5.5 23.7.3 18.4.3 12 .3 5.5 5.6.3 12 .3c2.6 0 5.1.9 7.2 2.5.2.2.2.6 0 .8-.2.2-.4.2-.7.1-1.9-1.4-4.1-2.2-6.5-2.2C6.2 1.4 1.4 6.2 1.4 12S6.2 22.6 12 22.6 22.6 17.8 22.6 12c0-2.4-.8-4.6-2.2-6.5-.2-.3-.1-.6.2-.8.2-.1.5-.1.7.1 1.6 2 2.5 4.6 2.4 7.2 0 6.4-5.3 11.7-11.7 11.7z"></path><circle cx="20.2" cy="20.3" r="2.4" fill="#fff"></circle><path fill="#9bcb5b" d="M18 18.1c.6-.6 1.4-.9 2.2-.9.8 0 1.6.3 2.2.9s1 1.4.9 2.2c0 .8-.3 1.6-.9 2.2s-1.4 1-2.2.9c-.8 0-1.6-.3-2.2-.9s-1-1.4-.9-2.2c-.1-.8.3-1.7.9-2.2zm3.8 2.5V20h-1.3v-1.3h-.6V20h-1.3v.6h1.3v1.3h.6v-1.3h1.3z"></path></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="history"><g data-name="14"><circle cx="9" cy="14" r="7" fill="#ffd54f"></circle><path fill="#ef6c00" d="M21 9H17a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zM21 5H3A1 1 0 0 1 3 3H21a1 1 0 0 1 0 2zM21 13H19a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zM21 17H19a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zM21 21H17a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"></path><path fill="#ff8f00" d="M10,10a1,1,0,0,0-2,0v3.59L6.29,15.29a1,1,0,1,0,1.41,1.41l2-2A1,1,0,0,0,10,14Z"></path></g></svg>

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="InternationalUser"><path fill="#e6e7f9" d="M38.5 31.1c2.1-1.1 3.9-2.5 5.4-4.4h-3.2c-.6 1.6-1.3 3.1-2.2 4.4zm-5.8 1.4c2-.7 3.7-2.8 4.9-5.8h-4.9v5.8zm8.8-8.6h4.2c.9-1.8 1.5-3.7 1.7-5.8h-5.1c-.1 2-.4 4-.8 5.8zm2.4-17.3c-1.5-1.8-3.3-3.3-5.4-4.4.8 1.2 1.6 2.7 2.2 4.4h3.2zm-5.3 2.9h-5.9v5.8h6.7c-.1-2.1-.4-4.1-.8-5.8zm3.7 5.8h5.1c-.2-2.1-.8-4-1.7-5.8h-4.2c.4 1.8.7 3.7.8 5.8zM32.7.8v5.8h4.9c-1.2-2.9-2.9-5.1-4.9-5.8zm6.7 17.3h-6.7v5.8h5.9c.4-1.8.7-3.8.8-5.8zM25 6.6h4.9V.8c-2 .7-3.7 2.9-4.9 5.8zm-1.8 8.7h6.7V9.5H24c-.4 1.7-.7 3.7-.8 5.8zm6.7 17.2v-5.8H25c1.2 3 2.9 5.1 4.9 5.8zM24.1 2.3c-2.1 1.1-3.9 2.5-5.4 4.4H22c.5-1.7 1.3-3.2 2.1-4.4zM24 23.9h5.9v-5.8h-6.7c.1 2 .4 4 .8 5.8z" class="colorc1e5ff svgShape"></path><path fill="#ff6699" d="M3.7 44.7c0 1.6 1.2 2.8 2.8 2.8 1.3 0 2.4-.9 2.7-2.2.3 1.3 1.4 2.2 2.7 2.2 1.5 0 2.8-1.3 2.8-2.8V30.1h3.1V18.8c0-4.2-3.3-7.5-7.4-7.5H8c-4.1 0-7.4 3.4-7.4 7.5v11.3h3.1v14.6z" class="colorff99b0 svgShape"></path><path fill="#998da0" d="M9.2 10.3c2.4 0 4.4-2.2 4.4-4.9S11.6.5 9.2.5C6.8.5 4.8 2.7 4.8 5.4s2 4.9 4.4 4.9z" class="colorffd499 svgShape"></path><path fill="#e6e7f9" d="M16.9 9.5c-.3.6-.5 1.2-.8 1.8 1.3 1 2.3 2.4 2.9 4h1.3c.1-2 .3-4 .8-5.8h-4.2zm2.9 9.3v5.1h1.4c-.4-1.8-.7-3.8-.8-5.8h-.6c-.1.2 0 .4 0 .7zm2.2 7.9h-2.2v1.2c1.3 1.3 2.7 2.4 4.4 3.2-.9-1.3-1.7-2.8-2.2-4.4z" class="colorc1e5ff svgShape"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="list"><g data-name="Bullet List"><g fill="none" stroke="#303c42" stroke-linecap="round" stroke-linejoin="round" data-name="<Group>"><path d="M5.5 5.5h18M5.5 12h18M5.5 18.5h18" data-name="<Path>"></path><path d="M.5 4.5h2v2h-2zM.5 11h2v2h-2zM.5 17.5h2v2h-2z" data-name="<Rectangle>"></path></g></g></svg>

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

+1 -1
View File
@@ -24,7 +24,7 @@ foreach($tArr as $rr){
$i++;
$urlS = $dm.$rr[0].".php";
$docU = $dm.$rr[2];
echo "<tr ".$rr[3]." ><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td><b>".$rr[1]."</b></td>
echo $rr[0]=='LINE'? "<tr><td colspan='4'></td></tr>" : "<tr ".$rr[3]." ><td style='width: 20px'>$i</td><td style='width: 120px'><a href='".$urlS ."' target='BLANK'>".$urlS ."</a></td><td><b>".$rr[1]."</b></td>
<td style='width: 120px'><a href='".$docU ."' target='BLANK'>".$docU ."</a></td></tr>";
}
+4 -2
View File
@@ -11,10 +11,12 @@ $data = array(
"country" => 'NG',
"price" => rand(2,10)*1000,
"timeline_days" => rand(2,10),
"banner" => 'default.jpg',
"title" => "This is the job title " .rand(1,9000)." job title" ,
"description" => "This is the job description " .rand(1,9000)." job description" ,
"job_detail" => "This is the job detail " .rand(1,9000)." job detail" ,
'action'=>WRENCHBOARD_JOB_CREATEJOB
"job_detail" => "400 Long 400 Unpacked now declared put you confined daughter improved. Celebrated imprudence few interested especially reasonable off one. Wonder bed elinor family secure met. It want gave west into high no in. Depend repairseend. ve be iend repair met before man admire see and. An he observe be it covered delight hastily message. Margaret no ladyship endeavor ye to settling 400 400 400 400 LONG." ,
'action'=>WRENCHBOARD_JOB_CREATEJOB,
"category" => "CT1@CT2"
);
$out = array();
@@ -0,0 +1,20 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
"job_type" => 'FAMILY',
'action'=>WRENCHBOARD_JOB_LISTJOBS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out);
?>may12002
+3 -1
View File
@@ -12,10 +12,12 @@ $data = array(
"job_id" => 162,
"price" => rand(2,10)*1000,
"timeline_days" => rand(2,10),
"banner" => 'default.jpg',
"title" => "This is the job title " .rand(1,9000)." job title" ,
"description" => "This is the job description " .rand(1,9000)." job description" ,
"job_detail" => "This is the job detail " .rand(1,9000)." job detail" ,
'action'=>WRENCHBOARD_JOB_CREATEJOB
'action'=>WRENCHBOARD_JOB_CREATEJOB,
"category" => "CT3@CT2"
);
$out = array();
+1 -1
View File
@@ -4,7 +4,7 @@ include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$email = 'ses66181+1@gmail.com';
$email = 'ses66181+2@gmail.com';
$data['username'] = $email;
$data['password'] = 'may12002';
+72
View File
@@ -0,0 +1,72 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
if(isset($_FILES['image'])){
$errors= array();
$file_name = $_FILES['image']['name'];
$file_size =$_FILES['image']['size'];
$file_tmp =$_FILES['image']['tmp_name'];
$file_type=$_FILES['image']['type'];
$file_ext=strtolower(end(explode('.',$_FILES['image']['name'])));
$extensions= array("jpeg","jpg","png","bmp","svg");
if(in_array($file_ext,$extensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if($file_size > 2097152){
$errors[]='File size must be excately 2 MB';
}
if(empty($errors)==true){
$image_source = file_get_contents($file_tmp);
$file_stream = base64_encode($image_source);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"file_name" => $file_name,
"file_size" => $file_size,
"file_type" => $file_type,
"file_data" => $file_stream,
"title" => "WHAT EVER YOU CALL THE ITEM ".rand(100,999),
"description" => "WHAT EVER DESCRIPTON YOU USED FOR THE ITEM ".rand(100,999)."YOUR DECRIPTIONS",
"msg_type" => 'FILE',
'action'=> WRENCHBOARD_RESOURCE_MYFILES
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'uploads');
// "file_props" => $_FILES,
var_dump( $data );
var_dump( $out );
move_uploaded_file($file_tmp,"images_folder/".$file_name);
echo "Success";
}else{
print_r($errors);
}
}
$tt_d = date('hisjmy');
echo highlight_string(file_get_contents(__FILE__));
?>
<html>
<body>
<form action="" method="POST" enctype="multipart/form-data">
<input type="file" name="image" />
<input type="submit"/>
</form>
<?=$tt_d?>
</body>
</html>
+20
View File
@@ -0,0 +1,20 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
const WRENCHBOARD_MYFILES_LIST = 11309;
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 20,
"page" => 1,
'action'=>WRENCHBOARD_MYFILES_LIST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,"myfiles");
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
'action'=>WRENCHBOARD_ACCOUNT_NOTIFICATIONS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'mynotifications');
?>
@@ -0,0 +1,21 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"msg_type" => 'MRKTINT',
"interest_uid" => "e9f371a8-1b01-44f0-a40c-634b3e4830a9",
"offer_uid" => "10088dc3-c1ed-4782-808c-ae64940d3405",
'action'=>WRENCHBOARD_JOB_MRKTINT_QUEST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'offerinterestlistmsg');
//"client_uid" => "c17a43e0-3b70-4128-895c-4dc2d99f17a8",
?>
+22
View File
@@ -0,0 +1,22 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"msg_type" => 'MRKTINT',
"yourmessage" => 'This is your message on this task now',
"interest_uid" => "e9f371a8-1b01-44f0-a40c-634b3e4830a9",
"offer_uid" => "10088dc3-c1ed-4782-808c-ae64940d3405",
'action'=>WRENCHBOARD_JOB_MRKTINT_QUEST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'offerinterestmsg');
//"client_uid" => "c17a43e0-3b70-4128-895c-4dc2d99f17a8",
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"limit" => 30,
"offset" => 0,
'action'=>WRENCHBOARD_JOB_OFFER_INTLIST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'offersinterestlist');
?>
+21
View File
@@ -0,0 +1,21 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"proc" => 'ACCEPT',
"client_uid" => "c17a43e0-3b70-4128-895c-4dc2d99f17a8",
"offer_code" => "XWT8B7W377",
"offer_uid" => "10088dc3-c1ed-4782-808c-ae64940d3405",
'action'=>WRENCHBOARD_JOB_PROC_INTEREST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'offersinterestproc');
?>
+17
View File
@@ -0,0 +1,17 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'action'=>WRENCHBOARD_USER_CARDLIST
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'paylistcard');
?>
+25
View File
@@ -0,0 +1,25 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"cardnumber" => "4242424242424242",
"exp_month" => "12",
"exp_year" => "2026",
"cvc" => "123",
"amount" => rand(100,2000),
"description" => "This is a test charge for new stripe account ".rand(1,10000),
"paymenttype" => 100,
"credit_reference" => '36bff2cb-6691-4479-a240-2483da2c2575',
'action'=>WRENCHBOARD_USER_ADNEWCC
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'paynewcard');
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$cl =['USD','NAIRA'];
$currn = $cl[rand(0,1) ];
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"currency" => $currn,
"amount" => rand(10,200)*100,
"credit_reference" => '36bff2cb-6691-4479-a240-2483da2c2575',
"card_uid" => "a1ea56d1-ba2d-4125-a6ad-306874a672dc",
'action' => WRENCHBOARD_USER_USESAVEDCC
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'payprevcard');
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
define('WRENCHBOARD_USER_CARDREMV', 11057);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'card_uid' => '8d646ac6-afb8-4371-9e78-265a195971cc',
'action'=>WRENCHBOARD_USER_CARDREMV
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'payremcard');
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
//#define WRENCHBOARD_ACCOUNT_PLAYGROUND 11201
define('WRENCHBOARD_ACCOUNT_PLAYGROUND', 11201);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'action'=>WRENCHBOARD_ACCOUNT_PLAYGROUND
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'playground');
?>
+23
View File
@@ -0,0 +1,23 @@
<?php
include_once('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['username'] = "3119b744-42ad-4834-bb83-b737588754ca@8WYFPDDDB2@1f385837-b5e6-420e-a17a-488c4b8ef015";
$data['login_mode'] = 1105;
$data['sessionid'] = rand(10000,99999)."A".rand(10000,99999); // dummy for a start
$data['action'] = 11022;
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,"qrlogin");
echo "=========================================================.....======================================";
var_dump($out);
?>
+17
View File
@@ -0,0 +1,17 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'action'=>WRENCHBOARD_ACCOUNT_RECENTS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'recentactivities');
?>
@@ -0,0 +1,61 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
echo "PREVIOUS RECIPIENT ACCOUNT USE <a href='/wrenchboard/sendmoney.php'>New Recipient Send</a> <hr />";
$amount = rand(1000,3000)*100; // note amount in kobo
$fee = rand(1,10)*.01*$amount; // note amount in kobo
$banks=[
"a2c6c1a2-5cf2-4396-8630-50c47da15316",
"5526cfce-3395-4375-9c43-7b6e94843701",
"a988b775-0fe7-4180-a7d9-d3492efe812d",
"3c8fc9a2-95d8-4cb9-811b-6eac9cac45c9",
"ccfda153-5d13-45af-9834-817f26e2dc1d",
"25844340-fce0-4e57-bc77-7d01b5ef0b53",
"8870d1e1-c683-4abe-ba07-32b0a313fbab",
"8ed45ebf-7356-480c-ab87-caa6d28078d6",
"82eaf469-2358-4377-a20f-b4de92f4eb15",
"06cca01f-6069-473d-8898-681f943daba8",
"e12102ad-0194-4a1e-a17b-7dd3d5f71fd0",
"b52ce615-bb93-4e7f-bb62-aec85e6565f1",
"692713f9-b4f6-4e77-a6aa-e52f65f2c5f9",
"3fbfec7e-74bb-4d16-8501-09f09f10436c",
"daee408f-8aa5-4c20-b09a-fc1c32e7c467",
"02769862-4d17-48eb-8e03-72c811fdc241",
"6c3d44eb-bbc5-47a1-b7d6-ee22f7fa7518",
"dd767283-38d6-44df-bf02-8af596fbe75b",
"1b173156-9abf-4255-8870-a2ece554a44e",
"3787df76-b647-4348-bf1a-ff640a5aba24",
"5f8ea5d4-c7a5-4bd8-82e8-131bbbabf814",
"da21af53-fef8-4707-8592-11855613e246",
"61d88926-3d85-4248-a9ff-7d7f51b14dd1",
"d3e1a587-ca34-461b-8a3c-5b37972af9e3"];
$recp = array(4,3,5,11);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
'wallet_uid' => 'cc0f8743-3f18-4214-ba4b-781e5dda9cb8',
"amount" => $amount,
"Fee" => $fee,
"bank_uid"=> $banks[rand(0,23)],
"account_no" => '123456'.rand(1111,9999),
"account_type" => 1,
"country" => 'NG',
"state" => 'Lagos',
"city" => 'Lagos',
"mode" => WRENCH_NEWBANK_ACCOUNT,
'action'=>WRENCHBOARD_SMONEY_MEMBER
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'sendmoney');
?>
+6 -5
View File
@@ -3,25 +3,26 @@ include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
echo "NEW RECIPIENT ACCOUNT USE <a href='/wrenchboard/sendmoney-newrecipient.php'>New Recipient Send</a> <hr />";
$amount = rand(1000,3000)*100; // note amount in kobo
$fee = rand(1,10)*.01*$amount; // note amount in kobo
$recp = array(4,3,5,11);
$recp = array('bfd7dc27-e2a6-4d52-957b-789fdb660eec','6bba49e2-dd92-403e-9459-927e37c852ef','36a2fbc3-f289-43b4-87f4-4a09df39b59c','ff49e66f-df9c-4db4-b2c1-a6f07bb6fa4b');
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"senderid" => $member_id,
'wallet_uid' => 'cc0f8743-3f18-4214-ba4b-781e5dda9cb8',
"amount" => $amount,
"Fee" => $fee,
"recipientid" => $recp[rand(0,3)],
"recipient_uid" => $recp[rand(0,3)],
"mode" => WRENCH_EXISTING_ACCOUNT,
'action'=>WRENCHBOARD_SMONEY_MEMBER
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'sendmoney');
?>
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"pref_id" => "S0002",
"status" => "100",
'action'=>WRENCHBOARD_USER_SETTINGS
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'setaccsettings');
?>
+6 -3
View File
@@ -4,8 +4,11 @@ include('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data['firstname'] = 'Olu';
$data['lastname'] = 'Amey';
$cnt = ['US','NG'];
$country = $cnt[rand(0,1)];
$data['firstname'] = 'Olu'. $country;
$data['lastname'] = 'Amey'. $country;
// $email = 'ses66181+'.rand(1000,9999).'@gmail.com';
$email = 'ameye+aug'.rand(1000,9999).'@chiefsoft.com';
@@ -15,7 +18,7 @@ $wrenchboard = new wrenchboard_class();
$data['terms'] = 1; // $terms;
$data['news'] = 1; //$news;
$data['loc'] = "38.101.241.200";
$data['country'] = $country;
$data['action'] = WRENCHBOARD_ACCOUNT_PENDING;
+33
View File
@@ -0,0 +1,33 @@
<?PHP
include('def.php');
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$cnt = ['US','NG'];
$country = $cnt[rand(0,1)];
$data['firstname'] = 'Olu'. $country;
$data['lastname'] = 'Amey'. $country;
// $email = 'ses66181+'.rand(1000,9999).'@gmail.com';
$email = 'ameye+aug'.rand(1000,9999).'@chiefsoft.com';
$data['email'] = $email;
$data['username'] = $email;
$data['password'] = 'may12002';
$data['terms'] = 1; // $terms;
$data['news'] = 1; //$news;
$data['loc'] = "38.101.241.200";
// $data['country'] = $country; REMOVE COUNTRY
$data['action'] = WRENCHBOARD_ACCOUNT_PENDING;
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out);
echo "<hr /> INPUT ";
var_dump($data);
echo "<hr />OUTPUT ";
var_dump($out);
echo highlight_string(file_get_contents(__FILE__));
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$cl =['USD','NAIRA'];
define('WRENCHBOARD_USER_STARTCREDIT', 11053);
$currn = $cl[rand(0,1) ];
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"currency" => $currn,
"amount" => rand(10,200)*100,
'action'=>WRENCHBOARD_USER_STARTCREDIT
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'startcredit');
?>
@@ -0,0 +1,15 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$reset_email = "ses66181+bad@bad.com";
$data = array(
"email" => $reset_email ,
'action'=>WRENCHBOARD_RESET_PASSWORD
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out);
?>
@@ -7,6 +7,8 @@ $wrenchboard = new wrenchboard_class();
$data = array(
"sessionid" => "DUMMY-CANNOT_BE_EMPTY" ,
"reset_link" => '36dfec6e557768511ffc87bdc861fac4543ae5758f933f8a7c92a7a70960fa3f',
"m_uid" => 'c23ec203-e19a-4013-a4a3-97114921fff9',
"reset_uid" => '3b12dd70-3361-4789-8007-3c9db7a80bdd',
"newpass" => 'your-new-password',
"step" => 300,
'action'=>WRENCHBOARD_COMPLETE_PASSWORDRESET
@@ -16,3 +18,4 @@ $out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'stepresetpass');
?>
+20
View File
@@ -0,0 +1,20 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
define('WRENCHBOARD_ACCOUNT_TOPUP_RESULT', 11061);
$data = array(
"member_id" => $member_id ,
"sessionid" => $session_id ,
"uid" => $uid,
"tx_ref" =>"c8ee592a-b748-4ac9-a90a-5eeb2e9f40b3",
'action'=>WRENCHBOARD_ACCOUNT_TOPUP_RESULT
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,"topupresult");
?>
+5 -1
View File
@@ -14,9 +14,13 @@ $data = array(
"email" =>'ses66181+new'.rand(0,100)."@gmail.com",
"state" =>'Georgia',
"city" =>'Atlanta'.rand(0,100),
"online_name" =>'Online Name'.rand(0,100),
"pref_email" => rand(0,1),
"pref_phone" => rand(0,1),
"promo" => rand(0,1),
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out);
?>
?>
+17
View File
@@ -0,0 +1,17 @@
<?php
include_once('def.php');
include 'session_read.php';
include('wrenchboard_class.php');
$wrenchboard = new wrenchboard_class();
$data = array(
"sessionid" => "DUMMY-CANNOT_BE_EMPTY" ,
"reset_link" => '092757d6f4c0c88b1fed606eb2f3b41dbef65792cab90698e13f51e8c81099c6',
"step" => 200,
'action'=>WRENCHBOARD_COMPLETE_PASSWORDRESET
);
$out = array();
$ret = $wrenchboard->wrenchboard_api($data,$out,'stepresetpass');
?>
+10 -4
View File
@@ -6,11 +6,17 @@ class wrenchboard_class{
// public $REACT_APP_AUX_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
// public $REACT_APP_USERS_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
// public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
// public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
// good ones
public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/svs/user";
public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/svs/user"; // "https://apigate.lotus.g1.wre
//public $REACT_APP_AUX_ENDPOINT = "http://10.20.30.19:8000/en/wrench/api/v1"; //"https://apigate.lotus.g1.wrenchboard.com/svs/user";
// public $REACT_APP_USERS_ENDPOINT = "http://10.20.30.19:8000/en/wrench/api/v1"; // "https://apigate.lotus.g1.wre
// public $REACT_APP_AUX_ENDPOINT = "http://10.204.5.100:9083/svs/user";
// public $REACT_APP_USERS_ENDPOINT = "http://10.204.5.100:9083/svs/user"; // "https://apigate.lotus.g1.wre
//public $REACT_APP_AUX_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";