update
This commit is contained in:
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
10
.htaccessold
Normal file
10
.htaccessold
Normal file
@ -0,0 +1,10 @@
|
||||
#Options +FollowSymLinks
|
||||
Options -Multiviews
|
||||
|
||||
php_flag display_startup_errors off
|
||||
php_flag display_errors off
|
||||
php_flag html_errors off
|
||||
php_flag log_errors off
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
9
Common/Util.php
Normal file
9
Common/Util.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace Common;
|
||||
|
||||
class Util {
|
||||
public static function is_cli() {
|
||||
return php_sapi_name() === 'cli';
|
||||
}
|
||||
// Ajoute ici d’autres méthodes si nécessaire
|
||||
}
|
||||
88
ajax/demowidget.php
Normal file
88
ajax/demowidget.php
Normal file
@ -0,0 +1,88 @@
|
||||
|
||||
<p class="alert alert-info">
|
||||
This widget is fetching data from an external source with the use of code <code>data-widget-load="<i class="text-primary">[data source]</i>"</code>. Turn on auto refresh by adding the timer like so <code>data-widget-refresh="15"</code> , which will refresh the widget and fetch the data every 15 seconds.
|
||||
</p>
|
||||
<!-- dummy file -->
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
<code>data-widget-load="<i class="text-primary">ajax/demowidget.php</i>"</code>
|
||||
</div>
|
||||
<div class="col-sm-5 text-right">
|
||||
<div class="jarviswidget-timestamp no-margin"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="flotcontainer" style="height:200px; width:100%;"></div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/*
|
||||
* RUN PAGE GRAPHS
|
||||
*/
|
||||
|
||||
// Load FLOAT dependencies (related to page)
|
||||
loadScript("js/plugin/flot/jquery.flot.cust.min.js", loadFlotResize);
|
||||
|
||||
function loadFlotResize() {
|
||||
loadScript("js/plugin/flot/jquery.flot.resize.min.js", loadFlotToolTip);
|
||||
}
|
||||
|
||||
function loadFlotToolTip() {
|
||||
loadScript("js/plugin/flot/jquery.flot.tooltip.min.js", generateRandomFlot);
|
||||
}
|
||||
|
||||
function generateRandomFlot(){
|
||||
|
||||
function GenerateSeries(added){
|
||||
var data = [];
|
||||
var start = 100 + added;
|
||||
var end = 500 + added;
|
||||
|
||||
for(i=1;i<=20;i++){
|
||||
var d = Math.floor(Math.random() * (end - start + 1) + start);
|
||||
data.push([i, d]);
|
||||
start++;
|
||||
end++;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var data1 = GenerateSeries(0);
|
||||
var data2 = GenerateSeries(10);
|
||||
|
||||
var markings = [
|
||||
{ xaxis: { from: 1, to: 2 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 4, to: 5 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 7, to: 8 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 10, to: 11 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 13, to: 14 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 16, to: 17 }, color: "#E8E8E8" },
|
||||
{ xaxis: { from: 19, to: 20 }, color: "#E8E8E8" }
|
||||
|
||||
];
|
||||
|
||||
var options = {
|
||||
series: {
|
||||
lines: { show: true, lineWidth: 3 },
|
||||
shadowSize: 0
|
||||
},
|
||||
grid: {
|
||||
markings: markings,
|
||||
backgroundColor: { colors: ["#D1D1D1", "#7A7A7A"] }
|
||||
}
|
||||
};
|
||||
|
||||
$.plot($("#flotcontainer"),
|
||||
[
|
||||
{data:data1},
|
||||
{data:data2}
|
||||
], options
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
202
ajax/email-compose.html
Normal file
202
ajax/email-compose.html
Normal file
@ -0,0 +1,202 @@
|
||||
<h2 class="email-open-header">
|
||||
Compose New Email <span class="label txt-color-white">DRAFT</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<form enctype="multipart/form-data" action="dummy.php" method="POST" class="form-horizontal" id="email-compose-form">
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>To</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sadi.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com" selected="selected">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Carbon Copy">CC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>CC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com" selected="selected">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com" selected="selected">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Blind Carbon Copy">BCC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>BCC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Subject</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control" placeholder="Email Subject" type="text">
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Attachments"><i class="fa fa-paperclip fa-lg"></i></a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Attachments</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control fileinput" type="file" multiple="multiple">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message no-padding">
|
||||
|
||||
<div id="emailbody">
|
||||
|
||||
<br><br><br><br><br>Thanks,<br><strong>John Doe</strong><br><br><small>CEO - SmartAdmin <br> 231 Ajax Rd, Detroit MI - 48212, USA<br><i class="fa fa-phone"> (313) 647 4761</i></small><br><img src="img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-compose-footer">
|
||||
|
||||
<button class="btn btn-danger" type="button">
|
||||
Disregard
|
||||
</button>
|
||||
|
||||
<button class="btn btn-info" type="button">
|
||||
Draft
|
||||
</button>
|
||||
|
||||
<button data-loading-text="<i class='fa fa-refresh fa-spin'></i> Sending..." class="btn btn-primary pull-right" type="button" id="send">
|
||||
Send <i class="fa fa-arrow-circle-right fa-lg"></i>
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
|
||||
runAllForms();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
|
||||
|
||||
$('#emailbody').summernote({
|
||||
height: 250,
|
||||
focus: false,
|
||||
tabsize: 2
|
||||
});
|
||||
|
||||
|
||||
$(".show-next").click(function () {
|
||||
$this = $(this);
|
||||
$this.hide();
|
||||
$this.parent().parent().parent().parent().parent().next().removeClass("hidden");
|
||||
})
|
||||
|
||||
$("#send").click(function () {
|
||||
|
||||
var $btn = $(this);
|
||||
$btn.button('loading');
|
||||
|
||||
// wait for animation to finish and execute send script
|
||||
setTimeout(function () {
|
||||
//Insert send script here
|
||||
|
||||
|
||||
// Load inbox once send is complete
|
||||
|
||||
loadURL("ajax/email/email-list.html", $('#inbox-content > .table-wrap'))
|
||||
|
||||
|
||||
}, 1000); // how long do you want the delay to be?
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
205
ajax/email-compose.php
Normal file
205
ajax/email-compose.php
Normal file
@ -0,0 +1,205 @@
|
||||
<?php require_once("inc/init.php"); ?>
|
||||
<h2 class="email-open-header">
|
||||
Compose New Email <span class="label txt-color-white">DRAFT</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<form enctype="multipart/form-data" action="dummy.php" method="POST" class="form-horizontal" id="email-compose-form">
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>To</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sadi.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com" selected="selected">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Carbon Copy">CC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>CC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com" selected="selected">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com" selected="selected">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Blind Carbon Copy">BCC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>BCC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Subject</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control" placeholder="Email Subject" type="text">
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Attachments"><i class="fa fa-paperclip fa-lg"></i></a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Attachments</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control fileinput" type="file" multiple="multiple">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message no-padding">
|
||||
|
||||
<div id="emailbody">
|
||||
|
||||
<br><br><br><br><br>Thanks,<br><strong>John Doe</strong><br><br><small>CEO - SmartAdmin <br> 231 Ajax Rd, Detroit MI - 48212, USA<br><i class="fa fa-phone"> (313) 647 4761</i></small><br><img src="<?php echo ASSETS_URL; ?>/img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-compose-footer">
|
||||
|
||||
<button class="btn btn-danger" type="button">
|
||||
Disregard
|
||||
</button>
|
||||
|
||||
<button class="btn btn-info" type="button">
|
||||
Draft
|
||||
</button>
|
||||
|
||||
<button data-loading-text="<i class='fa fa-refresh fa-spin'></i> Sending..." class="btn btn-primary pull-right" type="button" id="send">
|
||||
Send <i class="fa fa-arrow-circle-right fa-lg"></i>
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
|
||||
runAllForms();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
/*
|
||||
* SUMMERNOTE EDITOR
|
||||
*/
|
||||
loadScript("<?php echo ASSETS_URL; ?>/js/plugin/summernote/summernote.min.js", iniEmailBody);
|
||||
|
||||
function iniEmailBody() {
|
||||
$('#emailbody').summernote({
|
||||
height: '100%',
|
||||
focus: false,
|
||||
tabsize: 2
|
||||
});
|
||||
}
|
||||
|
||||
$(".show-next").click(function () {
|
||||
$this = $(this);
|
||||
$this.hide();
|
||||
$this.parent().parent().parent().parent().parent().next().removeClass("hidden");
|
||||
})
|
||||
|
||||
$("#send").click(function () {
|
||||
|
||||
var $btn = $(this);
|
||||
$btn.button('loading');
|
||||
|
||||
// wait for animation to finish and execute send script
|
||||
setTimeout(function () {
|
||||
//Insert send script here
|
||||
|
||||
|
||||
// Load inbox once send is complete
|
||||
loadInbox();
|
||||
|
||||
}, 1000); // how long do you want the delay to be?
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
164
ajax/email-opened.html
Normal file
164
ajax/email-opened.html
Normal file
@ -0,0 +1,164 @@
|
||||
|
||||
<h2 class="email-open-header">
|
||||
Re: Timelogs of last client <span class="label txt-color-white">inbox</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<div class="inbox-info-bar">
|
||||
<div class="row">
|
||||
<div class="col-sm-9">
|
||||
<img src="img/avatars/5.png" alt="me" class="away">
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<span class="hidden-mobile"><sadi.orlaf@smartadmin.com>to <strong>me</strong> on <i>12:10AM, 12 March 2013</i></span>
|
||||
</div>
|
||||
<div class="col-sm-3 text-right">
|
||||
|
||||
<div class="btn-group text-left">
|
||||
<button class="btn btn-primary btn-sm replythis">
|
||||
<i class="fa fa-reply"></i> Reply
|
||||
</button>
|
||||
<button class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="replythis"><i class="fa fa-reply"></i> Reply</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="replythis"><i class="fa fa-mail-forward"></i> Forward</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-print"></i> Print</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-ban"></i> Mark as spam!</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-trash-o"></i> Delete forever</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message">
|
||||
<p>
|
||||
Hey James,
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. <i class="fa fa-smile-o"></i>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
Thanks,<br>
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<br>
|
||||
<br>
|
||||
<small>
|
||||
General Manager - Finance Department <br>
|
||||
231 Ajax Rd, Detroit MI - 48212, USA
|
||||
<br>
|
||||
<i class="fa fa-phone"> (313) 647 6471</i>
|
||||
|
||||
</small>
|
||||
<br>
|
||||
<img src="img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;" />
|
||||
</div>
|
||||
|
||||
<div class="inbox-download">
|
||||
2 attachment(s) — <a href="javascript:void(0);"> Download all attachments</a>
|
||||
|
||||
<ul class="inbox-download-list">
|
||||
<li>
|
||||
<div class="well well-sm">
|
||||
<span>
|
||||
<img src="img/demo/sample.jpg">
|
||||
</span>
|
||||
<br>
|
||||
<strong>rocketlaunch.jpg</strong>
|
||||
<br>
|
||||
400 kb
|
||||
<br>
|
||||
<a href="javascript:void(0);"> Download</a> | <a href="javascript:void(0);"> View</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="well well-sm">
|
||||
<span>
|
||||
<i class="fa fa-file"></i>
|
||||
</span>
|
||||
|
||||
<br>
|
||||
<strong>timelogs.xsl</strong>
|
||||
<br>
|
||||
1.3 mb
|
||||
<br>
|
||||
<a href="javascript:void(0);"> Download</a> | <a href="javascript:void(0);"> Share</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
//pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
$(".replythis").click(function(){
|
||||
loadURL("ajax/email-reply.html", $('#inbox-content > .table-wrap'));
|
||||
})
|
||||
|
||||
</script>
|
||||
164
ajax/email-opened.php
Normal file
164
ajax/email-opened.php
Normal file
@ -0,0 +1,164 @@
|
||||
<?php require_once("inc/init.php"); ?>
|
||||
<h2 class="email-open-header">
|
||||
Re: Timelogs of last client <span class="label txt-color-white">inbox</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<div class="inbox-info-bar">
|
||||
<div class="row">
|
||||
<div class="col-sm-9">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/avatars/5.png" alt="me" class="away">
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<span class="hidden-mobile"><sadi.orlaf@smartadmin.com>to <strong>me</strong> on <i>12:10AM, 12 March 2013</i></span>
|
||||
</div>
|
||||
<div class="col-sm-3 text-right">
|
||||
|
||||
<div class="btn-group text-left">
|
||||
<button class="btn btn-primary btn-sm replythis">
|
||||
<i class="fa fa-reply"></i> Reply
|
||||
</button>
|
||||
<button class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="replythis"><i class="fa fa-reply"></i> Reply</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="replythis"><i class="fa fa-mail-forward"></i> Forward</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-print"></i> Print</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-ban"></i> Mark as spam!</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);"><i class="fa fa-trash-o"></i> Delete forever</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message">
|
||||
<p>
|
||||
Hey James,
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. <i class="fa fa-smile-o"></i>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
Thanks,<br>
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<br>
|
||||
<br>
|
||||
<small>
|
||||
General Manager - Finance Department <br>
|
||||
231 Ajax Rd, Detroit MI - 48212, USA
|
||||
<br>
|
||||
<i class="fa fa-phone"> (313) 647 6471</i>
|
||||
|
||||
</small>
|
||||
<br>
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;" />
|
||||
</div>
|
||||
|
||||
<div class="inbox-download">
|
||||
2 attachment(s) — <a href="javascript:void(0);"> Download all attachments</a>
|
||||
|
||||
<ul class="inbox-download-list">
|
||||
<li>
|
||||
<div class="well well-sm">
|
||||
<span>
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/sample.jpg">
|
||||
</span>
|
||||
<br>
|
||||
<strong>rocketlaunch.jpg</strong>
|
||||
<br>
|
||||
400 kb
|
||||
<br>
|
||||
<a href="javascript:void(0);"> Download</a> | <a href="javascript:void(0);"> View</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="well well-sm">
|
||||
<span>
|
||||
<i class="fa fa-file"></i>
|
||||
</span>
|
||||
|
||||
<br>
|
||||
<strong>timelogs.xsl</strong>
|
||||
<br>
|
||||
1.3 mb
|
||||
<br>
|
||||
<a href="javascript:void(0);"> Download</a> | <a href="javascript:void(0);"> Share</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
//pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
$(".replythis").click(function(){
|
||||
loadURL("ajax/email-reply.php", $('#inbox-content > .table-wrap'));
|
||||
})
|
||||
|
||||
</script>
|
||||
241
ajax/email-reply.html
Normal file
241
ajax/email-reply.html
Normal file
@ -0,0 +1,241 @@
|
||||
<h2 class="email-open-header">
|
||||
Reply to > Re: Timelogs of last client <span class="label txt-color-white">inbox</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<form enctype="multipart/form-data" action="dummy.php" method="POST" class="form-horizontal">
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>To</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com" selected="selected">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Carbon Copy">CC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>CC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Blind Carbon Copy">BCC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>BCC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Subject</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control" placeholder="Email Subject" type="text" value="Re: Timelogs of last client">
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Attachments"><i class="fa fa-paperclip fa-lg"></i></a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Attachments</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control fileinput" type="file" multiple="multiple">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message no-padding">
|
||||
|
||||
<div id="emailbody">
|
||||
|
||||
|
||||
<br><br>Thanks,<br><strong>John Doe</strong><br><br>
|
||||
|
||||
|
||||
<div class="email-reply-text">
|
||||
<p>
|
||||
Sadi Orlaf <span class="text-primary"><sadi.orlaf@smartadmin.com></span> to me on 12:10AM, 12 March 2013
|
||||
</p>
|
||||
|
||||
<div>
|
||||
|
||||
<p>
|
||||
Hey James,
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. <i class="fa fa-smile-o"></i>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
Thanks,<br>
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<br>
|
||||
<br>
|
||||
<small>
|
||||
General Manager - Finance Department <br>
|
||||
231 Ajax Rd, Detroit MI - 48212, USA
|
||||
<br>
|
||||
<i class="fa fa-phone"> (313) 647 6471</i>
|
||||
|
||||
</small>
|
||||
<br>
|
||||
<img src="img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-compose-footer">
|
||||
|
||||
<button class="btn btn-danger" type="button">
|
||||
Disregard
|
||||
</button>
|
||||
|
||||
<button class="btn btn-info" type="button">
|
||||
Draft
|
||||
</button>
|
||||
|
||||
<button data-loading-text="<i class='fa fa-refresh fa-spin'></i> Sending..." class="btn btn-primary pull-right" type="button" id="send">
|
||||
Send <i class="fa fa-arrow-circle-right fa-lg"></i>
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
//pageSetUp();
|
||||
runAllForms();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
|
||||
|
||||
$('#emailbody').summernote({
|
||||
height : 250,
|
||||
focus : true,
|
||||
tabsize : 2
|
||||
});
|
||||
|
||||
|
||||
$(".show-next").click(function(){
|
||||
$this = $(this);
|
||||
$this.hide();
|
||||
$this.parent().parent().parent().parent().parent().next().removeClass("hidden");
|
||||
})
|
||||
|
||||
$("#send").click(function(){
|
||||
|
||||
var $btn = $(this);
|
||||
$btn.button('loading');
|
||||
|
||||
// wait for animation to finish and execute send script
|
||||
setTimeout(function (){
|
||||
//Insert send script here
|
||||
|
||||
|
||||
// Load inbox once send is complete
|
||||
loadURL("ajax/email/email-list.html", $('#inbox-content > .table-wrap'))
|
||||
|
||||
}, 1000); // how long do you want the delay to be?
|
||||
});
|
||||
|
||||
</script>
|
||||
246
ajax/email-reply.php
Normal file
246
ajax/email-reply.php
Normal file
@ -0,0 +1,246 @@
|
||||
<?php require_once("inc/init.php"); ?>
|
||||
<h2 class="email-open-header">
|
||||
Reply to > Re: Timelogs of last client <span class="label txt-color-white">inbox</span>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="Print" class="txt-color-darken pull-right"><i class="fa fa-print"></i></a>
|
||||
</h2>
|
||||
|
||||
<form enctype="multipart/form-data" action="dummy.php" method="POST" class="form-horizontal">
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>To</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com" selected="selected">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Carbon Copy">CC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>CC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Blind Carbon Copy">BCC</a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>BCC</strong></label>
|
||||
<div class="col-md-11">
|
||||
<select multiple style="width:100%" class="select2" data-select-search="true">
|
||||
<option value="sunny.orlaf@smartadmin.com">sunny.orlaf@smartadmin.com</option>
|
||||
<option value="rachael.hawi@smartadmin.com">rachael.hawi@smartadmin.com</option>
|
||||
<option value="michael.safiel@smartadmin.com">michael.safiel@smartadmin.com</option>
|
||||
<option value="alex.jones@infowars.com">alex.jones@infowars.com</option>
|
||||
<option value="oruf.matalla@gmail.com">oruf.matalla@gmail.com</option>
|
||||
<option value="hr@smartadmin.com">hr@smartadmin.com</option>
|
||||
<option value="IT@smartadmin.com">IT@smartadmin.com</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Subject</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control" placeholder="Email Subject" type="text" value="Re: Timelogs of last client">
|
||||
<em><a href="javascript:void(0);" class="show-next" rel="tooltip" data-placement="bottom" data-original-title="Attachments"><i class="fa fa-paperclip fa-lg"></i></a></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-info-bar no-padding hidden">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-1"><strong>Attachments</strong></label>
|
||||
<div class="col-md-11">
|
||||
<input class="form-control fileinput" type="file" multiple="multiple">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-message no-padding">
|
||||
|
||||
<div id="emailbody">
|
||||
|
||||
|
||||
<br><br>Thanks,<br><strong>John Doe</strong><br><br>
|
||||
|
||||
|
||||
<div class="email-reply-text">
|
||||
<p>
|
||||
Sadi Orlaf <span class="text-primary"><sadi.orlaf@smartadmin.com></span> to me on 12:10AM, 12 March 2013
|
||||
</p>
|
||||
|
||||
<div>
|
||||
|
||||
<p>
|
||||
Hey James,
|
||||
</p>
|
||||
<p>
|
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. <i class="fa fa-smile-o"></i>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
Thanks,<br>
|
||||
<strong>Sadi Orlaf</strong>
|
||||
<br>
|
||||
<br>
|
||||
<small>
|
||||
General Manager - Finance Department <br>
|
||||
231 Ajax Rd, Detroit MI - 48212, USA
|
||||
<br>
|
||||
<i class="fa fa-phone"> (313) 647 6471</i>
|
||||
|
||||
</small>
|
||||
<br>
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/logo-blacknwhite.png" height="20" width="auto" style="margin-top:7px; padding-right:9px; border-right:1px dotted #9B9B9B;">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inbox-compose-footer">
|
||||
|
||||
<button class="btn btn-danger" type="button">
|
||||
Disregard
|
||||
</button>
|
||||
|
||||
<button class="btn btn-info" type="button">
|
||||
Draft
|
||||
</button>
|
||||
|
||||
<button data-loading-text="<i class='fa fa-refresh fa-spin'></i> Sending..." class="btn btn-primary pull-right" type="button" id="send">
|
||||
Send <i class="fa fa-arrow-circle-right fa-lg"></i>
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="email-infobox">
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Related Invoice</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-success"></i><a href="javascript:void(0);"> #4831 - Paid</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-file fa-fw text-danger"></i><a href="javascript:void(0);"><strong> #4835 - Unpaid</strong></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="well well-sm well-light">
|
||||
<h5>Upcoming Meetings</h5>
|
||||
|
||||
<p>
|
||||
<span class="label label-success"><i class="fa fa-check"></i> <strike>Agenda Review @ 10 AM</strike> </span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-primary"><i class="fa fa-clock-o"></i> Client Meeting @ 2:30 PM</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="label label-warning"><i class="fa fa-clock-o"></i> Salary Review @ 4:00 PM</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-inline">
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/5.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/3.png" alt="me" width="30px"></li>
|
||||
<li><img src="<?php echo ASSETS_URL; ?>/img/avatars/sunny.png" alt="me" width="30px"></li>
|
||||
<li><a href="javascript:void(0);">1 more</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
//pageSetUp();
|
||||
runAllForms();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
$(".table-wrap [rel=tooltip]").tooltip();
|
||||
|
||||
/*
|
||||
* SUMMERNOTE EDITOR
|
||||
*/
|
||||
loadScript("<?php echo ASSETS_URL; ?>/js/plugin/summernote/summernote.min.js", iniEmailBody);
|
||||
|
||||
function iniEmailBody() {
|
||||
$('#emailbody').summernote({
|
||||
height : 250,
|
||||
focus : true,
|
||||
tabsize : 2
|
||||
});
|
||||
}
|
||||
|
||||
$(".show-next").click(function(){
|
||||
$this = $(this);
|
||||
$this.hide();
|
||||
$this.parent().parent().parent().parent().parent().next().removeClass("hidden");
|
||||
})
|
||||
|
||||
$("#send").click(function(){
|
||||
|
||||
var $btn = $(this);
|
||||
$btn.button('loading');
|
||||
|
||||
// wait for animation to finish and execute send script
|
||||
setTimeout(function (){
|
||||
//Insert send script here
|
||||
|
||||
|
||||
// Load inbox once send is complete
|
||||
loadInbox();
|
||||
|
||||
}, 1000); // how long do you want the delay to be?
|
||||
});
|
||||
|
||||
</script>
|
||||
61
ajax/email-template.html
Normal file
61
ajax/email-template.html
Normal file
@ -0,0 +1,61 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<h1 class="page-title txt-color-blueDark">
|
||||
|
||||
<!-- PAGE HEADER -->
|
||||
<i class="icon-fixed-width icon-home"></i>
|
||||
Email Template
|
||||
<span>>
|
||||
Responsive Email templates!
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- row -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="img/demo/basic.png" alt="Basic Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="goodies/email-templates/basic.html" target="_blank" class="btn btn-primary btn-block">Basic Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="img/demo/sidebar.png" alt="Sidebar Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="goodies/email-templates/sidebar.html" target="_blank" class="btn btn-primary btn-block">Sidebar Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="img/demo/hero.png" alt="Hero Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="goodies/email-templates/hero.html" target="_blank" class="btn btn-primary btn-block">Hero Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="img/demo/sidebarhero.png" alt="Sidebar with Hero" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="goodies/email-templates/sidebar-hero.html" target="_blank" class="btn btn-primary btn-block">Sidebar with Hero</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="img/demo/newsletter.png" alt="Newsletter Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="goodies/email-templates/newsletter.html" target="_blank" class="btn btn-primary btn-block">Newsletter Template</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end row -->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
</script>
|
||||
62
ajax/email-template.php
Normal file
62
ajax/email-template.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php require_once("inc/init.php"); ?>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<h1 class="page-title txt-color-blueDark">
|
||||
|
||||
<!-- PAGE HEADER -->
|
||||
<i class="icon-fixed-width icon-home"></i>
|
||||
Email Template
|
||||
<span>>
|
||||
Responsive Email templates!
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- row -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/basic.png" alt="Basic Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="../COMMON_ASSETS/goodies/email-templates/basic.php" target="_blank" class="btn btn-primary btn-block">Basic Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/sidebar.png" alt="Sidebar Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="../COMMON_ASSETS/goodies/email-templates/sidebar.php" target="_blank" class="btn btn-primary btn-block">Sidebar Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/hero.png" alt="Hero Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="../COMMON_ASSETS/goodies/email-templates/hero.php" target="_blank" class="btn btn-primary btn-block">Hero Email Template</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/sidebarhero.png" alt="Sidebar with Hero" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="../COMMON_ASSETS/goodies/email-templates/sidebar-hero.php" target="_blank" class="btn btn-primary btn-block">Sidebar with Hero</a>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/demo/newsletter.png" alt="Newsletter Email Template" style="width:100%; height:auto;">
|
||||
<br>
|
||||
<br>
|
||||
<a href="../COMMON_ASSETS/goodies/email-templates/newsletter.php" target="_blank" class="btn btn-primary btn-block">Newsletter Template</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end row -->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
</script>
|
||||
953
ajax/email/email-list.html
Normal file
953
ajax/email/email-list.html
Normal file
@ -0,0 +1,953 @@
|
||||
<table id="inbox-table" class="table table-striped table-hover">
|
||||
<tbody>
|
||||
|
||||
<tr id="msg1" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Alex Jones
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-orange">WORK</span> Karjua Marou</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="FILES: rocketlaunch.jpg, timelogs.xsl" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg2" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Sadi Orlaf
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-teal">HOME</span> SmartAdmin.com</span> Sed ut perspiciatis unde....
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="rocketlaunch.jpg, timelogs.xsl" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg3">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Arik Lamora
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Facebook.com</span> Sed ut perspiciatis unde omnis iste natus error...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg4">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Robin Hood
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>10 Jobs</span> Sed ut perspiciatis unde omnis iste natus error...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg5">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
John Limar
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Project Date</span> Sed ut perspiciatis unde omnis iste natus...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="payscale-changes.pdf" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg6">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Jeff Hopkin <span class="text-danger">Draft</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Hey John!</span> Sed ut perspiciatis unde omnis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg7">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Toronto News
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Mayor Rod Fierd!</span> Sed ut perspiciatis unde sit...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg8">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Michael Bleigh
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Past due</span> Sed ut perspiciatis unde omnis iste na
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg9">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Me, Navin
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-teal">HOME</span> John!</span> Sed ut perspiciatis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg10">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Trello Laka
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Project development</span> @Sed ut perspiciatis unde omnis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg11">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg12">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Michael Ray, P. Eng
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>John, please add me to your linkedin</span> Linked in request pending.
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg13">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg14">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg15" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
<i class="fa fa-warning text-warning"></i> System Email
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-orange">WORK</span> Sustem Update</span> 2:00PM to 2PM
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg16">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Amazon.ca
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Baby deal of the week!</span> Two new items on your cart...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg17">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
New server for datacenter needed New server for datacenter ne...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Header blha blah</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg18">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
New server for datacenter needed New server for datacenter ne...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Header blha blah</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg19">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg20">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg21">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg22">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg23">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Sunny
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Important question!</span> Hey John, I hope you are okay...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg24">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg25">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Dogue Biryrd
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Hey whats up?</span> Just checking up on ya...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr id="msg26">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg27">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg28">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg29">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg30">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
//Gets tooltips activated
|
||||
$("#inbox-table [rel=tooltip]").tooltip();
|
||||
|
||||
$("#inbox-table input[type='checkbox']").change(function() {
|
||||
$(this).closest('tr').toggleClass("highlight", this.checked);
|
||||
});
|
||||
|
||||
$("#inbox-table .inbox-data-message").click(function() {
|
||||
$this = $(this);
|
||||
getMail($this);
|
||||
})
|
||||
$("#inbox-table .inbox-data-from").click(function() {
|
||||
$this = $(this);
|
||||
getMail($this);
|
||||
})
|
||||
function getMail($this) {
|
||||
//console.log($this.closest("tr").attr("id"));
|
||||
loadURL("ajax/email-opened.html", $('#inbox-content > .table-wrap'));
|
||||
}
|
||||
|
||||
|
||||
$('.inbox-table-icon input:checkbox').click(function() {
|
||||
enableDeleteButton();
|
||||
})
|
||||
|
||||
$(".deletebutton").click(function() {
|
||||
$('#inbox-table td input:checkbox:checked').parents("tr").rowslide();
|
||||
//$(".inbox-checkbox-triggered").removeClass('visible');
|
||||
//$("#compose-mail").show();
|
||||
});
|
||||
|
||||
function enableDeleteButton() {
|
||||
var isChecked = $('.inbox-table-icon input:checkbox').is(':checked');
|
||||
|
||||
if (isChecked) {
|
||||
$(".inbox-checkbox-triggered").addClass('visible');
|
||||
//$("#compose-mail").hide();
|
||||
} else {
|
||||
$(".inbox-checkbox-triggered").removeClass('visible');
|
||||
//$("#compose-mail").show();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
953
ajax/email/email-list.php
Normal file
953
ajax/email/email-list.php
Normal file
@ -0,0 +1,953 @@
|
||||
<table id="inbox-table" class="table table-striped table-hover">
|
||||
<tbody>
|
||||
|
||||
<tr id="msg1" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Alex Jones
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-orange">WORK</span> Karjua Marou</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="FILES: rocketlaunch.jpg, timelogs.xsl" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg2" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Sadi Orlaf
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-teal">HOME</span> SmartAdmin.com</span> Sed ut perspiciatis unde....
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="rocketlaunch.jpg, timelogs.xsl" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg3">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Arik Lamora
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Facebook.com</span> Sed ut perspiciatis unde omnis iste natus error...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg4">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Robin Hood
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>10 Jobs</span> Sed ut perspiciatis unde omnis iste natus error...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg5">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
John Limar
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Project Date</span> Sed ut perspiciatis unde omnis iste natus...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
<a href="javascript:void(0);" rel="tooltip" data-placement="left" data-original-title="payscale-changes.pdf" class="txt-color-darken"><i class="fa fa-paperclip fa-lg"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg6">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Jeff Hopkin <span class="text-danger">Draft</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Hey John!</span> Sed ut perspiciatis unde omnis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg7">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Toronto News
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Mayor Rod Fierd!</span> Sed ut perspiciatis unde sit...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg8">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Michael Bleigh
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Past due</span> Sed ut perspiciatis unde omnis iste na
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg9">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Me, Navin
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-teal">HOME</span> John!</span> Sed ut perspiciatis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg10">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Trello Laka
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Project development</span> @Sed ut perspiciatis unde omnis...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg11">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg12">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Michael Ray, P. Eng
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>John, please add me to your linkedin</span> Linked in request pending.
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg13">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg14">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Doug Baird
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Pora korta casta ricka?</span> Sed ut perspiciatis unde omnis iste...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg15" class="unread">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
<i class="fa fa-warning text-warning"></i> System Email
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span><span class="label bg-color-orange">WORK</span> Sustem Update</span> 2:00PM to 2PM
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg16">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Amazon.ca
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Baby deal of the week!</span> Two new items on your cart...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg17">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
New server for datacenter needed New server for datacenter ne...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Header blha blah</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg18">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
New server for datacenter needed New server for datacenter ne...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Header blha blah</span> New server for datacenter needed
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg19">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg20">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg21">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg22">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg23">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Sunny
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Important question!</span> Hey John, I hope you are okay...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg24">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg25">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
Dogue Biryrd
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>Hey whats up?</span> Just checking up on ya...
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr id="msg26">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg27">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg28">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg29">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="msg30">
|
||||
<td class="inbox-table-icon">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="checkbox style-2">
|
||||
<span></span> </label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-from hidden-xs hidden-sm">
|
||||
<div>
|
||||
System
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-message">
|
||||
<div>
|
||||
<span>SmartAdmin</span> You have a new friend request!
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-attachment hidden-xs">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="inbox-data-date hidden-xs">
|
||||
<div>
|
||||
10:23 am
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
//Gets tooltips activated
|
||||
$("#inbox-table [rel=tooltip]").tooltip();
|
||||
|
||||
$("#inbox-table input[type='checkbox']").change(function() {
|
||||
$(this).closest('tr').toggleClass("highlight", this.checked);
|
||||
});
|
||||
|
||||
$("#inbox-table .inbox-data-message").click(function() {
|
||||
$this = $(this);
|
||||
getMail($this);
|
||||
})
|
||||
$("#inbox-table .inbox-data-from").click(function() {
|
||||
$this = $(this);
|
||||
getMail($this);
|
||||
})
|
||||
function getMail($this) {
|
||||
//console.log($this.closest("tr").attr("id"));
|
||||
loadURL("ajax/email-opened.php", $('#inbox-content > .table-wrap'));
|
||||
}
|
||||
|
||||
|
||||
$('.inbox-table-icon input:checkbox').click(function() {
|
||||
enableDeleteButton();
|
||||
})
|
||||
|
||||
$(".deletebutton").click(function() {
|
||||
$('#inbox-table td input:checkbox:checked').parents("tr").rowslide();
|
||||
//$(".inbox-checkbox-triggered").removeClass('visible');
|
||||
//$("#compose-mail").show();
|
||||
});
|
||||
|
||||
function enableDeleteButton() {
|
||||
var isChecked = $('.inbox-table-icon input:checkbox').is(':checked');
|
||||
|
||||
if (isChecked) {
|
||||
$(".inbox-checkbox-triggered").addClass('visible');
|
||||
//$("#compose-mail").hide();
|
||||
} else {
|
||||
$(".inbox-checkbox-triggered").removeClass('visible');
|
||||
//$("#compose-mail").show();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
8
ajax/get.php
Normal file
8
ajax/get.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
require_once("inc/init.php");
|
||||
|
||||
$get_func = key($GLOBALS["_GET"]);
|
||||
echo function_exists($get_func) ? call_user_func($get_func) : null;
|
||||
|
||||
?>
|
||||
7
ajax/inc/init.php
Normal file
7
ajax/inc/init.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
//if (session_id() == '')
|
||||
// session_start();
|
||||
require_once("../lib/config.php");
|
||||
|
||||
?>
|
||||
88
ajax/modal-content/modal-voicecommand.html
Normal file
88
ajax/modal-content/modal-voicecommand.html
Normal file
@ -0,0 +1,88 @@
|
||||
<!-- TRIGGER BUTTON:
|
||||
<a href="/my-ajax-page.html" data-toggle="modal" data-target="#remoteModal" class="btn btn-default">Open Modal</a> -->
|
||||
|
||||
<!-- MODAL PLACE HOLDER
|
||||
<div class="modal fade" id="remoteModal" tabindex="-1" role="dialog" aria-labelledby="remoteModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content"></div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!--////////////////////////////////////-->
|
||||
|
||||
<!--<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
||||
×
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Command List</h4>
|
||||
</div>-->
|
||||
<div class="modal-body">
|
||||
|
||||
<h1><i class="fa fa-microphone text-muted"></i> SmartAdmin Voice Command</h1>
|
||||
<hr class="simple">
|
||||
<h5>Instruction</h5>
|
||||
|
||||
Click <span class="text-success">"Allow"</span> to access your microphone and activate Voice Command.
|
||||
You will notice a <span class="text-primary"><strong>BLUE</strong> Flash</span> on the microphone icon indicating activation.
|
||||
The icon will appear <span class="text-danger"><strong>RED</strong></span> <span class="label label-danger"><i class="fa fa-microphone fa-lg"></i></span> if you <span class="text-danger">"Deny"</span> access or don't have any microphone installed.
|
||||
<br>
|
||||
<br>
|
||||
As a security precaution, your browser will disconnect the microphone every 60 to 120 seconds (sooner if not being used). In which case Voice Command will prompt you again to <span class="text-success">"Allow"</span> or <span class="text-danger">"Deny"</span> access to your microphone.
|
||||
<br>
|
||||
<br>
|
||||
If you host your page over <strong>http<span class="text-success">s</span></strong> (secure socket layer) protocol you can wave this security measure and have an unintrupted Voice Command.
|
||||
<br>
|
||||
<br>
|
||||
<h5>Commands</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>'show' </strong> then say the <strong>*page*</strong> you want to go to. For example <strong>"show inbox"</strong> or <strong>"show calendar"</strong>
|
||||
</li>
|
||||
<li>
|
||||
<strong>'mute' </strong> - mutes all sound effects for the theme.
|
||||
</li>
|
||||
<li>
|
||||
<strong>'sound on'</strong> - unmutes all sound effects for the theme.
|
||||
</li>
|
||||
<li>
|
||||
<span class="text-danger"><strong>'stop'</strong></span> - deactivates voice command.
|
||||
</li>
|
||||
<li>
|
||||
<span class="text-primary"><strong>'help'</strong></span> - brings up the command list
|
||||
</li>
|
||||
<li>
|
||||
<span class="text-danger"><strong>'got it'</strong></span> - closes help modal
|
||||
</li>
|
||||
<li>
|
||||
<strong>'hide navigation'</strong> - toggle navigation collapse
|
||||
</li>
|
||||
<li>
|
||||
<strong>'show navigation'</strong> - toggle navigation to open (can be used again to close)
|
||||
</li>
|
||||
<li>
|
||||
<strong>'scroll up'</strong> - scrolls to the top of the page
|
||||
</li>
|
||||
<li>
|
||||
<strong>'scroll down'</strong> - scrollts to the bottom of the page
|
||||
</li>
|
||||
<li>
|
||||
<strong>'go back' </strong> - goes back in history (history -1 click)
|
||||
</li>
|
||||
<li>
|
||||
<strong>'logout'</strong> - logs you out
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h5>Adding your own commands</h5>
|
||||
Voice Command supports up to 80 languages. Adding your own commands is extreamly easy. All commands are stored in the <strong>app.config.js</strong> file under the <code>var commands = {...}</code>.
|
||||
|
||||
<hr class="simple">
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-success btn-lg" data-dismiss="modal">
|
||||
Got it!
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Got it!</button>
|
||||
</div> -->
|
||||
68
ajax/notify/mail.html
Normal file
68
ajax/notify/mail.html
Normal file
@ -0,0 +1,68 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span class="unread">
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/4.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">John Doe <i class="icon-paperclip"></i></span>
|
||||
<time>2 minutes ago</time>
|
||||
<span class="subject">Msed quia non numquam eius modi tempora</span>
|
||||
<span class="msg-body">Hello again and thanks for being a part of the newsletter. </span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/female.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Sonya Birthday</span>
|
||||
<time>Thursday, September 19th</time>
|
||||
<span class="subject">Incidunt ut labor</span>
|
||||
<span class="msg-body">sed quia non numquam eius modi tempora incidunt ut labor</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/1.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Cristina Algera</span>
|
||||
<time>Sunday, September 15th</time>
|
||||
<span class="subject">Best-Selling Teethers</span>
|
||||
<span class="msg-body"> ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/male.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Lam Tampora</span>
|
||||
<time>Saturday, September 14th</time>
|
||||
<span class="subject">Deadline due date</span>
|
||||
<span class="msg-body">imus qui blanditiis praesentium voluptatum deleniti atque corrup</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="unread">
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/sunny.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Project approved! <i class="icon-paperclip"></i></span>
|
||||
<time>September 14th</time>
|
||||
<span class="subject">Et harum quidem rerum facilis est et expedita distinctio</span>
|
||||
<span class="msg-body">...</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/male.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">JEFF, me</span>
|
||||
<time>Friday, September 13th</time>
|
||||
<span class="subject">Bugs fixed! </span>
|
||||
<span class="msg-body">Nam libero tempore, cum soluta nobis est eligendi optio cumque</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
68
ajax/notify/mail.php
Normal file
68
ajax/notify/mail.php
Normal file
@ -0,0 +1,68 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span class="unread">
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/4.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">John Doe <i class="icon-paperclip"></i></span>
|
||||
<time>2 minutes ago</time>
|
||||
<span class="subject">Msed quia non numquam eius modi tempora</span>
|
||||
<span class="msg-body">Hello again and thanks for being a part of the newsletter. </span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/female.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Sonya Birthday</span>
|
||||
<time>Thursday, September 19th</time>
|
||||
<span class="subject">Incidunt ut labor</span>
|
||||
<span class="msg-body">sed quia non numquam eius modi tempora incidunt ut labor</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/1.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Cristina Algera</span>
|
||||
<time>Sunday, September 15th</time>
|
||||
<span class="subject">Best-Selling Teethers</span>
|
||||
<span class="msg-body"> ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/male.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Lam Tampora</span>
|
||||
<time>Saturday, September 14th</time>
|
||||
<span class="subject">Deadline due date</span>
|
||||
<span class="msg-body">imus qui blanditiis praesentium voluptatum deleniti atque corrup</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="unread">
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/sunny.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">Project approved! <i class="icon-paperclip"></i></span>
|
||||
<time>September 14th</time>
|
||||
<span class="subject">Et harum quidem rerum facilis est et expedita distinctio</span>
|
||||
<span class="msg-body">...</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="msg">
|
||||
<img src="img/avatars/male.png" alt="" class="air air-top-left margin-top-5" width="40" height="40" />
|
||||
<span class="from">JEFF, me</span>
|
||||
<time>Friday, September 13th</time>
|
||||
<span class="subject">Bugs fixed! </span>
|
||||
<span class="msg-body">Nam libero tempore, cum soluta nobis est eligendi optio cumque</span>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
94
ajax/notify/notifications.html
Normal file
94
ajax/notify/notifications.html
Normal file
@ -0,0 +1,94 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span class="padding-10 unread">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blueLight pull-left margin-right-5">
|
||||
<i class="fa fa-user fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
2 new users just signed up! <span class="text-primary">martin.luther</span> and <span class="text-primary">kevin.reliey</span>
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>1 min ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10 unread">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-purple txt-color-white pull-left margin-right-5">
|
||||
<i class="fa fa-calendar fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="display-normal"><strong>Calendar</strong></a>: Sadi Orlaf invites you to lunch!
|
||||
<br>
|
||||
<strong>When: 1/3/2014 (1pm - 2pm)</strong><br>
|
||||
<span class="pull-right font-xs text-muted"><i>3 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blueLight txt-color-white pull-left margin-right-5">
|
||||
<i class="fa fa-user fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="display-normal">Sofia</a> as contact?
|
||||
<button class="btn btn-xs btn-primary margin-top-5">accept</button>
|
||||
<button class="btn btn-xs btn-danger margin-top-5">reject</button>
|
||||
<span class="pull-right font-xs text-muted"><i>3 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blue pull-left margin-right-5">
|
||||
<i class="fa fa-facebook fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
Facebook recived +33 unique likes
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>4 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-green pull-left margin-right-5">
|
||||
<i class="fa fa-check fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
2 projects were completed on time! Submitted for your approval - <a href="javascript:void(0);" class="display-normal">Click here</a>
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>1 day ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-greenLight pull-left margin-right-5">
|
||||
<i class="fa fa-lock fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
Your password was recently updated. Please complete your security questions from your profile page.
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>2 weeks ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
94
ajax/notify/notifications.php
Normal file
94
ajax/notify/notifications.php
Normal file
@ -0,0 +1,94 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span class="padding-10 unread">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blueLight pull-left margin-right-5">
|
||||
<i class="fa fa-user fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
2 new users just signed up! <span class="text-primary">martin.luther</span> and <span class="text-primary">kevin.reliey</span>
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>1 min ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10 unread">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-purple txt-color-white pull-left margin-right-5">
|
||||
<i class="fa fa-calendar fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="display-normal"><strong>Calendar</strong></a>: Sadi Orlaf invites you to lunch!
|
||||
<br>
|
||||
<strong>When: 1/3/2014 (1pm - 2pm)</strong><br>
|
||||
<span class="pull-right font-xs text-muted"><i>3 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blueLight txt-color-white pull-left margin-right-5">
|
||||
<i class="fa fa-user fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
<a href="javascript:void(0);" class="display-normal">Sofia</a> as contact?
|
||||
<button class="btn btn-xs btn-primary margin-top-5">accept</button>
|
||||
<button class="btn btn-xs btn-danger margin-top-5">reject</button>
|
||||
<span class="pull-right font-xs text-muted"><i>3 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-blue pull-left margin-right-5">
|
||||
<i class="fa fa-facebook fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
Facebook recived +33 unique likes
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>4 hrs ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-green pull-left margin-right-5">
|
||||
<i class="fa fa-check fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
2 projects were completed on time! Submitted for your approval - <a href="javascript:void(0);" class="display-normal">Click here</a>
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>1 day ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="padding-10">
|
||||
|
||||
<em class="badge padding-5 no-border-radius bg-color-greenLight pull-left margin-right-5">
|
||||
<i class="fa fa-lock fa-fw fa-2x"></i>
|
||||
</em>
|
||||
|
||||
<span>
|
||||
Your password was recently updated. Please complete your security questions from your profile page.
|
||||
<br>
|
||||
<span class="pull-right font-xs text-muted"><i>2 weeks ago...</i></span>
|
||||
</span>
|
||||
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
79
ajax/notify/tasks.html
Normal file
79
ajax/notify/tasks.html
Normal file
@ -0,0 +1,79 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><i class="fa fa-warning text-warning"></i> <strong>PRIMARY:</strong> <i>Upgrade Infestructure</i> <span class="pull-right semi-bold text-muted">85%</span></p>
|
||||
<div class="progress progress-md progress-striped">
|
||||
<div class="progress-bar bg-color-teal" style="width: 85%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>URGENT:</strong> <i> Code foundation</i> <span class="pull-right semi-bold text-muted">65%</span></p>
|
||||
<div class="progress progress-sm">
|
||||
<div class="progress-bar bg-color-teal" style="width: 65%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>URGENT:</strong> <i>Project Plan</i> <span class="pull-right semi-bold text-muted">25%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar bg-color-teal" style="width: 25%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>CRITICAL:</strong> <i> Wireframes</i> <span class="pull-right semi-bold text-danger">5%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar progress-bar-danger" style="width: 5%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>NORMAL:</strong> <i>Compile hotfix</i> <span class="pull-right semi-bold text-muted">99%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar progress-bar-success" style="width: 99%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>MINOR:</strong> <i>Bug fix #213</i><span class="pull-right semi-bold text-muted"><i class="fa fa-check text-success"></i> Complete</span></p>
|
||||
<div class="progress progress-micro">
|
||||
<div class="progress-bar progress-bar-success" style="width: 100%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>MINOR:</strong> <i>Bug fix #134</i><span class="pull-right semi-bold text-muted"><i class="fa fa-check text-success"></i> Complete</span></p>
|
||||
<div class="progress progress-micro">
|
||||
<div class="progress-bar progress-bar-success" style="width: 100%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin display-inline"><a href="javascript:void(0);">see notes</a></em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
79
ajax/notify/tasks.php
Normal file
79
ajax/notify/tasks.php
Normal file
@ -0,0 +1,79 @@
|
||||
<ul class="notification-body">
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><i class="fa fa-warning text-warning"></i> <strong>PRIMARY:</strong> <i>Upgrade Infestructure</i> <span class="pull-right semi-bold text-muted">85%</span></p>
|
||||
<div class="progress progress-md progress-striped">
|
||||
<div class="progress-bar bg-color-teal" style="width: 85%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>URGENT:</strong> <i> Code foundation</i> <span class="pull-right semi-bold text-muted">65%</span></p>
|
||||
<div class="progress progress-sm">
|
||||
<div class="progress-bar bg-color-teal" style="width: 65%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>URGENT:</strong> <i>Project Plan</i> <span class="pull-right semi-bold text-muted">25%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar bg-color-teal" style="width: 25%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>CRITICAL:</strong> <i> Wireframes</i> <span class="pull-right semi-bold text-danger">5%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar progress-bar-danger" style="width: 5%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>NORMAL:</strong> <i>Compile hotfix</i> <span class="pull-right semi-bold text-muted">99%</span></p>
|
||||
<div class="progress progress-xs">
|
||||
<div class="progress-bar progress-bar-success" style="width: 99%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>MINOR:</strong> <i>Bug fix #213</i><span class="pull-right semi-bold text-muted"><i class="fa fa-check text-success"></i> Complete</span></p>
|
||||
<div class="progress progress-micro">
|
||||
<div class="progress-bar progress-bar-success" style="width: 100%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin">last updated on 12/12/2013</em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>
|
||||
<div class="bar-holder no-padding">
|
||||
<p class="margin-bottom-5"><strong>MINOR:</strong> <i>Bug fix #134</i><span class="pull-right semi-bold text-muted"><i class="fa fa-check text-success"></i> Complete</span></p>
|
||||
<div class="progress progress-micro">
|
||||
<div class="progress-bar progress-bar-success" style="width: 100%;"></div>
|
||||
</div>
|
||||
<em class="note no-margin display-inline"><a href="javascript:void(0);">see notes</a></em>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
87
ajax/website-template.html
Normal file
87
ajax/website-template.html
Normal file
@ -0,0 +1,87 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
|
||||
<h1 class="page-title txt-color-blueDark">
|
||||
|
||||
<!-- PAGE HEADER -->
|
||||
<i class="icon-fixed-width icon-home"></i>
|
||||
Website Template
|
||||
<span>>
|
||||
Fully Responsive
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
The website is fully responsive
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
</script>
|
||||
87
ajax/website-template.php
Normal file
87
ajax/website-template.php
Normal file
@ -0,0 +1,87 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
|
||||
<h1 class="page-title txt-color-blueDark">
|
||||
|
||||
<!-- PAGE HEADER -->
|
||||
<i class="icon-fixed-width icon-home"></i>
|
||||
Website Template
|
||||
<span>>
|
||||
Fully Responsive
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
The website is fully responsive
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
|
||||
<div class="thumbnail">
|
||||
<img src="<?php echo ASSETS_URL; ?>/img/image-placeholder.png" alt="">
|
||||
<div class="caption">
|
||||
<h4>Thumbnail label</h4>
|
||||
<p>
|
||||
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
</p>
|
||||
<p>
|
||||
<a href="goodies/website-template/default/" target="_blank" class="btn btn-default btn-md btn-block">Launch</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// DO NOT REMOVE : GLOBAL FUNCTIONS!
|
||||
pageSetUp();
|
||||
|
||||
// PAGE RELATED SCRIPTS
|
||||
|
||||
</script>
|
||||
6
application/.htaccess
Normal file
6
application/.htaccess
Normal file
@ -0,0 +1,6 @@
|
||||
<IfModule authz_core_module>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
11
application/cache/index.html
vendored
Normal file
11
application/cache/index.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
135
application/config/autoload.php
Normal file
135
application/config/autoload.php
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Packages
|
||||
| 2. Libraries
|
||||
| 3. Drivers
|
||||
| 4. Helper files
|
||||
| 5. Custom config files
|
||||
| 6. Language files
|
||||
| 7. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packages
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
||||
|
|
||||
*/
|
||||
$autoload['packages'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in system/libraries/ or your
|
||||
| application/libraries/ directory, with the addition of the
|
||||
| 'database' library, which is somewhat of a special case.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'email', 'session');
|
||||
|
|
||||
| You can also supply an alternative library name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
| -------------------------------------------------------------------
|
||||
| These classes are located in system/libraries/ or in your
|
||||
| application/libraries/ directory, but are also placed inside their
|
||||
| own subdirectory and they extend the CI_Driver_Library class. They
|
||||
| offer multiple interchangeable driver options.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache');
|
||||
|
|
||||
| You can also supply an alternative property name to be assigned in
|
||||
| the controller:
|
||||
|
|
||||
| $autoload['drivers'] = array('cache' => 'cch');
|
||||
|
|
||||
*/
|
||||
$autoload['drivers'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
$autoload['helper'] = array('url');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['config'] = array('config1', 'config2');
|
||||
|
|
||||
| NOTE: This item is intended for use ONLY if you have created custom
|
||||
| config files. Otherwise, leave it blank.
|
||||
|
|
||||
*/
|
||||
$autoload['config'] = array('google');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Language files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['language'] = array('lang1', 'lang2');
|
||||
|
|
||||
| NOTE: Do not include the "_lang" part of your file. For example
|
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||
|
|
||||
*/
|
||||
$autoload['language'] = array();
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Models
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['model'] = array('first_model', 'second_model');
|
||||
|
|
||||
| You can also supply an alternative model name to be assigned
|
||||
| in the controller:
|
||||
|
|
||||
| $autoload['model'] = array('first_model' => 'first');
|
||||
*/
|
||||
$autoload['model'] = array();
|
||||
536
application/config/config.php
Normal file
536
application/config/config.php
Normal file
@ -0,0 +1,536 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crm.interne.ca/';
|
||||
$config['titre']='Ms1-CRM-dev';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 4;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
|
||||
$config['proxy_ips'] = '';
|
||||
$config['gcal_autoplace'] = true; // activer/désactiver l’auto-placement
|
||||
$config['gcal_autoplace_time'] = '06:00';// heure de départ
|
||||
$config['gcal_autoplace_duration'] = 5; // durée (min) des “rappels”
|
||||
// Chemin absolu vers la clé JSON du compte de service Google (service account)
|
||||
$config['google_sa_keyfile'] = APPPATH.'credentials/service_account.json';
|
||||
|
||||
// Si votre domaine Google Workspace a activé la DWD et autorisé le compte de service
|
||||
$config['google_sa_impersonate'] = true;
|
||||
$config['pw_client']='ms1';
|
||||
$config['pw_verssion']='prod astral';
|
||||
include_once('config_pw.php');
|
||||
529
application/config/config_dev.php
Normal file
529
application/config/config_dev.php
Normal file
@ -0,0 +1,529 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expressgroupesdev.interne.ca/';
|
||||
$config['titre']='ExpressGroupe-DEV';
|
||||
$config['emailreservation']='reservations@expresstours.ca';
|
||||
//$this->config->item('emailreservation');
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_verssion_entete']='Dévelopement';
|
||||
$config['pw_verssion']='Dévelopement';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_express_dev.php
Normal file
528
application/config/config_express_dev.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expressgroupesdev.interne.ca//';
|
||||
$config['titre']='Express-CRM-dev';
|
||||
$config['emailreservation']='mlandry@expresstours.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 4;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='express';
|
||||
$config['pw_verssion']='Dev';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_express_dev_astral.php
Normal file
528
application/config/config_express_dev_astral.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expresscrmdev.progiweb.net///';
|
||||
$config['titre']='Express-CRM-dev';
|
||||
$config['emailreservation']='mlandry@expresstours.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 4;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='express';
|
||||
$config['pw_verssion']='Dev astral';
|
||||
include_once('config_pw.php');
|
||||
530
application/config/config_express_pos.php
Normal file
530
application/config/config_express_pos.php
Normal file
@ -0,0 +1,530 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://crmexpress.interne.ca/';
|
||||
$config['titre']='ExpressGroupe';
|
||||
$config['emailreservation']='sendexpress@progiweb.ca';
|
||||
$config['emailreservationcc']='reservations@expresstours.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='express';
|
||||
|
||||
$config['pw_verssion']='Prod';
|
||||
include_once('config_pw.php');
|
||||
529
application/config/config_express_prod.php
Normal file
529
application/config/config_express_prod.php
Normal file
@ -0,0 +1,529 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expressgroupes.interne.ca/';
|
||||
$config['titre']='ExpressGroupe';
|
||||
$config['emailreservation']='sendexpress@progiweb.ca';
|
||||
$config['emailreservationcc']='reservations@expresstours.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
|
||||
$config['pw_verssion']='Prod';
|
||||
include_once('config_pw.php');
|
||||
529
application/config/config_express_prod_astral.php
Normal file
529
application/config/config_express_prod_astral.php
Normal file
@ -0,0 +1,529 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expressgroupes.interne.ca/';
|
||||
$config['titre']='ExpressGroupe';
|
||||
$config['emailreservation']='reservations@expresstours.ca';
|
||||
$config['emailreservationcc']='reservations@expresstours.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='express';
|
||||
$config['pw_verssion']='prod astral';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_ms1.php
Normal file
528
application/config/config_ms1.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crm.interne.ca/';
|
||||
$config['titre']='Ms1-CRM';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
|
||||
$config['pw_verssion']='Prod';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_ms1_dev.php
Normal file
528
application/config/config_ms1_dev.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crmdev.interne.ca/';
|
||||
$config['titre']='Ms1-CRM-dev';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
|
||||
$config['pw_verssion']='Dev';
|
||||
include_once('config_pw.php');
|
||||
535
application/config/config_ms1_dev_astral.php
Normal file
535
application/config/config_ms1_dev_astral.php
Normal file
@ -0,0 +1,535 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crmdev.progiweb.net/';
|
||||
$config['titre']='Ms1-CRM-dev';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 4;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
$config['gcal_autoplace'] = true; // activer/désactiver l’auto-placement
|
||||
$config['gcal_autoplace_time'] = '06:00';// heure de départ
|
||||
$config['gcal_autoplace_duration'] = 5; // durée (min) des “rappels”
|
||||
// Chemin absolu vers la clé JSON du compte de service Google (service account)
|
||||
$config['google_sa_keyfile'] = APPPATH.'credentials/service_account.json';
|
||||
|
||||
// Si votre domaine Google Workspace a activé la DWD et autorisé le compte de service
|
||||
$config['google_sa_impersonate'] = true;
|
||||
$config['pw_client']='ms1';
|
||||
$config['pw_verssion']='Dev astral';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_ms1_prod.php
Normal file
528
application/config/config_ms1_prod.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crm.interne.ca/';
|
||||
$config['titre']='Ms1-CRM';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='ms1';
|
||||
$config['pw_verssion']='Prod';
|
||||
include_once('config_pw.php');
|
||||
536
application/config/config_ms1_prod_astral.php
Normal file
536
application/config/config_ms1_prod_astral.php
Normal file
@ -0,0 +1,536 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crm.interne.ca/';
|
||||
$config['titre']='Ms1-CRM-dev';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
|
||||
$config['proxy_ips'] = '';
|
||||
$config['gcal_autoplace'] = true; // activer/désactiver l’auto-placement
|
||||
$config['gcal_autoplace_time'] = '06:00';// heure de départ
|
||||
$config['gcal_autoplace_duration'] = 5; // durée (min) des “rappels”
|
||||
// Chemin absolu vers la clé JSON du compte de service Google (service account)
|
||||
$config['google_sa_keyfile'] = APPPATH.'credentials/service_account.json';
|
||||
|
||||
// Si votre domaine Google Workspace a activé la DWD et autorisé le compte de service
|
||||
$config['google_sa_impersonate'] = true;
|
||||
$config['pw_client']='ms1';
|
||||
$config['pw_verssion']='prod astral';
|
||||
include_once('config_pw.php');
|
||||
528
application/config/config_prod.php
Normal file
528
application/config/config_prod.php
Normal file
@ -0,0 +1,528 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://expressgroupes.interne.ca/';
|
||||
$config['titre']='ExpressGroupe';
|
||||
$config['emailreservation']='sendexpress@progiweb.ca';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
||||
$config['pw_client']='express';
|
||||
$config['pw_verssion']='Prod';
|
||||
include_once('config_pw.php');
|
||||
2
application/config/config_pw.php
Normal file
2
application/config/config_pw.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
$config['pw_no_verssion'] = ' (2025-10-10 v7.01)';
|
||||
535
application/config/configbbk.php
Normal file
535
application/config/configbbk.php
Normal file
@ -0,0 +1,535 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = 'https://ms1crmdev.progiweb.net/';
|
||||
$config['titre']='Ms1-CRM-dev';
|
||||
$config['emailreservation']='mayrand.p@ms1timing.com';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
//$config['language'] = 'english';
|
||||
$config['language'] = 'french';
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 4;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_save_path'] = NULL;
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
$config['gcal_autoplace'] = true; // activer/désactiver l’auto-placement
|
||||
$config['gcal_autoplace_time'] = '06:00';// heure de départ
|
||||
$config['gcal_autoplace_duration'] = 5; // durée (min) des “rappels”
|
||||
// Chemin absolu vers la clé JSON du compte de service Google (service account)
|
||||
$config['google_sa_keyfile'] = APPPATH.'credentials/service_account.json';
|
||||
|
||||
// Si votre domaine Google Workspace a activé la DWD et autorisé le compte de service
|
||||
$config['google_sa_impersonate'] = true;
|
||||
$config['pw_client']='ms1';
|
||||
$config['pw_verssion']='Dev astral';
|
||||
include_once('config_pw.php');
|
||||
87
application/config/constants.php
Normal file
87
application/config/constants.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Display Debug backtrace
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If set to TRUE, a backtrace will be displayed along with php errors. If
|
||||
| error_reporting is disabled, the backtrace will not display, regardless
|
||||
| of this setting
|
||||
|
|
||||
*/
|
||||
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
|
||||
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
|
||||
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
|
||||
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
|
||||
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
|
||||
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
|
||||
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exit Status Codes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Used to indicate the conditions under which the script is exit()ing.
|
||||
| While there is no universal standard for error codes, there are some
|
||||
| broad conventions. Three such conventions are mentioned below, for
|
||||
| those who wish to make use of them. The CodeIgniter defaults were
|
||||
| chosen for the least overlap with these conventions, while still
|
||||
| leaving room for others to be defined in future versions and user
|
||||
| applications.
|
||||
|
|
||||
| The three main conventions used for determining exit status codes
|
||||
| are as follows:
|
||||
|
|
||||
| Standard C/C++ Library (stdlibc):
|
||||
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
||||
| (This link also contains other GNU-specific conventions)
|
||||
| BSD sysexits.h:
|
||||
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
||||
| Bash scripting:
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
|
||||
$config['pw_no_verssion'] = ' (1.22 * 08/05/2019)';
|
||||
96
application/config/database_dev.php
Normal file
96
application/config/database_dev.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.152',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_expressgroupes_dev',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_express_dev.php
Normal file
96
application/config/database_express_dev.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.152',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_expressgroupes_dev',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_express_dev_astral.php
Normal file
96
application/config/database_express_dev_astral.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'devcrmexpress_bd',
|
||||
'password' => '5Ab^y5Y!uLb+',
|
||||
'database' => 'devcrmexpress_dev',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_express_pos.php
Normal file
96
application/config/database_express_pos.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '127.0.0.1',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_expressgroupes_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_express_prod.php
Normal file
96
application/config/database_express_prod.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.153',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_expressgroupes_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_express_prod_astral.php
Normal file
96
application/config/database_express_prod_astral.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'crmexpress_bd',
|
||||
'password' => 'N^a~,a^#43tT',
|
||||
'database' => 'crmexpress_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_ms1crm.php
Normal file
96
application/config/database_ms1crm.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.153',
|
||||
'username' => 'ms1crm',
|
||||
'password' => 'ms1crm911',
|
||||
'database' => 'app_ms1crm_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_ms1crm_dev.php
Normal file
96
application/config/database_ms1crm_dev.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.152',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_ms1crm_dev',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
118
application/config/database_ms1crm_dev_astral.php
Normal file
118
application/config/database_ms1crm_dev_astral.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'devcrmms1_bd',
|
||||
'password' => '.vB==c$s_Yk7',
|
||||
'database' => 'devcrmms1_dev',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
|
||||
$db['ms1inscription'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'devinscription_bd',
|
||||
'password' => 'x$@_v0-l_I((',
|
||||
'database' => 'devinscription_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_ms1crm_prod.php
Normal file
96
application/config/database_ms1crm_prod.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.153',
|
||||
'username' => 'ms1crm',
|
||||
'password' => 'ms1crm911',
|
||||
'database' => 'app_ms1crm_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
118
application/config/database_ms1crm_prod_astral.php
Normal file
118
application/config/database_ms1crm_prod_astral.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'ms1crm_bd',
|
||||
'password' => 'fPDJ,][ZGPwL',
|
||||
'database' => 'ms1crm_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
|
||||
$db['ms1inscription'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'ms1incription_bd',
|
||||
'password' => '3+~=,y=eV)M;',
|
||||
'database' => 'ms1incription_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
96
application/config/database_prod.php
Normal file
96
application/config/database_prod.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificates in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => '158.69.235.153',
|
||||
'username' => 'root',
|
||||
'password' => 'plusdata',
|
||||
'database' => 'app_expressgroupes_prod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => (ENVIRONMENT !== 'dev'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
24
application/config/doctypes.php
Normal file
24
application/config/doctypes.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$_doctypes = array(
|
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
|
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
|
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
|
||||
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
||||
'html5' => '<!DOCTYPE html>',
|
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
|
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
|
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
|
||||
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
|
||||
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
|
||||
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
|
||||
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
|
||||
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
|
||||
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
|
||||
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
|
||||
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
|
||||
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
|
||||
);
|
||||
103
application/config/foreign_chars.php
Normal file
103
application/config/foreign_chars.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Foreign Characters
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of foreign characters for transliteration
|
||||
| conversion used by the Text helper
|
||||
|
|
||||
*/
|
||||
$foreign_characters = array(
|
||||
'/ä|æ|ǽ/' => 'ae',
|
||||
'/ö|œ/' => 'oe',
|
||||
'/ü/' => 'ue',
|
||||
'/Ä/' => 'Ae',
|
||||
'/Ü/' => 'Ue',
|
||||
'/Ö/' => 'Oe',
|
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
|
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
|
||||
'/Б/' => 'B',
|
||||
'/б/' => 'b',
|
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
|
||||
'/ç|ć|ĉ|ċ|č/' => 'c',
|
||||
'/Д/' => 'D',
|
||||
'/д/' => 'd',
|
||||
'/Ð|Ď|Đ|Δ/' => 'Dj',
|
||||
'/ð|ď|đ|δ/' => 'dj',
|
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
|
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
|
||||
'/Ф/' => 'F',
|
||||
'/ф/' => 'f',
|
||||
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
|
||||
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
|
||||
'/Ĥ|Ħ/' => 'H',
|
||||
'/ĥ|ħ/' => 'h',
|
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
|
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
|
||||
'/Ĵ/' => 'J',
|
||||
'/ĵ/' => 'j',
|
||||
'/Ķ|Κ|К/' => 'K',
|
||||
'/ķ|κ|к/' => 'k',
|
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
|
||||
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
|
||||
'/М/' => 'M',
|
||||
'/м/' => 'm',
|
||||
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
|
||||
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
|
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
|
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
|
||||
'/П/' => 'P',
|
||||
'/п/' => 'p',
|
||||
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
|
||||
'/ŕ|ŗ|ř|ρ|р/' => 'r',
|
||||
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
|
||||
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
|
||||
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
|
||||
'/ț|ţ|ť|ŧ|т/' => 't',
|
||||
'/Þ|þ/' => 'th',
|
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
|
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
|
||||
'/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
|
||||
'/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
|
||||
'/В/' => 'V',
|
||||
'/в/' => 'v',
|
||||
'/Ŵ/' => 'W',
|
||||
'/ŵ/' => 'w',
|
||||
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
|
||||
'/ź|ż|ž|ζ|з/' => 'z',
|
||||
'/Æ|Ǽ/' => 'AE',
|
||||
'/ß/' => 'ss',
|
||||
'/IJ/' => 'IJ',
|
||||
'/ij/' => 'ij',
|
||||
'/Œ/' => 'OE',
|
||||
'/ƒ/' => 'f',
|
||||
'/ξ/' => 'ks',
|
||||
'/π/' => 'p',
|
||||
'/β/' => 'v',
|
||||
'/μ/' => 'm',
|
||||
'/ψ/' => 'ps',
|
||||
'/Ё/' => 'Yo',
|
||||
'/ё/' => 'yo',
|
||||
'/Є/' => 'Ye',
|
||||
'/є/' => 'ye',
|
||||
'/Ї/' => 'Yi',
|
||||
'/Ж/' => 'Zh',
|
||||
'/ж/' => 'zh',
|
||||
'/Х/' => 'Kh',
|
||||
'/х/' => 'kh',
|
||||
'/Ц/' => 'Ts',
|
||||
'/ц/' => 'ts',
|
||||
'/Ч/' => 'Ch',
|
||||
'/ч/' => 'ch',
|
||||
'/Ш/' => 'Sh',
|
||||
'/ш/' => 'sh',
|
||||
'/Щ/' => 'Shch',
|
||||
'/щ/' => 'shch',
|
||||
'/Ъ|ъ|Ь|ь/' => '',
|
||||
'/Ю/' => 'Yu',
|
||||
'/ю/' => 'yu',
|
||||
'/Я/' => 'Ya',
|
||||
'/я/' => 'ya'
|
||||
);
|
||||
8
application/config/google.php
Normal file
8
application/config/google.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$config['google'] = [
|
||||
'credentials_path' => APPPATH.'credentials/service_account.json',
|
||||
'shared_drive_id' => '0AChhcY8763myUk9PVA',
|
||||
'root_folder_id' => '1BJPxQ2XPWqBRYxINgI-9TKJ_iPz7Dltb', // <-- TON dossier de départ
|
||||
];
|
||||
13
application/config/hooks.php
Normal file
13
application/config/hooks.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/hooks.html
|
||||
|
|
||||
*/
|
||||
11
application/config/index.html
Normal file
11
application/config/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
application/config/memcached.php
Normal file
19
application/config/memcached.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Memcached settings
|
||||
| -------------------------------------------------------------------------
|
||||
| Your Memcached servers can be specified below.
|
||||
|
|
||||
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
||||
|
|
||||
*/
|
||||
$config = array(
|
||||
'default' => array(
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => '11211',
|
||||
'weight' => '1',
|
||||
),
|
||||
);
|
||||
84
application/config/migration.php
Normal file
84
application/config/migration.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable Migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migrations are disabled by default for security reasons.
|
||||
| You should enable migrations whenever you intend to do a schema migration
|
||||
| and disable it back when you're done.
|
||||
|
|
||||
*/
|
||||
$config['migration_enabled'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Migration file names may be based on a sequential identifier or on
|
||||
| a timestamp. Options are:
|
||||
|
|
||||
| 'sequential' = Sequential migration naming (001_add_blog.php)
|
||||
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
|
||||
| Use timestamp format YYYYMMDDHHIISS.
|
||||
|
|
||||
| Note: If this configuration value is missing the Migration library
|
||||
| defaults to 'sequential' for backward compatibility with CI2.
|
||||
|
|
||||
*/
|
||||
$config['migration_type'] = 'timestamp';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the name of the table that will store the current migrations state.
|
||||
| When migrations runs it will store in a database table which migration
|
||||
| level the system is at. It then compares the migration level in this
|
||||
| table to the $config['migration_version'] if they are not the same it
|
||||
| will migrate up. This must be set.
|
||||
|
|
||||
*/
|
||||
$config['migration_table'] = 'migrations';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto Migrate To Latest
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If this is set to TRUE when you load the migrations class and have
|
||||
| $config['migration_enabled'] set to TRUE the system will auto migrate
|
||||
| to your latest migration (whatever $config['migration_version'] is
|
||||
| set to). This way you do not have to call migrations anywhere else
|
||||
| in your code to have the latest migration.
|
||||
|
|
||||
*/
|
||||
$config['migration_auto_latest'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is used to set migration version that the file system should be on.
|
||||
| If you run $this->migration->current() this is the version that schema will
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migrations Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Path to your migrations folder.
|
||||
| Typically, it will be within your application path.
|
||||
| Also, writing permission is required within the migrations path.
|
||||
|
|
||||
*/
|
||||
$config['migration_path'] = APPPATH.'migrations/';
|
||||
184
application/config/mimes.php
Normal file
184
application/config/mimes.php
Normal file
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| MIME TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of mime types. It is used by the
|
||||
| Upload class to help identify allowed file types.
|
||||
|
|
||||
*/
|
||||
return array(
|
||||
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
|
||||
'cpt' => 'application/mac-compactpro',
|
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
|
||||
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
|
||||
'dms' => 'application/octet-stream',
|
||||
'lha' => 'application/octet-stream',
|
||||
'lzh' => 'application/octet-stream',
|
||||
'exe' => array('application/octet-stream', 'application/x-msdownload'),
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
|
||||
'so' => 'application/octet-stream',
|
||||
'sea' => 'application/octet-stream',
|
||||
'dll' => 'application/octet-stream',
|
||||
'oda' => 'application/oda',
|
||||
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
|
||||
'ai' => array('application/pdf', 'application/postscript'),
|
||||
'eps' => 'application/postscript',
|
||||
'ps' => 'application/postscript',
|
||||
'smi' => 'application/smil',
|
||||
'smil' => 'application/smil',
|
||||
'mif' => 'application/vnd.mif',
|
||||
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
|
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
|
||||
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
'dir' => 'application/x-director',
|
||||
'dxr' => 'application/x-director',
|
||||
'dvi' => 'application/x-dvi',
|
||||
'gtar' => 'application/x-gtar',
|
||||
'gz' => 'application/x-gzip',
|
||||
'gzip' => 'application/x-gzip',
|
||||
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
|
||||
'php4' => 'application/x-httpd-php',
|
||||
'php3' => 'application/x-httpd-php',
|
||||
'phtml' => 'application/x-httpd-php',
|
||||
'phps' => 'application/x-httpd-php-source',
|
||||
'js' => array('application/x-javascript', 'text/plain'),
|
||||
'swf' => 'application/x-shockwave-flash',
|
||||
'sit' => 'application/x-stuffit',
|
||||
'tar' => 'application/x-tar',
|
||||
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
|
||||
'z' => 'application/x-compress',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xht' => 'application/xhtml+xml',
|
||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
|
||||
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
|
||||
'mid' => 'audio/midi',
|
||||
'midi' => 'audio/midi',
|
||||
'mpga' => 'audio/mpeg',
|
||||
'mp2' => 'audio/mpeg',
|
||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
|
||||
'aif' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aiff' => array('audio/x-aiff', 'audio/aiff'),
|
||||
'aifc' => 'audio/x-aiff',
|
||||
'ram' => 'audio/x-pn-realaudio',
|
||||
'rm' => 'audio/x-pn-realaudio',
|
||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||
'ra' => 'audio/x-realaudio',
|
||||
'rv' => 'video/vnd.rn-realvideo',
|
||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
|
||||
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
|
||||
'gif' => 'image/gif',
|
||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
|
||||
'png' => array('image/png', 'image/x-png'),
|
||||
'tiff' => 'image/tiff',
|
||||
'tif' => 'image/tiff',
|
||||
'css' => array('text/css', 'text/plain'),
|
||||
'html' => array('text/html', 'text/plain'),
|
||||
'htm' => array('text/html', 'text/plain'),
|
||||
'shtml' => array('text/html', 'text/plain'),
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => array('application/xml', 'text/xml', 'text/plain'),
|
||||
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
|
||||
'dot' => array('application/msword', 'application/vnd.ms-office'),
|
||||
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
|
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822',
|
||||
'json' => array('application/json', 'text/json'),
|
||||
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
|
||||
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
|
||||
'p12' => 'application/x-pkcs12',
|
||||
'p7a' => 'application/x-pkcs7-signature',
|
||||
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
|
||||
'p7r' => 'application/x-pkcs7-certreqresp',
|
||||
'p7s' => 'application/pkcs7-signature',
|
||||
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
|
||||
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
|
||||
'der' => 'application/x-x509-ca-cert',
|
||||
'kdb' => 'application/octet-stream',
|
||||
'pgp' => 'application/pgp',
|
||||
'gpg' => 'application/gpg-keys',
|
||||
'sst' => 'application/octet-stream',
|
||||
'csr' => 'application/octet-stream',
|
||||
'rsa' => 'application/x-pkcs7',
|
||||
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
|
||||
'3g2' => 'video/3gpp2',
|
||||
'3gp' => array('video/3gp', 'video/3gpp'),
|
||||
'mp4' => 'video/mp4',
|
||||
'm4a' => 'audio/x-m4a',
|
||||
'f4v' => array('video/mp4', 'video/x-f4v'),
|
||||
'flv' => 'video/x-flv',
|
||||
'webm' => 'video/webm',
|
||||
'aac' => 'audio/x-acc',
|
||||
'm4u' => 'application/vnd.mpegurl',
|
||||
'm3u' => 'text/plain',
|
||||
'xspf' => 'application/xspf+xml',
|
||||
'vlc' => 'application/videolan',
|
||||
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
|
||||
'au' => 'audio/x-au',
|
||||
'ac3' => 'audio/ac3',
|
||||
'flac' => 'audio/x-flac',
|
||||
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
|
||||
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
|
||||
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
|
||||
'ics' => 'text/calendar',
|
||||
'ical' => 'text/calendar',
|
||||
'zsh' => 'text/x-scriptzsh',
|
||||
'7z' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'7zip' => array('application/x-7z-compressed', 'application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
|
||||
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
|
||||
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
|
||||
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
|
||||
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
|
||||
'vcf' => 'text/x-vcard',
|
||||
'srt' => array('text/srt', 'text/plain'),
|
||||
'vtt' => array('text/vtt', 'text/plain'),
|
||||
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
|
||||
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||
'otc' => 'application/vnd.oasis.opendocument.chart-template',
|
||||
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||
'otf' => 'application/vnd.oasis.opendocument.formula-template',
|
||||
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||
'odi' => 'application/vnd.oasis.opendocument.image',
|
||||
'oti' => 'application/vnd.oasis.opendocument.image-template',
|
||||
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||
'odm' => 'application/vnd.oasis.opendocument.text-master',
|
||||
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||
'oth' => 'application/vnd.oasis.opendocument.text-web'
|
||||
);
|
||||
14
application/config/profiler.php
Normal file
14
application/config/profiler.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Profiler Sections
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you determine whether or not various sections of Profiler
|
||||
| data are displayed when the Profiler is enabled.
|
||||
| Please see the user guide for info:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/profiling.html
|
||||
|
|
||||
*/
|
||||
12
application/config/routes.php
Normal file
12
application/config/routes.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$route['default_controller'] = 'home';
|
||||
|
||||
|
||||
|
||||
$route['404_override'] = '';
|
||||
$route['translate_uri_dashes'] = FALSE;
|
||||
|
||||
|
||||
|
||||
64
application/config/smileys.php
Normal file
64
application/config/smileys.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| SMILEYS
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of smileys for use with the emoticon helper.
|
||||
| Individual images can be used to replace multiple smileys. For example:
|
||||
| :-) and :) use the same image replacement.
|
||||
|
|
||||
| Please see user guide for more info:
|
||||
| https://codeigniter.com/user_guide/helpers/smiley_helper.html
|
||||
|
|
||||
*/
|
||||
$smileys = array(
|
||||
|
||||
// smiley image name width height alt
|
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
|
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
|
||||
':question:' => array('question.gif', '19', '19', 'question')
|
||||
|
||||
);
|
||||
215
application/config/user_agents.php
Normal file
215
application/config/user_agents.php
Normal file
@ -0,0 +1,215 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| USER AGENT TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains four arrays of user agent data. It is used by the
|
||||
| User Agent Class to help identify browser, platform, robot, and
|
||||
| mobile device data. The array keys are used to identify the device
|
||||
| and the array values are used to set the actual name of the item.
|
||||
*/
|
||||
$platforms = array(
|
||||
'windows nt 10.0' => 'Windows 10',
|
||||
'windows nt 6.3' => 'Windows 8.1',
|
||||
'windows nt 6.2' => 'Windows 8',
|
||||
'windows nt 6.1' => 'Windows 7',
|
||||
'windows nt 6.0' => 'Windows Vista',
|
||||
'windows nt 5.2' => 'Windows 2003',
|
||||
'windows nt 5.1' => 'Windows XP',
|
||||
'windows nt 5.0' => 'Windows 2000',
|
||||
'windows nt 4.0' => 'Windows NT 4.0',
|
||||
'winnt4.0' => 'Windows NT 4.0',
|
||||
'winnt 4.0' => 'Windows NT',
|
||||
'winnt' => 'Windows NT',
|
||||
'windows 98' => 'Windows 98',
|
||||
'win98' => 'Windows 98',
|
||||
'windows 95' => 'Windows 95',
|
||||
'win95' => 'Windows 95',
|
||||
'windows phone' => 'Windows Phone',
|
||||
'windows' => 'Unknown Windows OS',
|
||||
'android' => 'Android',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'iphone' => 'iOS',
|
||||
'ipad' => 'iOS',
|
||||
'ipod' => 'iOS',
|
||||
'os x' => 'Mac OS X',
|
||||
'ppc mac' => 'Power PC Mac',
|
||||
'freebsd' => 'FreeBSD',
|
||||
'ppc' => 'Macintosh',
|
||||
'linux' => 'Linux',
|
||||
'debian' => 'Debian',
|
||||
'sunos' => 'Sun Solaris',
|
||||
'beos' => 'BeOS',
|
||||
'apachebench' => 'ApacheBench',
|
||||
'aix' => 'AIX',
|
||||
'irix' => 'Irix',
|
||||
'osf' => 'DEC OSF',
|
||||
'hp-ux' => 'HP-UX',
|
||||
'netbsd' => 'NetBSD',
|
||||
'bsdi' => 'BSDi',
|
||||
'openbsd' => 'OpenBSD',
|
||||
'gnu' => 'GNU/Linux',
|
||||
'unix' => 'Unknown Unix OS',
|
||||
'symbian' => 'Symbian OS'
|
||||
);
|
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return
|
||||
// multiple browser types so we want to identify the sub-type first.
|
||||
$browsers = array(
|
||||
'OPR' => 'Opera',
|
||||
'Flock' => 'Flock',
|
||||
'Edge' => 'Edge',
|
||||
'Chrome' => 'Chrome',
|
||||
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
|
||||
'Opera.*?Version' => 'Opera',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Trident.* rv' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse',
|
||||
'Maxthon' => 'Maxthon',
|
||||
'Ubuntu' => 'Ubuntu Web Browser'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => 'Motorola',
|
||||
'nokia' => 'Nokia',
|
||||
'nexus' => 'Nexus',
|
||||
'palm' => 'Palm',
|
||||
'iphone' => 'Apple iPhone',
|
||||
'ipad' => 'iPad',
|
||||
'ipod' => 'Apple iPod Touch',
|
||||
'sony' => 'Sony Ericsson',
|
||||
'ericsson' => 'Sony Ericsson',
|
||||
'blackberry' => 'BlackBerry',
|
||||
'cocoon' => 'O2 Cocoon',
|
||||
'blazer' => 'Treo',
|
||||
'lg' => 'LG',
|
||||
'amoi' => 'Amoi',
|
||||
'xda' => 'XDA',
|
||||
'mda' => 'MDA',
|
||||
'vario' => 'Vario',
|
||||
'htc' => 'HTC',
|
||||
'samsung' => 'Samsung',
|
||||
'sharp' => 'Sharp',
|
||||
'sie-' => 'Siemens',
|
||||
'alcatel' => 'Alcatel',
|
||||
'benq' => 'BenQ',
|
||||
'ipaq' => 'HP iPaq',
|
||||
'mot-' => 'Motorola',
|
||||
'playstation portable' => 'PlayStation Portable',
|
||||
'playstation 3' => 'PlayStation 3',
|
||||
'playstation vita' => 'PlayStation Vita',
|
||||
'hiptop' => 'Danger Hiptop',
|
||||
'nec-' => 'NEC',
|
||||
'panasonic' => 'Panasonic',
|
||||
'philips' => 'Philips',
|
||||
'sagem' => 'Sagem',
|
||||
'sanyo' => 'Sanyo',
|
||||
'spv' => 'SPV',
|
||||
'zte' => 'ZTE',
|
||||
'sendo' => 'Sendo',
|
||||
'nintendo dsi' => 'Nintendo DSi',
|
||||
'nintendo ds' => 'Nintendo DS',
|
||||
'nintendo 3ds' => 'Nintendo 3DS',
|
||||
'wii' => 'Nintendo Wii',
|
||||
'open web' => 'Open Web',
|
||||
'openweb' => 'OpenWeb',
|
||||
|
||||
// Operating Systems
|
||||
'android' => 'Android',
|
||||
'symbian' => 'Symbian',
|
||||
'SymbianOS' => 'SymbianOS',
|
||||
'elaine' => 'Palm',
|
||||
'series60' => 'Symbian S60',
|
||||
'windows ce' => 'Windows CE',
|
||||
|
||||
// Browsers
|
||||
'obigo' => 'Obigo',
|
||||
'netfront' => 'Netfront Browser',
|
||||
'openwave' => 'Openwave Browser',
|
||||
'mobilexplorer' => 'Mobile Explorer',
|
||||
'operamini' => 'Opera Mini',
|
||||
'opera mini' => 'Opera Mini',
|
||||
'opera mobi' => 'Opera Mobile',
|
||||
'fennec' => 'Firefox Mobile',
|
||||
|
||||
// Other
|
||||
'digital paths' => 'Digital Paths',
|
||||
'avantgo' => 'AvantGo',
|
||||
'xiino' => 'Xiino',
|
||||
'novarra' => 'Novarra Transcoder',
|
||||
'vodafone' => 'Vodafone',
|
||||
'docomo' => 'NTT DoCoMo',
|
||||
'o2' => 'O2',
|
||||
|
||||
// Fallback
|
||||
'mobile' => 'Generic Mobile',
|
||||
'wireless' => 'Generic Mobile',
|
||||
'j2me' => 'Generic Mobile',
|
||||
'midp' => 'Generic Mobile',
|
||||
'cldc' => 'Generic Mobile',
|
||||
'up.link' => 'Generic Mobile',
|
||||
'up.browser' => 'Generic Mobile',
|
||||
'smartphone' => 'Generic Mobile',
|
||||
'cellphone' => 'Generic Mobile'
|
||||
);
|
||||
|
||||
// There are hundreds of bots but these are the most common.
|
||||
$robots = array(
|
||||
'googlebot' => 'Googlebot',
|
||||
'msnbot' => 'MSNBot',
|
||||
'baiduspider' => 'Baiduspider',
|
||||
'bingbot' => 'Bing',
|
||||
'slurp' => 'Inktomi Slurp',
|
||||
'yahoo' => 'Yahoo',
|
||||
'ask jeeves' => 'Ask Jeeves',
|
||||
'fastcrawler' => 'FastCrawler',
|
||||
'infoseek' => 'InfoSeek Robot 1.0',
|
||||
'lycos' => 'Lycos',
|
||||
'yandex' => 'YandexBot',
|
||||
'mediapartners-google' => 'MediaPartners Google',
|
||||
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
|
||||
'adsbot-google' => 'AdsBot Google',
|
||||
'feedfetcher-google' => 'Feedfetcher Google',
|
||||
'curious george' => 'Curious George',
|
||||
'ia_archiver' => 'Alexa Crawler',
|
||||
'MJ12bot' => 'Majestic-12',
|
||||
'Uptimebot' => 'Uptimebot'
|
||||
);
|
||||
144
application/controllers/Clients.php
Normal file
144
application/controllers/Clients.php
Normal file
@ -0,0 +1,144 @@
|
||||
<?php
|
||||
class Clients extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('clients');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Clients_model');
|
||||
$this->load->model('Projets_model');
|
||||
$this->load->model('Tache_model');
|
||||
$this->lang->load('clients');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
$this->load->model('Config_model');
|
||||
$this->load->helper('jira_helper');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('clients/header' );
|
||||
$this->load->view('clients/list' );
|
||||
$this->load->view('clients/footer' );
|
||||
}
|
||||
public function form($mem_id,$error='',$pageSection='')
|
||||
{
|
||||
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
// $error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Clients_model->mod_getForminfo($mem_id);
|
||||
|
||||
|
||||
$data['contacts']=$this->Clients_model->mod_listcontact($mem_id);
|
||||
|
||||
|
||||
$data['projets']=$this->Clients_model->mod_listprojets($mem_id,1);
|
||||
|
||||
if ($pageSection<>'')
|
||||
$data['pageSection']=$pageSection;
|
||||
|
||||
$this->load->view('clients/header' );
|
||||
$this->load->view('clients/form',$data );
|
||||
$this->load->view('clients/footer',$error );
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$filtre4='',$mem_listactive=1,$mem_projetsactive=1,$excel=0) {
|
||||
|
||||
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_select_4',$filtre4,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_listactive',$mem_listactive,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_client','mem_projetsactive',$mem_projetsactive,1,0);
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
$filtre4=urldecode($filtre4);
|
||||
$data=$this->Clients_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$filtre4,$mem_listactive,$mem_projetsactive,$excel);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function saveRecord($id)
|
||||
{
|
||||
|
||||
if ($id==0){
|
||||
$id=$this->Clients_model->mod_createRecordbd($_POST,'com_');
|
||||
|
||||
if ($id!=0)
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
} else {
|
||||
$ok=$this->Clients_model->mod_saveRecordbd($id,$_POST,'com_');
|
||||
if ($ok)
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
|
||||
public function deletecontact($id,$con_id){
|
||||
$this->Clients_model->mod_deleteRecordbdcontact($id);
|
||||
$error=array('type'=>'success','message'=>'Contact effacé');
|
||||
|
||||
$this->form($con_id,$error,'sectioncontacts');
|
||||
}
|
||||
public function editcontact($id,$con_id)
|
||||
{
|
||||
$new_post=array();
|
||||
foreach($_POST as $key => $value ){
|
||||
$pieces = explode("/", $key);
|
||||
if ($pieces[0]==$id){
|
||||
$new_post[$pieces[1]]=$value;
|
||||
}
|
||||
}
|
||||
print_r($new_post);
|
||||
print_r($_POST);
|
||||
$this->Clients_model->mod_editRecordbdcontact($new_post,'con_',$id);
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
$this->form($con_id,$error,'sectioncontacts');
|
||||
}
|
||||
public function saveRecordcontact($id)
|
||||
{
|
||||
$mem_con_id=0;
|
||||
if($_POST['button']=='new'){
|
||||
$mem_con_id=0;
|
||||
|
||||
}else{
|
||||
$mem_con_id=$_POST['button'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
$new_post=array();
|
||||
|
||||
foreach($_POST as $key => $value ){
|
||||
$pieces = explode("/", $key);
|
||||
if(isset($pieces[1])){
|
||||
if ($pieces[0]== $mem_con_id){
|
||||
$new_post[$pieces[1]]=$value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($_POST['button']=='new'){
|
||||
$this->Clients_model->mod_createRecordbdcontact($new_post,'con_',$id);
|
||||
}else{
|
||||
$this->Clients_model->mod_editRecordbdcontact($new_post,'con_',$mem_con_id);
|
||||
}
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
$this->form($id,$error,'sectioncontacts');
|
||||
}
|
||||
}
|
||||
311
application/controllers/DebugGcal.php
Normal file
311
application/controllers/DebugGcal.php
Normal file
@ -0,0 +1,311 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class DebugGcal extends CI_Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$email = $this->input->get('email', true) ?: '';
|
||||
$dateYmd = $this->input->get('date', true) ?: date('Y-m-d');
|
||||
$tz = $this->input->get('tz', true) ?: 'America/Toronto';
|
||||
$base = $this->input->get('base', true) ?: '08:00';
|
||||
$dur = (int)($this->input->get('dur', true) ?: 1);
|
||||
$calId = $this->input->get('calendar', true) ?: 'primary';
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
echo "<h1>Debug GCal – Test de placement</h1>";
|
||||
|
||||
echo "<h2>Paramètres</h2><pre>";
|
||||
echo "email : $email\n";
|
||||
echo "date : $dateYmd\n";
|
||||
echo "timezone : $tz\n";
|
||||
echo "base : $base\n";
|
||||
echo "dur(min) : $dur\n";
|
||||
echo "calendar : $calId\n";
|
||||
echo "</pre>";
|
||||
|
||||
if (empty($email)) {
|
||||
echo "<p style='color:red'>⚠️ Fournis ?email=user@domaine.com dans l’URL.</p>";
|
||||
$this->print_usage(); return;
|
||||
}
|
||||
|
||||
// Fenêtre de la journée
|
||||
try { $tzObj = new DateTimeZone($tz); } catch (Exception $e) { $tzObj = new DateTimeZone('America/Toronto'); }
|
||||
$dayStart = new DateTime("$dateYmd 00:00:00", $tzObj);
|
||||
$dayEnd = new DateTime("$dateYmd 23:59:59", $tzObj);
|
||||
|
||||
// Charge la lib telle qu’en prod
|
||||
$this->load->library('GCalService');
|
||||
|
||||
echo "<h2>Librairie GCalService</h2><pre>";
|
||||
echo "Class: " . get_class($this->gcalservice) . "\n";
|
||||
echo "Méthodes disponibles:\n";
|
||||
echo " - freeBusy : " . (method_exists($this->gcalservice, 'freeBusy') ? 'OUI' : 'non') . "\n";
|
||||
echo " - listEvents : " . (method_exists($this->gcalservice, 'listEvents') ? 'OUI' : 'non') . "\n";
|
||||
echo "Classes Google connues:\n";
|
||||
echo " - Google_Service_Calendar: " . (class_exists('Google_Service_Calendar') ? 'OUI' : 'non') . "\n";
|
||||
echo " - Google_Client : " . (class_exists('Google_Client') ? 'OUI' : 'non') . "\n";
|
||||
echo "</pre>";
|
||||
|
||||
// ===== Introspection des propriétés de la librairie =====
|
||||
$props = get_object_vars($this->gcalservice);
|
||||
echo "<h2>Propriétés de GCalService</h2>";
|
||||
if (empty($props)) {
|
||||
echo "<pre>(aucune propriété publique/protégée visible)</pre>";
|
||||
} else {
|
||||
echo "<table border='1' cellspacing='0' cellpadding='4'><tr><th>Nom</th><th>Type</th><th>Détail</th></tr>";
|
||||
foreach ($props as $k => $v) {
|
||||
$type = gettype($v);
|
||||
$detail = '';
|
||||
if (is_object($v)) {
|
||||
$cls = get_class($v);
|
||||
$type = "object";
|
||||
$detail = $cls;
|
||||
} elseif (is_array($v)) {
|
||||
$detail = 'array('.count($v).')';
|
||||
} else {
|
||||
$detail = htmlspecialchars(var_export($v, true));
|
||||
}
|
||||
echo "<tr><td>".htmlspecialchars($k)."</td><td>$type</td><td>".htmlspecialchars($detail)."</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
// Tente de découvrir un service Calendar déjà initialisé
|
||||
$calendarService = null;
|
||||
$googleClient = null;
|
||||
|
||||
// 1) Cherche un objet déjà de type Google_Service_Calendar
|
||||
foreach ($props as $v) {
|
||||
if (is_object($v) && class_exists('Google_Service_Calendar') && $v instanceof Google_Service_Calendar) {
|
||||
$calendarService = $v; break;
|
||||
}
|
||||
}
|
||||
// 2) Sinon, cherche un Google_Client
|
||||
if (!$calendarService && class_exists('Google_Client')) {
|
||||
foreach ($props as $v) {
|
||||
if (is_object($v) && $v instanceof Google_Client) {
|
||||
$googleClient = $v; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 3) Sinon, si la lib expose une méthode getClient(), on l’essaie
|
||||
if (!$calendarService && !$googleClient && method_exists($this->gcalservice, 'getClient')) {
|
||||
try {
|
||||
$maybeClient = $this->gcalservice->getClient(); // sans effet de bord
|
||||
if (is_object($maybeClient) && class_exists('Google_Client') && $maybeClient instanceof Google_Client) {
|
||||
$googleClient = $maybeClient;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo "<p style='color:red'><b>getClient()</b> a levé: ".htmlspecialchars($e->getMessage())."</p>";
|
||||
}
|
||||
}
|
||||
// 4) Fabrique un service si on a un client
|
||||
if (!$calendarService && $googleClient && class_exists('Google_Service_Calendar')) {
|
||||
$calendarService = new Google_Service_Calendar($googleClient);
|
||||
}
|
||||
|
||||
echo "<h2>Détection de service</h2><pre>";
|
||||
echo "calendarService: ".($calendarService ? ('OK ('.get_class($calendarService).')') : 'non')."\n";
|
||||
echo "googleClient : ".($googleClient ? ('OK ('.get_class($googleClient).')') : 'non')."\n";
|
||||
echo "</pre>";
|
||||
|
||||
// ==== Appels en lecture en utilisant, si possible, le service détecté ====
|
||||
$busyIntervals = [];
|
||||
$events = [];
|
||||
|
||||
// FreeBusy via service direct (si dispo)
|
||||
if ($calendarService && method_exists($calendarService->freebusy, 'query')) {
|
||||
echo "<h2>freeBusy() via service détecté</h2>";
|
||||
try {
|
||||
$fbReq = new Google_Service_Calendar_FreeBusyRequest();
|
||||
$fbReq->setTimeMin($dayStart->format(DateTime::RFC3339));
|
||||
$fbReq->setTimeMax($dayEnd->format(DateTime::RFC3339));
|
||||
$fbReq->setTimeZone($tz);
|
||||
|
||||
$item = new Google_Service_Calendar_FreeBusyRequestItem();
|
||||
$item->setId($calId);
|
||||
$fbReq->setItems([$item]);
|
||||
|
||||
$resp = $calendarService->freebusy->query($fbReq);
|
||||
$cals = $resp->getCalendars();
|
||||
if (isset($cals[$calId])) {
|
||||
$blocks = $cals[$calId]['busy'] ?? [];
|
||||
foreach ($blocks as $b) {
|
||||
$s = new DateTime($b['start']);
|
||||
$e = new DateTime($b['end']);
|
||||
$s->setTimezone($tzObj);
|
||||
$e->setTimezone($tzObj);
|
||||
$busyIntervals[] = [$s, $e];
|
||||
}
|
||||
}
|
||||
if (empty($busyIntervals)) echo "<p><i>(aucun busy remonté)</i></p>";
|
||||
$this->print_busy($busyIntervals, $tzObj);
|
||||
} catch (Exception $e) {
|
||||
echo "<pre style='color:red'>Exception: ".htmlspecialchars($e->getMessage())."</pre>";
|
||||
}
|
||||
} else {
|
||||
echo "<h2>freeBusy() via service détecté</h2><p><i>service indisponible</i></p>";
|
||||
}
|
||||
|
||||
// listEvents via service direct (si dispo)
|
||||
if ($calendarService && method_exists($calendarService->events, 'listEvents')) {
|
||||
echo "<h2>listEvents() via service détecté</h2>";
|
||||
try {
|
||||
$opt = [
|
||||
'timeMin' => $dayStart->format(DateTime::RFC3339),
|
||||
'timeMax' => $dayEnd->format(DateTime::RFC3339),
|
||||
'singleEvents' => true,
|
||||
'orderBy' => 'startTime',
|
||||
'maxResults' => 2500,
|
||||
];
|
||||
$resp = $calendarService->events->listEvents($calId, $opt);
|
||||
foreach ($resp->getItems() as $ev) {
|
||||
$start = $ev->getStart();
|
||||
$end = $ev->getEnd();
|
||||
$events[] = [
|
||||
'start' => [
|
||||
'dateTime' => $start ? $start->getDateTime() : null,
|
||||
'date' => $start ? $start->getDate() : null,
|
||||
],
|
||||
'end' => [
|
||||
'dateTime' => $end ? $end->getDateTime() : null,
|
||||
'date' => $end ? $end->getDate() : null,
|
||||
],
|
||||
];
|
||||
}
|
||||
if (empty($events)) echo "<p><i>(aucun événement)</i></p>";
|
||||
$this->print_events($events, $tzObj);
|
||||
} catch (Exception $e) {
|
||||
echo "<pre style='color:red'>Exception: ".htmlspecialchars($e->getMessage())."</pre>";
|
||||
}
|
||||
} else {
|
||||
echo "<h2>listEvents() via service détecté</h2><p><i>service indisponible</i></p>";
|
||||
}
|
||||
|
||||
// Si rien via service, on retombe sur tes méthodes existantes (si présentes) pour comparer
|
||||
if (empty($busyIntervals) && method_exists($this->gcalservice, 'freeBusy')) {
|
||||
echo "<h2>freeBusy() via librairie</h2>";
|
||||
try {
|
||||
$busyLib = $this->gcalservice->freeBusy($email, $calId, $dayStart->format(DateTime::RFC3339), $dayEnd->format(DateTime::RFC3339), $tz);
|
||||
if (is_array($busyLib)) {
|
||||
// On accepte deux formats: paires [DateTime, DateTime] ou tableaux ['start'=>..., 'end'=>...]
|
||||
foreach ($busyLib as $pair) {
|
||||
if (is_array($pair) && count($pair) === 2 && $pair[0] instanceof DateTime) {
|
||||
$s = $pair[0]; $e = $pair[1];
|
||||
} else {
|
||||
$s = isset($pair['start']) ? new DateTime($pair['start']) : null;
|
||||
$e = isset($pair['end']) ? new DateTime($pair['end']) : null;
|
||||
}
|
||||
if ($s && $e) {
|
||||
$s->setTimezone($tzObj);
|
||||
$e->setTimezone($tzObj);
|
||||
$busyIntervals[] = [$s, $e];
|
||||
}
|
||||
}
|
||||
if (empty($busyIntervals)) echo "<p><i>(aucun busy via librairie)</i></p>";
|
||||
$this->print_busy($busyIntervals, $tzObj);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo "<pre style='color:red'>Exception: ".htmlspecialchars($e->getMessage())."</pre>";
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($events) && method_exists($this->gcalservice, 'listEvents')) {
|
||||
echo "<h2>listEvents() via librairie</h2>";
|
||||
try {
|
||||
$events = $this->gcalservice->listEvents($email, $calId, $dayStart->format(DateTime::RFC3339), $dayEnd->format(DateTime::RFC3339));
|
||||
$this->print_events($events, $tzObj);
|
||||
} catch (Exception $e) {
|
||||
echo "<pre style='color:red'>Exception: ".htmlspecialchars($e->getMessage())."</pre>";
|
||||
}
|
||||
}
|
||||
|
||||
// Normalisation finale des intervals occupés
|
||||
echo "<h2>Busy normalisés (utilisés pour la simulation)</h2>";
|
||||
$normBusy = [];
|
||||
foreach ($busyIntervals as $pair) {
|
||||
if (!is_array($pair) || count($pair) !== 2) continue;
|
||||
$s = $pair[0]; $e = $pair[1];
|
||||
if (!($s instanceof DateTime) || !($e instanceof DateTime)) continue;
|
||||
$normBusy[] = [$s, $e];
|
||||
}
|
||||
$this->print_busy($normBusy, $tzObj);
|
||||
|
||||
// Simulation locale (ne crée rien)
|
||||
$slot = $this->simulate_slot($normBusy, $dateYmd, $tzObj, $base, $dur);
|
||||
echo "<h2>Simulation de placement</h2><pre>";
|
||||
echo "Candidat retenu : " . $slot['startIso'] . " → " . $slot['endIso'] . "\n";
|
||||
echo "</pre>";
|
||||
|
||||
$this->print_usage();
|
||||
}
|
||||
|
||||
private function print_busy(array $busy, DateTimeZone $tzObj)
|
||||
{
|
||||
if (empty($busy)) { echo "<pre>(aucun)</pre>"; return; }
|
||||
echo "<table border='1' cellpadding='4' cellspacing='0'>";
|
||||
echo "<tr><th>#</th><th>Start (".$tzObj->getName().")</th><th>End (".$tzObj->getName().")</th><th>Durée (min)</th></tr>";
|
||||
$i = 1;
|
||||
foreach ($busy as $pair) {
|
||||
$s = $pair[0]; $e = $pair[1];
|
||||
$mins = round(($e->getTimestamp() - $s->getTimestamp()) / 60);
|
||||
echo "<tr><td>".$i++."</td><td>".$s->format('Y-m-d H:i:s')."</td><td>".$e->format('Y-m-d H:i:s')."</td><td style='text-align:right'>".$mins."</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
private function print_events(array $events, DateTimeZone $tzObj)
|
||||
{
|
||||
if (empty($events)) { echo "<pre>(aucun)</pre>"; return; }
|
||||
echo "<table border='1' cellpadding='4' cellspacing='0'>";
|
||||
echo "<tr><th>#</th><th>start.dateTime</th><th>start.date</th><th>end.dateTime</th><th>end.date</th></tr>";
|
||||
$i = 1;
|
||||
foreach ($events as $ev) {
|
||||
$sdt = $ev['start']['dateTime'] ?? '';
|
||||
$sd = $ev['start']['date'] ?? '';
|
||||
$edt = $ev['end']['dateTime'] ?? '';
|
||||
$ed = $ev['end']['date'] ?? '';
|
||||
echo "<tr><td>".$i++."</td><td>".htmlspecialchars($sdt)."</td><td>".htmlspecialchars($sd)."</td><td>".htmlspecialchars($edt)."</td><td>".htmlspecialchars($ed)."</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
private function simulate_slot(array $busyIntervals, string $dateYmd, DateTimeZone $tzObj, string $baseTime, int $durationMin): array
|
||||
{
|
||||
$candidate = new DateTime("$dateYmd $baseTime:00", $tzObj);
|
||||
$dayEnd = new DateTime("$dateYmd 23:59:59", $tzObj);
|
||||
|
||||
usort($busyIntervals, function($a,$b){ return $a[0] <=> $b[0]; });
|
||||
|
||||
for ($i=0; $i<1440; $i++) {
|
||||
if ($candidate > $dayEnd) break;
|
||||
$candEnd = (clone $candidate)->modify("+$durationMin minutes");
|
||||
$conflict = false;
|
||||
foreach ($busyIntervals as $pair) {
|
||||
$bs = $pair[0]; $be = $pair[1];
|
||||
if ($candidate < $be && $candEnd > $bs) { $conflict = true; break; }
|
||||
}
|
||||
if (!$conflict) {
|
||||
return [
|
||||
'startIso' => $candidate->format(DateTime::RFC3339),
|
||||
'endIso' => $candEnd->format(DateTime::RFC3339),
|
||||
];
|
||||
}
|
||||
$candidate->modify('+1 minute');
|
||||
}
|
||||
$fallbackStart = new DateTime("$dateYmd $baseTime:00", $tzObj);
|
||||
$fallbackEnd = (clone $fallbackStart)->modify("+$durationMin minutes");
|
||||
return [
|
||||
'startIso' => $fallbackStart->format(DateTime::RFC3339),
|
||||
'endIso' => $fallbackEnd->format(DateTime::RFC3339),
|
||||
];
|
||||
}
|
||||
|
||||
private function print_usage()
|
||||
{
|
||||
echo "<h2>Usage</h2><pre>";
|
||||
echo "GET /index.php/debug-gcal?email=prenom.nom@domaine.com&date=2025-09-23&tz=America/Toronto&base=08:00&dur=1&calendar=primary\n";
|
||||
echo "</pre>";
|
||||
}
|
||||
}
|
||||
156
application/controllers/DiagGoogle.php
Normal file
156
application/controllers/DiagGoogle.php
Normal file
@ -0,0 +1,156 @@
|
||||
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class DiagGoogle extends CI_Controller
|
||||
{
|
||||
public function ping() { echo "OK"; }
|
||||
// DiagGoogle.php
|
||||
public function config()
|
||||
{
|
||||
$cfg = $this->config->item('google');
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($cfg, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
public function sa_file()
|
||||
{
|
||||
// on récupère la config (elle est autoloadée maintenant)
|
||||
$cfg = $this->config->item('google');
|
||||
$path = $cfg['credentials_path'] ?? '';
|
||||
|
||||
$out = [
|
||||
'credentials_path' => $path,
|
||||
'exists' => file_exists($path),
|
||||
'readable' => is_readable($path),
|
||||
'client_email' => null,
|
||||
];
|
||||
|
||||
if (is_readable($path)) {
|
||||
$j = json_decode(@file_get_contents($path), true);
|
||||
$out['client_email'] = $j['client_email'] ?? null;
|
||||
}
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($out, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
|
||||
}
|
||||
|
||||
public function token_drive_meta()
|
||||
{
|
||||
try {
|
||||
$this->load->library('GoogleServiceJWT');
|
||||
// Scope minimal pour tester: lecture des métadonnées Drive
|
||||
$scope = 'https://www.googleapis.com/auth/drive.metadata.readonly';
|
||||
$token = $this->googleservicejwt->getAccessToken($scope);
|
||||
echo $token ? "TOKEN_OK" : "TOKEN_FAIL";
|
||||
} catch (Throwable $e) {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo "ERR: ".$e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public function drive_access()
|
||||
{
|
||||
try {
|
||||
$cfg = $this->config->item('google');
|
||||
$driveId = $cfg['shared_drive_id'] ?? null;
|
||||
if (!$driveId) { echo "No shared_drive_id in config"; return; }
|
||||
|
||||
$this->load->library('GoogleServiceJWT');
|
||||
|
||||
// 🔧 Scope corrigé :
|
||||
$token = $this->googleservicejwt->getAccessToken('https://www.googleapis.com/auth/drive.readonly');
|
||||
|
||||
$url = 'https://www.googleapis.com/drive/v3/drives/'.rawurlencode($driveId);
|
||||
$ch = curl_init($url);
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.$token],
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_TIMEOUT => 20,
|
||||
]);
|
||||
$raw = curl_exec($ch);
|
||||
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
if ($code === 200) {
|
||||
echo $raw; // OK
|
||||
} else {
|
||||
echo json_encode(['code'=>$code, 'error'=>json_decode($raw, true)], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
|
||||
}
|
||||
} catch (Throwable $e) {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo "ERR: ".$e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public function drive_list()
|
||||
{
|
||||
try {
|
||||
$this->load->library('GoogleDriveDocs');
|
||||
$res = $this->googledrivedocs->listSharedDriveFolders(20); // 20 pour tester
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($res, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
|
||||
} catch (Throwable $e) {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo 'ERR: '.$e->getMessage();
|
||||
}
|
||||
}
|
||||
public function create_doc_test($folderId = null)
|
||||
{
|
||||
try {
|
||||
if (!$folderId) { echo "Fournis /DiagGoogle/create_doc_test/{folderId}"; return; }
|
||||
|
||||
// On utilise notre librairie sans Composer
|
||||
$this->load->library('GoogleDriveDocs');
|
||||
|
||||
$res = $this->googledrivedocs->createGoogleDocInFolder(
|
||||
$folderId,
|
||||
'TEST CI ' . date('Y-m-d H:i:s'),
|
||||
"Bonjour de MS1!\nCeci est un test automatique."
|
||||
);
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($res, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
|
||||
} catch (Throwable $e) {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo 'ERR: '.$e->getMessage();
|
||||
}
|
||||
}
|
||||
public function cal_list()
|
||||
{
|
||||
try {
|
||||
$this->load->library('GoogleServiceJWT');
|
||||
|
||||
// Optionnel: /DiagGoogle/cal_list?as=utilisateur@tondomaine.com
|
||||
$as = $this->input->get('as'); // impersonation si Domain-wide Delegation activée
|
||||
$token = $this->googleservicejwt->getAccessToken(
|
||||
'https://www.googleapis.com/auth/calendar.readonly',
|
||||
$as ?: null
|
||||
);
|
||||
|
||||
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList?maxResults=50';
|
||||
$ch = curl_init($url);
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_HTTPHEADER => ['Authorization: Bearer '.$token],
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_TIMEOUT => 20,
|
||||
]);
|
||||
$raw = curl_exec($ch);
|
||||
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
if ($code === 200) {
|
||||
echo $raw; // doit contenir "items": [ {id, summary, ...}, ... ]
|
||||
} else {
|
||||
echo json_encode(['code'=>$code, 'error'=>json_decode($raw, true)], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
|
||||
}
|
||||
} catch (Throwable $e) {
|
||||
header('Content-Type: text/plain; charset=utf-8'); echo 'ERR: '.$e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
78
application/controllers/DynamicForm.php
Normal file
78
application/controllers/DynamicForm.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class DynamicForm extends CI_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// 👉 ICI : chargement de la base de données
|
||||
$this->load->database();
|
||||
|
||||
// chargements nécessaires
|
||||
$this->load->model('Form_fields_model');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->helper(['form', 'url']);
|
||||
}
|
||||
|
||||
public function show($form_key)
|
||||
{
|
||||
$fields = $this->Form_fields_model->get_active_fields($form_key);
|
||||
|
||||
if (empty($fields)) {
|
||||
show_error('Formulaire introuvable', 404);
|
||||
}
|
||||
|
||||
foreach ($fields as $f) {
|
||||
if (!empty($f['rules'])) {
|
||||
$this->form_validation->set_rules(
|
||||
$f['name'],
|
||||
$f['label'],
|
||||
$f['rules']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('dynamic_form', [
|
||||
'form_key' => $form_key,
|
||||
'fields' => $fields
|
||||
]);
|
||||
}
|
||||
|
||||
public function submit($form_key)
|
||||
{
|
||||
$fields = $this->Form_fields_model->get_active_fields($form_key);
|
||||
|
||||
foreach ($fields as $f) {
|
||||
if (!empty($f['rules'])) {
|
||||
$this->form_validation->set_rules(
|
||||
$f['name'],
|
||||
$f['label'],
|
||||
$f['rules']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->form_validation->run() === FALSE) {
|
||||
$this->show($form_key);
|
||||
return;
|
||||
}
|
||||
|
||||
// 👇 ICI on sauvegarde
|
||||
$data = [];
|
||||
foreach ($fields as $f) {
|
||||
$name = $f['name'];
|
||||
$data[$name] = $this->input->post($name);
|
||||
}
|
||||
|
||||
$this->db->insert('form_data_test', [
|
||||
'form_key' => $form_key,
|
||||
'data' => json_encode($data, JSON_UNESCAPED_UNICODE)
|
||||
]);
|
||||
|
||||
echo 'OK : données sauvegardées';
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
300
application/controllers/Fournisseurs.php
Normal file
300
application/controllers/Fournisseurs.php
Normal file
@ -0,0 +1,300 @@
|
||||
<?php
|
||||
class Fournisseurs extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('fournisseurs');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Fournisseurs_model');
|
||||
$this->lang->load('fournisseurs');
|
||||
$this->load->model('Tache_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->model('FxForm_model');
|
||||
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('fournisseurs/header' );
|
||||
$this->load->view('fournisseurs/list' );
|
||||
$this->load->view('fournisseurs/footer' );
|
||||
}
|
||||
public function form($mem_id,$error='')
|
||||
{
|
||||
$error = []; // initialise comme tableau
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
$error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Fournisseurs_model->mod_getForminfo($mem_id);
|
||||
$data['contacts']=$this->Fournisseurs_model->mod_listcontact($mem_id);
|
||||
|
||||
$this->load->view('fournisseurs/header' );
|
||||
$this->load->view('fournisseurs/form',$data );
|
||||
$this->load->view('fournisseurs/footer',$error );
|
||||
}
|
||||
public function loadDatabad($record=0,$filtre1='',$filtre2='',$filtre3='') {
|
||||
|
||||
$filtre1=($filtre1=='null'?'':$filtre1);
|
||||
$filtre2=($filtre2=='null'?'':$filtre2);
|
||||
$recordPerPage = 10;
|
||||
$config["cur_page"] = $record;
|
||||
if($record != 0){
|
||||
$record = ($record-1) * $recordPerPage;
|
||||
}
|
||||
|
||||
$recordCount2 = $this->Fournisseurs_model->mod_getRecordCount();
|
||||
|
||||
$recordCount = $this->Fournisseurs_model->mod_getRecordCountfilter($filtre1,$filtre2,$filtre3);
|
||||
$client_list = $this->Fournisseurs_model->mod_getRecords($record,$recordPerPage,$filtre1,$filtre2,$filtre3);
|
||||
$config['base_url'] = base_url().'index.php/Fournisseurs/loadData';
|
||||
$config['use_page_numbers'] = TRUE;
|
||||
$config['next_link'] = 'Next';
|
||||
$config['prev_link'] = 'Previous';
|
||||
$config['total_rows'] = $recordCount;
|
||||
$config['per_page'] = $recordPerPage;
|
||||
|
||||
$choice = $config["total_rows"] / $config["per_page"];
|
||||
$config["uri_segment"] = 2;
|
||||
$config["num_links"] = 2;
|
||||
$config['full_tag_open'] = '<div ><ul class="pagination">';
|
||||
$config['full_tag_close'] = '</ul></div><!--pagination-->';
|
||||
|
||||
$config['first_link'] = '« First';
|
||||
$config['first_tag_open'] = '<li class="prev page">';
|
||||
$config['first_tag_close'] = '</li>';
|
||||
|
||||
$config['last_link'] = 'Last »';
|
||||
$config['last_tag_open'] = '<li class="next page">';
|
||||
$config['last_tag_close'] = '</li>';
|
||||
|
||||
$config['next_link'] = 'Next →';
|
||||
$config['next_tag_open'] = '<li class="next page">';
|
||||
$config['next_tag_close'] = '</li>';
|
||||
|
||||
$config['prev_link'] = '← Previous';
|
||||
$config['prev_tag_open'] = '<li class="prev page">';
|
||||
$config['prev_tag_close'] = '</li>';
|
||||
|
||||
$config['cur_tag_open'] = '<li class="active"><a href="">';
|
||||
$config['cur_tag_close'] = '</a></li>';
|
||||
|
||||
$config['num_tag_open'] = '<li class="page">';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$this->pagination->initialize($config);
|
||||
$data['pagination'] = $this->pagination->create_links();
|
||||
$data['recordCount']=$recordCount2;
|
||||
// creation du tableau
|
||||
|
||||
|
||||
// prepare header
|
||||
|
||||
$mem_link_new=anchor('fournisseurs/form/0' , ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-pencil" ');
|
||||
$header=array($mem_link_new,
|
||||
'Compagnie',
|
||||
'Ville',
|
||||
'Type',
|
||||
|
||||
|
||||
'<i class="fa fa-fw fa-phone text-muted hidden-md hidden-sm hidden-xs"></i>Téléphone ');
|
||||
|
||||
$nbitem=0;
|
||||
|
||||
|
||||
// filter
|
||||
global $mem_data;
|
||||
$data_row = array();
|
||||
$data_row[]=array('data'=>'Filtre', 'align' => 'left');
|
||||
// -------------------------------------------------------------------------
|
||||
// $mem_champ='filtre_1';
|
||||
// $mem_value=trim($filtre1);
|
||||
// $this->FxForm_model->fxinputtxt($mem_champ,$mem_value,'','','','filtre_1');
|
||||
|
||||
// $mem_filtre=form_input($mem_data['input'][$mem_champ]);
|
||||
// $data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
// -------------------------------------------------------------------------
|
||||
$mem_champ='filtre_2';
|
||||
$mem_value=trim($filtre2);
|
||||
$this->FxForm_model->fxinputtxt($mem_champ,$mem_value,'','','','filtre_2');
|
||||
$mem_filtre=form_input($mem_data['input'][$mem_champ]);
|
||||
$data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
$data_row[]=array('data'=>"", 'align' => 'left');
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
$mem_champ='filtre_3';
|
||||
$mem_value=$filtre3;
|
||||
$mem_data['select'][$mem_champ]['choix']=$this->Config_model->conf_getGenresFournisseur('fr',true);
|
||||
// value multipli select
|
||||
//$mem_value = explode(',', $mem_value);
|
||||
$mem_filtre=form_dropdown($mem_champ,$mem_data['select'][$mem_champ]['choix'],$mem_value,'class="filtre_3"');
|
||||
|
||||
$data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
|
||||
// echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
||||
// prépare les donnés du tableau
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$tabular_data[] = $data_row;
|
||||
|
||||
|
||||
|
||||
|
||||
foreach($client_list as $row)
|
||||
{ $nbitem++;
|
||||
// faire le link pour edit
|
||||
$mem_link_edit=anchor('fournisseurs/form/'.$row['com_id'], ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-edit" ');
|
||||
// <a href="javascript:void(0);" class="btn btn-primary btn-circle"><i ></i></a> ';
|
||||
$data_row = array();
|
||||
$data_row[] = array('data'=> $mem_link_edit, 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['com_num_client'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_compagnie'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_ville'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['list_type'], 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['rep_prenom']." ".$row['rep_nom'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_telephone'], 'align' => 'left');
|
||||
|
||||
$tabular_data[] = $data_row;
|
||||
|
||||
}
|
||||
|
||||
|
||||
$template = array(
|
||||
'table_open' => '<table border="0" cellpadding="4" cellspacing="0" class="table table-striped table-bordered table-hover">',
|
||||
|
||||
'thead_open' => '<thead>',
|
||||
'thead_close' => '</thead>',
|
||||
|
||||
'heading_row_start' => '<tr>',
|
||||
'heading_row_end' => '</tr>',
|
||||
'heading_cell_start' => '<th>',
|
||||
'heading_cell_end' => '</th>',
|
||||
|
||||
'tbody_open' => '<tbody>',
|
||||
'tbody_close' => '</tbody>',
|
||||
|
||||
'row_start' => '<tr>',
|
||||
'row_end' => '</tr>',
|
||||
'cell_start' => '<td>',
|
||||
'cell_end' => '</td>',
|
||||
|
||||
'row_alt_start' => '<tr>',
|
||||
'row_alt_end' => '</tr>',
|
||||
'cell_alt_start' => '<td>',
|
||||
'cell_alt_end' => '</td>',
|
||||
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
|
||||
$this->table->set_template($template);
|
||||
$this->table->set_heading($header);
|
||||
$this->table->set_heading($header);
|
||||
$tableau_sortie= $this->table->generate($tabular_data);
|
||||
|
||||
|
||||
|
||||
$data['empData'] = $tableau_sortie;
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='', $listactive , $model='liste',$excel=0,$filtre4='') {
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur','mem_select_4',$filtre4,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur','mem_listactive',$listactive,1,0);
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
$filtre4=urldecode($filtre4);
|
||||
$data=$this->Fournisseurs_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$listactive,$model,$excel,$filtre4);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function saveRecord($id)
|
||||
{
|
||||
|
||||
if ($id==0){
|
||||
$id=$this->Fournisseurs_model->mod_createRecordbd($_POST,'com_');
|
||||
|
||||
if ($id!=0)
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
} else {
|
||||
$ok=$this->Fournisseurs_model->mod_saveRecordbd($id,$_POST,'com_');
|
||||
if ($ok)
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
|
||||
public function deletecontact($id,$con_id){
|
||||
$this->Fournisseurs_model->mod_deleteRecordbdcontact($id);
|
||||
$error=array('type'=>'success','message'=>'Contact effacé');
|
||||
$this->form($con_id,$error);
|
||||
}
|
||||
|
||||
public function saveRecordcontact($id)
|
||||
{
|
||||
|
||||
$mem_con_id=0;
|
||||
if($_POST['button']=='new'){
|
||||
$mem_con_id=0;
|
||||
|
||||
}else{
|
||||
$mem_con_id=$_POST['button'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
$new_post=array();
|
||||
|
||||
foreach($_POST as $key => $value ){
|
||||
$pieces = explode("/", $key);
|
||||
if(isset($pieces[1])){
|
||||
if ($pieces[0]== $mem_con_id){
|
||||
$new_post[$pieces[1]]=$value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($_POST['button']=='new'){
|
||||
$this->Fournisseurs_model->mod_createRecordbdcontact($new_post,'con_',$id);
|
||||
|
||||
}else{
|
||||
$this->Fournisseurs_model->mod_editRecordbdcontact($new_post,'con_',$mem_con_id);
|
||||
|
||||
}
|
||||
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
|
||||
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
}
|
||||
339
application/controllers/Fournisseursprojets.php
Normal file
339
application/controllers/Fournisseursprojets.php
Normal file
@ -0,0 +1,339 @@
|
||||
<?php
|
||||
class Fournisseursprojets extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('fournisseursprojets');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Fournisseursprojets_model');
|
||||
$this->lang->load('fournisseursprojets');
|
||||
$this->load->model('Tache_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->model('FxForm_model');
|
||||
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('fournisseursprojets/header' );
|
||||
$this->load->view('fournisseursprojets/list' );
|
||||
$this->load->view('fournisseursprojets/footer' );
|
||||
}
|
||||
public function form($mem_id,$error='')
|
||||
{
|
||||
$error = []; // initialise comme tableau
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
$error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Fournisseursprojets_model->mod_getForminfo($mem_id);
|
||||
$data['contacts']=$this->Fournisseursprojets_model->mod_listcontact($mem_id);
|
||||
|
||||
$this->load->view('fournisseursprojets/header' );
|
||||
$this->load->view('fournisseursprojets/form',$data );
|
||||
$this->load->view('fournisseursprojets/footer',$error );
|
||||
}
|
||||
public function loadDatabad($record=0,$filtre1='',$filtre2='',$filtre3='') {
|
||||
|
||||
$filtre1=($filtre1=='null'?'':$filtre1);
|
||||
$filtre2=($filtre2=='null'?'':$filtre2);
|
||||
$recordPerPage = 10;
|
||||
$config["cur_page"] = $record;
|
||||
if($record != 0){
|
||||
$record = ($record-1) * $recordPerPage;
|
||||
}
|
||||
|
||||
$recordCount2 = $this->Fournisseursprojets_model->mod_getRecordCount();
|
||||
|
||||
$recordCount = $this->Fournisseursprojets_model->mod_getRecordCountfilter($filtre1,$filtre2,$filtre3);
|
||||
$client_list = $this->Fournisseursprojets_model->mod_getRecords($record,$recordPerPage,$filtre1,$filtre2,$filtre3);
|
||||
$config['base_url'] = base_url().'index.php/Fournisseursprojets/loadData';
|
||||
$config['use_page_numbers'] = TRUE;
|
||||
$config['next_link'] = 'Next';
|
||||
$config['prev_link'] = 'Previous';
|
||||
$config['total_rows'] = $recordCount;
|
||||
$config['per_page'] = $recordPerPage;
|
||||
|
||||
$choice = $config["total_rows"] / $config["per_page"];
|
||||
$config["uri_segment"] = 2;
|
||||
$config["num_links"] = 2;
|
||||
$config['full_tag_open'] = '<div ><ul class="pagination">';
|
||||
$config['full_tag_close'] = '</ul></div><!--pagination-->';
|
||||
|
||||
$config['first_link'] = '« First';
|
||||
$config['first_tag_open'] = '<li class="prev page">';
|
||||
$config['first_tag_close'] = '</li>';
|
||||
|
||||
$config['last_link'] = 'Last »';
|
||||
$config['last_tag_open'] = '<li class="next page">';
|
||||
$config['last_tag_close'] = '</li>';
|
||||
|
||||
$config['next_link'] = 'Next →';
|
||||
$config['next_tag_open'] = '<li class="next page">';
|
||||
$config['next_tag_close'] = '</li>';
|
||||
|
||||
$config['prev_link'] = '← Previous';
|
||||
$config['prev_tag_open'] = '<li class="prev page">';
|
||||
$config['prev_tag_close'] = '</li>';
|
||||
|
||||
$config['cur_tag_open'] = '<li class="active"><a href="">';
|
||||
$config['cur_tag_close'] = '</a></li>';
|
||||
|
||||
$config['num_tag_open'] = '<li class="page">';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$this->pagination->initialize($config);
|
||||
$data['pagination'] = $this->pagination->create_links();
|
||||
$data['recordCount']=$recordCount2;
|
||||
// creation du tableau
|
||||
|
||||
|
||||
// prepare header
|
||||
|
||||
$mem_link_new=anchor('fournisseursprojets/form/0' , ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-pencil" ');
|
||||
$header=array($mem_link_new,
|
||||
'Compagnie',
|
||||
'Ville',
|
||||
'Type',
|
||||
|
||||
|
||||
'<i class="fa fa-fw fa-phone text-muted hidden-md hidden-sm hidden-xs"></i>Téléphone ');
|
||||
|
||||
$nbitem=0;
|
||||
|
||||
|
||||
// filter
|
||||
global $mem_data;
|
||||
$data_row = array();
|
||||
$data_row[]=array('data'=>'Filtre', 'align' => 'left');
|
||||
// -------------------------------------------------------------------------
|
||||
// $mem_champ='filtre_1';
|
||||
// $mem_value=trim($filtre1);
|
||||
// $this->FxForm_model->fxinputtxt($mem_champ,$mem_value,'','','','filtre_1');
|
||||
|
||||
// $mem_filtre=form_input($mem_data['input'][$mem_champ]);
|
||||
// $data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
// -------------------------------------------------------------------------
|
||||
$mem_champ='filtre_2';
|
||||
$mem_value=trim($filtre2);
|
||||
$this->FxForm_model->fxinputtxt($mem_champ,$mem_value,'','','','filtre_2');
|
||||
$mem_filtre=form_input($mem_data['input'][$mem_champ]);
|
||||
$data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
$data_row[]=array('data'=>"", 'align' => 'left');
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
$mem_champ='filtre_3';
|
||||
$mem_value=$filtre3;
|
||||
$mem_data['select'][$mem_champ]['choix']=$this->Config_model->conf_getGenresFournisseur('fr',true);
|
||||
// value multipli select
|
||||
//$mem_value = explode(',', $mem_value);
|
||||
$mem_filtre=form_dropdown($mem_champ,$mem_data['select'][$mem_champ]['choix'],$mem_value,'class="filtre_3"');
|
||||
|
||||
$data_row[]=array('data'=>$mem_filtre, 'align' => 'left');
|
||||
|
||||
// echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
||||
// prépare les donnés du tableau
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$tabular_data[] = $data_row;
|
||||
|
||||
|
||||
|
||||
|
||||
foreach($client_list as $row)
|
||||
{ $nbitem++;
|
||||
// faire le link pour edit
|
||||
$mem_link_edit=anchor('fournisseursprojets/form/'.$row['com_id'], ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-edit" ');
|
||||
// <a href="javascript:void(0);" class="btn btn-primary btn-circle"><i ></i></a> ';
|
||||
$data_row = array();
|
||||
$data_row[] = array('data'=> $mem_link_edit, 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['com_num_client'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_compagnie'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_ville'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['list_type'], 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['rep_prenom']." ".$row['rep_nom'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>$row['com_telephone'], 'align' => 'left');
|
||||
|
||||
$tabular_data[] = $data_row;
|
||||
|
||||
}
|
||||
|
||||
|
||||
$template = array(
|
||||
'table_open' => '<table border="0" cellpadding="4" cellspacing="0" class="table table-striped table-bordered table-hover">',
|
||||
|
||||
'thead_open' => '<thead>',
|
||||
'thead_close' => '</thead>',
|
||||
|
||||
'heading_row_start' => '<tr>',
|
||||
'heading_row_end' => '</tr>',
|
||||
'heading_cell_start' => '<th>',
|
||||
'heading_cell_end' => '</th>',
|
||||
|
||||
'tbody_open' => '<tbody>',
|
||||
'tbody_close' => '</tbody>',
|
||||
|
||||
'row_start' => '<tr>',
|
||||
'row_end' => '</tr>',
|
||||
'cell_start' => '<td>',
|
||||
'cell_end' => '</td>',
|
||||
|
||||
'row_alt_start' => '<tr>',
|
||||
'row_alt_end' => '</tr>',
|
||||
'cell_alt_start' => '<td>',
|
||||
'cell_alt_end' => '</td>',
|
||||
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
|
||||
$this->table->set_template($template);
|
||||
$this->table->set_heading($header);
|
||||
$this->table->set_heading($header);
|
||||
$tableau_sortie= $this->table->generate($tabular_data);
|
||||
|
||||
|
||||
|
||||
$data['empData'] = $tableau_sortie;
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='', $listactive , $model='liste') {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur_projets','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur_projets','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_fournisseur_projets','mem_listactive',$listactive,1,0);
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
|
||||
$data=$this->Fournisseursprojets_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$listactive,$model);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function saveRecord($id)
|
||||
{
|
||||
|
||||
if ($id==0){
|
||||
$id=$this->Fournisseursprojets_model->mod_createRecordbd($_POST,'com_');
|
||||
|
||||
if ($id!=0)
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
} else {
|
||||
$ok=$this->Fournisseursprojets_model->mod_saveRecordbd($id,$_POST,'com_');
|
||||
if ($ok)
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
|
||||
public function deletecontact($id,$con_id){
|
||||
$this->Fournisseursprojets_model->mod_deleteRecordbdcontact($id);
|
||||
$error=array('type'=>'success','message'=>'Contact effacé');
|
||||
$this->form($con_id,$error);
|
||||
}
|
||||
public function test(){echo ('allo');
|
||||
|
||||
//$mem_projets=$this->Fournisseursprojets_model->mod_listprojetsproduit(189);
|
||||
|
||||
// <a href="javascript:void(0);" class="btn btn-primary btn-circle"><i ></i></a> ';
|
||||
$data_row = array();
|
||||
$data_row[] = array('data'=> 'ttt', 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['com_num_client'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>'ttt', 'align' => 'left');
|
||||
$data_row[] = array('data'=>'ttt', 'align' => 'left');
|
||||
$data_row[] = array('data'=>'ttt', 'align' => 'left');
|
||||
// $data_row[] = array('data'=>$row['rep_prenom']." ".$row['rep_nom'], 'align' => 'left');
|
||||
$data_row[] = array('data'=>'ttt', 'align' => 'left');
|
||||
$tabular_data[] = $data_row;
|
||||
// print_r( $row);
|
||||
|
||||
$mem_projets=$this->Fournisseursprojets_model->mod_listprojetsproduit(189,1);
|
||||
// $mem_projets=$this->mod_listprojetsproduit(74);
|
||||
|
||||
// $projets=$this->Config_model->conf_getprojetsclients($row['com_id']);
|
||||
|
||||
// $mem_projets="";
|
||||
// $mem_projets_client='';
|
||||
// foreach($projets as $value){
|
||||
// $mem_link_edit=anchor('projets/form/'.$value['proj_id'], ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-edit statut_'.$value['proj_etape'].'"' );
|
||||
// $mem_projets=$mem_projets. $mem_link_edit;
|
||||
// $mem_projets=$mem_projets.' '.$value['proj_numero'].' '.$value['proj_nom'].'<br>';
|
||||
// $mem_projets_client=' Création de projet <br>';
|
||||
// }
|
||||
|
||||
|
||||
$data_row = array();
|
||||
$data_row[] = array('data'=>'' );
|
||||
$data_row[] = array('data'=>$mem_projets,'colspan' => 6 );
|
||||
|
||||
$tabular_data[] = $data_row;
|
||||
|
||||
print_r($mem_projets);
|
||||
|
||||
|
||||
}
|
||||
public function saveRecordcontact($id)
|
||||
{
|
||||
|
||||
$mem_con_id=0;
|
||||
if($_POST['button']=='new'){
|
||||
$mem_con_id=0;
|
||||
|
||||
}else{
|
||||
$mem_con_id=$_POST['button'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
$new_post=array();
|
||||
|
||||
foreach($_POST as $key => $value ){
|
||||
$pieces = explode("/", $key);
|
||||
if(isset($pieces[1])){
|
||||
if ($pieces[0]== $mem_con_id){
|
||||
$new_post[$pieces[1]]=$value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($_POST['button']=='new'){
|
||||
$this->Fournisseursprojets_model->mod_createRecordbdcontact($new_post,'con_',$id);
|
||||
|
||||
}else{
|
||||
$this->Fournisseursprojets_model->mod_editRecordbdcontact($new_post,'con_',$mem_con_id);
|
||||
|
||||
}
|
||||
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
|
||||
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
}
|
||||
105
application/controllers/GoogleDrive.php
Normal file
105
application/controllers/GoogleDrive.php
Normal file
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class GoogleDrive extends CI_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->library('GoogleServiceJWT');
|
||||
$this->load->library('GoogleDriveDocs'); // -> $this->googledrivedocs
|
||||
}
|
||||
|
||||
/** Compat historique: GET /index.php/GoogleDrive/list_folders?parent_id=... */
|
||||
public function list_folders()
|
||||
{
|
||||
$parent_id = $this->input->get('parent_id', true);
|
||||
if (!$parent_id) {
|
||||
return $this->output->set_status_header(400)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error' => 'parent_id requis']));
|
||||
}
|
||||
|
||||
try {
|
||||
$res = $this->googledrivedocs->listChildrenFolders($parent_id);
|
||||
$folders = [];
|
||||
foreach (($res['files'] ?? []) as $f) {
|
||||
if (!empty($f['id']) && !empty($f['name'])) {
|
||||
$folders[] = ['id' => $f['id'], 'name' => $f['name']];
|
||||
}
|
||||
}
|
||||
usort($folders, fn($a,$b)=>strcasecmp($a['name'],$b['name']));
|
||||
|
||||
return $this->output->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['folders' => $folders]));
|
||||
} catch (Throwable $e) {
|
||||
log_message('error', '[GoogleDrive/list_folders] '.$e->getMessage());
|
||||
return $this->output->set_status_header(500)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error'=>true,'message'=>$e->getMessage()]));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /index.php/GoogleDrive/folders
|
||||
* - mode=children&parent_id=... -> {folders:[{id,name},...]}
|
||||
* - mode=ancestors&base_id=...&folder_id=... -> {chain:[{id,name},...]}
|
||||
*/
|
||||
public function folders()
|
||||
{
|
||||
$mode = $this->input->get('mode', true) ?: 'children';
|
||||
|
||||
if ($mode === 'children') {
|
||||
return $this->list_folders(); // réutilise la logique ci-dessus
|
||||
}
|
||||
|
||||
if ($mode === 'ancestors') {
|
||||
$folder_id = $this->input->get('folder_id', true);
|
||||
$base_id = $this->input->get('base_id', true);
|
||||
if (!$folder_id || !$base_id) {
|
||||
return $this->output->set_status_header(400)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error' => 'folder_id et base_id requis']));
|
||||
}
|
||||
|
||||
if (!method_exists($this->googledrivedocs, 'getFileMeta')) {
|
||||
return $this->output->set_status_header(501)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error'=>true,'message'=>'getFileMeta() manquant dans GoogleDriveDocs']));
|
||||
}
|
||||
|
||||
try {
|
||||
$chain = [];
|
||||
$cur = $folder_id;
|
||||
$guard = 0;
|
||||
while ($cur && $guard < 100) {
|
||||
$meta = $this->googledrivedocs->getFileMeta($cur);
|
||||
if (!$meta) break;
|
||||
$chain[] = ['id'=>$meta['id'], 'name'=>$meta['name'] ?? $meta['id']];
|
||||
if ($cur === $base_id) break;
|
||||
$parents = $meta['parents'] ?? [];
|
||||
$cur = $parents[0] ?? null;
|
||||
$guard++;
|
||||
}
|
||||
$hasBase = false;
|
||||
foreach ($chain as $n) { if ($n['id'] === $base_id) { $hasBase = true; break; } }
|
||||
if (!$hasBase) {
|
||||
return $this->output->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['chain' => []]));
|
||||
}
|
||||
$chain = array_reverse($chain);
|
||||
return $this->output->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['chain'=>$chain]));
|
||||
} catch (Throwable $e) {
|
||||
log_message('error', '[GoogleDrive/folders ancestors] '.$e->getMessage());
|
||||
return $this->output->set_status_header(500)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error'=>true,'message'=>$e->getMessage()]));
|
||||
}
|
||||
}
|
||||
|
||||
return $this->output->set_status_header(400)
|
||||
->set_content_type('application/json; charset=utf-8')
|
||||
->set_output(json_encode(['error' => 'mode invalide']));
|
||||
}
|
||||
}
|
||||
36
application/controllers/GoogleDrive_test.php
Normal file
36
application/controllers/GoogleDrive_test.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class GoogleDrive_test extends CI_Controller
|
||||
{
|
||||
|
||||
public function test_google()
|
||||
{
|
||||
require_once APPPATH . '../vendor/autoload.php';
|
||||
|
||||
$client = new Google_Client();
|
||||
$client->setAuthConfig(APPPATH . 'credentials/credentials.json');
|
||||
$client->addScope(Google_Service_Drive::DRIVE_METADATA_READONLY);
|
||||
$client->setRedirectUri('https://ms1crmdev.progiweb.net/index.php/GoogleDrive_test/test_google');
|
||||
$client->setAccessType('offline');
|
||||
$client->setPrompt('consent');
|
||||
|
||||
if (!isset($_GET['code'])) {
|
||||
// Redirige vers la page de consentement
|
||||
$auth_url = $client->createAuthUrl();
|
||||
header('Location: ' . filter_var($auth_url, FILTER_SANITIZE_URL));
|
||||
exit;
|
||||
} else {
|
||||
// Récupère et enregistre le token
|
||||
$token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
|
||||
if (isset($token['access_token'])) {
|
||||
file_put_contents(APPPATH . 'credentials/token.json', json_encode($token));
|
||||
echo '✅ Token enregistré avec succès.';
|
||||
} else {
|
||||
echo '❌ Erreur de token : ';
|
||||
print_r($token);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
83
application/controllers/Home.php
Normal file
83
application/controllers/Home.php
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
class Home extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('home');
|
||||
$this->load->model('Home_model');
|
||||
$this->load->model('Config_model');
|
||||
$this->lang->load('home');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('session');
|
||||
$this->load->model('FxForm_model');
|
||||
$this->load->model('Projets_model');
|
||||
$this->load->helper('form');
|
||||
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
||||
$this->load->view('home/header' );
|
||||
$this->load->view('home/calendar');
|
||||
$this->load->view('home/footer' );
|
||||
}
|
||||
|
||||
public function test(){
|
||||
$data=$this->Tache_model->returnparjour(55);
|
||||
?><pre>
|
||||
<?php
|
||||
print_r($data);
|
||||
?>
|
||||
</pre> <?php
|
||||
}
|
||||
public function returnparjour($filtre1=0,$filtre2=0,$filtre3=0)
|
||||
{
|
||||
|
||||
$filtre3=1;
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_3',$filtre3,1,0);
|
||||
if($filtre3==0) {
|
||||
|
||||
//projets date annule
|
||||
$data=$this->Projets_model->mod_listprojetdate_annule_count_jour($filtre1,'', '','',$filtre2);
|
||||
$sortie['projets_annule']=$data['jour'];
|
||||
}
|
||||
if($filtre3==1) {
|
||||
// taches
|
||||
$data=$this->Tache_model->mod_listtache_count_jour($filtre1);
|
||||
|
||||
$sortie['taches']=$data['jour'];
|
||||
}
|
||||
if($filtre3==2) {
|
||||
//projets confirmation
|
||||
$data=$this->Projets_model->mod_listprojet_count_jour($filtre1,'', '','',$filtre2);
|
||||
$sortie['projets_conf']=$data['jour'];
|
||||
}
|
||||
if($filtre3==3) {
|
||||
//projets date debut
|
||||
$data=$this->Projets_model->mod_listprojetdebut_count_jour($filtre1,'', '','',$filtre2);
|
||||
$sortie['projets_debut']=$data['jour'];
|
||||
}
|
||||
if($filtre3==4) {
|
||||
//projets date debut
|
||||
$data=$this->Projets_model->mod_listprojetdebut_count_jour_dossard($filtre1,'', '','',$filtre2);
|
||||
$sortie['projets_dossard']=$data['jour'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo json_encode($sortie);
|
||||
|
||||
}
|
||||
public function update_filtre($filtre1=0,$filtre2=0,$filtre3=0)
|
||||
{
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_3',$filtre3,1,0);
|
||||
|
||||
echo json_encode('ok');
|
||||
|
||||
}
|
||||
}
|
||||
32
application/controllers/Inventaire.php
Normal file
32
application/controllers/Inventaire.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
class Inventaire extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
$ci4_url = base_url('v4/dynamic/list/inventaire_test');
|
||||
|
||||
$cookieHeader = $_SERVER['HTTP_COOKIE'] ?? '';
|
||||
|
||||
$context = stream_context_create([
|
||||
'http' => [
|
||||
'method' => 'GET',
|
||||
'header' => "Cookie: {$cookieHeader}\r\n" .
|
||||
"X-Forwarded-For: " . ($_SERVER['REMOTE_ADDR'] ?? '') . "\r\n",
|
||||
'timeout' => 10
|
||||
]
|
||||
]);
|
||||
|
||||
$html = @file_get_contents($ci4_url, false, $context);
|
||||
|
||||
include("inc/header.php");
|
||||
include("inc/nav.php");
|
||||
include("inc/ribbon.php");
|
||||
|
||||
echo '<div id="content">';
|
||||
echo ($html !== false) ? $html : 'ERREUR: impossible de charger CI4';
|
||||
echo '</div>';
|
||||
|
||||
include("inc/footer.php");
|
||||
include("inc/scripts.php");
|
||||
}
|
||||
}
|
||||
1
application/controllers/Jira.php
Normal file
1
application/controllers/Jira.php
Normal file
@ -0,0 +1 @@
|
||||
<?php
|
||||
123
application/controllers/Login.php
Normal file
123
application/controllers/Login.php
Normal file
@ -0,0 +1,123 @@
|
||||
<?php
|
||||
class Login extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('login');
|
||||
$this->lang->load('login');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
|
||||
$this->load->database();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
error_log('LOGIN PAGE DISPLAYED. COOKIE derniere_page=' . ($_COOKIE['derniere_page'] ?? 'NONE'));
|
||||
error_log('LOGIN SESSION: '.print_r($this->session->userdata(), true));
|
||||
$data['test']='ss';
|
||||
if (!empty($_SERVER['HTTP_REFERER'])) {
|
||||
$this->session->set_userdata('redirect_after_login', $_GET['redirect'] ?? '/');
|
||||
}
|
||||
|
||||
$this->load->view('login/login',$data );
|
||||
|
||||
$this->load->view('login/footer', $data);
|
||||
}
|
||||
|
||||
|
||||
public function view($page = 'home')
|
||||
{
|
||||
if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))
|
||||
{
|
||||
// Whoops, we don't have a page for that!
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['title'] = ucfirst($page); // Capitalize the first letter
|
||||
|
||||
$this->load->view('templates/header', $data);
|
||||
$this->load->view('pages/'.$page, $data);
|
||||
$this->load->view('templates/footer', $data);
|
||||
}
|
||||
public function valide()
|
||||
{error_log('LOGIN VALIDATION START');
|
||||
$this->db->select('*');
|
||||
$this->db->from('usa_usagers');
|
||||
$this->db->where("usa_login ", $_POST['user']);
|
||||
|
||||
$query = $this->db->get();
|
||||
$sortie = $query->row();
|
||||
|
||||
if ($sortie != null) {
|
||||
|
||||
if ($sortie->usa_password == $_POST['password']) {
|
||||
|
||||
$newdata = array(
|
||||
'username' => $sortie->usa_prenom.' '.$sortie->usa_nom,
|
||||
'email' => $sortie->usa_courriel,
|
||||
'id' => $sortie->usa_id,
|
||||
'logged_in' => TRUE
|
||||
);
|
||||
|
||||
$this->session->set_userdata($newdata);
|
||||
|
||||
// ===== AJOUT ICI =====
|
||||
$token = bin2hex(random_bytes(32));
|
||||
|
||||
$this->db->insert('auth_tokens', [
|
||||
'user_id' => $sortie->usa_id,
|
||||
'token' => $token,
|
||||
'expires_at' => date('Y-m-d H:i:s', time()+86400),
|
||||
'ip' => $_SERVER['REMOTE_ADDR'] ?? null,
|
||||
'user_agent' => $_SERVER['HTTP_USER_AGENT'] ?? null
|
||||
]);
|
||||
|
||||
setcookie(
|
||||
'auth_token',
|
||||
$token,
|
||||
time()+86400,
|
||||
'/',
|
||||
'',
|
||||
isset($_SERVER['HTTPS']),
|
||||
true
|
||||
);
|
||||
|
||||
|
||||
|
||||
// ===== FIN AJOUT =====
|
||||
|
||||
$page = $_COOKIE['derniere_page'] ?? null;
|
||||
|
||||
if ($page) {
|
||||
setcookie('derniere_page','',time()-3600,'/');
|
||||
header("Location: ".$page);
|
||||
exit;
|
||||
}
|
||||
redirect('/');
|
||||
|
||||
}
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
public function logout()
|
||||
{
|
||||
|
||||
|
||||
$token = $_COOKIE['auth_token'] ?? null;
|
||||
|
||||
if ($token) {
|
||||
$this->db->where('token', $token);
|
||||
$this->db->delete('auth_tokens');
|
||||
}
|
||||
|
||||
setcookie('auth_token','',time()-3600,'/');
|
||||
|
||||
$this->session->sess_destroy();
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
}
|
||||
102
application/controllers/Loginavantpasv4.php
Normal file
102
application/controllers/Loginavantpasv4.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
class Login extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('login');
|
||||
$this->lang->load('login');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
|
||||
$this->load->database();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$data['test']='ss';
|
||||
|
||||
$this->load->view('login/login',$data );
|
||||
|
||||
$this->load->view('login/footer', $data);
|
||||
}
|
||||
|
||||
|
||||
public function view($page = 'home')
|
||||
{
|
||||
if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))
|
||||
{
|
||||
// Whoops, we don't have a page for that!
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['title'] = ucfirst($page); // Capitalize the first letter
|
||||
|
||||
$this->load->view('templates/header', $data);
|
||||
$this->load->view('pages/'.$page, $data);
|
||||
$this->load->view('templates/footer', $data);
|
||||
}
|
||||
public function valide()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('usa_usagers');
|
||||
$this->db->where("usa_login ", $_POST['user']);
|
||||
|
||||
$query = $this->db->get();
|
||||
$sortie = $query->row();
|
||||
|
||||
if ($sortie != null) {
|
||||
|
||||
if ($sortie->usa_password == $_POST['password']) {
|
||||
|
||||
$newdata = array(
|
||||
'username' => $sortie->usa_prenom.' '.$sortie->usa_nom,
|
||||
'email' => $sortie->usa_courriel,
|
||||
'id' => $sortie->usa_id,
|
||||
'logged_in' => TRUE
|
||||
);
|
||||
|
||||
$this->session->set_userdata($newdata);
|
||||
|
||||
// ===== AJOUT ICI =====
|
||||
$token = bin2hex(random_bytes(32));
|
||||
|
||||
$this->db->where('usa_id', $sortie->usa_id);
|
||||
$this->db->update('usa_usagers', [
|
||||
'usa_token_ci4' => $token
|
||||
]);
|
||||
|
||||
setcookie(
|
||||
'ci4_auth',
|
||||
$token,
|
||||
time() + 3600,
|
||||
'/',
|
||||
'',
|
||||
true,
|
||||
true
|
||||
);
|
||||
// ===== FIN AJOUT =====
|
||||
|
||||
redirect('');
|
||||
}
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
public function logout()
|
||||
{
|
||||
|
||||
|
||||
$this->db->where('usa_id', $this->session->userdata('id'));
|
||||
$this->db->update('usa_usagers', ['usa_token_ci4' => null]);
|
||||
|
||||
setcookie('ci4_auth', '', time() - 3600, '/');
|
||||
|
||||
|
||||
session_destroy();
|
||||
|
||||
|
||||
redirect('/login');
|
||||
}
|
||||
}
|
||||
89
application/controllers/Lots.php
Normal file
89
application/controllers/Lots.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
class Lots extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('lots');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
$this->load->view('lots/header' );
|
||||
$this->load->view('lots/list' );
|
||||
$this->load->view('lots/footer' );
|
||||
}
|
||||
public function test()
|
||||
{
|
||||
$data['body']=$this->load->view('lots/email_fr', '', true);
|
||||
|
||||
$data['subject']='test';
|
||||
|
||||
$data['to_mail']='stephan@progiweb.ca';
|
||||
$data['to_name']='stephan';
|
||||
$data['from_mail']=$this->config->item('emailreservation');
|
||||
$data['from_name']='Expresstours';
|
||||
$data['attach'] = '';
|
||||
$data['blnGoDaddy'] = true;
|
||||
|
||||
|
||||
|
||||
|
||||
// $data['mem_fou_email']='stephan@va-voir.com';
|
||||
// $data['mem_sujet']= 'Reservations ExpressTours ' ;
|
||||
// $this->Config_model->conf_email($data);
|
||||
$this->Config_model->fxSendMail($data) ;
|
||||
|
||||
|
||||
// $this->load->view('lots/email_fr' );
|
||||
|
||||
|
||||
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$listactif=1 ) {
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
|
||||
|
||||
$data=$this->Lots_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$listactif );
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function removelot($id,$mem_listactivechange){
|
||||
$change=($mem_listactivechange==1?0:1);
|
||||
$data=$this->Lots_model->mod_modiflot($id,$change);
|
||||
|
||||
echo json_encode('ok');
|
||||
|
||||
}
|
||||
|
||||
public function reload($mem_listactivechange){
|
||||
$data['listactivechange']=$mem_listactivechange;
|
||||
$this->load->view('lots/header' );
|
||||
$this->load->view('lots/list',$data );
|
||||
$this->load->view('lots/footer' );
|
||||
|
||||
}
|
||||
public function prepare_lot(){
|
||||
|
||||
$data=$this->Lots_model->mod_prepare_lot($_POST);
|
||||
$this->load->view('lots/header' );
|
||||
$this->load->view('lots/list',$data );
|
||||
$this->load->view('lots/footer' );
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
33
application/controllers/News.php
Normal file
33
application/controllers/News.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
class News extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('news_model');
|
||||
$this->load->helper('url_helper');
|
||||
$this->load->library('session');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$data['news'] = $this->news_model->get_news();
|
||||
print_r( $data);
|
||||
}
|
||||
|
||||
public function view($slug = NULL)
|
||||
{
|
||||
$data['news_item'] = $this->news_model->get_news($slug);
|
||||
|
||||
if (empty($data['news_item']))
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['title'] = $data['news_item']['title'];
|
||||
|
||||
$this->load->view('templates/header', $data);
|
||||
$this->load->view('news/view', $data);
|
||||
$this->load->view('templates/footer');
|
||||
}
|
||||
}
|
||||
18
application/controllers/Pages.php
Normal file
18
application/controllers/Pages.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
class Pages extends CI_Controller {
|
||||
|
||||
public function view($page = 'home')
|
||||
{
|
||||
if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))
|
||||
{
|
||||
// Whoops, we don't have a page for that!
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['title'] = ucfirst($page); // Capitalize the first letter
|
||||
|
||||
$this->load->view('templates/header', $data);
|
||||
$this->load->view('pages/'.$page, $data);
|
||||
$this->load->view('templates/footer', $data);
|
||||
}
|
||||
}
|
||||
90
application/controllers/Paiements.php
Normal file
90
application/controllers/Paiements.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
class Paiements extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('paiements');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Paiements_model');
|
||||
$this->lang->load('fournisseurs');
|
||||
$this->load->model('Tache_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->model('FxForm_model');
|
||||
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('paiements/header' );
|
||||
$this->load->view('paiements/list' );
|
||||
$this->load->view('paiements/footer' );
|
||||
}
|
||||
public function form($mem_id,$error='',$facture="")
|
||||
{
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
// $error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Paiements_model->mod_getForminfo($mem_id);
|
||||
$data['no_facture']=$facture;
|
||||
|
||||
$data_view= $this->load->view('paiements/form',$data,true );
|
||||
|
||||
echo json_encode($data_view);
|
||||
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$date_debut="2019-01-01",$date_fin="2025-01-01", $listactif = 1, $model='liste',$excel=0) {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_paiement','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_paiement','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_paiement','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_paiement','date_debut',$date_debut,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_paiement','date_fin',$date_fin,1,0);
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
|
||||
$data=$this->Paiements_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$date_debut,$date_fin,$listactif,$model,$excel);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function saveRecord($id=0,$no_facture="")
|
||||
{
|
||||
|
||||
|
||||
|
||||
$id=$this->Paiements_model->mod_createRecordbd($_POST,'pai_',$id,$no_facture);
|
||||
|
||||
$error['error']=array('type'=>'success','message'=>'Paiement créée');
|
||||
|
||||
redirect('/paiements');
|
||||
|
||||
}
|
||||
|
||||
public function deletecontact($id,$con_id){
|
||||
$this->Fournisseurs_model->mod_deleteRecordbdcontact($id);
|
||||
$error=array('type'=>'success','message'=>'Contact effacé');
|
||||
$this->form($con_id,$error);
|
||||
}
|
||||
|
||||
public function saveRecordcontact($id)
|
||||
{
|
||||
|
||||
|
||||
$this->Fournisseurs_model->mod_createRecordbdcontact($_POST,'con_',$id);
|
||||
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
|
||||
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
}
|
||||
86
application/controllers/Produits.php
Normal file
86
application/controllers/Produits.php
Normal file
@ -0,0 +1,86 @@
|
||||
<?php
|
||||
class Produits extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('produits');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Produits_model');
|
||||
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('produits/header' );
|
||||
|
||||
$this->load->view('produits/list' );
|
||||
$this->load->view('produits/footer' );
|
||||
|
||||
}
|
||||
public function form($mem_id,$error='')
|
||||
{
|
||||
$error = []; // initialise comme tableau
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
$error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Produits_model->mod_getForminfo($mem_id);
|
||||
|
||||
$data_view= $this->load->view('produits/form',$data,true );
|
||||
|
||||
echo json_encode($data_view);
|
||||
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$listactif=1,$model_de_produits="liste") {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_3',$filtre3,1,0);
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_listactive',$listactif,1,0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
|
||||
$data=$this->Produits_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$listactif,$model_de_produits);
|
||||
|
||||
echo json_encode($data) ;
|
||||
}
|
||||
|
||||
public function desactivate($id,$statut)
|
||||
{
|
||||
$this->Produits_model->mod_desactivateRecordbd($id,$statut);
|
||||
$error['error']=array('type'=>'success','message'=>'Produit effacé');
|
||||
|
||||
$this->load->view('produits/header' );
|
||||
|
||||
$this->load->view('produits/list' );
|
||||
$this->load->view('produits/footer', $error );
|
||||
}
|
||||
|
||||
public function saveRecord($id=0)
|
||||
{
|
||||
|
||||
$id=$this->Produits_model->mod_createRecordbd($_POST,'des_',$id);
|
||||
|
||||
$error['error']=array('type'=>'success','message'=>'Produit créée');
|
||||
|
||||
$this->load->view('produits/header' );
|
||||
|
||||
$this->load->view('produits/list' );
|
||||
$this->load->view('produits/footer',$error);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
384
application/controllers/Projets.php
Normal file
384
application/controllers/Projets.php
Normal file
@ -0,0 +1,384 @@
|
||||
<?php
|
||||
class Projets extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('projets');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('Projets_model');
|
||||
$this->load->model('Tache_model');
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
$this->lang->load("text_".config_item('pw_client'),"french");
|
||||
$this->load->helper('jira_helper');
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
$this->load->view('projets/header' );
|
||||
$this->load->view('projets/list' );
|
||||
$this->load->view('projets/footer' );
|
||||
}
|
||||
public function depart()
|
||||
{
|
||||
|
||||
|
||||
$this->load->view('projets/header' );
|
||||
$this->load->view('projets/listdepart' );
|
||||
$this->load->view('projets/footer' );
|
||||
}
|
||||
public function list_taches()
|
||||
{
|
||||
|
||||
|
||||
$this->load->view('tache/header' );
|
||||
$this->load->view('tache/list' );
|
||||
$this->load->view('tache/footer' );
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$filtre4='',$trie='null',$listactive=1,$excel=0,$filtre5='',$date_debut,$date_fin,$filtre6='') {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_4',$filtre4,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_5',$filtre5,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_select_6',$filtre6,1,0);
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_listactive',$listactive,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','mem_trie',$trie,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','date_debut',$date_debut,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_projet','date_fin',$date_fin,1,0);
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
$filtre4=urldecode($filtre4);
|
||||
$filtre5=urldecode($filtre5);
|
||||
$filtre6=urldecode($filtre6);
|
||||
|
||||
$trie=urldecode($trie);
|
||||
$data=$this->Projets_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$filtre4,$trie,$listactive,$excel,$filtre5,$date_debut,$date_fin,$filtre6);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function loadData_list_depart($record=0,$filtre1='',$filtre2='',$filtre3='',$filtre4='',$trie='null',$listactive=1,$date_debut="2019-01-01",$date_fin="2025-01-01",$excel=0) {
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_select_4',$filtre4,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','date_debut',$date_debut,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','date_fin',$date_fin,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_listactive',$listactive,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_depart','mem_trie',$trie,1,0);
|
||||
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
$filtre4=urldecode($filtre4);
|
||||
$trie=urldecode($trie);
|
||||
$data=$this->Projets_model->mod_loadData_list_depart($record,$filtre1,$filtre2,$filtre3,$filtre4,$trie,$listactive,$date_debut,$date_fin,$excel);
|
||||
|
||||
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function loadData_list_taches($record=0,$filtre1='',$filtre2='',$filtre3='',$filtre4='',$trie='null',$listactive=1,$excel=0) {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_select_3',$filtre3,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_select_4',$filtre4,1,0);
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_listactive',$listactive,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tache','mem_trie',$trie,1,0);
|
||||
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
$filtre4=urldecode($filtre4);
|
||||
$trie=urldecode($trie);
|
||||
$data=$this->Projets_model->mod_loadData_list_taches($record,$filtre1,$filtre2,$filtre3,$filtre4,$trie,$listactive,$excel);
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function form($mem_id,$error='',$new='',$detail_id=0)
|
||||
{
|
||||
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
|
||||
|
||||
|
||||
$confimpdf=$this->Projets_model->prepare_list_confirmation($mem_id);
|
||||
$factpdf=$this->Projets_model->prepare_list_facturation($mem_id);
|
||||
|
||||
|
||||
|
||||
|
||||
// section bouton confirmation
|
||||
|
||||
$confirmation=$this->Projets_model->prepare_bouton_confirmation($mem_id,true);
|
||||
$facturation=$this->Projets_model->prepare_bouton_facturation($mem_id,true);
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Projets_model->mod_getforminfo($mem_id);
|
||||
|
||||
$info=$this->Projets_model->mod_getforminfo_details($mem_id);
|
||||
|
||||
// $data['contacts']=$this->Fournisseurs_model->mod_listcontact($mem_id);
|
||||
if ($this->config->item('pw_client') === 'ms1') {
|
||||
|
||||
$data['list_pro_auto'] = $this->Projets_model->list_info_pro_auto(2);
|
||||
}
|
||||
|
||||
$data['facturation']=$facturation;
|
||||
$data['factpdf']=$factpdf;
|
||||
|
||||
$data['confirmation']=$confirmation;
|
||||
$data['confimpdf']=$confimpdf;
|
||||
$data['proj_ent_id']=$mem_id;
|
||||
$data['details_id']=$detail_id;
|
||||
$data['new']=$new;
|
||||
$data['produits']=$info;
|
||||
|
||||
$this->load->view('projets/header' );
|
||||
$this->load->view('projets/form',$data );
|
||||
$this->load->view('projets/footer',$error );
|
||||
|
||||
}
|
||||
public function form_tache($mem_id,$section,$section_id,$page,$section_type='',$details_id=0)
|
||||
{
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->Tache_model->mod_getforminfo($mem_id,$section,$section_id);
|
||||
$data['page']=$page;
|
||||
$data['details_id']=$details_id;
|
||||
|
||||
// if (strtoupper($section)=='PROJETS')
|
||||
$html=$output['html']=$this->load->view('tache/popupevent',$data,true );
|
||||
// else
|
||||
// $html=$output['html']=$this->load->view('tache/popupeventstatut',$data,true );
|
||||
|
||||
echo json_encode($html);
|
||||
}
|
||||
|
||||
|
||||
public function pro_auto($pro_auto_desc_id,$proj_id){
|
||||
//echo($pro_auto_desc_id);
|
||||
$this->Projets_model->cree_pro_auto($pro_auto_desc_id,$proj_id);
|
||||
redirect('/projets/form/'.$proj_id);
|
||||
|
||||
}
|
||||
public function test(){
|
||||
print_r( $this->Config_model->conf_getListeevenement());
|
||||
}
|
||||
public function download(){
|
||||
$this->load->helper('download');
|
||||
echo(base_url().'/pdf/pdf2019/confirmation/Village_Vacances_Valcartier_Segment_Marketing_2020002-1562619071.pdf');
|
||||
echo '<a href="'. base_url().'/pdf/pdf2019/confirmation/Village_Vacances_Valcartier_Segment_Marketing_2020002-1562619071.pdf ">Link</a>';
|
||||
|
||||
force_download(base_url().'/pdf/pdf2019/confirmation/Village_Vacances_Valcartier_Segment_Marketing_2020002-1562619071.pdf', NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function create_proj_details($proj_ent_id,$proj_prod_id,$proj_fou_id){
|
||||
$data=$this->Projets_model->mod_create_proj_details($proj_ent_id,$proj_prod_id,$proj_fou_id);
|
||||
// $data=$this->form($proj_ent_id);
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function save_proj_details($id,$projet_id){
|
||||
|
||||
$this->Projets_model->mod_save_proj_details($id,$_POST);
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
redirect('/projets/form/'.$projet_id );
|
||||
}
|
||||
public function save_proj_details_client($id,$projet_id,$go=""){
|
||||
|
||||
|
||||
$this->Projets_model->mod_createRecordbd($_POST, "proj_", 0,$projet_id);
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
|
||||
if ($go==""){
|
||||
redirect('/clients/form/'.$id );
|
||||
}else{
|
||||
redirect('/'.$go );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function deleteproduits($id,$projet_id){
|
||||
$this->Projets_model->mod_deleteproduits($id);
|
||||
$error=array('type'=>'success','message'=>'Fiche effacé');
|
||||
redirect('/projets/form/'.$projet_id );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function saveRecord($id,$client_id=0 )
|
||||
{
|
||||
|
||||
|
||||
$id=$this->Projets_model->mod_createRecordbd($_POST,'proj_',$client_id,$id);
|
||||
|
||||
if ($id!=0)
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
|
||||
// creer doc dans google
|
||||
if ($this->config->item('pw_client') === 'ms1') {
|
||||
$this->load->model('GoogleDocs_model');
|
||||
|
||||
|
||||
//MSTIM-756
|
||||
if($_POST['proj_type']==668){
|
||||
$this->GoogleDocs_model->creer_document($id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if ($client_id==0){
|
||||
$this->form($id,$error);
|
||||
}else{
|
||||
//redirect('/Clients/form/'.$client_id.'/'.$error);
|
||||
redirect('/Clients/form/'.$client_id);
|
||||
}
|
||||
}
|
||||
|
||||
public function creetache($id,$section,$section_id,$page ,$details_id=0)
|
||||
{
|
||||
//Array ( [tach_aqui_id] => 0 [tach_echeance_date] => [tach_type] => 0 [tach_statut] => 0 [tach_note_demande] => [tach_note_suivie] => [buttonfin] => Ajout )
|
||||
//https://ms1crmdev.progiweb.net/index.php/projets/creetache/0/projetsclient/606/form/1292
|
||||
|
||||
print_r($_POST);exit;
|
||||
|
||||
$id=$this->Tache_model->mod_createRecordbd($_POST,$section,$section_id,$details_id);
|
||||
|
||||
|
||||
|
||||
}
|
||||
// sl test
|
||||
public function savetache($id,$section,$section_id,$page ,$details_id=0)
|
||||
{
|
||||
|
||||
|
||||
if ($id!=0){
|
||||
$id=$this->Tache_model->mod_saveRecordbd($_POST,$id);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
$id=$this->Tache_model->mod_createRecordbd($_POST,$section,$section_id,$details_id);
|
||||
|
||||
|
||||
}
|
||||
|
||||
if ($page=='listprojets')
|
||||
redirect('TachesProjets');
|
||||
//$section='projets';
|
||||
|
||||
if($section=='projetsclient' || $section=='projetsfournisseur')
|
||||
$section='projets';
|
||||
|
||||
|
||||
|
||||
if ($page=='form')
|
||||
redirect('/'.$section.'/form/'.intval($section_id).'/ / /'.$details_id);
|
||||
else
|
||||
redirect('Projets/list_taches');
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function createRecord($id,$client_id=0 )
|
||||
{
|
||||
|
||||
|
||||
$id=$this->Projets_model->mod_createRecordbd($_POST,'proj_',$client_id,$id);
|
||||
|
||||
if ($id!=0)
|
||||
$error=array('type'=>'success','message'=>'Fiche sauvegardé');
|
||||
else
|
||||
$error=array('type'=>'error','message'=>'test');
|
||||
|
||||
$this->form($id,$error);
|
||||
|
||||
}
|
||||
public function choix_produit($id){
|
||||
$data=$this->Projets_model->mod_choix_produit($id);
|
||||
|
||||
// if ($this->config->item('pw_client') === 'ms1') {
|
||||
// $data["gen_actif_fournisseur"]=0;
|
||||
// }
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function desactivate_confirmation($numero_lot,$id){
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$data=$this->Projets_model->mod_desactivate_confirmation($numero_lot);
|
||||
redirect('/projets/form/'.$id);
|
||||
}
|
||||
public function desactivate_facturation($numero_lot,$id){
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$data=$this->Projets_model->mod_desactivate_facturation($numero_lot);
|
||||
redirect('/projets/form/'.$id);
|
||||
}
|
||||
public function lock_facturation($numero_lot,$id){
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$data=$this->Projets_model->mod_lock_facturation($numero_lot);
|
||||
redirect('/projets/form/'.$id);
|
||||
}
|
||||
|
||||
public function prepare_confirmation($id){
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$data=$this->Projets_model->mod_prepare_confirmation($id);
|
||||
redirect('/projets/form/'.$id);
|
||||
}
|
||||
public function prepare_facturation($id){
|
||||
$this->load->model('Lots_model');
|
||||
|
||||
$data=$this->Projets_model->mod_prepare_facturation($id);
|
||||
redirect('/projets/form/'.$id);
|
||||
}
|
||||
|
||||
public function listtache_btn($section,$section_id){
|
||||
|
||||
$retour=$this->Tache_model->mod_listtache_btn($section,$section_id);
|
||||
echo($retour);
|
||||
|
||||
|
||||
|
||||
}
|
||||
public function test2($id){
|
||||
|
||||
$info=$this->Config_model->fx_info_google_calendar($id);
|
||||
|
||||
echo '<pre>', print_r($info, true), '</pre>';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
104
application/controllers/TachesProjets.php
Normal file
104
application/controllers/TachesProjets.php
Normal file
@ -0,0 +1,104 @@
|
||||
<?php
|
||||
class TachesProjets extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('tachesprojets');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('TachesProjets_model');
|
||||
$this->lang->load('fournisseurs');
|
||||
$this->load->model('Tache_model');
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->model('FxForm_model');
|
||||
|
||||
$this->load->model('Config_model');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
||||
$mem_data['aqui'] = $this->Config_model->conf_getRepresentantsClient();
|
||||
$mem_data['proj_etape']= $this->Config_model->conf_getGenresProjet('a','fr',true);
|
||||
$mem_data['proj_type'] = $this->Config_model->conf_getGenresProjet('b','fr',true);
|
||||
$mem_data['proj_dest'] = $this->Config_model->conf_getGenresProjet('c','fr',true);
|
||||
|
||||
$this->load->view('tachesprojets/header' );
|
||||
$this->load->view('tachesprojets/list', $mem_data );
|
||||
$this->load->view('tachesprojets/footer' );
|
||||
}
|
||||
public function form($mem_id,$error='',$facture="")
|
||||
{
|
||||
// $error['error']=array('type'=>'error','message'=>'test');
|
||||
// $error['error']=$error;
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->TachesProjets_model->mod_getForminfo($mem_id);
|
||||
$data['no_facture']=$facture;
|
||||
|
||||
$data_view= $this->load->view('tachesprojets/form',$data,true );
|
||||
|
||||
echo json_encode($data_view);
|
||||
|
||||
}
|
||||
public function loadData_list($record=0,$aqui='',$mem_proj_etape='',$mem_proj_type='', $mem_proj_dest='',$date_debut,$date_fin,$mem_proj_num='',$mem_proj_compagnie='', $listactif = 1, $model='liste',$excel=0) {
|
||||
if($mem_proj_num=='null')
|
||||
$mem_proj_num='';
|
||||
|
||||
if( $mem_proj_compagnie=='null')
|
||||
$mem_proj_compagnie='';
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','aqui',$aqui,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','date_debut',$date_debut,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','date_fin',$date_fin,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','proj_etape',$mem_proj_etape,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','proj_type',$mem_proj_type,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','proj_dest',$mem_proj_dest,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','proj_num',$mem_proj_num,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_tachesprojets','proj_compagnie',$mem_proj_compagnie,1,0);
|
||||
|
||||
|
||||
$mem_proj_compagnie=urldecode($mem_proj_compagnie);
|
||||
$filtre1='';
|
||||
$filtre2='';
|
||||
$filtre3='';
|
||||
$data=$this->TachesProjets_model->mod_loadData_list(1,$aqui,$mem_proj_etape,$mem_proj_type,$mem_proj_dest,$date_debut,$date_fin,$mem_proj_num,$mem_proj_compagnie,$excel);
|
||||
|
||||
//$data=$this->TachesProjets_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,'','');
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
public function saveRecord($id=0,$no_facture="")
|
||||
{
|
||||
|
||||
|
||||
|
||||
$id=$this->TachesProjets_model->mod_createRecordbd($_POST,'pai_',$id,$no_facture);
|
||||
|
||||
$error['error']=array('type'=>'success','message'=>'Paiement créée');
|
||||
|
||||
redirect('/tachesprojets');
|
||||
|
||||
}
|
||||
|
||||
public function deletecontact($id,$con_id){
|
||||
$this->Fournisseurs_model->mod_deleteRecordbdcontact($id);
|
||||
$error=array('type'=>'success','message'=>'Contact effacé');
|
||||
$this->form($con_id,$error);
|
||||
}
|
||||
|
||||
public function saveRecordcontact($id)
|
||||
{
|
||||
|
||||
|
||||
$this->Fournisseurs_model->mod_createRecordbdcontact($_POST,'con_',$id);
|
||||
|
||||
$error=array('type'=>'success','message'=>'Nouvelle fiche créée');
|
||||
|
||||
|
||||
|
||||
$this->form($id,$error);
|
||||
}
|
||||
}
|
||||
87
application/controllers/User.php
Normal file
87
application/controllers/User.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
class User extends CI_Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct('user');
|
||||
$this->load->helper('url');
|
||||
$this->load->library('pagination');
|
||||
$this->load->model('User_model');
|
||||
|
||||
$this->load->library('table');
|
||||
$this->load->helper('form');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('user/header' );
|
||||
|
||||
$this->load->view('user/list' );
|
||||
$this->load->view('user/footer' );
|
||||
|
||||
}
|
||||
public function form($mem_id,$error='')
|
||||
{
|
||||
|
||||
$message = $error; // garde le contenu original (chaîne ou message)
|
||||
$error = []; // initialise un tableau
|
||||
$error['error'] = $message; // stocke le message dans la clé 'error'
|
||||
|
||||
|
||||
|
||||
// prépare tout les info pour la forme
|
||||
$data=$this->User_model->mod_getForminfo($mem_id);
|
||||
|
||||
$data_view= $this->load->view('user/form',$data,true );
|
||||
|
||||
echo json_encode($data_view);
|
||||
|
||||
}
|
||||
public function loadData_list($record=0,$filtre1='',$filtre2='',$filtre3='',$listactif=1,$model_de_produits="liste") {
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_1',$filtre1,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_2',$filtre2,1,0);
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_select_3',$filtre3,1,0);
|
||||
|
||||
$this->Config_model->conf_getFiltreData($this->session->id,'list_produit','mem_listactive',$listactif,1,0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$filtre1=urldecode($filtre1);
|
||||
$filtre2=urldecode($filtre2);
|
||||
$filtre3=urldecode($filtre3);
|
||||
|
||||
$data=$this->User_model->mod_loadData_list($record,$filtre1,$filtre2,$filtre3,$listactif,$model_de_produits);
|
||||
|
||||
echo json_encode($data) ;
|
||||
}
|
||||
|
||||
public function desactivate($id,$statut)
|
||||
{
|
||||
$this->User_model->mod_desactivateRecordbd($id,$statut);
|
||||
$error['error']=array('type'=>'success','message'=>'Utilisateur effacé');
|
||||
|
||||
$this->load->view('user/header' );
|
||||
|
||||
$this->load->view('user/list' );
|
||||
$this->load->view('user/footer', $error );
|
||||
}
|
||||
|
||||
public function saveRecord($id=0)
|
||||
{
|
||||
|
||||
$id=$this->User_model->mod_createRecordbd($_POST,'usa_',$id);
|
||||
|
||||
$error['error']=array('type'=>'success','message'=>'Utilisateurs créée');
|
||||
|
||||
$this->load->view('user/header' );
|
||||
|
||||
$this->load->view('user/list' );
|
||||
$this->load->view('user/footer',$error);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
25
application/controllers/Welcome.php
Normal file
25
application/controllers/Welcome.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @see https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('welcome_message');
|
||||
}
|
||||
}
|
||||
11
application/controllers/index.html
Normal file
11
application/controllers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/core/index.html
Normal file
11
application/core/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
1
application/credentials/credentials.json
Normal file
1
application/credentials/credentials.json
Normal file
@ -0,0 +1 @@
|
||||
{"web":{"client_id":"757586711309-lmhhl49m6o1kfs3qdm6ruhkudik3nk46.apps.googleusercontent.com","project_id":"backup-astral1","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","javascript_origins":["https://ms1crmdev.progiweb.net"]}}
|
||||
13
application/credentials/service_account.json
Normal file
13
application/credentials/service_account.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "service_account",
|
||||
"project_id": "fast-academy-472418-r4",
|
||||
"private_key_id": "9b86f2872b1b188ed93176bf2818b20a4f580ee9",
|
||||
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCwxQe6p/j6yaQR\nUQBWQXz+8r0QFlH0Gr0kJDfmwGLvQ8RzvoGoaMKC/DalVgh5ocgibe2L8u+h5dA8\nQEcsms8IDu4QC2gvfFNiCGKTril42WXnC8bQMzn9JnUVuU2eyvvNb86dhAs07GeI\nflD0Irk7RrzRutFEKz/sy/ohNW4CJeIY+XNe6UfxACEiiDx7PC1wu8+NtHADo/xr\nK/MuJUKxU5dkc3509P6TYCUFHCSOPSlBCeE16VCrwjzMjojPKPHPNup3ONXQfC/L\nSXaespKh7mf8NBVBU6fA19WDOkSoWOlOVWWHFOf3+pFcZlhdmrOmUNa/QQ+bhDwN\nSAMmxXNjAgMBAAECggEAFDw3InS4XuEL8S2FbS+pouJfpoKflrgkNF8Zr8Zl15Tk\nMrRj/EbNvsJ8xkLJzT6p/dhOoT7J6WMONNojgPrRvfmTjUOjsA06hauHDqJuaJae\nVdYLyBPtIfUFNzDorpz249wA2hgzqOHHskt0x0BdquhHP3eex//EHWkg34H8b1in\nl6B9G0nqSQgpU64JYNmjmY3I8YXw6TCXVNmkvxXtH3vkb+U2SKPGSrVdqHUbANHQ\nDg6RZtaBKxEKD/v+Qtf9+6T5QL1aoi9hhzO8rAmYs9hTsGz2wyNfNDIzJ0Tb2hdj\nvMwob93wo/yztThPxT0gaoQP7gyzGcnbRiiIeEEXxQKBgQDpIGtJeGJo5p36qGdK\njkh71BvlipuH3jYNXCYqV+zbblOHxxPw0ddc2K0oXsidFUud36PfqohTtUjDvABz\nsJ/MCb93GhD6isqfAveKxaDC6meQEPiaZ1wbzJ38L/mUHdNjbXG9Pc5NJqac038r\nCQ94j72j5WQTDHDkcC/DgeZ1VQKBgQDCHQ8aRhsftNOHxjHPuH3/eZnRRgAUHB6M\n7tVpRCSpWErymZeCePRGxJ+sAUGgiHKTRetPkLd5T971GNVwC/4LHcM4Oe/F8w0/\ngNP1cb7zj1bzMSVoLrJZhGakILWwb0tO96itpgE+K1QLlQiEGsJf78npa09kSfob\nFXL5DjVF1wKBgA4lmn0d4hLtk76nQ4VhtwJUr9CxJZkMIgmTgvlk1onGWylNKmed\nxEztFSzy+4eUyD7vWFl1VsqFoMHIAdsDZ98Q5F6M5WTe0Ubu/iicr5HEeb5jWUK9\nbPh+5UNtgd68JJzPAmzyeDd0Vf4EU54/8YFmb6Kng/gn9B3YtP1PP7X1AoGACiN4\naXfl7McGEV5htaa+NfzE8vBECsjZM6U50lCz1YB+EaPCDReCMrwMVvCN2/OkgFqz\niqlVW+m3DHgqlbqanzwDuUkVY/Jo67sv1u8E+TWwZe1YNdPSjuhicAohU0DM3ygC\nUGeOQxACSMSU+Elpg5dDpYRsViGjBY0ePzHlyGsCgYEAsWshxjEUehLimgkSFTAE\nQ7eaisjcjiIuUMF4d1z6fljafd8ZTSFiDtrpQq/5ajh181lqXRM40hxSObpieOu1\n38f04EKbPq6pi3RcjTf/wcmklWML8NyIHxucc/wX3oHGD1PTAObw9mGbvQiJ/cDG\nXxnLkIzOEkrleaozThWugxs=\n-----END PRIVATE KEY-----\n",
|
||||
"client_email": "crm-calendar-service@fast-academy-472418-r4.iam.gserviceaccount.com",
|
||||
"client_id": "110200843792521100099",
|
||||
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
||||
"token_uri": "https://oauth2.googleapis.com/token",
|
||||
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
||||
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/crm-calendar-service%40fast-academy-472418-r4.iam.gserviceaccount.com",
|
||||
"universe_domain": "googleapis.com"
|
||||
}
|
||||
32
application/helpers/debug_helper.php
Normal file
32
application/helpers/debug_helper.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
if (!function_exists('dbg')) {
|
||||
// Affiche une boîte fixe en haut de page. $exit=true pour stopper.
|
||||
function dbg($var, $label = 'DBG', $exit = false)
|
||||
{
|
||||
echo "<pre style='z-index:99999;position:fixed;top:0;left:0;right:0;
|
||||
max-height:40vh;overflow:auto;background:#111;color:#0f0;
|
||||
padding:10px;margin:0;border-bottom:2px solid #0f0'>";
|
||||
echo htmlspecialchars($label, ENT_QUOTES, 'UTF-8'), "\n";
|
||||
print_r($var);
|
||||
echo "</pre>";
|
||||
if ($exit) exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('dd')) {
|
||||
// dump + die
|
||||
function dd($var, $label = 'DD')
|
||||
{
|
||||
dbg($var, $label, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('console_log')) {
|
||||
// Écrit dans la console Chrome via <script>
|
||||
function console_log($var, $label = 'DBG')
|
||||
{
|
||||
echo "<script>console.log(" . json_encode([$label => $var], JSON_UNESCAPED_UNICODE) . ");</script>";
|
||||
}
|
||||
}
|
||||
11
application/helpers/index.html
Normal file
11
application/helpers/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
238
application/helpers/jira_helper.php
Normal file
238
application/helpers/jira_helper.php
Normal file
@ -0,0 +1,238 @@
|
||||
<?php
|
||||
|
||||
function jira_get_tickets_by_emailold($email)
|
||||
{
|
||||
$jiraDomain = 'https://progiwebinc.atlassian.net';
|
||||
$userEmail = 'stephan@progiweb.ca';
|
||||
$apiToken = 'ATATT3xFfGF0DuhOhRUxFlj2hFpLuzYGapJIrhMETB35NnLFi1TyxDszp3tTa8MaadTpT72GfDk9FOpDm07m6HbdXoQ9plDeRvB6OwRnD19VrIqA8M3HmDGgf_MWR7Pwk5731ahbgb4UBdRgj-ICBqt9A0SjJPnnoTfu4ECVh51HjM0RsekOmeM=908B030C';
|
||||
$projectKey = 'SM';
|
||||
|
||||
// --- Paramètre : nombre d'années à remonter ---
|
||||
// 1 = depuis le 1er janvier de l'an dernier jusqu'à maintenant
|
||||
// 10 = depuis le 1er janvier d'il y a 10 ans jusqu'à maintenant
|
||||
// 0 = illimité
|
||||
// --- Fenêtre glissante: $nbAnnees années en arrière jusqu'à maintenant ---
|
||||
// 1 = derniers 12 mois (rolling), 10 = derniers 10 ans, 0 = illimité
|
||||
$nbAnnees = 1;
|
||||
|
||||
$tz = new DateTimeZone('America/Toronto');
|
||||
$now = new DateTime('now', $tz);
|
||||
|
||||
if ($nbAnnees > 0) {
|
||||
// Début = exactement $nbAnnees années avant "maintenant"
|
||||
$start = (clone $now)->modify('-' . $nbAnnees . ' years');
|
||||
|
||||
// On met des heures/minutes pour éviter l'ambiguïté minuit UTC
|
||||
$startStr = $start->format('Y-m-d H:i');
|
||||
// Fin = maintenant
|
||||
$endStr = $now->format('Y-m-d H:i');
|
||||
|
||||
$jql = sprintf(
|
||||
'project = %s AND reporter = "%s" AND created >= "%s" AND created <= "%s" ORDER BY status ASC, created DESC',
|
||||
$projectKey,
|
||||
$email,
|
||||
$startStr,
|
||||
$endStr
|
||||
);
|
||||
} else {
|
||||
// Pas de limite de date
|
||||
$jql = sprintf(
|
||||
'project = %s AND reporter = "%s" ORDER BY status ASC, created DESC',
|
||||
$projectKey,
|
||||
$email
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$url = $jiraDomain . '/rest/api/3/search?jql=' . urlencode($jql) . '&maxResults=100';
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Authorization: Basic ' . base64_encode("$userEmail:$apiToken"),
|
||||
'Content-Type: application/json'
|
||||
]);
|
||||
$response = curl_exec($ch);
|
||||
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
$result = json_decode($response, true);
|
||||
$ticketsOuverts = [];
|
||||
$ticketsResolus = [];
|
||||
|
||||
if ($httpcode == 200 && isset($result['issues'])) {
|
||||
foreach ($result['issues'] as $issue) {
|
||||
$ticket = [
|
||||
'key' => $issue['key'],
|
||||
'summary' => $issue['fields']['summary'],
|
||||
'status' => $issue['fields']['status']['name'],
|
||||
'url' => $jiraDomain . '/browse/' . $issue['key'],
|
||||
'created' => $issue['fields']['created'] ?? null,
|
||||
'resolved' => $issue['fields']['resolutiondate'] ?? null
|
||||
];
|
||||
|
||||
if (in_array(strtolower($ticket['status']), ['done', 'resolved', 'terminé', 'fermé', 'résolu', 'annulé'])) {
|
||||
$ticketsResolus[] = $ticket;
|
||||
} else {
|
||||
$ticketsOuverts[] = $ticket;
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'success' => true,
|
||||
'ouverts' => $ticketsOuverts,
|
||||
'resolus' => $ticketsResolus
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'success' => false,
|
||||
'message' => $result['errorMessages'][0] ?? 'Erreur inconnue',
|
||||
'debug' => $result
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Recherche les tickets d’un reporter (email → accountId) avec la nouvelle API /search/jql.
|
||||
* Sortie: ['success'=>bool, 'ouverts'=>[], 'resolus'=>[], 'message'?, 'debug'?]
|
||||
*/
|
||||
function jira_get_tickets_by_email($email)
|
||||
{
|
||||
$jiraDomain = 'https://progiwebinc.atlassian.net';
|
||||
$userEmail = 'stephan@progiweb.ca';
|
||||
// Nom du jeton support_crm
|
||||
$apiToken = 'ATATT3xFfGF0Z91qESp8j7uO783qK0E4BWsY8rhPWEmexSa4Rw3c21Spg6hYIkmVgy6Vwzb34RxqFl3sR00Kby_DuY1NdcUJyfPQYZ0_JbeEjAk9ybFgNY8-MBSABMCxzaDk4szTbWupfjxHT8sJxJMvSNxgHPds5FxXaGo2DnZICZu5dXuvWbk=F73E15AE';
|
||||
$projectKey = 'SM';
|
||||
|
||||
// --- Paramètre : nombre d'années à remonter ---
|
||||
$nbAnnees = 1;
|
||||
|
||||
$tz = new DateTimeZone('America/Toronto');
|
||||
$now = new DateTime('now', $tz);
|
||||
|
||||
if ($nbAnnees > 0) {
|
||||
$start = (clone $now)->modify('-' . $nbAnnees . ' years');
|
||||
$startStr = $start->format('Y-m-d H:i');
|
||||
$endStr = $now->format('Y-m-d H:i');
|
||||
|
||||
$jql = sprintf(
|
||||
'project = %s AND reporter = "%s" AND created >= "%s" AND created <= "%s" ORDER BY status ASC, created DESC',
|
||||
$projectKey,
|
||||
$email,
|
||||
$startStr,
|
||||
$endStr
|
||||
);
|
||||
} else {
|
||||
$jql = sprintf(
|
||||
'project = %s AND reporter = "%s" ORDER BY status ASC, created DESC',
|
||||
$projectKey,
|
||||
$email
|
||||
);
|
||||
}
|
||||
|
||||
// 🆕 Nouveau endpoint (POST JSON)
|
||||
$url = $jiraDomain . '/rest/api/3/search/jql';
|
||||
|
||||
$payload = [
|
||||
'jql' => $jql,
|
||||
'maxResults' => 100,
|
||||
'fields' => ['summary', 'status', 'created', 'resolutiondate']
|
||||
];
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Authorization: Basic ' . base64_encode("$userEmail:$apiToken"),
|
||||
'Content-Type: application/json',
|
||||
'Accept: application/json'
|
||||
]);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
|
||||
|
||||
$response = curl_exec($ch);
|
||||
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
$result = json_decode($response, true);
|
||||
$ticketsOuverts = [];
|
||||
$ticketsResolus = [];
|
||||
|
||||
// 🧩 même logique de sortie que ta version originale
|
||||
if ($httpcode == 200 && isset($result['issues'])) {
|
||||
foreach ($result['issues'] as $issue) {
|
||||
$ticket = [
|
||||
'key' => $issue['key'],
|
||||
'summary' => $issue['fields']['summary'],
|
||||
'status' => $issue['fields']['status']['name'],
|
||||
'url' => $jiraDomain . '/browse/' . $issue['key'],
|
||||
'created' => $issue['fields']['created'] ?? null,
|
||||
'resolved' => $issue['fields']['resolutiondate'] ?? null
|
||||
];
|
||||
|
||||
if (in_array(strtolower($ticket['status']), ['done', 'resolved', 'terminé', 'fermé', 'résolu', 'annulé'])) {
|
||||
$ticketsResolus[] = $ticket;
|
||||
} else {
|
||||
$ticketsOuverts[] = $ticket;
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'success' => true,
|
||||
'ouverts' => $ticketsOuverts,
|
||||
'resolus' => $ticketsResolus
|
||||
];
|
||||
}
|
||||
|
||||
// ⚠️ même structure d’erreur que ta version originale
|
||||
return [
|
||||
'success' => false,
|
||||
'message' => $result['errorMessages'][0] ?? 'Erreur inconnue',
|
||||
'debug' => $result
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Résout l’accountId (Cloud) pour un email donné.
|
||||
* Retourne null si non trouvé / non accessible.
|
||||
*/
|
||||
function jira_find_account_id_by_email($jiraDomain, $userEmail, $apiToken, $email)
|
||||
{
|
||||
$headers = [
|
||||
'Authorization: Basic ' . base64_encode("$userEmail:$apiToken"),
|
||||
'Accept: application/json'
|
||||
];
|
||||
$url = $jiraDomain . '/rest/api/3/user/search?query=' . urlencode($email);
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
|
||||
$response = curl_exec($ch);
|
||||
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
if ($httpcode !== 200) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$users = json_decode($response, true);
|
||||
if (is_array($users) && count($users) > 0) {
|
||||
foreach ($users as $u) {
|
||||
if (!empty($u['emailAddress']) && strcasecmp($u['emailAddress'], $email) === 0) {
|
||||
return $u['accountId'] ?? null;
|
||||
}
|
||||
}
|
||||
return $users[0]['accountId'] ?? null;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
11
application/hooks/index.html
Normal file
11
application/hooks/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/index.html
Normal file
11
application/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/language/english/email_lang.php
Normal file
11
application/language/english/email_lang.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Utilisateur
|
||||
* Date: 2019-04-22
|
||||
* Time: 12:50
|
||||
*/
|
||||
|
||||
$lang['datereservation'] = 'Date de réservation';
|
||||
$lang['password'] = 'mot de passe';
|
||||
$lang['reservation'] ="RÉSERVATION anglais";
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user