if ( is_numeric($FG_TABLE_COL[$i][5]) && (strlen($record_display) > $FG_TABLE_COL[$i][5]) ){ $record_display = substr($record_display, 0, $FG_TABLE_COL[$i][5]-3)."..."; } ?> <TD vAlign=top align="<?php echo $FG_TABLE_COL[$i][3]?>" class=tableBody><?php $FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]; if (isset ($FG_TABLE_COL[$i][11]) && strlen($FG_TABLE_COL[$i][11])>1){ call_user_func($FG_TABLE_COL[$i][11], $record_display); }else{ echo stripslashes($record_display); } ?></TD> <?php } ?> <?php if ($_SESSION["is_admin"]==1 && 1==3){ ?> <TD vAlign=top align="<?php echo $FG_TABLE_COL[$i][3]?>" class=tableBody><?php echo findkey($list_reseller, $recordset[2]);?></TD> <?php } ?> </TR> <?php }//foreach ($list as $recordset) if ($ligne_number < $FG_LIMITE_DISPLAY) { $ligne_number++; ?> <TR bgcolor="<?php echo $FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>"> <?php for($i=0;$i<$FG_NB_TABLE_COL-1;$i++){ ?> <TD vAlign=top class=tableBody> </TD> <?php } ?> <TD align="center" vAlign=top class=tableBodyRight> </TD>
} else { echo stripslashes($record_display); } ?> </TD> <?php } ?> <?php if ($_SESSION["is_admin"] == 1 && 1 == 3) { ?> <TD vAlign=top align="<?php echo $FG_TABLE_COL[$i][3]; ?> " class=tableBody><?php echo findkey($list_reseller, $recordset[2]); ?> </TD> <?php } ?> </TR> <?php } //foreach ($list as $recordset) if ($ligne_number < $FG_LIMITE_DISPLAY) { $ligne_number++; ?> <TR bgcolor="<?php
die('{"encrypt":"' . $md5Key . '"}'); } }); if_post("/GetKeyList.json", function () { is_api(); $json = file_get_contents('php://input'); $jsonarray = json_decode($json, true); $userinfo = GetUserinfoJson($jsonarray['token']); die(GetUserLinks($userinfo['id'])); }); if_post("/addKey.json", function () { is_api(); $json = file_get_contents('php://input'); $jsonarray = json_decode($json, true); $userinfo = GetUserinfoJson($jsonarray['token']); $keyid = findkey($jsonarray['key']); if ($keyid) { if (findkeyslinkidcount($keyid['id'], $userinfo['id'])) { die(ErrorCode::CODE("1012")); } else { die(addKeylinks($keyid['id'], $userinfo['id'])); } } else { $kid = addKeys(array("key" => $jsonarray['key'])); if ($kid) { die(addKeylinks($kid, $userinfo['id'])); } else { die(ErrorCode::CODE("1012")); } } });