The forum operates in read-only mode. Please head to StackOverflow for support.
$baseUrl = 'xxxxxx/userfiles/'.$_GET['$DeptId'].'/'; $baseDir = 'xxxxxx/userfiles/'.$_GET['$DeptId'].'/';
DmitriiP wrote:try somwhere in yuor code where you recive $_GET['$DeptId']session_start();$_SESSION['DeptId']=$_GET['$DeptId'];in config.phpsession_start();/*code*/$baseUrl = 'xxxxxx/userfiles/'.$_SESSION[DeptId'].'/';
websitedesignby wrote:I am doing the same thing (I think). I tried DmitriiP's suggestion and it works fine.Thanks.
ak.sr wrote: websitedesignby wrote:I am doing the same thing (I think). I tried DmitriiP's suggestion and it works fine.Thanks. i don't think i understand the solution clearly then...could you send me a code snippet from your config.php and the file where you receive the $_GET variable? thanks in advance...
session_start(); $baseUrl = 'http://xxxxxxxx/userfiles/'.$_SESSION['DeptId'].'/'; $baseDir = '/xxxxxxxxx/userfiles/'.$_SESSION['DeptId'].'/';
<?php session_start(); $_SESSION['DeptId'] = $_GET['DeptId']; ?>
Wiktor Walc CTO, CKSource - http://cksource.com -- Follow CKEditor on: Twitter | Facebook | Google+
<?php session_start(); function CheckAuthentication() { if ((isset($_SESSION['userid'])) && ($_SESSION['userid'] !="")) { return true; } else { return false; } } $partefinale = '/images/'.$_SESSION['userid'].'/'; $baseUrl = 'http://xxxx.com'.$partefinale ; $baseDir = '/var/www/httpdocs'.$partefinale; $config['Thumbnails'] = Array( 'url' => $baseUrl . 'mcith', 'directory' => $baseDir . 'mcith', 'enabled' => true, 'directAccess' => false, 'maxWidth' => 140, 'maxHeight' => 140, 'bmpSupported' => false, 'quality' => 100); $config['Images'] = Array( 'maxWidth' => 430, 'maxHeight' => 930, 'quality' => 100); $config['RoleSessionVar'] = 'CKFinder_UserRole'; $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => false, 'folderRename' => false, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['DefaultResourceTypes'] = ''; $config['ResourceType'][] = Array( 'name' => '/', // Single quotes not allowed 'url' => $baseUrl, 'directory' => $baseDir, 'maxSize' => '4M', 'allowedExtensions' => 'gif,jpeg,jpg,png', 'deniedExtensions' => 'js,php,asp,html,cgi,zip,rar,tar,bat,exe'); $config['CheckDoubleExtension'] = true; $config['FilesystemEncoding'] = 'UTF-8'; $config['SecureImageUploads'] = true; $config['CheckSizeAfterScaling'] = true; $config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js');
Re: Userfiles Subdirectories using PHP GET ::HELP::
session_start();
$_SESSION['DeptId']=$_GET['$DeptId'];
in config.php
session_start();
/*code*/
$baseUrl = 'xxxxxx/userfiles/'.$_SESSION[DeptId'].'/';
Re: Userfiles Subdirectories using PHP GET ::HELP::
tried what you said, but no luck...it's still not working :/
any other suggestions?
Re: Userfiles Subdirectories using PHP GET ::HELP::
Re: Userfiles Subdirectories using PHP GET ::HELP::
Thanks.
Re: Userfiles Subdirectories using PHP GET ::HELP::
i don't think i understand the solution clearly then...
could you send me a code snippet from your config.php and the file where you receive the $_GET variable? thanks in advance...
Re: Userfiles Subdirectories using PHP GET ::HELP::
Re: Userfiles Subdirectories using PHP GET ::HELP::
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Userfiles Subdirectories using PHP GET ::HELP::
<?php session_start(); function CheckAuthentication() { if ((isset($_SESSION['userid'])) && ($_SESSION['userid'] !="")) { return true; } else { return false; } } $partefinale = '/images/'.$_SESSION['userid'].'/'; $baseUrl = 'http://xxxx.com'.$partefinale ; $baseDir = '/var/www/httpdocs'.$partefinale; $config['Thumbnails'] = Array( 'url' => $baseUrl . 'mcith', 'directory' => $baseDir . 'mcith', 'enabled' => true, 'directAccess' => false, 'maxWidth' => 140, 'maxHeight' => 140, 'bmpSupported' => false, 'quality' => 100); $config['Images'] = Array( 'maxWidth' => 430, 'maxHeight' => 930, 'quality' => 100); $config['RoleSessionVar'] = 'CKFinder_UserRole'; $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => false, 'folderRename' => false, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['DefaultResourceTypes'] = ''; $config['ResourceType'][] = Array( 'name' => '/', // Single quotes not allowed 'url' => $baseUrl, 'directory' => $baseDir, 'maxSize' => '4M', 'allowedExtensions' => 'gif,jpeg,jpg,png', 'deniedExtensions' => 'js,php,asp,html,cgi,zip,rar,tar,bat,exe'); $config['CheckDoubleExtension'] = true; $config['FilesystemEncoding'] = 'UTF-8'; $config['SecureImageUploads'] = true; $config['CheckSizeAfterScaling'] = true; $config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js');