Welcome Guest, Not a member yet? Register   Sign In
Where to put this code
#1

I'm just beginning to use CodeIgniter to build this site for an educational conference. I had for many years used a program called Rapidweaver on my Mac in conjunction with a web app called Sitelok. Now I'm switching entirely to CodeIgniter. I have a number of static pages and I'm able to to connect to the database to show last year's presentations. Now I need to build the login and registration system but I want to piggy back off of the Sitelok login system designed for Rapidweaver. Below are three parts of the code that Sitelok requires for Rapidweaver, however, I'm not sure where to put this code in my CodeIgniter project. The Sitelok folder is still in my project, so the code will be able to access any config files there. The Sitelok user table is also part of the database that is loading so there's no issues there.

Here are the instructions for each of the three pieces of code followed by the code itself.

Part 1: Copy and paste the code below and add to the very top of your page (before any DOCTYPE or <HTML>)"

PHP Code:
<?php
require_once("/home/helpguya/spokaneesl.com/slpw/slloginform.php");
$groupswithaccess="PUBLIC";
$loginpage=$slpagename;
$logoutpage=$slpagename;
$loginredirect=2;
require_once(
"/home/helpguya/spokaneesl.com/slpw/sitelokpw.php");
?>

Part 2: Copy and paste this code below to the <HEAD> section of your page


PHP Code:
<?php if (function_exists('sl_loginformhead')) sl_loginformhead(15,false); ?>

Part 3: Copy and paste this code below to the <BODY> section of your page where you want the form to appear

PHP Code:
<?php if (function_exists('sl_loginformbody')) sl_loginformbody(15,false,$msg); ?>

Any ideas on where this code would go to transfer this to CodeIgniter?
Reply


Messages In This Thread
Where to put this code - by ronniebel - 08-20-2019, 08:37 AM
RE: Where to put this code - by includebeer - 08-20-2019, 09:54 AM
RE: Where to put this code - by Wouter60 - 08-20-2019, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB