Esempio n. 1
0
		<img class="flag" src="<?php 
    echo $flagurl;
    ?>
" alt="<?php 
    echo $selectedlanguage;
    ?>
">
		<?php 
    $snippetDef = array('url' => array('name' => $selectednls . '[urlList]', 'type' => 'fieldlist', 'label' => false, 'class' => 'inputline', 'value' => $urlList));
    $formSnippet = ar('html')->parse((string) ar('html')->form($snippetDef, null, null));
    $snippet = $formSnippet->getElementsByTagName('fieldset');
    echo (string) $snippet;
    ?>
	</div>
	<?php 
    if (getenv("ARIADNE_WORKSPACE") && workspace::enabled($this->path)) {
        ?>
	<div class="field">
		<label for="name" class="required"><?php 
        echo $ARnls["ariadne:workspace:url"] . ": " . $workspace;
        ?>
</label>
		<img class="flag" src="<?php 
        echo $flagurl;
        ?>
" alt="<?php 
        echo $selectedlanguage;
        ?>
">
		<input id="name" type="text" name="<?php 
        echo $selectednls . "[workspaceurl]";
Esempio n. 2
0
<?php

$ARCurrent->allnls = true;
if ($this->CheckLogin("read") && $this->CheckConfig()) {
    require_once $this->store->get_config("code") . "modules/mod_yui.php";
    require_once $this->store->get_config("code") . "modules/mod_workspace.php";
    if (workspace::enabled($this->path) && getenv("ARIADNE_WORKSPACE")) {
        $imagesdir = $AR->dir->images;
        $status = workspace::status($this->path);
        if ($status['hardlinks']) {
            $icon = $imagesdir . "svn/ConflictIcon.png";
            $details = "<strong>" . $ARnls['ariadne:workspace:warning'] . ": </strong>" . $ARnls['ariadne:workspace:hardlinks_found'] . "<br><br>";
            $section = array('id' => 'workspace', 'label' => "Workspace", 'inline_icon' => $icon, 'details' => $details);
        } else {
            $combined_status = false;
            foreach ($status as $key => $value) {
                $combined_status = $combined_status || $value;
            }
            if ($combined_status) {
                $icon = $imagesdir . "svn/ModifiedIcon.png";
            } else {
                $icon = $imagesdir . "svn/InSubVersionIcon.png";
            }
            $tasks = array();
            $tasks[] = array('href' => $this->make_local_url() . "dialog.workspace.php", 'onclick' => "muze.ariadne.explore.arshow('dialog.workspace', this.href); return false;", 'icon' => $imagesdir . 'icons/small/go.png', 'nlslabel' => $ARnls['ariadne:workspace:manage_workspace']);
            $tasks[] = array('href' => $this->make_local_url() . "view.html", 'onclick' => "muze.ariadne.explore.arshow('_new', this.href); return false;", 'icon' => $imagesdir . 'icons/small/viewweb.png', 'nlslabel' => $ARnls['ariadne:workspace:view_workspace']);
            $siteob = current($this->get($this->currentsite(), "system.get.phtml"));
            $tasks[] = array('href' => str_replace($siteob->data->workspaceurl, $siteob->data->url, $this->make_local_url($path, false, false)), 'onclick' => "muze.ariadne.explore.arshow('_new', this.href); return false;", 'icon' => $imagesdir . 'icons/small/viewweb.png', 'nlslabel' => $ARnls['ariadne:workspace:view_live']);
            $section = array('id' => 'workspace', 'label' => $ARnls['ariadne:workspace:workspace'], 'inline_icon' => $icon, 'tasks' => $tasks, 'details' => $details);
        }
        echo yui::getSection($section);
Esempio n. 3
0
 function _activate($path, $workspace = "workspace")
 {
     return workspace::activate($path, $workspace);
 }
Esempio n. 4
0
}
$loaderType = $ARLoader ? $ARLoader : 'web';
require_once AriadneBasePath . "/../vendor/autoload.php";
require_once AriadneBasePath . '/configs/ariadne.phtml';
require_once AriadneBasePath . '/configs/ariadne-default.phtml';
require_once AriadneBasePath . "/configs/sessions.phtml";
require_once AriadneBasePath . "/configs/cache.phtml";
require_once AriadneBasePath . "/configs/authentication.phtml";
require_once AriadneBasePath . "/configs/store.phtml";
require_once AriadneBasePath . "/ar.php";
require_once AriadneBasePath . "/modules/mod_debug.php";
require_once AriadneBasePath . "/modules/mod_cache.php";
$AR->context = array();
if ($workspace = getenv("ARIADNE_WORKSPACE")) {
    include_once $store_config['code'] . "modules/mod_workspace.php";
    $layer = workspace::getLayer($workspace);
    if (!$layer) {
        $layer = 1;
    }
    if ($wspaths = getenv("ARIADNE_WORKSPACE_PATHS")) {
        $wspaths = explode(";", $wspaths);
        foreach ($wspaths as $wspath) {
            if ($wspath != '') {
                $store_config['layer'][$wspath] = $layer;
            }
        }
    } else {
        $store_config['layer'] = array('/' => $layer);
    }
}
require_once AriadneBasePath . "/includes/loader." . $loaderType . ".php";