add counter und fix language entrys

git-svn-id: svn://svn.cccv.de/engel-system@61 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 19 years ago
parent 0be1122047
commit 283d16d543

@ -16,9 +16,9 @@ if( $Page["ShowTabel"]=="Y" )
<br> <br>
<p align="center"> <p align="center">
<?PHP If (IsSet($_SESSION['oldurl'])) <?PHP If (IsSet($_SESSION['oldurl']))
echo "<a href=\"". $_SESSION["oldurl"]. "\">".Get_Text(11)."</a>&nbsp;"; echo "<a href=\"". $_SESSION["oldurl"]. "\">".Get_Text("back")."</a>&nbsp;";
?> ?>
<a href="#top"><?PHP echo Get_Text(12); ?></a> <a href="#top"><?PHP echo Get_Text("top"); ?></a>
</p> </p>
</td> </td>
</tr> </tr>
@ -111,6 +111,7 @@ if( isset($_SESSION['UID']))
<tr> <tr>
<td colspan="2"> <td colspan="2">
<h5 align="center"> &#169; copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a></h5> <h5 align="center"> &#169; copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a></h5>
<? include( "./inc/funktion_counter.php"); ?>
</td> </td>
</tr> </tr>
</table> </table>

@ -0,0 +1,24 @@
<?PHP
$SQL = "SELECT `Anz` FROM `Counter` WHERE `URL`=\"". $Page["Name"]. "\"";
$Erg = mysql_query($SQL, $con);
echo mysql_error($con);
if(mysql_num_rows($Erg)==0)
{
// echo "Counter: 1";
$SQL = "INSERT INTO `Counter` ( `URL` , `Anz` ) ".
"VALUES ('". $Page["Name"]. "', '1');";
$Erg = mysql_query($SQL, $con);
}
elseif(mysql_num_rows($Erg)==1)
{
// echo "Counter: ". (mysql_result($Erg, 0, 0)+1);
$SQL = "UPDATE `Counter` SET `Anz` = '". (mysql_result($Erg, 0, 0) +1). "' ".
"WHERE `URL` = '". $Page["Name"]. "' LIMIT 1 ;";
$Erg = mysql_query($SQL, $con);
}
?>

@ -1,30 +1,39 @@
<?PHP <?PHP
function Get_Text ($TextID)
{
if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN"; if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN";
if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN"; if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
GLOBAL $con; function Get_Text ($TextID)
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; {
@$Erg = mysql_query($SQL, $con);
if(!mysql_error($con)) GLOBAL $con;
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
@$Erg = mysql_query($SQL, $con);
// if(!mysql_error($con))
if( mysql_num_rows( $Erg) == 1)
return (@mysql_result($Erg, 0, "Text")); return (@mysql_result($Erg, 0, "Text"));
else else
return "Error Data"; {
// die("Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x");
return "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
}
} }
function Print_Text ($TextID){ function Print_Text ($TextID)
GLOBAL $con; {
GLOBAL $con;
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; $SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
@$Erg = mysql_query($SQL, $con); @$Erg = mysql_query($SQL, $con);
if(!mysql_error($con)) // if(!mysql_error($con))
if( mysql_num_rows( $Erg) == 1)
echo nl2br(@mysql_result($Erg, 0, "Text")); echo nl2br(@mysql_result($Erg, 0, "Text"));
else else
echo "Error Data"; {
echo "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
}
} }
?> ?>

@ -78,7 +78,7 @@ if( $Page["ShowTabel"]=="Y" )
<td> <td>
<? <?
echo "\t<a name=\"#$header\" class=\"contenttopic\">"; echo "\t<a name=\"#$header\" class=\"contenttopic\">";
if( strlen(Get_Text($Page["Name"])) > 0 ) if( strlen( $header) == 0 )
echo "\n\t<b>". Get_Text($Page["Name"]). "</b></a>\n"; echo "\n\t<b>". Get_Text($Page["Name"]). "</b></a>\n";
else else
echo "\n\t<b>$header</b></a>\n"; echo "\n\t<b>$header</b></a>\n";
@ -115,9 +115,9 @@ function SetHeaderGo2Back ()
if ( $Page["CVS"] != "Y" ) { if ( $Page["CVS"] != "Y" ) {
echo "Du besitzt kein Rechte für diesen Bereich.<br>\n"; echo "Du besitzt kein Rechte für diesen Bereich.<br>\n";
If (IsSet($_SESSION['oldurl'])) If (IsSet($_SESSION['oldurl']))
echo "<a href=\"".$oldurl."\">".Get_Text(11)."</a> geht's zur&uuml;ck...\n"; echo "<a href=\"".$oldurl."\">".Get_Text("back")."</a> geht's zur&uuml;ck...\n";
else else
echo "<a href=\"../nonpublic\">".Get_Text(11)."</a> geht's zur&uuml;ck...\n"; echo "<a href=\"../nonpublic\">".Get_Text("back")."</a> geht's zur&uuml;ck...\n";
exit (); exit ();
} }
?> ?>

