RosCMS update:
* update the page generator
* translator interface (dyncontent; almost finished)
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/admin_dyncontent.php
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/generate_page.php
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/inc_menu_translator.php
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/translator.php
_____
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/admin_dyncontent.php
---
trunk/web/reactos.org/htdocs/roscms/inc/admin_dyncontent.php
2006-01-15 20:26:53 UTC (rev 20901)
+++
trunk/web/reactos.org/htdocs/roscms/inc/admin_dyncontent.php
2006-01-15 20:36:29 UTC (rev 20902)
@@ -39,11 +39,15 @@
<ul>
<li><strong>Dynamic Content</strong></li>
</ul>
- <p>Action: <a
href="?page=admin&sec=dyncontent&sec2=edit&sec3=news_page&am
p;opt=insert&<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
- News</a> | <a
href="?page=admin&sec=dyncontent&sec2=edit&sec3=newsletter&a
mp;opt=insert&<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
- Newsletter</a> | <a
href="?page=admin&sec=dyncontent&sec2=edit&sec3=blog&opt
=insert&<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
- Blog</a> | <a
href="?page=admin&sec=dyncontent&sec2=edit&opt=insert&<?
php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new"></a><a
href="?page=admin&sec=dyncontent&sec2=edit&opt=insert&<?
php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
- Dynamic Content (plain)</a> | <a
href="?page=admin&sec=dyncontent&sec2=view">reset
+ <p>Action: <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&sec3=news_page&opt=insert&am
p;<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">
+ <?php if ($roscms_intern_usrgrp_admin == true && $rpm_page ==
"admin") { ?>
+ New
+ News</a> | <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&sec3=newsletter&opt=insert&a
mp;<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
+ Newsletter</a> | <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&sec3=blog&opt=insert&<?p
hp echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
+ Blog</a> | <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&opt=insert&<?php echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new"></a><a
href="?page=<?php echo
$rpm_page;
?>&sec=dyncontent&sec2=edit&opt=insert&<?php
echo
'sort='.$rpm_sort.'&filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id ; ?>&db_id=new">New
+ Dynamic Content (plain)</a> | <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=view">
+ <?php } ?>
+ reset
filters & sort</a></p>
<?php
@@ -61,23 +65,25 @@
if ($rpm_lang_id == "") {
- $rpm_lang_id="all";
+ $rpm_lang_id="nolang";
}
echo '<p>Language: ';
- if ($rpm_lang_id == "all") {
- echo '<b>All</b>';
- $ros_cms_intern_dyn_content_lang = "";
+ if ($roscms_intern_usrgrp_dev == true ||
$roscms_intern_usrgrp_admin == true) {
+ if ($rpm_lang_id == "all") {
+ echo '<b>All</b>';
+ $ros_cms_intern_dyn_content_lang = "";
+ }
+ else {
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_f
ilt2.'&langid=all">All</a>';
+ }
+ echo ' | ';
}
- else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&a
mp;langid=all">All</a>';
- }
- echo ' | ';
if ($rpm_lang_id == "nolang") {
echo '<b>International</b>';
$ros_cms_intern_dyn_content_lang = "AND dyn_content_lang
= 'all'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&a
mp;langid=nolang">International</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_f
ilt2.'&langid=nolang">International</a>';
}
// Languages
$sql_lang="SELECT *
@@ -93,7 +99,7 @@
$ros_cms_intern_dyn_content_lang = "AND
dyn_content_lang = '".$roscms_sel_lang."'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&a
mp;langid='.$roscms_sel_lang.'">'.$myrow_lang[1].'</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_f
ilt2.'&langid='.$roscms_sel_lang.'">'.$myrow_lang[1].'</a>';
}
}
@@ -107,7 +113,7 @@
$ros_cms_intern_content_filt = "WHERE dyn_content_active
= '1'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt=active&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'">
active content</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt=active&filt2='.$rpm_filt2.'&langid='.$rpm_lan
g_id.'">active content</a>';
}
echo ' | ';
if ($rpm_filt == "all") {
@@ -115,7 +121,7 @@
$ros_cms_intern_content_filt = "WHERE `dyn_content_name`
!= ''";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt=all&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'">all
content</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt=all&filt2='.$rpm_filt2.'&langid='.$rpm_lang_i
d.'">all content</a>';
}
echo ' | ';
if ($rpm_filt == "user") {
@@ -123,7 +129,7 @@
$ros_cms_intern_content_filt = "WHERE
dyn_content_usrname_id = '".$roscms_intern_account_id."'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt=user&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'">cu
rrent user</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt=user&filt2='.$rpm_filt2.'&langid='.$rpm_lang_
id.'">current user</a>';
}
if ($rpm_filt == "history") {
echo ' | <b>history</b>';
@@ -141,7 +147,7 @@
$ros_cms_intern_content_filt2 = "";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&filt2=all&langid='.$rpm_lang_id.'">all<
/a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&filt2=all&langid='.$rpm_lang_id
.'">all</a>';
}
echo ' | ';
if ($rpm_filt2 == "news") {
@@ -149,7 +155,7 @@
$ros_cms_intern_content_filt2 = " AND `dyn_content_name`
= 'news_page'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&filt2=news&langid='.$rpm_lang_id.'">new
s</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&filt2=news&langid='.$rpm_lang_i
d.'">news</a>';
}
echo ' | ';
if ($rpm_filt2 == "newsletter") {
@@ -157,7 +163,7 @@
$ros_cms_intern_content_filt2 = " AND `dyn_content_name`
= 'newsletter'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&filt2=newsletter&langid='.$rpm_lang_id.
'">newsletter</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&filt2=newsletter&langid='.$rpm_
lang_id.'">newsletter</a>';
}
echo ' | ';
if ($rpm_filt2 == "blog") {
@@ -165,7 +171,7 @@
$ros_cms_intern_content_filt2 = " AND `dyn_content_name`
= 'blog'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&filt2=blog&langid='.$rpm_lang_id.'">blo
g</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&filt2=blog&langid='.$rpm_lang_i
d.'">blog</a>';
}
/*echo ' | ';
if ($rpm_filt2 == "dev_page") {
@@ -173,7 +179,7 @@
$ros_cms_intern_content_filt2 = " AND `dyn_content_name`
= 'dev_page'";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.
'&filt='.$rpm_filt.'&filt2=dev_page&langid='.$rpm_lang_id.'"
dev page</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$r
pm_sort.'&filt='.$rpm_filt.'&filt2=dev_page&langid='.$rpm_la
ng_id.'"
dev page</a>';
}*/
echo '</p>';
@@ -188,7 +194,7 @@
$ros_cms_intern_content_sort="ASC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=id&filt=
'.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&langid='
.$rpm_lang_id.'">content id</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=id&a
mp;filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id.'">content id</a>';
}
echo ' | ';
if ($rpm_sort == "nr") {
@@ -197,7 +203,7 @@
$ros_cms_intern_content_sort="ASC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=nr&filt=
'.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&langid='
.$rpm_lang_id.'">entry nr</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=nr&a
mp;filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&
langid='.$rpm_lang_id.'">entry nr</a>';
}
echo ' | ';
if ($rpm_sort == "name") {
@@ -206,7 +212,7 @@
$ros_cms_intern_content_sort="ASC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=name&fil
t='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&langid
='.$rpm_lang_id.'">name</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=name
&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&am
p;langid='.$rpm_lang_id.'">name</a>';
}
echo ' | ';
if ($rpm_sort == "date") {
@@ -215,7 +221,7 @@
$ros_cms_intern_content_sort="DESC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=date&fil
t='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&langid
='.$rpm_lang_id.'">date</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=date
&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&am
p;langid='.$rpm_lang_id.'">date</a>';
}
echo ' | ';
if ($rpm_sort == "user") {
@@ -224,7 +230,7 @@
$ros_cms_intern_content_sort="ASC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=user&fil
t='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&langid
='.$rpm_lang_id.'">user</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=user
&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&am
p;langid='.$rpm_lang_id.'">user</a>';
}
echo ' | ';
if ($rpm_sort == "active") {
@@ -233,7 +239,7 @@
$ros_cms_intern_content_sort="DESC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=active&f
ilt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&lang
id='.$rpm_lang_id.'">active</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=acti
ve&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&
amp;langid='.$rpm_lang_id.'">active</a>';
}
echo ' | ';
if ($rpm_sort == "visible") {
@@ -242,7 +248,7 @@
$ros_cms_intern_content_sort="DESC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=visible&
filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&lan
gid='.$rpm_lang_id.'">visible</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=visi
ble&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'
&langid='.$rpm_lang_id.'">visible</a>';
}
echo ' | ';
if ($rpm_sort == "version") {
@@ -251,7 +257,7 @@
$ros_cms_intern_content_sort="DESC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=version&
filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&lan
gid='.$rpm_lang_id.'">version</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=vers
ion&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'
&langid='.$rpm_lang_id.'">version</a>';
}
echo ' | ';
if ($rpm_sort == "language") {
@@ -260,10 +266,13 @@
$ros_cms_intern_content_sort="ASC";
}
else {
- echo '<a
href="?page=admin&sec=dyncontent&sec2=view&sort=language&
;filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&la
ngid='.$rpm_lang_id.'">language</a>';
+ echo '<a
href="?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort=lang
uage&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.
'&langid='.$rpm_lang_id.'">language</a>';
}
echo '</p>';
+ if ($rpm_page == "trans" || $rpm_page == "team") {
+ echo "<p><i>The <b>dynamic content interface</b> for
translators is <b>under heavy construction</b>! Please <b>do NOT use
it</b> today, come back later this week.<br />--frik85
(2006-01-15)</i></p>";
+ }
?>
<table width="100%" border="0" cellpadding="1"
cellspacing="1">
<tr bgcolor="#5984C3">
@@ -283,7 +292,7 @@
</tr>
<?php
- if($roscms_intern_account_level==100) {
+ if($roscms_intern_account_level>=50) {
$query_content = mysql_query("SELECT *
FROM dyn_content
$ros_cms_intern_content_filt
$ros_cms_intern_content_filt2 $ros_cms_intern_dyn_content_lang
@@ -316,17 +325,23 @@
$farbe = $farbe2;
}
?>">
- <div align="center"><a
href="?page=admin&sec=dyncontent&sec2=edit&<?php echo
'sec3='.$result_content['dyn_content_name'].'&sort='.$rpm_sort.'&
;filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'
&db_id='.$result_content['dyn_id']; ?>"><img
src="images/view.gif"
alt="View" width="19" height="18"
border="0"></a>
- <a href="<?php echo
"?page=admin&sec=dyncontent&sec2=view&sort=version&filt=
history&opt=".$result_content['dyn_content_id']."&filt2=".$rpm_f
ilt2."&langid=".$result_content['dyn_content_lang'];
?>"><img
src="images/history.gif" alt="Filter: history" width="19"
height="18"
border="0"></a>
+ <div align="center">
+ <?php
+ if (($rpm_page == "trans" || $rpm_page == "team") &&
$rpm_lang_id == "nolang") { ?>
+ <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&opt=translate&<?php
echo
'sec3='.$result_content['dyn_content_name'].'&sort='.$rpm_sort.'&
;filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'
&db_id='.$result_content['dyn_id']; ?>"><img
src="images/tool.gif"
alt="Translate" width="19" height="18"
border="0"></a>
+ <?php } else { ?>
+ <a href="?page=<?php echo $rpm_page;
?>&sec=dyncontent&sec2=edit&<?php echo
'sec3='.$result_content['dyn_content_name'].'&sort='.$rpm_sort.'&
;filt='.$rpm_filt.'&filt2='.$rpm_filt2.'&langid='.$rpm_lang_id.'
&db_id='.$result_content['dyn_id']; ?>"><img
src="images/view.gif"
alt="View" width="19" height="18"
border="0"></a>
+ <?php } ?>
+ <a href="<?php echo
"?page=".$rpm_page."&sec=dyncontent&sec2=view&sort=version&a
mp;filt=history&opt=".$result_content['dyn_content_id']."&filt2=
".$rpm_filt2."&langid=".$result_content['dyn_content_lang'];
?>"><img src="images/history.gif" alt="Filter: history"
width="19"
height="18" border="0"></a>
</div></td>
<td width="3%" valign="middle" bgcolor="<?php echo
$farbe;
?>"><div align="center">
<?php
if($result_content['dyn_content_active'] == "1") { ?>
- <a href="<?php if($roscms_intern_account_level>50) { echo
'?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.'&
;filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&la
ngid='.$rpm_lang_id.'&dyn_content_active=0&dyn_content_active_se
t='.$result_content['dyn_id'] ; } else { echo '#'; }
?>"><img
src="images/active.gif" alt="active" width="19"
height="18"
border="0"></a>
+ <a href="<?php if($roscms_intern_account_level>50) { echo
'?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$rpm_so
rt.'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.
'&langid='.$rpm_lang_id.'&dyn_content_active=0&dyn_content_a
ctive_set='.$result_content['dyn_id'] ; } else { echo '#'; }
?>"><img
src="images/active.gif" alt="active" width="19"
height="18"
border="0"></a>
<?php
}
else { ?>
- <a href="<?php if($roscms_intern_account_level>50) { echo
'?page=admin&sec=dyncontent&sec2=view&sort='.$rpm_sort.'&
;filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.'&la
ngid='.$rpm_lang_id.'&dyn_content_active=1&dyn_content_active_se
t='.$result_content['dyn_id'] ; } else { echo '#'; }
?>"><img
src="images/notactive.gif" alt="NOT active" width="19"
height="18"
border="0"></a>
+ <a href="<?php if($roscms_intern_account_level>50) { echo
'?page='.$rpm_page.'&sec=dyncontent&sec2=view&sort='.$rpm_so
rt.'&filt='.$rpm_filt.'&opt='.$rpm_opt.'&filt2='.$rpm_filt2.
'&langid='.$rpm_lang_id.'&dyn_content_active=1&dyn_content_a
ctive_set='.$result_content['dyn_id'] ; } else { echo '#'; }
?>"><img
src="images/notactive.gif" alt="NOT active" width="19"
height="18"
border="0"></a>
<?php } ?>
</div></td>
<td width="3%" valign="middle" bgcolor="<?php echo
$farbe;
?>"><div align="center">
_____
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/generate_page.php
---
trunk/web/reactos.org/htdocs/roscms/inc/generate_page.php
2006-01-15 20:26:53 UTC (rev 20901)
+++
trunk/web/reactos.org/htdocs/roscms/inc/generate_page.php
2006-01-15 20:36:29 UTC (rev 20902)
@@ -141,7 +141,7 @@
$sql_query_lang=mysql_query($sql_lang);
while($myrow_lang=mysql_fetch_row($sql_query_lang)) { //
Languages
-
+ $roscms_TEMP_curlang = $myrow_lang[0];
// Pages:
if ($rpm_site != "") {
@@ -393,13 +393,13 @@
// redirect all bad links to the
frontpage:
$data_page =
str_replace("[#link_",$roscms_intern_path_server."?page=index&temp="
,$data_page); // correct link
// Replace high chars by their
html-escaped version
- $data_page =
roscms_unicode_escape($data_page);
+// $data_page =
roscms_unicode_escape($data_page);
// Output & View:
switch ($rpm_sec2) {
case "genpage": //
generate a single page
case "output":
- // create HTML
file:
+ // create HTML
file:
if
($result_page['pages_extention'] == "default") {
$output_fileformat = $fileformat;
}
_____
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/inc_menu_translator.php
---
trunk/web/reactos.org/htdocs/roscms/inc/inc_menu_translator.php
2006-01-15 20:26:53 UTC (rev 20901)
+++
trunk/web/reactos.org/htdocs/roscms/inc/inc_menu_translator.php
2006-01-15 20:36:29 UTC (rev 20902)
@@ -20,8 +20,8 @@
?>
<div class="navTitle">Translator Int.</div>
<ol>
- <li><a href="?page=trans">Overview</a></li>
<li><a
href="?page=trans&sec=content&sec2=view">Translate
Content</a></li>
+ <li><a
href="?page=trans&sec=dyncontent&sec2=view"> -
Dynamic
Content</a></li>
<li><a
href="?page=trans&sec=help">Documentation</a></li>
</ol>
</div>
_____
Modified:
trunk/web/reactos.org/htdocs/roscms/inc/translator.php
---
trunk/web/reactos.org/htdocs/roscms/inc/translator.php
2006-01-15 20:26:53 UTC (rev 20901)
+++
trunk/web/reactos.org/htdocs/roscms/inc/translator.php
2006-01-15 20:36:29 UTC (rev 20902)
@@ -42,8 +42,9 @@
create_structure($rpm_page);
switch ($rpm_sec) {
+ default:
case "content":
- if ($rpm_sec2=="view") {
+ if ($rpm_sec2=="view" || $rpm_sec2=="")
{
include("inc/admin_content.php");
}
else if ($rpm_sec2=="edit") {
@@ -56,13 +57,24 @@
include("inc/admin_content_edit.php");
}
break;
+ case "dyncontent":
+ if ($rpm_sec2=="view") {
+
include("inc/admin_dyncontent.php");
+ }
+ else if ($rpm_sec2=="edit") {
+
include("inc/admin_dyncontent_edit.php");
+ }
+ else if ($rpm_sec2=="save") {
+
include("inc/admin_dyncontent_edit.php");
+ }
+ break;
case "help":
include("inc/translator_help.php");
break;
- case "overview":
+/* case "overview":
default:
include("inc/translator_overview.php");
- break;
+ break;*/
}
}
else { // for all other user groups