Mesaj
"; echo str_replace("\n","
",nl2br(print_r($msg,false))); die(); } else return 1; } else return 0; return 0; } function areperm($tip,$id=0) { $nr_ts = mysql_fetch_array(mysql_query("SELECT `tip".(int)$tip."` as perm FROM `swinger_chatuse`.`permisiuni` WHERE `id_user`='".(((int)$id>0)?(int)$id:(int)$_SESSION[SESSION]['user']['id'])."' ")); return ((isset($nr_ts['perm']) && $nr_ts['perm']==1)?1:0); } function upvids($tips) { $nr_ts = mysql_fetch_array(mysql_query("SELECT id FROM `swinger_chatuse`.`permisiuni` WHERE `id_user`='".(int)$_SESSION[SESSION]['user']['id']."' ")); $id=((isset($nr_ts['id']))?(int)$nr_ts['id']:0); if($id==0) { $sql="INSERT INTO `swinger_chatuse`.`permisiuni` (`id_user`,`tip1`,`tip2`,`tip3`,`tip4`) values ('".(int)$_SESSION[SESSION]['user']['id']."','".(int)$tips['1']."','".(int)$tips['2']."','".(int)$tips['3']."','".(int)$tips['4']."') "; } else { $sql="UPDATE `swinger_chatuse`.`permisiuni` set `tip1`='".(int)$tips['1']."',`tip2`='".(int)$tips['2']."',`tip3`='".(int)$tips['3']."',`tip4`='".(int)$tips['4']."' where `id_user`= '".(int)$_SESSION[SESSION]['user']['id']."' "; } mysql_query($sql) or die(mysql_error()."
".$sql); } ?>getError(); if ($error) { echo "

Constructor error

" . $error . "
"; } $wsdl_arg = array( 'token' => 'e45f01aa9fb6ae18a5b306a057d7c886', 'numar' => str_replace(".","",$nr), 'mesaj' => $mesaj ); $result = $client->call("trimiteSms", $wsdl_arg); if ($client->fault) { echo "

Fault

";
			print_r($result);
		echo "
"; return 0; } else { $error = $client->getError(); if ($error) { echo "

Error

" . $error . "
"; return 0; } else { echo "

Rezultat

";
				print_r($result);
			echo "
"; } } return 1; } ?>