2010-12-02 23:34:41 +00:00
|
|
|
<?php
|
|
|
|
|
//this redirect a valid workspace to his encrypted url, for invalid workspaces show the create workspace page.
|
|
|
|
|
|
|
|
|
|
// define ('RED_HAT_8', 1);
|
|
|
|
|
// define("URL_KEY", 'c0l0s40pt1mu59r1m3' );
|
|
|
|
|
// define("ENABLE_ENCRYPT", 'yes' );
|
|
|
|
|
|
2017-02-15 16:26:02 +00:00
|
|
|
|
2015-03-20 14:24:44 -04:00
|
|
|
$filter = new InputFilter();
|
|
|
|
|
$COMPLETE_URI = $filter->xssFilterHard($_SERVER["REQUEST_URI"]);
|
2010-12-02 23:34:41 +00:00
|
|
|
|
|
|
|
|
$webAddress = substr($COMPLETE_URI,1);
|
|
|
|
|
$COMPLETE_URI = strtolower ($COMPLETE_URI) . "/mNE/qsll/n9KX1Z4/n9KX1Z6hnKTd4A";
|
|
|
|
|
|
|
|
|
|
if ( !is_file( "/shared/workflow_data/sites/".$webAddress."/db.php") ) {
|
|
|
|
|
$server = getenv ( "SERVER_NAME");
|
2011-04-13 18:57:02 -04:00
|
|
|
//redirect to https in case the workspace it doesn't exist
|
2010-12-02 23:34:41 +00:00
|
|
|
if (( $server == 'www.processmaker.com' )||( $server == 'processmaker.com' ))
|
|
|
|
|
$COMPLETE_URI = "https://www.processmaker.com";
|
|
|
|
|
else
|
|
|
|
|
//go to install workspace
|
|
|
|
|
$COMPLETE_URI = "/install/createNewWebSite.php?webAddress=".$webAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>Redirector</title>
|
|
|
|
|
<meta http-equiv="PRAGMA" content="NO-CACHE" />
|
|
|
|
|
<meta http-equiv="CACHE-CONTROL" content="NO-STORE" />
|
2012-07-23 10:33:03 -04:00
|
|
|
<meta http-equiv="REFRESH" content="0;URL=<?php echo $COMPLETE_URI ?>" />
|
2010-12-02 23:34:41 +00:00
|
|
|
</head>
|
|
|
|
|
<body bgcolor="White">
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|