Code Duplication    Length = 39-39 lines in 4 locations

lib/templates/pobject/dialog.svn.templates.resolved.php 1 location

@@ 3-41 (lines=39) @@
1
<?php
2
	$ARCurrent->nolangcheck=true;
3
	if ($this->CheckLogin("layout") && $this->CheckConfig()) {
4
		include($this->store->get_config("code")."widgets/wizard/code.php");
5
6
		$wgWizFlow = array(
7
			array(
8
				"current" => $this->getdata("wgWizCurrent","none"),
9
				"template" => "dialog.svn.templates.diff.form.php",
10
				"cancel" => "window.close.js",
11
				"save" => "dialog.svn.templates.resolved.save.php"
12
			)
13
		);
14
15
		$wgWizAction = $this->getdata("wgWizAction");
16
17
		if( $wgWizAction == "save" ) {
18
			$wgWizButtons = array(
19
				"cancel" => array(
20
					"value" => $ARnls["ok"]
21
				)
22
			);
23
		} else {
24
			$wgWizButtons = array(
25
				"cancel" => array(
26
					"value" => $ARnls["cancel"]
27
				),
28
				"save" => array(
29
					"value" => $ARnls["ariadne:svn:resolved"]
30
				),
31
			);
32
		}
33
34
		$wgWizTitle=$ARnls['ariadne:svn:resolved'];
35
		$wgWizHeader = $wgWizTitle;
36
		$wgWizHeaderIcon = $AR->dir->images.'icons/large/svnconflict.png';
37
38
		$wgWizStyleSheets = array( $AR->dir->styles."svn.css" );
39
40
		include($this->store->get_config("code")."widgets/wizard/yui.wizard.html");
41
	}
42
?>
43

lib/templates/pobject/dialog.svn.templates.revert.php 1 location

@@ 3-41 (lines=39) @@
1
<?php
2
	$ARCurrent->nolangcheck=true;
3
	if ($this->CheckLogin("layout") && $this->CheckConfig()) {
4
		include($this->store->get_config("code")."widgets/wizard/code.php");
5
6
		$wgWizFlow = array(
7
			array(
8
				"current" => $this->getdata("wgWizCurrent","none"),
9
				"template" => "dialog.svn.templates.diff.form.php",
10
				"cancel" => "window.close.js",
11
				"save" => "dialog.svn.templates.revert.save.php"
12
			)
13
		);
14
15
		$wgWizAction = $this->getdata("wgWizAction");
16
17
		if( $wgWizAction == "save" ) {
18
			$wgWizButtons = array(
19
				"cancel" => array(
20
					"value" => $ARnls["ok"]
21
				)
22
			);
23
		} else {
24
			$wgWizButtons = array(
25
				"cancel" => array(
26
					"value" => $ARnls["cancel"]
27
				),
28
				"save" => array(
29
					"value" => $ARnls["ariadne:svn:revert"]
30
				),
31
			);
32
		}
33
34
		$wgWizTitle=$ARnls['ariadne:svn:revert'];
35
		$wgWizHeader = $wgWizTitle;
36
		$wgWizHeaderIcon = $AR->dir->images.'icons/large/svnrevert.png';
37
38
		$wgWizStyleSheets = array( $AR->dir->styles."svn.css" );
39
40
		include($this->store->get_config("code")."widgets/wizard/yui.wizard.html");
41
	}
42
?>
43

lib/templates/pobject/dialog.svn.templates.serverdiff.php 1 location

@@ 3-41 (lines=39) @@
1
<?php
2
	$ARCurrent->nolangcheck=true;
3
	if ($this->CheckLogin("layout") && $this->CheckConfig()) {
4
		include($this->store->get_config("code")."widgets/wizard/code.php");
5
6
		$wgWizFlow = array(
7
			array(
8
				"current" => $this->getdata("wgWizCurrent","none"),
9
				"template" => "dialog.svn.templates.serverdiff.form.php",
10
				"cancel" => "window.close.js",
11
				"save" => "dialog.svn.templates.serverdiff.save.php"
12
			)
13
		);
14
15
		$wgWizAction = $this->getdata("wgWizAction");
16
17
		if( $wgWizAction == "save" ) {
18
			$wgWizStyleSheets = array( $AR->dir->styles."svn.css" );
19
20
			$wgWizButtons = array(
21
				"cancel" => array(
22
					"value" => $ARnls["ok"]
23
				)
24
			);
25
		} else {
26
			$wgWizButtons = array(
27
				"cancel" => array(
28
					"value" => $ARnls["cancel"]
29
				),
30
				"save" => array(
31
					"value" => $ARnls["ariadne:svn:serverdiff"]
32
				),
33
			);
34
		}
35
36
		$wgWizTitle=$ARnls['ariadne:svn:serverdiff'];
37
		$wgWizHeader = $wgWizTitle;
38
		$wgWizHeaderIcon = $AR->dir->images.'icons/large/svndiff.png';
39
40
		include($this->store->get_config("code")."widgets/wizard/yui.wizard.html");
41
	}
42
?>
43

lib/templates/pobject/dialog.svn.tree.update.php 1 location

@@ 3-41 (lines=39) @@
1
<?php
2
	$ARCurrent->nolangcheck=true;
3
	if ($this->CheckLogin("layout") && $this->CheckConfig()) {
4
		include($this->store->get_config("code")."widgets/wizard/code.php");
5
6
		$wgWizFlow = array(
7
			array(
8
				"current" => $this->getdata("wgWizCurrent","none"),
9
				"template" => "dialog.svn.tree.update.form.php",
10
				"cancel" => "window.close.js",
11
				"save" => "dialog.svn.tree.update.save.php"
12
			)
13
		);
14
15
		$wgWizAction = $this->getdata("wgWizAction");
16
17
		if( $wgWizAction == "save" ) {
18
			$wgWizStyleSheets = array( $AR->dir->styles."svn.css" );
19
20
			$wgWizButtons = array(
21
				"cancel" => array(
22
					"value" => $ARnls["ok"]
23
				)
24
			);
25
		} else {
26
			$wgWizButtons = array(
27
				"cancel" => array(
28
					"value" => $ARnls["cancel"]
29
				),
30
				"save" => array(
31
					"value" => $ARnls["ariadne:svn:update"]
32
				),
33
			);
34
		}
35
36
		$wgWizTitle=$ARnls['ariadne:svn:update_recursive'];
37
		$wgWizHeader = $wgWizTitle;
38
		$wgWizHeaderIcon = $AR->dir->images.'icons/large/svnupdate.png';
39
40
		include($this->store->get_config("code")."widgets/wizard/yui.wizard.html");
41
	}
42
?>
43