Skip to content

Commit eb71f43

Browse files
committed
Made site more functional
1 parent f2d7e3e commit eb71f43

24 files changed

+163
-311
lines changed

aims.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
<h4>AIMS & OBJECTIVES</h4>
3+
<br/>
4+
<ul>
5+
<li>carry out feasibility studies for entrepreneurship and institutional capacity building;</li>
6+
<li>training and retraining private and public workforce in all areas of human development through professional continuing education for cadre of workers;</li>
7+
<li>design, organize and implement institutional restructuring programmes for maximum efficiency in service delivery;</li>
8+
<li>promote and operationalize the institutions of corporate governance, best practices and transparency in management training.</li>
9+
<li>carry out community development services through feasibility studies, community organization, community relations and community capacity building;</li>
10+
<li>building through capacity building, safe working environment, extension training and community resourcing; and</li>
11+
<li>enhance institutional capacity building through partnership, integration and collaboration in human resourcing among others.</li>
12+
</ul>

classes/Administrator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/Affiliation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/Conference.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/Constants.php

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
session_start();
32
class Constants
43
{
54
public function __construct(){
@@ -27,29 +26,29 @@ public function __construct(){
2726
define('GENDER', 'gender');
2827
define('PASSWORD_RETRIEVAL_CODE','password_retrieval_code');
2928
define('PASSWORD_RETRIEVAL_CODE_USED','password_retrieval_code_used');
30-
31-
29+
30+
3231
//Affiliation-based Constant
3332
define('AFFILIATIONS', 'affiliations');
3433
define('AFFILIATION_ID', 'affiliation_id');
3534
define('AFFILIATION_CODE', 'affiliation_code');
3635
define('AFFILIATION_NAME', 'affiliation_name');
37-
36+
3837
//State-based constants
3938
define('STATES', 'states');
4039
define('STATE_ID', 'state_id');
4140
define('STATE_CODE', 'state_code');
4241
define('STATE_NAME', 'state_name');
43-
42+
4443
//Admin-based constants
4544
define('ADMINISTRATORS','administrators');
4645
define('ADMIN_ID', 'admin_id');
4746
define('ADMIN_CODE', 'admin_code');
4847
define('ADMIN_STATUS', 'admin_status');
4948
define('ADMIN_TYPE', 'admin_type');
50-
51-
52-
49+
50+
51+
5352
//General Constants
5453
define('DATE_UPDATED', 'date_updated');
5554
define('START_TIME','start_time');
@@ -64,11 +63,11 @@ public function __construct(){
6463
define('URL', 'url');
6564
define('ID', 'id');
6665
define('CONTACT_ADDRESS', 'contact_address');
67-
66+
6867
//Audit-log constants
6968
define('AUDIT_LOGS','audit_logs');
7069
define('ACTION','action');
71-
70+
7271
//Sponsor-based constants
7372
define('SPONSOR_ID','sponsor_id');
7473
define('SPONSORS','sponsors');
@@ -77,24 +76,24 @@ public function __construct(){
7776
define('SPONSOR_URL','sponsor_url');
7877
define('SPONSOR_LOGO','sponsor_logo');
7978
define('ACTIVATION_STATUS','activation_status');
80-
79+
8180
//Linkage-based constants
8281
define('LINKAGE_ID','linkage_id');
8382
define('LINKAGES','linkages');
8483
define('LINKAGE_CODE','linkage_code');
8584
define('LINKAGE_NAME','linkage_name');
8685
define('LINKAGE_URL','linkage_url');
8786
define('LINKAGE_LOGO','linkage_logo');
88-
89-
90-
87+
88+
89+
9190
//Country-based constants
9291
define('COUNTRIES','countries');
9392
define('COUNTRY_ID','country_id');
9493
define('COUNTRY_CODE','country_code');
9594
define('COUNTRY_NAME','country_name');
9695
define('COUNTRY_FLAG_URL','country_flag_url');
97-
96+
9897
//Conference -based constants
9998
define('CONFERENCES','conferences');
10099
define('CONFERENCE_DETAILS','conference_details');
@@ -126,7 +125,7 @@ public function __construct(){
126125
define('CONFERENCE_REGISTRATION_TYPE_ID','conference_registration_type_id');
127126
define('CONFERENCE_REGISTRATION_TYPE_NAME','conference_registration_type_name');
128127
define('CONFERENCE_REGISTRATION_TYPE_code','conference_registration_type_code');
129-
128+
130129
//Offices
131130
define('OFFICES','offices');
132131
define('OFFICE_ID','office_id');
@@ -138,23 +137,23 @@ public function __construct(){
138137
define('DATE_SWORN_IN','date_sworn_in');
139138
define('DATE_LEFT_OFFICE','date_left_office');
140139
define('STATUS','status');
141-
142-
140+
141+
143142
define('START_DAY','start_day');
144143
define('START_MONTH','start_month');
145144
define('START_YEAR','start_year');
146145
define('END_DAY','end_day');
147146
define('END_MONTH','end_month');
148147
define('END_YEAR','end_year');
149-
150-
148+
149+
151150
define('SALUTATIONS','salutations');
152151
define('SALUTATION','salutation');
153152
define('SALUTATION_ID','salutation_id');
154-
153+
155154
define('MAILER_DAEMON','[email protected]');
156-
157-
155+
156+
158157
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
159158
||CONSTANTS I ADDED
160159
||Journals
@@ -166,7 +165,6 @@ public function __construct(){
166165
define('JOURNAL_DATE','journal_date');
167166
define('JOURNAL_ABSTRACT','journal_abstract');
168167
define('JOURNAL_ISBN','journal_isbn');
169-
define('PUBLISHER_DETAILS','publisher_details');
170168
define('JOURNAL_DAY','journal_day');
171169
define('JOURNAL_MONTH','journal_month');
172170
define('JOURNAL_YEAR','journal_year');

classes/Database.php

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
<?php
2-
session_start();
1+
<?php
2+
error_reporting(E_ALL & ~E_NOTICE);
3+
if(!isset($_SESSION)){
4+
session_start();
5+
}
36
class Database
47
{
58
private $db;
@@ -126,22 +129,30 @@ public function getWhere($table,$condition=null,$order_by=null){
126129
$query.=" WHERE ";
127130
}
128131
$i=0;
129-
foreach ($condition as $key => $value){
130-
$query.=" $key = '$value' ";
131-
$i++;
132-
if(count($condition)>$i){
133-
$query.=" AND ";
132+
133+
if (!is_null($condition)) {
134+
foreach ($condition as $key => $value){
135+
$query.=" $key = '$value' ";
136+
$i++;
137+
if(count($condition)>$i){
138+
$query.=" AND ";
139+
}
134140
}
135141
}
136-
if(count($order_by)>0){
137-
$query.=" ORDER BY ";
138-
}
139-
$i=0;
140-
foreach ($order_by as $key => $value){
141-
$query.=" $key $value ";
142-
$i++;
143-
if(count($order_by)>$i){
144-
$query.=",";
142+
143+
if (!is_null(($order_by))) {
144+
145+
if(count($order_by)>0){
146+
$query.=" ORDER BY ";
147+
}
148+
$i=0;
149+
150+
foreach ($order_by as $key => $value){
151+
$query.=" $key $value ";
152+
$i++;
153+
if(count($order_by)>$i){
154+
$query.=",";
155+
}
145156
}
146157
}
147158
return $this->fetchRows($query);

classes/Linkage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/Member.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';
@@ -301,9 +303,9 @@ public function updateMemberDetails(){
301303

302304
public function composeMessage($fn,$ln,$act_code,$em){
303305
return "Dear <strong>$fn $ln<strong>,
304-
<br><br>You have succesfully registered on the official website of the Philosophy of Education Association of Nigeria.
306+
<br><br>You have succesfully registered on the official website of the Faculty Development Centre.
305307
<br>Please Click the link below to confirm your registration
306-
<br><a href='http://www.FDC.org.ng/confirm.php?em=$em&code=$act_code'>Click here</a>
308+
<br><a href='http://www.facultydevelopmentcentre.com/confirm.php?em=$em&code=$act_code'>Click here</a>
307309
<br>Thank you";
308310
}
309311

classes/Publications.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/ReportLogger.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Constants.php';
57

classes/Sponsor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Utilities.php';
57
require_once 'Constants.php';

classes/Utilities.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
session_start();
2+
if(!isset($_SESSION)){
3+
session_start();
4+
}
35
require_once 'Database.php';
46
require_once 'Constants.php';
57

confirm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="row">
3939
<!--SLIDER HERE--><!--SLIDER-->
4040
<div class="span8">
41-
<h4 class="breadcrumb">CONTACT PEAN</h4>
41+
<h4 class="breadcrumb">CONTACT FDC</h4>
4242
<p>
4343
<?php echo $message; ?>
4444
</p>

constitution.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div class="row">
3333

3434
<div class="span12">
35-
<h4 class="breadcrumb">PEAN CONSTITUTION</h4>
35+
<h4 class="breadcrumb">FDC CONSTITUTION</h4>
3636
<p>
3737

3838
<table width="100%" border="0" cellspacing="5" cellpadding="5" align="center" bgcolor="#FFFFFF">

0 commit comments

Comments
 (0)