A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/organics/public_html/system/application/controllers/cidip.php:22)
Filename: libraries/Db_session.php
Line Number: 248
/**
* jqUploader (http://www.pixeline.be/experiments/jqUploader/)
* A jQuery plugin to replace html-based file upload input fields with richer flash-based upload progress bar UI.
*
* Version 1.0.2.2
* September 2007
*
* Copyright (c) 2007 Alexandre Plennevaux (http://www.pixeline.be)
* Dual licensed under the MIT and GPL licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/gpl-license.php
*
* using plugin "Flash" by Luke Lutman (http://jquery.lukelutman.com/plugins/flash)
*
* IMPORTANT:
* The packed version of jQuery breaks ActiveX control
* activation in Internet Explorer. Use JSMin to minifiy
* jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex).
*
**/
jQuery.fn.jqUploader = function(options) {
return this.each(function(index) {
var $this = jQuery(this);
// fetch label value if any, otherwise set a default one
var $thisForm = $this.parents("form");
var $thisInput = $("input[@type='file']",$this);
var $thisLabel = $("label",$this);
var containerId = $this.attr("id") || 'jqUploader-'+index;
var startMessage = ($thisLabel.text() =='') ? 'Please select a file' : $thisLabel.text();
// get form action attribute value as upload script, appending to it a variable telling the script that this is an upload only functionality
var actionURL = $thisForm.attr("action");
// adds a var setting jqUploader to 1, so you can use it for serverside processing
//var prepender = (actionURL.lastIndexOf("?") != -1) ? "&": "?";
//actionURL = actionURL+prepender+'jqUploader=1';
// little change for CodeIgniter
var prepender = '/';
actionURL = actionURL+prepender+'jqUploader'+prepender+'5b8f40aafdf5617252ad31ab0f065f82';
// check if max file size is set in html form
var maxFileSize = $("input[@name='MAX_FILE_SIZE']", $(this.form)).val();
var opts = jQuery.extend({
width:320,
height:85,
version: 8, // version 8+ of flash player required to run jqUploader
background: 'FFFFFF', // background color of flash file
src: 'jqUploader.swf',
uploadScript: actionURL,
afterScript: null, // if this is empty, jqUploader will replace the upload swf by a hidden input element
varName: $thisInput.attr("name"), //this holds the variable name of the file input field in your html form
allowedExt: '*.jpg; *.jpeg; *.png', // allowed extensions
allowedExtDescr: 'Images (*.jpg; *.jpeg; *.png)',
params: {menu:false},
flashvars: {},
hideSubmit: true,
barColor: '0000CC',
maxFileSize: maxFileSize,
startMessage: startMessage,
errorSizeMessage: 'File is too big!',
validFileMessage: 'now click \'Upload\'.',
progressMessage: 'Please wait, uploading ',
endMessage: 'You\'re all done'
}, options || {}
);
// disable form submit button
if (opts.hideSubmit==true) {
$("*[@type='submit']",this.form).hide();
}
// THIS WILL BE EXECUTED IN THE USECASE THAT THERE IS NO REDIRECTION TO BE DONE AFTER UPLOAD
TerminateJQUploader = function(containerId,filename,varname){
$this= $('#'+containerId).empty();
$this.text('').append('