@ -6,7 +6,7 @@ include ("./inc/crypt.php");
if (!IsSet($_POST["action"])) if (!IsSet($_POST["action"]))
{ {
echo Get_Text(1).$_SESSION['Nick'].",<br>\n\n"; echo Get_Text("Hallo").$_SESSION['Nick'].",<br>\n\n";
Print_Text(13); Print_Text(13);
?> ?>
<hr width=\"100%\"> <hr width=\"100%\">
@ -31,7 +31,7 @@ if (!IsSet($_POST["action"]))
<tr> <td><? Print_Text("pub_einstellungen_email"); ?></td> <tr> <td><? Print_Text("pub_einstellungen_email"); ?></td>
<td><input type="text" name="eemail" size="40" value="<? echo $_SESSION['email']; ?>"></td></tr> <td><input type="text" name="eemail" size="40" value="<? echo $_SESSION['email']; ?>"></td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>
<br> <br>
@ -45,7 +45,7 @@ if (!IsSet($_POST["action"]))
<tr><td><?PHP Print_Text(16); ?></td><td><input type="password" name="new1" size="20"></td></tr> <tr><td><?PHP Print_Text(16); ?></td><td><input type="password" name="new1" size="20"></td></tr>
<tr><td><?PHP Print_Text(17); ?></td><td><input type="password" name="new2" size="20"></td></tr> <tr><td><?PHP Print_Text(17); ?></td><td><input type="password" name="new2" size="20"></td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>
<br> <br>
@ -71,7 +71,7 @@ if (!IsSet($_POST["action"]))
</select> </select>
</td></tr> </td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>
<br> <br>
<hr width="100%"> <hr width="100%">
@ -89,7 +89,7 @@ if (!IsSet($_POST["action"]))
</select> </select>
</td></tr> </td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>
<br> <br>
<hr width="100%"> <hr width="100%">
@ -130,7 +130,7 @@ $ANZ_AVATAR= shell_exec("ls inc/avatar/ | wc -l");
<img src="./inc/avatar/avatar<?php echo $_SESSION['Avatar']; ?>.gif" name="avatar" border="0" alt="" align="top"> <img src="./inc/avatar/avatar<?php echo $_SESSION['Avatar']; ?>.gif" name="avatar" border="0" alt="" align="top">
</td></tr> </td></tr>
</table> </table>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>

@ -3,7 +3,8 @@ include ("./inc/db.php");
include ("./inc/funktion_user.php"); include ("./inc/funktion_user.php");
if( isset( $_POST["text"]) && isset( $_POST["betreff"]) && IsSet( $_POST["date"]) ) { if( isset( $_POST["text"]) && isset( $_POST["betreff"]) && IsSet( $_POST["date"]) )
{
if( !isset( $_POST["treffen"])) if( !isset( $_POST["treffen"]))
$_POST["treffen"] = 0; $_POST["treffen"] = 0;
//$escaped_text = htmlescape($text); //$escaped_text = htmlescape($text);
@ -109,5 +110,5 @@ if ($_SESSION['CVS']["nonpublic/newsAddMeting"] == "Y") {
?> ?>
</table> </table>
<br> <br>
<input type="submit" value="<?PHP Print_Text(10); ?>"> <input type="submit" value="<?PHP Print_Text("save"); ?>">
</form> </form>

@ -8,7 +8,7 @@ include ("./inc/header.php");
?> ?>
<? echo Get_Text(1). $_SESSION['Nick'].",<br>\n". <? echo Get_Text("Hello"). $_SESSION['Nick'].",<br>\n".
Get_Text("pub_waeckliste_Text1")?> Get_Text("pub_waeckliste_Text1")?>
<br><br> <br><br>
<table border="0" width="100%" class="border" cellpadding="2" cellspacing="1"> <table border="0" width="100%" class="border" cellpadding="2" cellspacing="1">

Loading…
Cancel
Save