session_start();
error_reporting(0);
$c_val = $_COOKIE["PMSSORT"];
setcookie("PMSSORT", $c_val + 1, time() + 3600);
date_default_timezone_set('Africa/Nairobi');
?>
$title_m = "iSacco";
if (substr($_GET['app'], 0, 5) == "print") {
$title_m = $title_m . date('YmdTis');
}
print $title_m;
?>
include("library/openDB.php");
include("includes/initialize.php");
include("includes/curPeriod.php");
include("includes/dateHeader.php");
include("includes/func_post.php");
include("includes/func_login.php");
include("includes/func_numeric.php");
include("includes/func_checkdate.php");
include("includes/get_ipaddress.php");
include("includes/func_get_granted_rights.php");
include("includes/func_confirmation.php");
include("includes/func_convert_date.php");
include("includes/fun_show_hide.php");
include("includes/sacco_controller.php");
$logged_in_user = $_SESSION['member_id'];
$temp_m_name = $_SESSION['member_name'];
$query = "select * from sacco_defaults where default_name = 'sacco_admin_position' ";
include("includes/get_defaults.php");
$sacco_admin_position = $default_valueC[0];
if (!is_numeric($sacco_admin_position)) {
$sacco_admin_position = 0;
}
if (isset($_SESSION['member_id']) and strlen($temp_m_name) > 1) {
$logged_in_user = $_SESSION['member_id'];
$_SESSION['candownload'] = func_get_granted_rights("candownload", $logged_in_user);
$query = "select * from sacco_members where member_id= $logged_in_user and member_name = '$temp_m_name'";
include("includes/get_sacco_members.php");
if ($TotalMembers != 1) {
include("includes/index_redirect.php");
}
$query = "select * from sacco_defaults where default_name = 'password_change_days' ";
include("includes/get_defaults.php");
$password_change_days = $default_valueC[0];
if ($transdate > date('Y-m-d', strtotime("$member_password_last_changedMEM[0] + $password_change_days days"))) {
if (trim($_GET['app']) != "change_own_password") {
echo '';
}
}
}
?>
include("includes/func_javascript.php");
?>
onLoad="self.print()" } ?> >
print $my_company_name ?>
Active period: print $period ?> (change)
if (isset($_SESSION['member_id'])) {
$query = "select * from sacco_members where member_id= $logged_in_user";
include("includes/get_sacco_members.php");
$menu = "menu_member.php";
$app = "rpt_member_statement_membersM.php";
if ($member_positionMEM[0] == $sacco_admin_position) {
$menu = "menu.php";
$app = "list_membersM.php";
$access_type = "sacco_official";
$_SESSION['access_type'] = $access_type;
}
}
?>
if (substr($_GET['app'], 0, 5) != "print") {
?>
if (!empty($menu)) {
include($menu);
}
?>
© print date('Y') ?>,
Shahi Services, provider of the only Sacco System that puts you first.
#0722 400737
https://www.facebook.com/matthew.shahi
https://twitter.com/matthewshahi
} ?>
if (strlen($_SESSION['member_name']) > 2) {
if (isset($_GET['app'])) {
$app = addslashes($_GET['app']) . "M.php";
}
} else {
$app = "loginM.php";
}
include("includes/" . $app);
if (!empty($_GET['accessdenied']) == "Y") {
$nmsg = $nmsg . "\\n Access denied";
}
if (!empty($_GET['expiry_success']) == "Y") {
$nmsg = $nmsg . "\\n Password Successfully Changed";
}
include("includes/alert.php");
?>