mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
NOISSUE remove reference operator.
This commit is contained in:
parent
35384999c9
commit
194ce8614a
118 changed files with 859 additions and 859 deletions
|
|
@ -68,7 +68,7 @@ class fileAdminController extends file
|
|||
$file_count = count($file_srl_list);
|
||||
if(!$file_count) return $this->stop('msg_file_cart_is_null');
|
||||
|
||||
$oFileController = &getController('file');
|
||||
$oFileController = getController('file');
|
||||
// Delete the post
|
||||
for($i=0;$i<$file_count;$i++)
|
||||
{
|
||||
|
|
@ -99,7 +99,7 @@ class fileAdminController extends file
|
|||
$config->allow_outlink_format = Context::get('allow_outlink_format');
|
||||
$config->allow_outlink_site = Context::get('allow_outlink_site');
|
||||
// Create module Controller object
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('file',$config);
|
||||
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispFileAdminConfig');
|
||||
|
|
@ -141,7 +141,7 @@ class fileAdminController extends file
|
|||
if($userFileAllowSize > $iniMinSzie || $userAttachAllowSize > $iniMinSzie)
|
||||
return new Object(-1, 'input size over than config in php.ini');
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController = getController('module');
|
||||
for($i=0;$i<count($module_srl);$i++)
|
||||
{
|
||||
$srl = trim($module_srl[$i]);
|
||||
|
|
@ -166,7 +166,7 @@ class fileAdminController extends file
|
|||
$file_srl = (int)Context::get('file_srl');
|
||||
//$fileSrlList = array(500, 502);
|
||||
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$output = $oFileModel->getFile($file_srl);
|
||||
//$output = $oFileModel->getFile($fileSrlList);
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class fileAdminModel extends file
|
|||
// Return if no result or an error occurs
|
||||
if(!$output->toBool()||!count($output->data)) return $output;
|
||||
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
|
||||
foreach($output->data as $key => $file)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,16 +31,16 @@ class fileAdminView extends file
|
|||
$args->isvalid = Context::get('isvalid');
|
||||
$args->module_srl = Context::get('module_srl');
|
||||
// Get a list
|
||||
$oFileAdminModel = &getAdminModel('file');
|
||||
$oFileAdminModel = getAdminModel('file');
|
||||
$columnList = array('file_srl', 'upload_target_srl', 'upload_target_type', 'sid', 'module_srl'
|
||||
, 'source_filename', 'isvalid', 'file_size', 'download_count', 'files.regdate', 'ipaddress', 'member.member_srl', 'member.nick_name');
|
||||
$output = $oFileAdminModel->getFileList($args, $columnList);
|
||||
// Get the document for looping a list
|
||||
if($output->data)
|
||||
{
|
||||
$oCommentModel = &getModel('comment');
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oModuleModel = &getModel('module');
|
||||
$oCommentModel = getModel('comment');
|
||||
$oDocumentModel = getModel('document');
|
||||
$oModuleModel = getModel('module');
|
||||
|
||||
$file_list = array();
|
||||
$document_list = array();
|
||||
|
|
@ -214,7 +214,7 @@ class fileAdminView extends file
|
|||
*/
|
||||
function dispFileAdminConfig()
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$config = $oFileModel->getFileConfig();
|
||||
Context::set('config',$config);
|
||||
// Set a template file
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class file extends ModuleObject
|
|||
function moduleInstall()
|
||||
{
|
||||
// Register action forward (to use in administrator mode)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController = getController('module');
|
||||
|
||||
// Save the default settings for attachments
|
||||
$config = new stdClass;
|
||||
|
|
@ -54,7 +54,7 @@ class file extends ModuleObject
|
|||
function checkUpdate()
|
||||
{
|
||||
$oDB = &DB::getInstance();
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
// 2007. 10. 17 Create a trigger to insert, update, delete documents and comments
|
||||
if(!$oModuleModel->getTrigger('document.insertDocument', 'file', 'controller', 'triggerCheckAttached', 'before')) return true;
|
||||
if(!$oModuleModel->getTrigger('document.insertDocument', 'file', 'controller', 'triggerAttachFiles', 'after')) return true;
|
||||
|
|
@ -89,8 +89,8 @@ class file extends ModuleObject
|
|||
function moduleUpdate()
|
||||
{
|
||||
$oDB = &DB::getInstance();
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleModel = getModel('module');
|
||||
$oModuleController = getController('module');
|
||||
// 2007. 10. 17 Create a trigger to insert, update, delete documents and comments
|
||||
if(!$oModuleModel->getTrigger('document.insertDocument', 'file', 'controller', 'triggerCheckAttached', 'before'))
|
||||
$oModuleController->insertTrigger('document.insertDocument', 'file', 'controller', 'triggerCheckAttached', 'before');
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class fileController extends file
|
|||
if(!is_uploaded_file($file_info['tmp_name'])) exit();
|
||||
|
||||
// Basic variables setting
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$editor_sequence = Context::get('editor_sequence');
|
||||
$upload_target_srl = intval(Context::get('uploadTargetSrl'));
|
||||
if(!$upload_target_srl) $upload_target_srl = intval(Context::get('upload_target_srl'));
|
||||
|
|
@ -158,7 +158,7 @@ class fileController extends file
|
|||
*/
|
||||
function procFileDownload()
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
|
||||
$file_srl = Context::get('file_srl');
|
||||
$sid = Context::get('sid');
|
||||
|
|
@ -280,7 +280,7 @@ class fileController extends file
|
|||
|
||||
public function procFileOutput()
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$file_srl = Context::get('file_srl');
|
||||
$file_key = Context::get('file_key');
|
||||
if(strstr($_SERVER['HTTP_USER_AGENT'], "Android")) $is_android = true;
|
||||
|
|
@ -361,7 +361,7 @@ class fileController extends file
|
|||
$upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl;
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
|
||||
$srls = explode(',',$file_srl);
|
||||
if(!count($srls)) return;
|
||||
|
|
@ -401,7 +401,7 @@ class fileController extends file
|
|||
global $lang;
|
||||
if(count($fileSrlList) > 0)
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$fileList = $oFileModel->getFile($fileSrlList);
|
||||
if(!is_array($fileList)) $fileList = array($fileList);
|
||||
|
||||
|
|
@ -434,7 +434,7 @@ class fileController extends file
|
|||
$document_srl = $obj->document_srl;
|
||||
if(!$document_srl) return new Object();
|
||||
// Get numbers of attachments
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl);
|
||||
|
||||
return new Object();
|
||||
|
|
@ -483,7 +483,7 @@ class fileController extends file
|
|||
$comment_srl = $obj->comment_srl;
|
||||
if(!$comment_srl) return new Object();
|
||||
// Get numbers of attachments
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl);
|
||||
|
||||
return new Object();
|
||||
|
|
@ -533,7 +533,7 @@ class fileController extends file
|
|||
$module_srl = $obj->module_srl;
|
||||
if(!$module_srl) return new Object();
|
||||
|
||||
$oFileController = &getAdminController('file');
|
||||
$oFileController = getAdminController('file');
|
||||
return $oFileController->deleteModuleFiles($module_srl);
|
||||
}
|
||||
|
||||
|
|
@ -620,7 +620,7 @@ class fileController extends file
|
|||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin != 'Y')
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$config = $oFileModel->getFileConfig($module_srl);
|
||||
$allowed_filesize = $config->allowed_filesize * 1024 * 1024;
|
||||
$allowed_attach_size = $config->allowed_attach_size * 1024 * 1024;
|
||||
|
|
@ -689,7 +689,7 @@ class fileController extends file
|
|||
}
|
||||
}
|
||||
// Get member information
|
||||
$oMemberModel = &getModel('member');
|
||||
$oMemberModel = getModel('member');
|
||||
$member_srl = $oMemberModel->getLoggedMemberSrl();
|
||||
// List file information
|
||||
$args = new stdClass;
|
||||
|
|
@ -757,7 +757,7 @@ class fileController extends file
|
|||
$srls = explode(',',$file_srl);
|
||||
if(!count($srls)) return;
|
||||
|
||||
$oDocumentController = &getController('document');
|
||||
$oDocumentController = getController('document');
|
||||
$documentSrlList = array();
|
||||
|
||||
for($i=0;$i<count($srls);$i++)
|
||||
|
|
@ -813,7 +813,7 @@ class fileController extends file
|
|||
function deleteFiles($upload_target_srl)
|
||||
{
|
||||
// Get a list of attachements
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$columnList = array('uploaded_filename', 'module_srl');
|
||||
$file_list = $oFileModel->getFiles($upload_target_srl, $columnList);
|
||||
// Success returned if no attachement exists
|
||||
|
|
@ -853,7 +853,7 @@ class fileController extends file
|
|||
{
|
||||
if($source_srl == $target_srl) return;
|
||||
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$file_list = $oFileModel->getFiles($source_srl);
|
||||
if(!$file_list) return;
|
||||
|
||||
|
|
@ -906,10 +906,10 @@ class fileController extends file
|
|||
|
||||
function triggerCopyModule(&$obj)
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
$fileConfig = $oModuleModel->getModulePartConfig('file', $obj->originModuleSrl);
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController = getController('module');
|
||||
if(is_array($obj->moduleSrlList))
|
||||
{
|
||||
foreach($obj->moduleSrlList AS $key=>$moduleSrl)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class fileModel extends file
|
|||
*/
|
||||
function getFileList()
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
|
||||
$mid = Context::get('mid');
|
||||
$editor_sequence = Context::get('editor_sequence');
|
||||
|
|
@ -109,7 +109,7 @@ class fileModel extends file
|
|||
function getFileConfig($module_srl = null)
|
||||
{
|
||||
// Get configurations (using module model object)
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
|
||||
$file_module_config = $oModuleModel->getModuleConfig('file');
|
||||
|
||||
|
|
@ -298,10 +298,10 @@ class fileModel extends file
|
|||
return $file_grant;
|
||||
}
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleModel = getModel('module');
|
||||
$grant = $oModuleModel->getGrant($oModuleModel->getModuleInfoByModuleSrl($file_info->module_srl), $member_info);
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($file_info->upload_target_srl);
|
||||
if($oDocument->isExists()) $document_grant = $oDocument->isGranted();
|
||||
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ class fileView extends file
|
|||
if(!$current_module_srl) return new Object();
|
||||
}
|
||||
// Get file configurations of the module
|
||||
$oFileModel = &getModel('file');
|
||||
$oFileModel = getModel('file');
|
||||
$file_config = $oFileModel->getFileModuleConfig($current_module_srl);
|
||||
Context::set('file_config', $file_config);
|
||||
// Get a permission for group setting
|
||||
$oMemberModel = &getModel('member');
|
||||
$oMemberModel = getModel('member');
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$group_list = $oMemberModel->getGroups($site_module_info->site_srl);
|
||||
Context::set('group_list', $group_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue