Skip to content

Commit

Permalink
Patch 1.1 which will upgrade sentrifugo version 1.0 to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sapplica committed Sep 26, 2014
1 parent 6d87a2c commit 511bf0e
Show file tree
Hide file tree
Showing 207 changed files with 50,294 additions and 0 deletions.
Binary file removed favicon.ico
Binary file not shown.
73 changes: 73 additions & 0 deletions patches/patches_1.1/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
CHANGELOG Sentrifugo
====================

RELEASE 1.1
-----------

Changes in Controllers
------------------------
./application/modules/default/controllers/DashboardController.php
./application/modules/default/controllers/DepartmentsController.php
./application/modules/default/controllers/OrganisationinfoController.php
./application/modules/default/controllers/ReportsController.php
./application/modules/default/controllers/RolesController.php
./application/modules/default/controllers/ServicedeskconfController.php
./application/modules/default/controllers/ServicedeskdepartmentController.php
./application/modules/default/controllers/ServicedeskrequestController.php
./application/modules/default/controllers/ServicerequestsController.php
./application/modules/default/controllers/IndexController.php

- DashboardController.php
Implemented upgrade functionality for application upgrade.

- DepartmentsController.php
Fixed the redirecting bug.

- OrganisationinfoController.php
Fixed the undefined variable bug.

- ReportsController.php
Implemented reports and analytics for Service Request.

- RolesController.php
Enhancements and implemented changes with respect to Service Request.

- ServicedeskconfController
Configure the request category, number of approvers, executors and request viewers etc..

- ServicedeskdepartmentController
Configure the category of the request type like HR, System admin, General admin, Accounts etc..

- ServicedeskrequestController.php
Configure request types for each category like payslips, software installation, etc�

- ServicerequestsController.php
Employees raise requests with respect to department (HR, System Admin, Accounts, etc..)

- IndexController.php
Introduced options for user to login using email

Note: You can find the respective view files in below scripts:
./application/modules/default/views/scripts

Changes in scripts
------------------------
./public/media/js/hrms.js
./public/media/js/joyride.js
./public/media/js/hrmsv2.js
./public/media/js/jquery.prettyPhoto.js
./public/media/js/jquery.uploadfile.min.js
./public/media/css/jquery.simplyscroll.css
./public/media/css/select2.css
./public/media/css/style.css
./public/media/css/successstyle.css
./public/media/css/tablecss.css
./public/media/css/prettyPhoto.css
./public/media/css/uploadfile.css

- Modified javascript files and styles for Service Request.


upgrade.php
-----------------
- Implemented upgrade functionality to download new version if the code and database versions do not match.
43 changes: 43 additions & 0 deletions patches/patches_1.1/UPGRADE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
UPGRADING INSTRUCTIONS
======================

Follow the below instructions if you are upgrading from a previous version
of Sentrifugo. Please take a backup of existing code as well as the
database before executing the following steps.

Download New Upgrade
--------------------
- Go to http://www.sentrifugo.com/
- Click on UPGRADE menu item in the menu list
- Select the Upgrade Type: Code, Database or Both (Code and Database)
- Select your current version from "Your Version" dropdown
- Select desired upgrade version from "Upgrade To" dropdown
- Click on "Upgrade" button
- Upon clicking "Upgrade" button, you will get a link
- Click on the link to download the upgrade zip file

You can find the downloaded upgrade file in your downloads location

Extracting
----------
- Extract the zip file

We recommend you to carefully take backup of existing code. After taking a backup, please follow the below steps to upgrade your code.

Code Update
---------------
1. In the extracted folder, copy all the files and folders
2. Paste and replace the copied files in Sentrifugo application source folder present in the document root of Apache HTTP server.

We recommend you to carefully take backup of existing database. After taking a backup, please follow the below steps to upgrade your database.

Database upgrade
-----------------------
Type the following command to import sql data file in Linux or MAC:
mysql -h [hostname] -u [username] -p [DATA-BASE-NAME] < [path-to-sql-file]

To import sql data file in Windows:

[path-to-mysql] mysql.exe -h [hostname] -u [username] -p [DATA-BASE-NAME] < [path-to-sql-file]

Yippiieeeee..... If you have followed the above steps, you have successfully updated your application. Login to enjoy the services.
150 changes: 150 additions & 0 deletions patches/patches_1.1/Zend/Auth/Storage/Session.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Auth
* @subpackage Storage
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Session.php 23775 2011-03-01 17:25:24Z ralph $
*/


/**
* @see Zend_Auth_Storage_Interface
*/
require_once 'Zend/Auth/Storage/Interface.php';


/**
* @see Zend_Session
*/
require_once 'Zend/Session.php';


/**
* @category Zend
* @package Zend_Auth
* @subpackage Storage
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Storage_Session implements Zend_Auth_Storage_Interface
{
/**
* Default session namespace
*/
const NAMESPACE_DEFAULT = 'Zend_Auth';

/**
* Default session object member name
*/
const MEMBER_DEFAULT = 'storage_phase2';

/**
* Object to proxy $_SESSION storage
*
* @var Zend_Session_Namespace
*/
protected $_session;

/**
* Session namespace
*
* @var mixed
*/
protected $_namespace;

/**
* Session object member
*
* @var mixed
*/
protected $_member;

/**
* Sets session storage options and initializes session namespace object
*
* @param mixed $namespace
* @param mixed $member
* @return void
*/
public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
{
$this->_namespace = $namespace;
$this->_member = $member;
$this->_session = new Zend_Session_Namespace($this->_namespace);
}

/**
* Returns the session namespace
*
* @return string
*/
public function getNamespace()
{
return $this->_namespace;
}

/**
* Returns the name of the session object member
*
* @return string
*/
public function getMember()
{
return $this->_member;
}

/**
* Defined by Zend_Auth_Storage_Interface
*
* @return boolean
*/
public function isEmpty()
{
return !isset($this->_session->{$this->_member});
}

/**
* Defined by Zend_Auth_Storage_Interface
*
* @return mixed
*/
public function read()
{
return $this->_session->{$this->_member};
}

/**
* Defined by Zend_Auth_Storage_Interface
*
* @param mixed $contents
* @return void
*/
public function write($contents)
{
$this->_session->{$this->_member} = $contents;
}

/**
* Defined by Zend_Auth_Storage_Interface
*
* @return void
*/
public function clear()
{
unset($this->_session->{$this->_member});
}
}
Loading

0 comments on commit 511bf0e

Please sign in to comment.