Menu

[2eb2a2]: / dbsync_update.php  Maximize  Restore  History

Download this file

64 lines (50 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php session_start();
include("utils/utils.inc.php");
include("conf/config.inc.php");
include("utils/copypaste.inc.php");
if(isset($_SESSION['username'])) {
$updateuser=$_SESSION["username"];
} else $updateuser="Not logged in";
if (isset($_POST['frmprojectid'])) $projectid = $_POST['frmprojectid']; else $projectid="";
if (isset($_POST['lastversionnr'])) $lastversionnr = $_POST['lastversionnr']; else $lastversionnr="";
if (isset($_POST['frombranchid'])) $frombranchid = $_POST['frombranchid']; else $frombranchid="";
if (isset($_POST['tobranchid'])) $tobranchid = $_POST['tobranchid']; else $tobranchid="";
if (isset($_POST['frmdbtype'])) $dbtype = $_POST['frmdbtype']; else $dbtype="";
if (isset($_POST['formatgroup'])) $formatgroup = $_POST['formatgroup']; else $formatgroup="";
if (isset($_POST['frmexcludeviews'])) $excludeviews=1; else $excludeviews=0;
if (isset($_POST['frmexcludepackages'])) $excludepackages=1; else $excludepackages=0;
$debug = isset($_POST['frmdebug']);
$htmlformatted=0;
$xmlformatted=0;
$singlefiles=0;
if ($formatgroup=="html") $htmlformatted=1; else
if ($formatgroup=="xml") $xmlformatted=1; else
if ($formatgroup=="singlefiles") $singlefiles=1;
// unused variables
$commitcomment="";
$schemaname="";
if ($htmlformatted) {
echo "
<html>
<head>
<title>
deltasql - Synchronization script
</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"deltasql.css\">
<link rel=\"shortcut icon\" href=\"pictures/favicon.ico\" />
</head>
<body>";
include('head.inc.php');
if (!isset($default_copypaste)) $default_copypaste=1;
printCopyPasteJS($default_copypaste);
}
include("dbsync_update.inc.php");
dbsyncupdate($projectid, $lastversionnr, $frombranchid, $tobranchid, $htmlformatted, $excludeviews, $excludepackages,
$updateuser, 'deltasql-server', $commitcomment, $schemaname, $dbtype, $xmlformatted, $singlefiles, $debug);
$_SESSION['dbsync_projectid'] = $projectid;
if ($htmlformatted) {
echo "
</body>
</html>";
}
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.