Location: PHPKode > scripts > UNKNOW > webifycore/admin/languages.php
<?PHP
$table = "$prefix" . "LANG";
$editpage = "addlanguage";
$setpage = "languages";

//........................

if ($_GET[setlang] == 1) {
        
        $tablexxx = "$prefix" . "SETTINGS";
        $sql    = "UPDATE $tablexxx SET
        LANG   = '$_GET[lang]' WHERE ID = '1'";
        $query  = @mysql_query($sql);

        $SQLxxx = "SELECT * from $tablexxx"; $resultxxx = @mySQL_query( $SQLxxx ); $rowxxx = @mySQL_fetch_array( $resultxxx );

}

?>

<a style="float: right; margin-right: 4px; " href="index.php?page=addlanguage" class="deltabutton"><?PHP /* (LANGUAGE) */ $t = "New Language"; $f = "newlanguage"; include "langinc.php"; /* (LANGUAGE) */ ?></a>

<h2><?PHP /* (LANGUAGE) */ $t = "Languages"; $f = "header"; include "langinc.php"; /* (LANGUAGE) */ ?></h2>

<form name="form" method="post" action="index.php?page=languages&delete=1">

<?php

include "delete.php";

//........................

if (empty($rowxxx[RECORDS])) 
        $rowxxx[RECORDS] = 10;

$query1 = @mysql_query ("SELECT * FROM $table ORDER BY LANG ASC");
$numrows = @mysql_num_rows ($query1);

if (!isset ($_GET['show']))
        $display = 1;
else
        $display = $_GET['show'];

$start = (($display * $rowxxx[RECORDS]) - $rowxxx[RECORDS]);
$query2 = @mysql_query ("SELECT * FROM $table $where ORDER BY LANG ASC LIMIT $start,$rowxxx[RECORDS]");
while ($row = @mysql_fetch_array ($query2)) {     
$gotsomerecords = 1;
//........................

?>

<table style="margin-bottom: 15px;" width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="primebox" width="100%"> 

<input style="float: right;" type="checkbox" name="<?php echo $row[ID]; ?>" value="<?php echo $row[ID]; ?>" <?php if ($row[STYLE] == 'default') { ?> disabled <?PHP } ?>>

<span class="linklarge">

<?php 
$url = "index.php?page=$editpage&id=$row[ID]";
$link = "<a href=\"$url\">$row[LANG]</a>";
?>

<?PHP ECHO $link; ?>

</span> 

<hr>

<?PHP if ($rowxxx[LANG] == $row[CODE]) $active = active; ?>

<a href="index.php?page=<?php echo $setpage; ?>&lang=<?php echo $row[CODE]; ?>&setlang=1" title="<?PHP /* (LANGUAGE) */ $t = "Set as Active Language"; $f = "setlanguagetip"; include "langinc.php"; /* (LANGUAGE) */ ?>"><img style="margin-top:5px;  float: right;" class="<?php echo $active; ?>thumb" src="http://<?php echo $_SERVER[HTTP_HOST]; ?>/webifycore/images/check.png" width="32" height="32" border="0"></a>

<a href="index.php?page=<?php echo $editpage; ?>&id=<?php echo $row[ID]; ?>&clone=1" title="<?PHP /* (LANGUAGE) */ $t = "Clone Language"; $f = "clonelanguagetip"; include "langinc.php"; /* (LANGUAGE) */ ?>"><img style="margin-top:5px; margin-right:5px; float: right;" class="thumb" src="http://<?php echo $_SERVER[HTTP_HOST]; ?>/webifycore/images/clone.png" width="32" height="32" border="0"></a>

<?PHP $active = ""; ?>

<?php echo $row[DESCRIPTION]; ?>

</td>

</table>

<?php } ?>

<?PHP include "deletebar.php"; ?>

</form>

<?PHP include "pagination.php"; ?>
Return current item: UNKNOW