<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: user_av_6_include.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or >isError()) {
 $user_av_6 = isset($_POST['user_av_6']) ? stripinput($_POST['user_av_6']) : $user_av_6;
 }

 echo "<tr>n";
 echo "<td class='tbl".$this->getErrorClass("user_av_6")."'><label for='user_av_6'>".$locale['uf_icq'].$required."</label></td>n";
 echo "<td class='tbl".$this->getErrorClass("user_av_6")."'>";
 echo "<input type='text' id='user_av_6' name='user_av_6' value='".$user_av_6."' maxlength='16' class='textbox' style='width:200px;' />";
 echo "</td>n</tr>n";

 if ($required) {
 $this->setRequiredJavaScript("user_av_6", $locale['uf_icq_error']);
 }

 // Display in profile
} else if ($profile_method == "display") {
 if ($user_data['user_av_6']) {
 echo "<tr>n";
 echo "<td class='tbl1'>".$locale['uf_icq']."</td>n";
 echo "<td align='right' class='tbl1'>".$user_data['user_av_6']."</td>n";
 echo "</tr>n";
 }

 // Insert and update
} else if ($profile_method == "validate_insert" || $profile_method == "validate_update") {
 // Get input data
 if (isset($_POST['user_av_6']) && ($_POST['user_av_6'] != "" || $this->_isNotRequired("user_av_6"))) {
 if (isnum($_POST['user_av_6']) || $_POST['user_av_6'] == "") {
 // Set update or insert user data
 $this->_setDBValue("user_av_6", $_POST['user_av_6']);
 } else {
 $this->_setError("user_av_6", $locale['uf_icq_error2']);
 }
 } else {
 $this->_setError("user_av_6", $locale['uf_icq_error'], TRUE);
 }
}