} elseif ($frsf->isError()) {
exit_error($frsf->getErrorMessage(),'frs');
} else {
- //$date_list = split('[- :]',$release_time,5);
- //$release_time = mktime($date_list[3],$date_list[4],0,$date_list[1],$date_list[2],$date_list[0]);
$release_time = strtotime($release_time);
if (!$frsf->update($type_id, $processor_id, $release_time, $new_release_id)) {
$error_msg = $frsf->getErrorMessage();
* Copyright 2009-2011, Franck Villaume - Capgemini
* Copyright 2010-2012, Thorsten Glaser - Tarent
* Copyright 2010-2012, Alain Peyrat - Alcatel-Lucent
- * Copyright 2013,2016-2018, Franck Villaume - TrivialDev
+ * Copyright 2013,2016-2018,2021, Franck Villaume - TrivialDev
* Copyright 2016, Stéphane-Eymeric Bredthauer - TrivalDev
*
* This file is part of FusionForge. FusionForge is free software;
return ($data);
}
- $lines = split("\n", $data);
+ $lines = explode("\n", $data);
$newText = "";
foreach ($lines as $key => $line) {
// Do not scan lines if they already have hyperlinks.
<?php
-/** External authentication via A-Select for Gforge
+/**
+ * External authentication via A-Select for FusionForge
*
- * This file is part of Gforge
+ * This file is part of FusionForge
*
- * This plugin, like Gforge, is free software; you can redistribute it
+ * This plugin, like FusionForge, is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
switch ($hookname) {
case "session_set_entry":
-
$Aselect = new Aselect();
$loginname = strtolower($Aselect->getUserName());//Since A-Select UserID is
//not case sensitive we pass it to lower case
return false ;
}
} else {
- $GLOBALS['aselect_auth_failed']=true;
- return false;
+ $GLOBALS['aselect_auth_failed']=true;
+ return false;
}
}
<?php
-/** A-Select class for Gforge
+/**
+ * A-Select class for FusionForge
*
- * This file is part of Gforge
+ * This file is part of FusionForge
*
- * This class, like Gforge, is free software; you can redistribute it
+ * This class, like FusionForge, is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
$a = explode('&', $_COOKIE['aselectattributes']);
$i = 0;
while ($i < count($a)) {
- $b = split('=', $a[$i]);
- $this->$attributes[htmlspecialchars(urldecode($b[0]))] = htmlspecialchars(urldecode($b[1]));
- $i++;
- }
- } else {
- //nothing to be done here yet.
+ $b = explode('=', $a[$i]);
+ $this->$attributes[htmlspecialchars(urldecode($b[0]))] = htmlspecialchars(urldecode($b[1]));
+ $i++;
}
+ } else {
+ //nothing to be done here yet.
+ }
if(isset($_COOKIE['aselectticket'])){
$this->ticket = $_COOKIE['aselectticket'];
} else {
- $this->ticket = '';
+ $this->ticket = '';
}
}
<?php
-/** External authentication via A-Select for Gforge
+/**
+ * External authentication via A-Select for FusionForge
*
- * This file is part of Gforge
+ * This file is part of FusionForge
*
- * This plugin, like Gforge, is free software; you can redistribute it
+ * This plugin, like FusionForge, is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
* doaprdfPlugin Class
*
* Copyright 2011, Olivier Berger & Institut Telecom
+ * Copyright 2021, Franck Villaume - TrivialDev
*
* This program was developped in the frame of the COCLICO project
* (http://www.coclico-project.org/) with financial support of the Paris
$res->setProp('doap:homepage', $homepages);
$tags = array();
if($tags_list) {
- $tags = split(', ',$tags_list);
+ $tags = explode(', ',$tags_list);
$res->setProp('dcterms:subject', $tags);
}
* MantisBT plugin
*
* Copyright 2010-2011, Franck Villaume - Capgemini
- * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012,2021, Franck Villaume - TrivialDev
* http://fusionforge.org
*
* This file is part of FusionForge. FusionForge is free software;
$version_data['project_id'] = $mantisbtConf['id_mantisbt'];
$version_data['name'] = getStringFromRequest('version_name');
$version_data['description'] = getStringFromRequest('version_description');
-list($day, $month, $year) = split('[/.-]', getStringFromRequest('version_date_order'));
+list($day, $month, $year) = preg_split('[/.-]', getStringFromRequest('version_date_order'));
$version_data['date_order'] = $month."/".$day."/".$year;
try {
$days_adjust = getIntFromRequest('days_adjust');
if ($project_task_id && $week && $time_code && $hours) { # && $days_adjust has always a valid number. No need to prove.
-
- //$date_list = split('[- :]',$report_date,5);
- //$report_date = mktime($date_list[3],$date_list[4],0,$date_list[1],$date_list[2],$date_list[0]);
//make it 12 NOON of the report_date
$report_date=($week + ($days_adjust*REPORT_DAY_SPAN))+(12*60*60);
$res = db_query_params ('INSERT INTO rep_time_tracking (user_id,week,report_date,project_task_id,time_code,hours)