Skip to content

Commit cb71d11

Browse files
committed
Merge remote-tracking branch 'origin/changes-part-1a' into changes-part-1
2 parents 23490c6 + fc6ed73 commit cb71d11

19 files changed

Lines changed: 2915 additions & 3306 deletions

install/installCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
$inst_phase = 'checking'; // global variable -> absolutely wrong use as usual, used on installHead.inc
2727
$msg='';
28-
include 'installHead.inc';
28+
include_once 'installHead.inc';
2929
?>
3030
<div class="tlStory">
3131

@@ -72,5 +72,5 @@
7272
<?php
7373
}
7474

75-
include 'installFooter.inc';
75+
include_once 'installFooter.inc';
7676
?>

install/installDbInput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
$msg='';
2626
$inst_phase = 'dbaccess'; // global variable -> absolutely wrong use as usual, used on installHead.inc
27-
include 'installHead.inc';
27+
include_once 'installHead.inc';
2828
?>
2929
<div class="tlStory">
3030

@@ -210,7 +210,7 @@ function validate() {
210210
</p>
211211

212212
<p>
213-
<?php
213+
<?php
214214
if ($_SESSION['isNew']) {
215215
echo 'After successfull installation You will' . ' have the following login for TestLink Administrator:<br />' . 'login name: admin <br /> password : admin';
216216
}
@@ -223,4 +223,4 @@ function validate() {
223223
</form>
224224

225225
</div>
226-
<?php include 'installFooter.inc'; ?>
226+
<?php include_once 'installFooter.inc'; ?>

install/installHead.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function getPhaseAttr($inst_phase, $phase)
4242
<li<?php echo getPhaseAttr($inst_phase,'dbaccess')?> >Definition of DB access</li>
4343
<li<?php echo getPhaseAttr($inst_phase,'dbprocess')?> >
4444
<?php if ($_SESSION['isNew'])
45-
echo "Create DB, testlink DB user, structures and default data & create configuration file.";
46-
else echo "Update DB structures and migrate data."; ?>
45+
{echo "Create DB, testlink DB user, structures and default data & create configuration file.";}
46+
else {echo "Update DB structures and migrate data.";} ?>
4747
</li>
4848
<li<?php echo getPhaseAttr($inst_phase,'final') ?>>Verify the procedure result and continue
4949
to TestLink login.</li>

install/installIntro.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
exit;
4545
}
4646

47-
include 'installHead.inc';
47+
include_once 'installHead.inc';
4848
?>
4949
<div class="tlStory">
5050
<p><b>TestLink</b> is developed and shared under GPL license. You are welcome to share your changes
@@ -96,4 +96,4 @@ function ableButton() {
9696
<p>
9797

9898
</div>
99-
<?php include 'installFooter.inc'; ?>
99+
<?php include_once 'installFooter.inc'; ?>

install/installNewDB.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
}
211211

212212
$db = new database($dbDriverName);
213-
define('NO_DSN',FALSE);
213+
define('NO_DSN',false);
214214
@$conn_result = $db->connect(NO_DSN,$db_server, $db_admin_name, $db_admin_pass);
215215

216216
if( $conn_result['status'] == 0 ) {
@@ -264,7 +264,7 @@
264264
$db->close();
265265
$db = null;
266266

267-
$db = New database($dbDriverName);
267+
$db = new database($dbDriverName);
268268
$conn_result=$db->connect(NO_DSN,$db_server, $db_admin_name, $db_admin_pass);
269269
echo "<br /><b>Creating database `" . $db_name . "`</b>:";
270270

@@ -502,7 +502,7 @@
502502
}
503503

504504

505-
if($sqlParser->install_failed==true)
505+
if($sqlParser->install_failed)
506506
{
507507
echo "<span class='notok'>Failed!</span></b> - {$inst_type_verbose} failed!";
508508
$errors += 1;
@@ -629,7 +629,7 @@ function write_config_db($filename, $data)
629629
}
630630

631631
// Write $somecontent to our opened file.
632-
if (@fwrite($handle, $configString) === FALSE)
632+
if (@fwrite($handle, $configString) === false)
633633
{
634634
$ret['status'] = 'ko';
635635
}

install/installUtils.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,11 @@ function _mysql_make_user($dbhandler,$db_host,$db_name,$login,$passwd) {
511511
$isMariaDB = false;
512512
$isMySQL = false;
513513
foreach ($vg as $vn => $vv) {
514-
if (strripos($vv,'MariaDB') !== FALSE) {
514+
if (strripos($vv,'MariaDB') !== false) {
515515
$isMariaDB = true;
516516
break;
517517
}
518-
if (strripos($vv,'MySQL') !== FALSE) {
518+
if (strripos($vv,'MySQL') !== false) {
519519
$isMySQL = true;
520520
break;
521521
}
@@ -880,7 +880,7 @@ function _mssql_make_user($db,$the_host,$db_name,$login,$passwd)
880880
// I've problems trying to set password,
881881
// then I will use as workaround setting a NULL password
882882
// and after do a password change.
883-
$passwd_null=NULL;
883+
$passwd_null=null;
884884
$stmt = $db->db->PrepareSP('SP_PASSWORD');
885885
$db->db->InParameter($stmt,$login,'loginame');
886886
$db->db->InParameter($stmt,$passwd_null,'old');

0 commit comments

Comments
 (0)