diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 0223014..d7870b0 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -6,3 +6,8 @@ use CodeIgniter\Router\RouteCollection; * @var RouteCollection $routes */ $routes->get('/(:any)/(:any)', 'Home::promoIndex/$1/$2'); +$routes->get('/member', 'Home::member'); + + + +$routes->get('/promoadmin', 'Auth::AuthPromoAdmin'); \ No newline at end of file diff --git a/app/Controllers/Auth.php b/app/Controllers/Auth.php new file mode 100644 index 0000000..c0356cf --- /dev/null +++ b/app/Controllers/Auth.php @@ -0,0 +1,18 @@ +APIcall('POST', $this->wrenchApiServer(). 'tasks',$in)["result_list"]; - return view('welcome_message', $out); + return view('promo', $out); + } + + public function member(){ + // echo 'Ameye Olusesan'; + $out=[]; + return view('member_home', $out); } } diff --git a/app/Views/member_home.php b/app/Views/member_home.php new file mode 100644 index 0000000..6dd2782 --- /dev/null +++ b/app/Views/member_home.php @@ -0,0 +1,207 @@ + + +
+ +
+
+
|
+
+
+
|
+
Welcome back, please login to your account.
+ +HTML Content
"}})}if((a=t("#polygon")).length>0){t(a);var n=new GMaps({div:"#polygon",zoom:16,lat:-12.043333,lng:-77.028333});polygon1=n.drawPolygon({paths:[[-12.040397656836609,-77.03373871559225],[-12.040248585302038,-77.03993927003302],[-12.050047116528843,-77.02448169303511],[-12.044804866577001,-77.02154422636042]],strokeColor:"#BBD8E9",strokeOpacity:1,strokeWeight:3,fillColor:"#BBD8E9",fillOpacity:.6})}}})}(window,document,window.jQuery),function(e,a,t,o){t(function(){jQuery(".jqueryknob-wrapper").length>0&&t(".knob").knob({change:function(e){},release:function(e){console.log("release : "+e)},cancel:function(){console.log("cancel : ",this)},draw:function(){if("tron"==this.$.data("skin")){this.cursorExt=.3;var e,a=this.arc(this.cv);return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,a.s,a.e,a.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}})})}(window,document,window.jQuery),function(e,a,t,o){t(function(){if(jQuery(".vectormap-wrapper").length>0){var e=jQuery("#world");if(e.length>0){function a(e){return e.replace(/[<>]/g,function(e){switch(e){case"<":return"<";case">":return">"}})}var t={mo:a('"+JSON.stringify(e.value)+"",confirmButtonText:"Lovely!"})})}),t("#sweetalert-16").click(function(e){swal.queue([{title:"Your public IP",confirmButtonText:"Show my public IP",text:"Your public IP will be received via AJAX request",showLoaderOnConfirm:!0,preConfirm:()=>fetch("https://api.ipify.org?format=json").then(e=>e.json()).then(e=>swal.insertQueueStep(e.ip)).catch(()=>{swal.insertQueueStep({type:"error",title:"Unable to get your public IP"})})}])})})}(window,document,window.jQuery),function(e,a,t,o){t(function(){t("#checkAll").click(function(){t("input:checkbox").not(this).prop("checked",this.checked)})})}(window,document,window.jQuery),function(e,a,t,o){t(function(){t(function(){var e,a=-1,o=0;t("#closeButton").on("click",function(){t(this).is(":checked")?t("#addBehaviorOnToastCloseClick").prop("disabled",!1):(t("#addBehaviorOnToastCloseClick").prop("disabled",!0),t("#addBehaviorOnToastCloseClick").prop("checked",!1))}),t("#showtoast").on("click",function(){var r,n=t("#toastTypeGroup input:radio:checked").val(),l=t("#message").val(),i=t("#title").val()||"",s=t("#showDuration"),d=t("#hideDuration"),c=t("#timeOut"),u=t("#extendedTimeOut"),h=t("#showEasing"),m=t("#hideEasing"),p=t("#showMethod"),g=t("#hideMethod"),f=o++,v=t("#addClear").prop("checked");toastr.options={closeButton:t("#closeButton").prop("checked"),debug:t("#debugInfo").prop("checked"),newestOnTop:t("#newestOnTop").prop("checked"),progressBar:t("#progressBar").prop("checked"),rtl:t("#rtl").prop("checked"),positionClass:t("#positionGroup input:radio:checked").val()||"toast-top-right",preventDuplicates:t("#preventDuplicates").prop("checked"),onclick:null},t("#addBehaviorOnToastClick").prop("checked")&&(toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}),t("#addBehaviorOnToastCloseClick").prop("checked")&&(toastr.options.onCloseClick=function(){alert("You can perform some custom action when the close button is clicked")}),s.val().length&&(toastr.options.showDuration=parseInt(s.val())),d.val().length&&(toastr.options.hideDuration=parseInt(d.val())),c.val().length&&(toastr.options.timeOut=v?0:parseInt(c.val())),u.val().length&&(toastr.options.extendedTimeOut=v?0:parseInt(u.val())),h.val().length&&(toastr.options.showEasing=h.val()),m.val().length&&(toastr.options.hideEasing=m.val()),p.val().length&&(toastr.options.showMethod=p.val()),g.val().length&&(toastr.options.hideMethod=g.val()),v&&(l=function(e){return e=e||"Clear itself?",e+='
HTML Content
' + } + }) + } + var marker = $('#polygon'); + if (marker.length > 0) { + $(marker) + var polygon = new GMaps({ + div: '#polygon', + zoom: 16, + lat: -12.043333, + lng: -77.028333 + + }); + + var path = [[-12.040397656836609,-77.03373871559225], [-12.040248585302038,-77.03993927003302], [-12.050047116528843,-77.02448169303511], [-12.044804866577001,-77.02154422636042]]; + + polygon1 = polygon.drawPolygon({ + paths: path, // pre-defined polygon shape + strokeColor: '#BBD8E9', + strokeOpacity: 1, + strokeWeight: 3, + fillColor: '#BBD8E9', + fillOpacity: 0.6 + }); + } + } + }); + +})(window, document, window.jQuery); +(function(window, document, $, undefined){ + + $(function(){ + var jqueryKnob = jQuery(".jqueryknob-wrapper"); + if (jqueryKnob.length > 0) { + $(".knob").knob({ + change: function(value) { + //console.log("change : " + value); + }, + release: function(value) { + //console.log(this.$.attr('value')); + console.log("release : " + value); + }, + cancel: function() { + console.log("cancel : ", this); + }, + /*format : function (value) { + return value + '%'; + },*/ + draw: function() { + + // "tron" case + if (this.$.data('skin') == 'tron') { + + this.cursorExt = 0.3; + + var a = this.arc(this.cv) // Arc + , + pa // Previous arc + , r = 1; + + this.g.lineWidth = this.lineWidth; + + if (this.o.displayPrevious) { + pa = this.arc(this.v); + this.g.beginPath(); + this.g.strokeStyle = this.pColor; + this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, pa.s, pa.e, pa.d); + this.g.stroke(); + } + + this.g.beginPath(); + this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; + this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, a.s, a.e, a.d); + this.g.stroke(); + + this.g.lineWidth = 2; + this.g.beginPath(); + this.g.strokeStyle = this.o.fgColor; + this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); + this.g.stroke(); + + return false; + } + } + }); + } + }); + +})(window, document, window.jQuery); +(function(window, document, $, undefined){ + + $(function(){ + var jQVMap = jQuery(".vectormap-wrapper"); + if (jQVMap.length > 0) { + + //Analytics map + var world = jQuery('#world') + if (world.length > 0) { + + function escapeXml(string) { + return string.replace(/[<>]/g, function (c) { + switch (c) { + case '<': return '\u003c'; + case '>': return '\u003e'; + } + }); + } + + var pins = { + mo: escapeXml('' + + JSON.stringify(result.value) + + '', + confirmButtonText: 'Lovely!' + }) + } + }) +}); + +$('#sweetalert-16').click(function(e) { + const ipAPI = 'https://api.ipify.org?format=json' + swal.queue([{ + title: 'Your public IP', + confirmButtonText: 'Show my public IP', + text: 'Your public IP will be received ' + + 'via AJAX request', + showLoaderOnConfirm: true, + preConfirm: () => { + return fetch(ipAPI) + .then(response => response.json()) + .then(data => swal.insertQueueStep(data.ip)) + .catch(() => { + swal.insertQueueStep({ + type: 'error', + title: 'Unable to get your public IP' + }) + }) + } + }]) +}); + +}); + +})(window, document, window.jQuery); +(function(window, document, $, undefined){ + + $(function(){ + $("#checkAll").click(function () { + $('input:checkbox').not(this).prop('checked', this.checked); + }); +}); + +})(window, document, window.jQuery); +(function(window, document, $, undefined){ + + $(function(){ +$(function () { + var i = -1; + var toastCount = 0; + var $toastlast; + + var getMessage = function () { + var msgs = ['My name is Inigo Montoya. You killed my father. Prepare to die!', + '', + 'Are you the six fingered man?', + 'Inconceivable!', + 'I do not think that means what you think it means.', + 'Have fun storming the castle!' + ]; + i++; + if (i === msgs.length) { + i = 0; + } + + return msgs[i]; + }; + + var getMessageWithClearButton = function (msg) { + msg = msg ? msg : 'Clear itself?'; + msg += '