Example #1
0
function loadQuickStart()
{
    if (!is_numeric($_SESSION['userId'])) {
        print "Wrong way";
        exit;
    }
    $diaFile = getDataFolder() . '/quickstart.dmo';
    $data = file_get_contents($diaFile);
    print $data;
}
Example #2
0
/**
 * Returns the path to the proxy configuration file.
 * The path does not contain the trailing /
 * 
 * Note: Open default-proxy.ini file for more information
 * @see https://bitbucket.org/scriptoid/diagramo/issue/163/installation-step2-failing-on-internet
 * @author Artyom Pokatilov <*****@*****.**>
 */
function getProxyConfigPath()
{
    return getDataFolder() . '/proxy.ini';
}