A
Anonymous
Guest
Dear Al,
I have recently changed my functions.php under cpanel home directory. Please view the php source code below, specifically the bolded section:
function banner(){
## Actual Language
$lang = (!empty($this->data['lang']))? $this->data['lang'] : 1;
## Actual page
$page = (!empty($this->data['id']) && is_numeric($this->data['id']))? $this->data['id'] : 1;
## Artikull
$artikull = (!empty($this->data['a']) && is_numeric($this->data['a']))? $this->data['a'] : 0;
if(!empty($artikull)){
$s = $this->db->query("SELECT `img` FROM `artikujt` WHERE id = ".$artikull." AND lang = ".$lang." ORDER BY `id` ASC LIMIT 1");
}else{
$s = $this->db->query("SELECT `img` FROM `artikujt` WHERE kategoria = ".$page." AND lang = ".$lang." ORDER BY `data` DESC LIMIT 1");
}
if(mysql_num_rows($s) > 0){
$data = mysql_fetch_assoc($s);
if(!empty($data['img']) && $data['img'] != '#'){
return '<a href="?id=4&album=28&lang=1"><img src="/public_html/cms/data/669a789d844c6ed78d0efdf450c75b68.png" width="970" alt="" /></a>';
}else{
return;
}
}
return false;
P.S. the folder categories which links to the images is as follows
Public_html/data/img-name.jpg
I would really appreciate some guidance and im willing to provide additional info for some help!
I have recently changed my functions.php under cpanel home directory. Please view the php source code below, specifically the bolded section:
function banner(){
## Actual Language
$lang = (!empty($this->data['lang']))? $this->data['lang'] : 1;
## Actual page
$page = (!empty($this->data['id']) && is_numeric($this->data['id']))? $this->data['id'] : 1;
## Artikull
$artikull = (!empty($this->data['a']) && is_numeric($this->data['a']))? $this->data['a'] : 0;
if(!empty($artikull)){
$s = $this->db->query("SELECT `img` FROM `artikujt` WHERE id = ".$artikull." AND lang = ".$lang." ORDER BY `id` ASC LIMIT 1");
}else{
$s = $this->db->query("SELECT `img` FROM `artikujt` WHERE kategoria = ".$page." AND lang = ".$lang." ORDER BY `data` DESC LIMIT 1");
}
if(mysql_num_rows($s) > 0){
$data = mysql_fetch_assoc($s);
if(!empty($data['img']) && $data['img'] != '#'){
return '<a href="?id=4&album=28&lang=1"><img src="/public_html/cms/data/669a789d844c6ed78d0efdf450c75b68.png" width="970" alt="" /></a>';
}else{
return;
}
}
return false;
P.S. the folder categories which links to the images is as follows
Public_html/data/img-name.jpg
I would really appreciate some guidance and im willing to provide additional info for some help!