Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1084323
reviews.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 6, 11:14 AM
Size
10 KB
Mime Type
text/x-php
Expires
Fri, Aug 8, 11:14 AM (2 h, 20 m)
Engine
blob
Format
Raw Data
Handle
704330
Attached To
rINP In-Portal
reviews.php
View Options
<?php
##############################################################
##In-portal ##
##############################################################
## In-portal ##
## Intechnic Corporation ##
## All Rights Reserved, 1998-2002 ##
## ##
## No portion of this code may be copied, reproduced or ##
## otherwise redistributed without proper written ##
## consent of Intechnic Corporation. Violation will ##
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
function
k4getmicrotime
()
{
list
(
$usec
,
$sec
)
=
explode
(
" "
,
microtime
());
return
((
float
)
$usec
+
(
float
)
$sec
);
}
$start
=
k4getmicrotime
();
// new startup: begin
define
(
'REL_PATH'
,
'admin'
);
$relation_level
=
count
(
explode
(
'/'
,
REL_PATH
)
);
define
(
'FULL_PATH'
,
realpath
(
dirname
(
__FILE__
)
.
str_repeat
(
'/..'
,
$relation_level
)
)
);
require_once
FULL_PATH
.
'/kernel/startup.php'
;
// new startup: end
checkViewPermission
(
'in-portal:reviews'
);
define
(
'REQUIRE_LAYER_HEADER'
,
1
);
$b_topmargin
=
"0"
;
//$b_header_addon = "<DIV style='position:relative; z-Index: 1; background-color: #ffffff; padding-top:1px;'><div style='position:absolute; width:100%;top:0px;' align='right'><img src='images/logo_bg.gif'></div><img src='images/spacer.gif' width=1 height=15><br><div style='z-Index:1; position:relative'>";
require_login
();
$indexURL
=
$rootURL
.
"index.php"
;
$homeURL
=
"javascript:AdminCatNav('"
.
$_SERVER
[
"PHP_SELF"
].
"?env="
.
BuildEnv
().
"');"
;
$m_var_list_update
[
"cat"
]
=
0
;
unset
(
$m_var_list_update
[
"cat"
]);
//admin only util
$pathtolocal
=
$pathtoroot
.
"kernel/"
;
require_once
(
$pathtoroot
.
$admin
.
"/include/elements.php"
);
//require_once ($pathtoroot."kernel/admin/include/navmenu.php");
require_once
(
$pathtolocal
.
"admin/include/navmenu.php"
);
require_once
(
$pathtoroot
.
$admin
.
"/browse/toolbar.php"
);
$mod_prefixes
=
Array
();
$m
=
GetModuleArray
();
foreach
(
$m
as
$key
=>
$value
)
{
$path
=
$pathtoroot
.
$value
.
"admin/include/parser.php"
;
if
(
file_exists
(
$path
))
{
//echo "<!-- $path -->";
$mod_prefixes
[]
=
$key
;
@
include_once
(
$path
);
}
}
$application
->
InitParser
();
$cat_templates
=
$objModules
->
ExecuteFunction
(
'GetModuleInfo'
,
'reviews_template'
);
foreach
(
$cat_templates
as
$a_mod
=>
$a_template
)
{
if
(!
$a_template
)
continue
;
$a_var
=
$a_mod
.
'_TAB_HTML'
;
$$a_var
=
$application
->
ParseBlock
(
Array
(
'name'
=>
$a_template
),
0
,
true
);
}
if
(
!
defined
(
'IS_INSTALL'
)
)
define
(
'IS_INSTALL'
,
0
);
if
(
!
IS_INSTALL
)
require_login
();
//Set Section
$section
=
'in-portal:reviews'
;
//Set Environment Variable
// save last category visited
$objSession
->
SetVariable
(
'prev_category'
,
$objSession
->
GetVariable
(
'last_category'
)
);
$objSession
->
SetVariable
(
'last_category'
,
$objCatList
->
CurrentCategoryID
()
);
$objSession
->
SetVariable
(
"HasChanges"
,
0
);
// where should all edit popups submit changes
$objSession
->
SetVariable
(
"ReturnScript"
,
basename
(
$_SERVER
[
'PHP_SELF'
])
);
// common "Advanced View" tab php functions: begin
function
GetAdvView_SearchWord
(
$prefix
,
$postfix
=
'_adv_view_search'
)
{
global
$objSession
;
return
$objSession
->
GetVariable
(
$prefix
.
$postfix
);
}
function
SaveAdvView_SearchWord
(
$prefix
,
$postfix
=
'_adv_view_search'
)
{
global
$objSession
;
$SearchWord
=
$objSession
->
GetVariable
(
$prefix
.
$postfix
);
if
(
isset
(
$_REQUEST
[
'SearchWord'
])
)
{
$SearchWord
=
$_REQUEST
[
'SearchWord'
];
$objSession
->
SetVariable
(
$prefix
.
$postfix
,
$SearchWord
);
}
}
function
ResetAdvView_SearchWord
(
$prefix
,
$postfix
=
'_adv_view_search'
)
{
global
$objSession
;
$objSession
->
SetVariable
(
$prefix
.
$postfix
,
''
);
}
function
ShowSearchForm
(
$prefix
,
$envar
,
$TabID
,
$postfix
=
'_adv_view_search'
)
{
global
$imagesURL
;
$btn_prefix
=
$imagesURL
.
'/toolbar/icon16_search'
;
$SearchWord
=
GetAdvView_SearchWord
(
$prefix
,
$postfix
);
echo
'<form method="post" action="'
.
$_SERVER
[
"PHP_SELF"
].
'?'
.
$envar
.
'" name="'
.
$prefix
.
'_adv_view_search" id="'
.
$prefix
.
$postfix
.
'">
<input type="hidden" name="Action" value="">
<table cellspacing="0" cellpadding="0">
<tr>
<td>'
.
admin_language
(
'la_SearchLabel'
).
' </td>
<td><input id="'
.
$prefix
.
'_SearchWord" type="text" value="'
.
inp_htmlize
(
$SearchWord
,
1
).
'" name="SearchWord" size="10" style="border-width: 1; border-style: solid; border-color: 999999"></td>
<td>
<img
id="'
.
$TabID
.
'_imgSearch"
src="'
.
$btn_prefix
.
'.gif"
title="'
.
admin_language
(
"la_ToolTip_Search"
).
'"
align="absMiddle"
onclick="SubmitSearch(
\'
'
.
$prefix
.
$postfix
.
'
\'
,
\'
'
.
$prefix
.
$postfix
.
'
\'
);"
onmouseover="this.src=
\'
'
.
$btn_prefix
.
'_f2.gif
\'
"
onmouseout="this.src=
\'
'
.
$btn_prefix
.
'.gif
\'
"
style="cursor:hand"
width="22"
height="22"
>
<img
id="imgSearchReset"
src="'
.
$btn_prefix
.
'_reset.gif"
title="'
.
admin_language
(
"la_ToolTip_Search"
).
'"
align="absMiddle"
onclick="SubmitSearch(
\'
'
.
$prefix
.
$postfix
.
'
\'
,
\'
'
.
$prefix
.
$postfix
.
'_reset
\'
);"
onmouseover="this.src=
\'
'
.
$btn_prefix
.
'_reset_f2.gif
\'
"
onmouseout="this.src=
\'
'
.
$btn_prefix
.
'_reset.gif
\'
"
style="cursor:hand"
width="22"
height="22"
>
</td>
</tr>
</table>
</form>
<script language="javascript">
document.getElementById("'
.
$prefix
.
'_SearchWord").onkeydown = getKey;
</script>
'
;
}
// common "Advanced View" tab php functions: end
/* page header */
$charset
=
GetRegionalOption
(
'Charset'
);
$base_href
=
$application
->
ProcessParsedTag
(
'm'
,
'Base_Ref'
,
Array
());
print
<<<END
<html>
<head>
<title>In-portal</title>
$base_href
<meta http-equiv="content-type" content="text/html;charset=$charset">
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript">
imagesPath='$imagesURL'+'/';
</script>
END;
require_once
(
$pathtoroot
.
$admin
.
"/include/mainscript.php"
);
print
<<<END
<script type="text/javascript">
if (window.opener != null) {
theMainScript.CloseAndRefreshParent();
}
</script>
END;
print
<<<END
<script src="$browseURL/toolbar.js"></script>
<script src="$browseURL/checkboxes_new.js"></script>
<script language="JavaScript1.2" src="$browseURL/fw_menu.js"></script>
<link rel="stylesheet" type="text/css" href="$browseURL/checkboxes.css">
<link rel="stylesheet" type="text/css" href="$cssURL/style.css">
<link rel="stylesheet" type="text/css" href="$browseURL/toolbar.css">
END;
load_module_styles
();
if
(
!
isset
(
$list
)
)
$list
=
''
;
int_SectionHeader
();
$filter
=
false
;
$bit_combo
=
$objModules
->
ExecuteFunction
(
'GetModuleInfo'
,
'all_bitmask'
);
$bit_combo
=
$objModules
->
MergeReturn
(
$bit_combo
);
foreach
(
$bit_combo
[
'VarName'
]
as
$mod_name
=>
$VarName
)
{
//echo "VarName: [$VarName] = [".$objConfig->Get($VarName)."], ALL = [".$bit_combo['Bits'][$mod_name]."]<br>";
if
(
$objConfig
->
Get
(
$VarName
)
)
if
(
$objConfig
->
Get
(
$VarName
)
!=
$bit_combo
[
'Bits'
][
$mod_name
]
)
{
$filter
=
true
;
break
;
}
}
?>
</div>
<!-- alex mark -->
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td>
<div name="toolBar" id="mainToolBar">
<tb:button action="edit" title="
<?php
echo
admin_language
(
"la_ToolTip_Edit"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:button action="delete" title="
<?php
echo
admin_language
(
"la_ToolTip_Delete"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:separator ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:button action="approve" title="
<?php
echo
admin_language
(
"la_ToolTip_Approve"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:button action="decline" title="
<?php
echo
admin_language
(
"la_ToolTip_Decline"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:separator ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:button action="print" title="
<?php
echo
admin_language
(
"la_ToolTip_Print"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
<tb:button action="view" title="
<?php
echo
admin_language
(
"la_ToolTip_View"
);
?>
" ImagePath="
<?php
echo
$imagesURL
.
"/toolbar/"
;
?>
">
</div>
</td>
</tr>
</tbody>
</table>
<?php
if
(
$filter
)
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="toolbar">
<tr>
<td valign="top">
<?php
int_hint_red
(
admin_language
(
"la_Warning_Filter"
));
?>
</td>
</tr>
</table>
<?php
}
?>
<br>
<!-- CATEGORY DIVIDER -->
</DIV>
</div>
<DIV style="background-color: #ffffff; position: relative; padding-top: 1px; top: -1px; z-Index:0" id="firstContainer">
<DIV style="background-color: #ffffff; position: relative; padding-top: 1px; top: -1px; z-Index:2" id="secondContainer">
<?php
print
$ItemTabs
->
TabRow
();
if
(
count
(
$ItemTabs
->
Tabs
))
{
?>
<div class="divider" id="tabsDevider"><img width=1 height=1 src="images/spacer.gif"></div>
<?php
}
?>
</DIV>
<?php
unset
(
$m
);
$m
=
GetModuleArray
(
"admin"
);
foreach
(
$m
as
$key
=>
$value
)
{
$path
=
$pathtoroot
.
$value
.
"admin/reviews.php"
;
//echo "Including File: $path<br>";
if
(
file_exists
(
$path
))
{
//echo "\n<!-- $path -->\n";
include_once
(
$path
);
}
}
$admin
=
$objConfig
->
Get
(
"AdminDirectory"
);
if
(!
strlen
(
$admin
))
$admin
=
"admin"
;
?>
<form method="post" action="
<?php
echo
$rootURL
.
$admin
;
?>
/reviews.php?env=
<?php
echo
BuildEnv
();
?>
" name="viewmenu">
<input type="hidden" name="fieldname" value="">
<input type="hidden" name="varvalue" value="">
<input type="hidden" name="varvalue2" value="">
<input type="hidden" name="Action" value="">
</form>
</DIV>
<!-- END CODE-->
<script language="JavaScript">
InitPage();
if(default_tab.length == 0)
{
cookie_start = theMainScript.GetCookie('active_tab');
if (cookie_start != null) start_tab = cookie_start;
if(start_tab!=null) toggleTabB(start_tab, true);
}
else
{
toggleTabB(default_tab,true);
}
</script>
<?php
$objSession
->
SetVariable
(
"HasChanges"
,
0
);
int_footer
();
?>
Event Timeline
Log In to Comment