?>
';
        <!-- Chamilo hack for general my files users  -->
        if (!mode_editor) {
            // Added by Ivan Tcholakov, 22-JUL-2009.
            // For integration with the editor's dialig system.
            var oEditor = null;
            if (!window.opener && window.parent) {
                // The file manager is inside a dialog.
                oEditor = window.parent.InnerDialogLoaded();
            }
            //end hack
        }
        var globalSettings = {'upload_init': false};
        var queryString = '<?php 
echo makeQueryString(array('path'));
?>
';
        var paths = {'root': '<?php 
echo addTrailingSlash(backslashToSlash(CONFIG_SYS_ROOT_PATH));
?>
', 'root_title': '<?php 
echo LBL_FOLDER_ROOT;
?>
'};

        <!-- Chamilo hack for breadcrumb into shared folders -->
        var shared_folder = '<?php 
echo get_lang('UserFolders');
?>
';
Example #2
0
echo IMG_BTN_SAVE_AS;
?>
</button>
			<button id="actionClose" class="button" onclick="return editorClose();"><?php 
echo IMG_BTN_CLOSE;
?>
</button></p>
		</form>
	</fieldset>
	<fieldset id="imageInfo">
		<legend id="imageInfoLegend"><?php 
echo IMG_INFO;
?>
</legend>
		<form name="formImageInfo" action="<?php 
echo appendQueryString(CONFIG_URL_IMAGE_SAVE, makeQueryString(array('path')));
?>
" method="post" id="formImageInfo">
			<p><input type="hidden" name="mode" id="image_mode" value="" />
      <input type="hidden" name="new_name" id="hidden_new_name" value="" />
      <input type="hidden" name="save_to" id="hidden_save_to" value="" />
			<input type="hidden" name="path" id="path" value="<?php 
echo $_GET['path'];
?>
"  />
			<input type="hidden" name="flip_angle" id="flip_angle" value="" />
			<label><?php 
echo IMG_LBL_WIDTH;
?>
</label> <input type="text" name="width" id="width" value="" class="input imageInput"  />
			<label><?php 
Example #3
0
 function _echoPageNumber($number, $label, $prefix = "", $postfix = "")
 {
     global $g_options;
     echo "{$prefix}<a href=\"index.php?" . makeQueryString($this->var_page, $number);
     if ($this->sorthash) {
         echo "#{$this->sorthash}";
     }
     echo "\">{$label}</a>{$postfix} ";
 }
<?php

if (!defined('AJAX_INIT_DONE')) {
    die('Permission denied');
}
?>
<div id="content">
<?php 
$count = 1;
$imageBaseUrl = appendQueryString(CONFIG_URL_IMG_image, makeQueryString(array('path')));
foreach ($fileList as $file) {
    ?>
	<dl class="imageListing" id="dl<?php 
    echo $count;
    ?>
">
		<dt id="dt<?php 
    echo $count;
    ?>
"
			class="<?php 
    echo $file['type'] == 'folder' && empty($file['file']) && empty($file['subdir']) ? 'folderEmpty' : $file['cssClass'];
    ?>
"
			class="<?php 
    echo $file['cssClass'];
    ?>
">
			<?php 
    switch ($file['cssClass']) {
        case 'filePicture':
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax File Manager</title>
<script type="text/javascript" src="jscripts/ajaxfilemanager_c.js"></script>
<!--<script type="text/javascript" src="jscripts/jquery.js"></script>
<script type="text/javascript" src="jscripts/form.js"></script>
<script type="text/javascript" src="jscripts/select.js"></script>
<script type="text/javascript" src="jscripts/thickbox.js"></script>
<script type="text/javascript" src="jscripts/calendar.js"></script>
<script type="text/javascript" src="jscripts/contextmenu.js"></script>
<script type="text/javascript" src="jscripts/media.js"></script>
<script type="text/javascript" src="jscripts/ajaxfileupload.js"></script>
<script type="text/javascript" src="jscripts/ajaxfilemanager.js"></script>-->
<script type="text/javascript">
	var globalSettings = {'upload_init':false};
	var queryString = '<?php 
echo Tools::safeOutput(makeQueryString(array('path')));
?>
';
	var paths = {'root':'<?php 
echo addTrailingSlash(backslashToSlash(CONFIG_SYS_ROOT_PATH));
?>
', 'root_title':'<?php 
echo LBL_FOLDER_ROOT;
?>
'};
	var parentFolder = {};
	var urls = {
			'upload':'<?php 
echo CONFIG_URL_UPLOAD;
?>
',
?>
/css/jqModal.css" type="text/css" rel="stylesheet"/>
    <title>Ajax Text Editor</title>
</head>
<body>

<div id="pageBody">
    <textarea name="content" id="content" style="height:500px; width: 97%;"><?php 
echo getFileContent($path);
?>
</textarea>
</div>
<div id="windowProcessing" class="jqmWindow" style="display:none">
    <form name="frmProcessing" id="frmProcessing" method="post"
          action="<?php 
echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));
?>
">
        <input type="hidden" name="folder" id="folder" value="<?php 
echo dirname($path);
?>
"/>
        <input type="hidden" name="name" id="name" value="<?php 
echo basename($path);
?>
"/>
        <input type="hidden" name="save_as_request" id="save_as_request" value="0"/>

        <div style="display:none"><textarea name="text" id="text"></textarea></div>
    </form>
    <a href="#" class="jqmClose" id="windowSaveClose"><?php 
Example #7
0
 * @link www.phpletter.com
 * @since 22/April/2007
 *
 */
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
//Code added to adjust for local admin rights.
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] === false) {
    if (isset($_POST['username'])) {
        if ($auth->login()) {
            header('Location: ' . appendQueryString(CONFIG_URL_HOME, makeQueryString()));
            exit;
        }
    }
} else {
    $_SESSION['ajax_user'] = true;
    header('Location: ' . appendQueryString(CONFIG_URL_HOME, makeQueryString()));
    exit;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="theme/<?php 
echo CONFIG_THEME_NAME;
?>
/css/login.css" rel="stylesheet" />
<title><?php 
echo LOGIN_PAGE_TITLE;
?>
Example #8
0
function getSortArrow($sort, $sortorder, $name, $longname, $var_sort = "sort", $var_sortorder = "sortorder", $sorthash = "")
{
    global $g_options;
    if ($sortorder == "asc") {
        $sortimg = "sort-ascending.gif";
        $othersortorder = "desc";
    } else {
        $sortimg = "sort-descending.gif";
        $othersortorder = "asc";
    }
    $arrowstring = $g_options["font_small"] . "<a href=\"index.php?" . makeQueryString($var_sort, $name, array($var_sortorder));
    if ($sort == $name) {
        $arrowstring .= "&amp;{$var_sortorder}={$othersortorder}";
    } else {
        $arrowstring .= "&amp;{$var_sortorder}={$sortorder}";
    }
    if ($sorthash) {
        $arrowstring .= "#{$sorthash}";
    }
    $arrowstring .= "\" style=\"color: " . $g_options["table_head_text"] . "\" title=\"" . l('Change sorting order') . "\">" . "<font color=\"" . $g_options["table_head_text"] . "\">" . $longname . "</font></a>";
    if ($sort == $name) {
        $arrowstring .= "&nbsp;<img src=\"" . $g_options["imgdir"] . "/{$sortimg}\"" . "width='7' height='7' hspace='4' border='0' align=\"middle\" alt=\"{$sortimg}\">";
    }
    $arrowstring .= $g_options["fontend_small"];
    return $arrowstring;
}
Example #9
0
<?php

/**
 * reset the image
 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
 * @link www.phpletter.com
 * @since 22/May/2007
 *
 */
require_once '../../config/config.inc.php';
require_once '../init.php';
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
if (!isset($_POST['path'])) {
    $_POST['path'] = "uploaded/Winter.jpg" . "?" . makeQueryString(array('path'));
    //for crop
    $_POST['mode'] = "crop";
    $_POST['x'] = 100;
    $_POST['y'] = 100;
    $imageInfo = @GetImageSize($_POST['path']);
    $_POST['width'] = $imageInfo[0];
    $_POST['height'] = $imageInfo[1];
}
initSessionHistory($_POST['path']);
echo "{";
$error = "";
$info = "";
if (empty($_POST['path'])) {
    $error = IMG_SAVE_EMPTY_PATH;
} elseif (!file_exists($_POST['path'])) {
    $error = IMG_SAVE_NOT_EXISTS;
} elseif (!isUnderRoot($_POST['path'])) {
		

			
</script>

<link href="theme/<?php echo CONFIG_THEME_NAME; ?>/css/editor.css" type="text/css" rel="stylesheet" />
<link href="theme/<?php echo CONFIG_THEME_NAME; ?>/css/jqModal.css" type="text/css" rel="stylesheet" />
<title>Ajax Text Editor</title>
</head>
<body>

<div id="pageBody">
	<textarea name="content" id="content" style="height:500px; width: 97%;"><?php echo getFileContent($path); ?></textarea>
</div>
<div id="windowProcessing" class="jqmWindow" style="display:none">
	<form name="frmProcessing" id="frmProcessing" method="POST" action="<?php echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));?>">
		<input type="hidden" name="folder" id="folder" value="<?php echo dirname($path); ?>" />
		<input type="hidden" name="name" id="name" value="<?php echo basename($path); ?>" />	
		<input type="hidden" name="save_as_request" id="save_as_request" value="0" />
		<div style="display:none"><textarea name="text" id="text"></textarea></div> 
	</form> 
	<a href="#" class="jqmClose" id="windowSaveClose"><?php echo IMG_BTN_CANCEL; ?></a>
	<p><img src="theme/<?php echo CONFIG_THEME_NAME; ?>/images/loading.gif" /></p>
</div>
<div id="windowSaveAs" class="jqmWindow" style="display:none">
    	<a href="#" class="jqmClose" id="windowSaveClose"><?php echo IMG_BTN_CANCEL; ?></a>
      <form id="formSaveAs" name="formSaveAs" action="" method="post">
    	<table class="tableForm" cellpadding="0" cellspacing="0">
      	<thead>
        	<tr>
          	<th colspan="2"><?php echo IMG_LBL_SAVE_AS; ?></th>
Example #11
0
 function ApplyRedirects($req, $rules)
 {
     $doRedirect = false;
     foreach ($rules as $rule) {
         //if (!empty($rule->match)) { // FIXME - Never ever upgrade to PHP 5.2.6.  It breaks empty() on SimpleXML objects.
         if ($rule->match) {
             $ismatch = true;
             $isexcept = false;
             $matchvars = array(NULL);
             // Force first element to NULL to start array indexing at 1 (regex-style)
             foreach ($rule->match->attributes() as $matchkey => $matchstr) {
                 $checkstr = array_get($req, $matchkey);
                 if ($checkstr !== NULL) {
                     $m = NULL;
                     if (substr($matchstr, 0, 1) == "!") {
                         $ismatch &= !preg_match("#" . substr($matchstr, 1) . "#", $checkstr, $m);
                     } else {
                         $ismatch &= preg_match("#" . $matchstr . "#", $checkstr, $m);
                     }
                     //Logger::Debug("Check rewrite (%s): '%s' =~ '%s' ? %s", $matchkey, $checkstr, $matchstr, ($ismatch ? "YES" : "NO"));
                     if (is_array($m) && count($m) > 0) {
                         if (count($m) > 1) {
                             for ($i = 1; $i < count($m); $i++) {
                                 $matchvars[] = $m[$i];
                             }
                         }
                     }
                 } else {
                     if (substr($matchstr, 0, 1) != "!") {
                         $ismatch = false;
                     }
                 }
             }
             if ($ismatch && $rule->except) {
                 $exceptflag = true;
                 foreach ($rule->except->attributes() as $exceptkey => $exceptstr) {
                     $checkstr = array_get($req, $exceptkey);
                     if ($checkstr !== NULL) {
                         $m = NULL;
                         if (substr($exceptstr, 0, 1) == "!") {
                             $exceptflag &= !preg_match("#" . substr($exceptstr, 1) . "#", $checkstr, $m);
                         } else {
                             $exceptflag &= preg_match("#" . $exceptstr . "#", $checkstr, $m);
                         }
                     }
                 }
                 if ($exceptflag) {
                     $isexcept = true;
                 }
             }
             if ($ismatch && !$isexcept) {
                 // Apply nested rules first...
                 if ($rule->rule) {
                     $req = $this->ApplyRedirects($req, $rule->rule);
                 }
                 // Then process "set" command
                 if ($rule->set) {
                     Logger::Info("Applying redirect:\n   " . $rule->asXML());
                     if (!empty($req["args"]["testredir"])) {
                         print "<pre>" . htmlspecialchars($rule->asXML()) . "</pre><hr />";
                     }
                     foreach ($rule->set->attributes() as $rewritekey => $rewritestr) {
                         if (count($matchvars) > 1 && strpos($rewritestr, "%") !== false) {
                             $find = array(NULL);
                             for ($i = 1; $i < count($matchvars); $i++) {
                                 $find[] = "%{$i}";
                             }
                             $rewritestr = str_replace($find, $matchvars, $rewritestr);
                         }
                         array_set($req, (string) $rewritekey, (string) $rewritestr);
                     }
                     if ($rule["type"] == "redirect") {
                         $doRedirect = 301;
                     } else {
                         if ($rule["type"] == "bounce") {
                             $doRedirect = 302;
                         }
                     }
                 }
                 // And finally process "unset"
                 if ($rule->unset) {
                     $unset = false;
                     foreach ($rule->unset->attributes() as $unsetkey => $unsetval) {
                         if ($unsetkey == "_ALL_" && $unsetval == "ALL") {
                             $req["args"] = array();
                         } else {
                             if (!empty($unsetval)) {
                                 $reqval = array_get($req, $unsetkey);
                                 if ($reqval !== NULL) {
                                     array_unset($req, $unsetkey);
                                     $unset = true;
                                 }
                             }
                         }
                     }
                     if ($unset) {
                         if ($rule["type"] == "redirect") {
                             $doRedirect = 301;
                         } else {
                             if ($rule["type"] == "bounce") {
                                 $doRedirect = 302;
                             }
                         }
                     }
                 }
                 if ($doRedirect !== false) {
                     break;
                 }
             }
         }
     }
     if ($doRedirect !== false) {
         $origscheme = "http" . ($req["ssl"] ? "s" : "");
         if ($req["host"] != $_SERVER["HTTP_HOST"] || $req["scheme"] != $origscheme) {
             $newurl = sprintf("%s://%s%s", $req["scheme"], $req["host"], $req["path"]);
         } else {
             $newurl = $req["path"];
         }
         if (empty($req["args"]["testredir"])) {
             if (empty($req["friendly"])) {
                 $querystr = makeQueryString($req["args"]);
                 $newurl = http_build_url($newurl, array("query" => $querystr));
             } else {
                 $newurl = makeFriendlyURL($newurl, $req["args"]);
             }
             if ($newurl != $req["url"]) {
                 http_redirect($newurl, NULL, true, $doRedirect);
             }
         } else {
             print_pre($req);
         }
     }
     return $req;
 }
/**
 * getSortArrow()
 * 
 * @param mixed $sort
 * @param mixed $sortorder
 * @param mixed $name
 * @param mixed $longname
 * @param string $var_sort
 * @param string $var_sortorder
 * @param string $sorthash
 * @return string Returns the code for a sort arrow <IMG> tag.
 */
function getSortArrow($sort, $sortorder, $name, $longname, $var_sort = 'sort', $var_sortorder = 'sortorder', $sorthash = '', $ajax = false)
{
    global $g_options;
    if ($sortorder == 'asc') {
        $sortimg = 'sort-ascending.gif';
        $othersortorder = 'desc';
    } else {
        $sortimg = 'sort-descending.gif';
        $othersortorder = 'asc';
    }
    $arrowstring = '<a href="' . $g_options['scripturl'] . '?' . makeQueryString($var_sort, $name, array($var_sortorder));
    if ($sort == $name) {
        $arrowstring .= "&amp;{$var_sortorder}={$othersortorder}";
        $jsarrow = "'" . $var_sortorder . "': '" . $othersortorder . "'";
    } else {
        $arrowstring .= "&amp;{$var_sortorder}={$sortorder}";
        $jsarrow = "'" . $var_sortorder . "': '" . $sortorder . "'";
    }
    if ($sorthash) {
        $arrowstring .= "#{$sorthash}";
    }
    $arrowstring .= '" class="head"';
    if ($ajax) {
        $arrowstring .= " onclick=\"Tabs.refreshTab({'{$var_sort}': '{$name}', {$jsarrow}}); return false;\"";
    }
    $arrowstring .= ' title="Change sorting order">' . "{$longname}</a>";
    if ($sort == $name) {
        $arrowstring .= '&nbsp;<img src="' . IMAGE_PATH . "/{$sortimg}\"" . " style=\"padding-left:4px;padding-right:4px;\" alt=\"{$sortimg}\" />";
    }
    return $arrowstring;
}
Example #13
0
        echo $site['game'];
        ?>
</td>
		<td><a href="<?php 
        echo $site['siteURL'];
        ?>
" target="_blank">Visit the site</a> <span class="icon small blue" data-icon="_"></span></td>
	</tr>
<?php 
    }
}
?>
<tr>
	<td colspan="3" style="text-align: right;">
<?php 
if ($sData['pages'] > 1) {
    echo '<ul class="button-bar">';
    for ($i = 1; $i <= $sData['pages']; $i++) {
        if ($page == $i) {
            echo "<li><a>[", $i, "]</a></li>";
        } else {
            echo "<li><a href='index.php?", makeQueryString(array('page' => $i)), "'>", $i, "</a></li>";
        }
    }
    echo '</ul>';
}
?>
		</td>
	</tr>
</table>
Example #14
0
<?php

/**
 * access control login form
 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
 * @link www.phpletter.com
 * @since 22/April/2007
 *
 */
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php";
if (!osc_is_admin_user_logged_in()) {
    exit('Direct access is not allowed.');
}
if (isset($_POST['username'])) {
    if ($auth->login()) {
        osc_redirect_to(appendQueryString(CONFIG_URL_HOME, makeQueryString()));
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="theme/<?php 
echo CONFIG_THEME_NAME;
?>
/css/login.css" rel="stylesheet" />
<title><?php 
echo LOGIN_PAGE_TITLE;
?>
</title>
 function _echoPageNumber($number, $label, $prefix = '', $postfix = '')
 {
     global $g_options;
     echo "{$prefix}<a href=\"" . $g_options['scripturl'] . '?' . makeQueryString($this->var_page, $number);
     if ($this->sorthash) {
         echo "#{$this->sorthash}";
     }
     if ($this->ajax) {
         echo "\" onclick=\"Tabs.refreshTab({'" . $this->var_page . "': " . $number . "}); return false;";
     }
     echo "\">{$label}</a>{$postfix} ";
 }
<?php

if (!defined('AJAX_INIT_DONE')) {
    die('Permission denied');
}
?>
<div id="content">
<?php 
$count = 1;
$thumbnailBaseUrl = appendQueryString(CONFIG_URL_IMG_THUMBNAIL, makeQueryString(array('path')));
foreach ($fileList as $file) {
    ?>
			<dl class="thumbnailListing" id="dl<?php 
    echo $count;
    ?>
">
				<dt id="dt<?php 
    echo $count;
    ?>
" class="<?php 
    echo $file['type'] == 'folder' && empty($file['file']) && empty($file['subdir']) ? 'folderEmpty' : $file['cssClass'];
    ?>
" class="<?php 
    echo $file['cssClass'];
    ?>
">
				<?php 
    switch ($file['cssClass']) {
        case 'filePicture':
            echo '<a id="thumbUrl' . $count . '" rel="thumbPhotos" href="' . $file['path'] . '">';
            echo '<img src="' . appendQueryString($thumbnailBaseUrl, 'path=' . $file['path']) . '" id="thumbImg' . $count . '"></a>' . "\n";
Example #17
0
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax File Manager</title>
<!--<script type="text/javascript" src="jscripts/ajaxfilemanager_c.js"></script>-->
<script type="text/javascript" src="jscripts/jquery.js"></script>
<script type="text/javascript" src="jscripts/form.js"></script>
<script type="text/javascript" src="jscripts/select.js"></script>
<script type="text/javascript" src="jscripts/thickbox.js"></script>
<script type="text/javascript" src="jscripts/calendar.js"></script>
<script type="text/javascript" src="jscripts/contextmenu.js"></script>
<script type="text/javascript" src="jscripts/media.js"></script>
<script type="text/javascript" src="jscripts/ajaxfileupload.js"></script>
<script type="text/javascript" src="jscripts/ajaxfilemanager.js"></script>
<script type="text/javascript">
	var globalSettings = {'upload_init':false};
	var queryString = '<?php echo makeQueryString(array('path')); ?>';
	var paths = {'root':'<?php echo addTrailingSlash(backslashToSlash(CONFIG_SYS_ROOT_PATH)); ?>', 'root_title':'<?php echo LBL_FOLDER_ROOT; ?>'};
	var parentFolder = {};
	var urls = {
			'upload':'<?php echo CONFIG_URL_UPLOAD; ?>',
			'preview':'<?php echo CONFIG_URL_PREVIEW; ?>',
			'cut':'<?php echo CONFIG_URL_CUT; ?>',
			'copy':'<?php echo CONFIG_URL_COPY; ?>',
			'paste':'<?php echo CONFIG_URL_FILE_PASTE; ?>',
			'delete':'<?php echo CONFIG_URL_DELETE; ?>',
			'rename':'<?php echo CONFIG_URL_SAVE_NAME; ?>',
			'thumbnail':'<?php echo CONFIG_URL_IMG_THUMBNAIL;  ?>',
			'create_folder':'<?php echo CONFIG_URL_CREATE_FOLDER; ?>',
			'text_editor':'<?php echo  CONFIG_URL_TEXT_EDITOR; ?>',
			'image_editor':'<?php echo  CONFIG_URL_IMAGE_EDITOR; ?>',
			'download':'<?php echo CONFIG_URL_DOWNLOAD; ?>',
Example #18
0
			<!--			<label>Watermark:</label> <input type="radio" name="mode" value="watermark" class="input" onclick="return false;" />-->
			
			<button id="actionRotateLeft" class="disabledButton" onclick="return leftRotate();" disabled><?php echo IMG_BTN_ROTATE_LEFT; ?></button>
			<button id="actionRotateRight" class="disabledButton" onclick="return rightRotate();" disabled><?php echo IMG_BTN_ROTATE_RIGHT; ?></button>
			<button id="actionFlipH" class="disabledButton" onclick="return flipHorizontal();" disabled><?php echo IMG_BTN_FLIP_H; ?></button>
			<button id="actionFlipV" class="disabledButton" onclick="return flipVertical();" disabled><?php echo IMG_BTN_FLIP_V; ?></button>			
			<button id="actionReset" class="button" onclick="return resetEditor();"><?php echo IMG_BTN_RESET; ?></button>
			<button id="actionUndo" class="button" onclick="return undoImage();"><?php echo IMG_BTN_UNDO; ?></button>
			<button id="actionSave" class="button" onclick="return saveImage();"><?php echo IMG_BTN_SAVE; ?></button>
      <button id="actionSaveAs" class="button" onclick="return saveAsImagePre();"><?php echo IMG_BTN_SAVE_AS; ?></button>
			<button id="actionClose" class="button" onclick="return editorClose();"><?php echo IMG_BTN_CLOSE; ?></button></p>
		</form>
	</fieldset>
	<fieldset id="imageInfo">
		<legend id="imageInfoLegend"><?php echo IMG_INFO; ?></legend>
		<form name="formImageInfo" action="<?php echo appendQueryString(CONFIG_URL_IMAGE_SAVE, makeQueryString(array('path'))); ?>" method="post" id="formImageInfo">
			<p><input type="hidden" name="mode" id="image_mode" value="" />
      <input type="hidden" name="new_name" id="hidden_new_name" value="" />
      <input type="hidden" name="save_to" id="hidden_save_to" value="" />
			<input type="hidden" name="path" id="path" value="<?php echo $_GET['path']; ?>"  />
			<input type="hidden" name="flip_angle" id="flip_angle" value="" />
			<label><?php echo IMG_LBL_WIDTH; ?></label> <input type="text" name="width" id="width" value="" class="input imageInput"  />
			<label><?php echo IMG_LBL_HEIGHT; ?></label> <input type="text" name="height" id="height" value="" class="input imageInput" />
			<label><?php echo IMG_LBL_X; ?></label> <input type="text" name="x" id="x" value="" class="input imageInput"/>
			<label><?php echo IMG_LBL_Y; ?></label> <input type="text" name="y" id="y" value="" class="input imageInput"/>
<!--			<b>Percentage:</b> <input type="text" name="percentage" id="percentage" value="" class="input imageInput"/>-->
			<label><?php echo IMG_LBL_RATIO; ?></label> <input type="text" name="ratio" id="ratio" value="" class="input imageInput"/>
			<label><?php echo IMG_LBL_ANGLE; ?></label> <input type="text" name="angle" id="angle" value="" class="input imageInput" />
			
			</p>
		</form>
Example #19
0
        echo '<td class="', $rcol, '">';
        echo $entry['modifier'];
        echo '</td>', "\n";
        echo '<td class="', $rcol, '">';
        echo $entry['kills'];
        echo '</td>', "\n";
        echo '<td class="', $rcol, '">';
        echo '<div class="percentBar" title="', number_format((int) $entry['percent'], 0), '%"><div class="barContent" style="width:', number_format((int) $entry['percent'], 0), 'px"></div></div>', "\n";
        echo '</td>', "\n";
        echo '</tr>';
    }
    echo '<tr><td colspan="6" align="right">';
    if ($weapons['pages'] > 1) {
        for ($i = 1; $i <= $weapons['pages']; $i++) {
            if ($page == $i) {
                echo "[", $i, "]";
            } else {
                echo "<a href='index.php?", makeQueryString(array('page' => $i)), "'>[", $i, "]</a> ";
            }
        }
    } else {
        echo "[1]";
    }
} else {
    echo '<tr><td colspan="6">', l('No data recorded'), '</td></tr>';
}
?>
	</table>
	</div>
</div>
Example #20
0
//include different config base file according to query string "config"
$configBaseFileName = 'config.base.php';
if (CONFIG_QUERY_STRING_ENABLE && !empty($_GET['config']) && file_exists(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config.' . secureFileName($_GET['config']) . ".php") {
    $configBaseFileName = 'config.' . secureFileName($_GET['config']) . ".php";
}
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . $configBaseFileName;
require_once DIR_AJAX_LANGS . CONFIG_LANG_DEFAULT . ".php";
require_once DIR_AJAX_INC . "function.base.php";
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "class.session.php";
$session = new MySession();
$auth = new Auth();
if (CONFIG_ACCESS_CONTROL_MODE == 1) {
    //access control enabled
    if (!$auth->isLoggedIn() && strtolower(basename($_SERVER['PHP_SELF']) != strtolower(basename(CONFIG_LOGIN_PAGE)))) {
        //
        osc_redirect_to(appendQueryString(CONFIG_LOGIN_PAGE, makeQueryString()));
    }
}
addNoCacheHeaders();
//URL Declartions
define('CONFIG_URL_IMAGE_PREVIEW', 'ajax_image_preview.php');
define('CONFIG_URL_CREATE_FOLDER', 'ajax_create_folder.php');
define('CONFIG_URL_DELETE', 'ajax_delete_file.php');
define('CONFIG_URL_HOME', 'ajaxfilemanager.php');
define("CONFIG_URL_UPLOAD", 'ajax_file_upload.php');
define('CONFIG_URL_PREVIEW', 'ajax_preview.php');
define('CONFIG_URL_SAVE_NAME', 'ajax_save_name.php');
define('CONFIG_URL_IMAGE_EDITOR', 'ajax_image_editor.php');
define('CONFIG_URL_IMAGE_SAVE', 'ajax_image_save.php');
define('CONFIG_URL_IMAGE_RESET', 'ajax_editor_reset.php');
define('CONFIG_URL_IMAGE_UNDO', 'ajax_image_undo.php');
Example #21
0
//include different config base file according to query string "config"
$configBaseFileName = 'config.base.php';
if (CONFIG_QUERY_STRING_ENABLE && !empty($_GET['config']) && file_exists(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config.' . secureFileName($_GET['config']) . ".php") {
    $configBaseFileName = 'config.' . secureFileName($_GET['config']) . ".php";
}
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . $configBaseFileName;
require_once DIR_AJAX_LANGS . CONFIG_LANG_DEFAULT . ".php";
require_once DIR_AJAX_INC . "function.base.php";
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "class.session.php";
$session = new Session();
$auth = new Auth();
if (CONFIG_ACCESS_CONTROL_MODE == 1) {
    //access control enabled
    if (!$auth->isLoggedIn() && strtolower(basename($_SERVER['PHP_SELF']) != strtolower(basename(CONFIG_LOGIN_PAGE)))) {
        //
        header('Location: ' . appendQueryString(CONFIG_LOGIN_PAGE, makeQueryString()));
        exit;
    }
}
addNoCacheHeaders();
//URL Declartions
define('CONFIG_URL_IMAGE_PREVIEW', 'ajax_image_preview.php');
define('CONFIG_URL_CREATE_FOLDER', 'ajax_create_folder.php');
define('CONFIG_URL_DELETE', 'ajax_delete_file.php');
define('CONFIG_URL_HOME', 'ajaxfilemanager.php');
define("CONFIG_URL_UPLOAD", 'ajax_file_upload.php');
define('CONFIG_URL_PREVIEW', 'ajax_preview.php');
define('CONFIG_URL_SAVE_NAME', 'ajax_save_name.php');
define('CONFIG_URL_IMAGE_EDITOR', 'ajax_image_editor.php');
define('CONFIG_URL_IMAGE_SAVE', 'ajax_image_save.php');
define('CONFIG_URL_IMAGE_RESET', 'ajax_editor_reset.php');
Example #22
0
if ($sort == "name") {
    ?>
				<img src="hlstatsimg/<?php 
    echo $sortorder;
    ?>
.gif" alt="Sorting" width="7" height="7" />
				<?php 
}
?>
			</th>
			<th class="<?php 
echo $rcol;
?>
">
				<a href="index.php?<?php 
echo makeQueryString(array('sort' => 'teamcount', 'sortorder' => $newSort));
?>
">
					<?php 
echo l('Selected');
?>
				</a>
				<?php 
if ($sort == "teamcount") {
    ?>
				<img src="hlstatsimg/<?php 
    echo $sortorder;
    ?>
.gif" alt="Sorting" width="7" height="7" />
				<?php 
}