Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
viper155
Regular
Regular



Joined: Feb 18, 2006
Posts: 99

PostPosted: Sun Mar 26, 2006 8:00 pm Reply with quote

Im using NukeRoyal, When I set a permisson *paid membership* to a module using this program I run into some problems with NSN groups I think.

When a paid member tries to view this module I get this *Sorry, such file doesn't exist...*

I noticed when I look at my modules under the admin section it says visable to *Groups only* which automaticaly gets set when I use nukeroyal to set the permissons to my paid members only.

Does this sound like a conflict with nsn groups and nukeroyals module permissions, If so should I just uninstall nsn groups?


Thanks
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Sun Mar 26, 2006 8:26 pm Reply with quote

Unless NukeRoyal uses NSN Groups to control access to a group, you won't be able to set a module for group access only. NukeScripts.net has an addon that lets you control access to a group via PayPal, which would accomplish the same thing. But, if you've already paid for NukeRoyal or like its features over NSN-PayPal, you might need to remove the Group access from the module to let NukeRoyal do its job. You don't necessary need to remove NSN Groups, though.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
viper155







PostPosted: Mon Mar 27, 2006 3:21 pm Reply with quote

Well I dont think its a NSN group problem. My other site also has nukeroyal and nsn and its working fine together. Perhaps my module file isnt compatible with the new 3.1 patch.. Could you help me change the needed lines in my file.

Code:


if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");}
require_once("mainfile.php");
$index=0;
include("header.php");

/**************************************************************************************/

function install(){global $admin, $db, $dbi, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;



if (is_admin($admin)) {
       sql_query("DROP TABLE `nsv`;", $dbi);
   sql_query("CREATE TABLE `nsv` (
  `streamid` int(11) NOT NULL auto_increment,
  `networkid` int(11) NOT NULL default '0',
  `adminid` varchar(30) NOT NULL default '',
  `codec` int(2) NOT NULL default '0',
  `h` int(4) default '240',
  `w` int(4) default '320',
  `url` varchar(255) default '',
  `title` varchar(255) default '',
  `blurb` text,
  `details` text NOT NULL,
  `topic` int(3) NOT NULL default '1',
  `active` int(1) NOT NULL default '0',
  `language` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`streamid`),
  KEY `streamid` (`streamid`),
  KEY `networkid` (`networkid`),
  KEY `topic` (`topic`)
) TYPE=MyISAM AUTO_INCREMENT=10 ;", $dbi); }else{die("");}



 

}
/**********************************************/
function findpub(){global $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;
$sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang WHERE networkid=1 ";
$result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];
   $networkid = $row[networkid];
   $adminid = $row[adminid];
   $codec=$row[codec];
   $h=$row[h];
   $w=$row[w];
   $url=$row[url];      
   $title = $row[title];
   $blurb = $row[blurb];
   $details = $row[details];
   $topic = $row[topic];
   $active = $row[active];
   $language = $row[language];
       
     }
     $choice= $streamid;
     }

/************************************************************************************************************************/
function publist(){  global $db, $streamid, $networkid, $adminid, $admin, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;
echo "<br><font class=\"title\"><center>Channel List<br><br>";
opentable();
$sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang ORDER BY streamid";
    $result = $db->sql_query($sql);
    $grid=1;
   
     
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];
   $networkid = $row[networkid];
   $adminid = $row[adminid];
   $codec=$row[codec];
   $h=$row[h];
   $w=$row[w];
   $url=$row[url];      
   $title = $row[title];
   $blurb = $row[blurb];
   $details = $row[details];
   $topic = $row[topic];
   $active = $row[active];
   $language = $row[language];
        if ($active==1){
        if($grid==2){closetable(); $grid=1;opentable();}
        echo"<td>";
        opentable2();
        echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\">";
        echo "<td><font class=\"title\">$title     </font><INPUT  type=hidden name=choice value=$streamid><INPUT style=\"WIDTH: 40px; HEIGHT: 15px\" type=submit size=62 value=\"Play\" name=\"op\"><br><br>$details<br><br>";
        echo"</form>";
         
         closetable2();
        echo "</td>";
        $grid=$grid+1;}
               
     }
     

       closetable();     
   
     

echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\">"
     . "<select  name=\"choice\" >";
     $sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang ORDER BY streamid";
    $result = $db->sql_query($sql);
    echo "<hr>";
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];
         
   $title = $row[title];
   $blurb = $row[blurb];
   $active = $row[active];
   $language = $row[language];     
if ($active==1){echo "<option value=$streamid >$title";} }

echo "</option>";
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Edit\" name=\"op\">";}
echo"<INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Play\" name=\"op\"><br></tr></table>";

}

     
 /**********************************************************************************************************/
function getchannel($choice){  global $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;

$sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang WHERE streamid=$choice ";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];
   $networkid = $row[networkid];
   $adminid = $row[adminid];
   $codec=$row[codec];
   $h=$row[h];
   $w=$row[w];
   $url=$row[url];      
   $title = $row[title];
   $blurb = $row[blurb];
   $details = $row[details];
   $topic = $row[topic];
   $active = $row[active];
   $language = $row[language];     }
     }

   
/******************************************************************************************/
function listchannels(){  global $admin, $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang, $dbi;

if (is_admin($admin)){

echo "<center><font class=\"title\">Adminicaster Central<br><br>Channels</font>";
echo"</center>";
opentable2();
$sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang ORDER BY streamid";
    $result = $db->sql_query($sql);
    $grid=1;   
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];
   $networkid = $row[networkid];
   $adminid = $row[adminid];
   $codec=$row[codec];
   $h=$row[h];
   $w=$row[w];
   $url=$row[url];      
   $title = $row[title];
   $blurb = $row[blurb];
   $details = $row[details];
   $topic = $row[topic];
   $active = $row[active];
   $language = $row[language];
        if($grid==4){closetable2(); $grid=1;opentable2();}
        echo"<td>";
        opentable2();
        echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\">";
        echo "<td><font class=\"title\">$title </font><br><INPUT  type=hidden name=choice value=$streamid><INPUT style=\"WIDTH: 40px; HEIGHT: 15px\" type=submit size=62 value=\"Edit\" name=\"op\"><br>$w X $h<br>$blurb<br>$url<br>";
        echo"</form>";
        if ($active==1){echo "Currently Pubic<br>";} else{echo "Currently Hidden<br>";}
        if ($networkid==1){echo " Default Status Enabled ";} else{echo " Default Status Disabled";}
        closetable2();
        echo "</td>";
        $grid=$grid+1;
               
     }
     
 }else{die();}   
     
     closetable2();
     opentable2();
     echo "<td><center><font class=\"title\">Channel Explorer</font>";
echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\">"
     . "<select  name=\"choice\" >";
     $sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang ORDER BY streamid";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $opstreamid = $row[streamid];      
   $optitle = $row[title];
   $opblurb = $row[blurb];
   $opactive = $row[active];
   $oplanguage = $row[language];     
echo "<option value=$opstreamid >$optitle"; }
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Edit\" name=\"op\">";}
     echo "<INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"AdminPlay\" name=\"op\"><br><br><br>";
     if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Delete\" name=\"op\">";}
     echo "<hr><font class=\"title\">Add New Channel<br><br></font>";
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Add\" name=\"op\">";}echo "<br><br><br>";echo "<font class=\"title\"><hr>Install or Reset Installation</font>"."<br><br>";
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Shazam\" name=\"op\">";}
echo "</td><td>";
$h=$h/4;
$w=$w/4;

echo"</td>";
closetable2();

     }
     
/********************************************************************************************/

function display() {global $choice, $admin, $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;
if ($codec==9){ $h=($h+50); echo "<table bgcolor=$bgcolor2> <td><center> <STRONG><font class=\"title\">$title</font></STRONG> <br><embed  src=\"$url\"
width=$w height=$h autohref=\"true\" autoplay=\"true\"></embed></td></table>";echo "<center><font class=\"content\">$details</font></center>";}
elseif($codec==10) {echo "<center><table bgcolor=$bgcolor2><td><center><STRONG><font class=\"title\">$title</font></STRONG> <br><embed  src=\"$url\"
width=\"$w\"height=\"$h\" autohref=\"true\" autoplay=\"true\"></embed></td></table>";echo "<center><font class=\"content\">$details</font></center>";}
else{
opentable();
   if ($codec==0){$class = "C5E28B9D-0A68-4B50-94E9-E8F6B4697514";}
        if ($codec==1){$class = "C5E28B9D-0A68-4B50-94E9-E8F6B4697515";}
        if ($codec==2){$class = "C5E28B9D-0A68-4B50-94E9-E8F6B4697516";}
        if ($codec==3){$class = "C5E28B9D-0A68-4B50-94E9-E8F6B4697519";}
        if ($codec==0){$base = "http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab";}
        if ($codec==1){$base = "http://www.nullsoft.com/nsv/embed/nsvplayx_vp5_mp3.cab";}
        if ($codec==2){$base = "http://www.nullsoft.com/nsv/embed/nsvplayx_vp6_mp3.cab";}
        if ($codec==3){$base = "http://www.nullsoft.com/nsv/embed/nsvplayx_vp6_aac.cab";}
echo "<center><TABLE height=".($h+100)." cellSpacing=2 cellPadding=1 width=".($w+100)." border=0>"
     ."<TBODY>"
    ."<TR>"
    ."<TD vAlign=center align=middle width=".($w+100)."
    bgcolor=$bgcolor2
   
      height=".($h+100)."><P>"
      ."<STRONG><font class=\"title\">$title</font><br>$blurb</STRONG> <br>"
        ."<OBJECT id=nsvplayx style=\"WIDTH: ".($w+60)."px; HEIGHT: ".($h+50)."px\"
      codeBase=".$base." height='".$h."'
      width='".$w."' border='0' classid='clsid:".$class."'><PARAM NAME=\"_Version\" VALUE=\"65536\"><PARAM NAME=\"_ExtentX\" VALUE=\"12250\"><PARAM NAME=\"_ExtentY\" VALUE=\"8864\"><PARAM NAME=\"_StockProps\" VALUE=\"0\"><PARAM NAME=\"Location\" VALUE=".$url."></OBJECT></P></center>";}
echo "<font class=\"storycontent\">$blurb</font>";
echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\">"
     . "<select  name=\"choice\" >";
     $sql = "SELECT streamid, networkid, adminid, codec, h, w, url, title, blurb, details, topic, active, language FROM nsv $qdb $querylang ORDER BY streamid";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $streamid = $row[streamid];         
   $title = $row[title];
   $blurb = $row[blurb];
   $active = $row[active];
   $language = $row[language];
        $details = $row[details];     
if($active==1){echo "<option value=$streamid >$title";}}
echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Play\" name=\"op\">";
echo "<INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Info\" name=\"op\">";
/*need administer button*/
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Admin\" name=\"op\">";
    }
echo "</form>";

closetable();

}   

$title .= "<img src=\"modules/Shout_Cast/exclusivevideos.bmp\" border=\"0\" alt=\"\" title=\"\" width=\"401\" height=\"72\">";
/**************************edit stream*********************************/

     
function editStream() {
    global $admin, $db, $dbi, $choice, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;

        OpenTable();
        echo "<center><br><form action=\"modules.php?name=Shout_Cast\" method=\"post\"><P align=center><font class=\"title\">Adminicaster</P>";
echo "<P align=center>Stream Name<INPUT type=\"text\" maxLength=50 value=\"$title\" name=\"title\"></P>
<P align=center>Stream URL<INPUT type=\"text\" value=$url style=\"WIDTH: 363px; HEIGHT: 22px\"
maxLength=200 size=46 name=\"url\"></P>
<P align=center>Size</P>
<P align=center>Width: <INPUT
type=\"text\" value=$w style=\"WIDTH: 69px; HEIGHT: 22px\" size=8 name=\"w\"></P>
<P align=center>Height:<INPUT type=\"text\" value=$h style=\"WIDTH: 69px; HEIGHT: 22px\" size=8
name=h></P>
<P align=center>Codec:</P>
<P align=center>
<TABLE height=78 cellSpacing=2 cellPadding=1 width=468
  border=0><TBODY>
  <TR>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP3-mp3</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP5-mp3</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP6-mp3</P></TD>
    <TD vAlign=top width=105 height=42>
      <P align=center>VP6-AAC</P></TD>
    <TD vAlign=top width=105 height=42>
      <P align=center>WM</P></TD><TD vAlign=top width=105 height=42>
      <P align=center>QT</P></TD></TR>
  <TR>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=0 name=codec checked></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=1 name=codec></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=2 name=codec></P></TD>
    <TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=3
name=codec></P></TD>
<TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=9
name=codec></P></TD>
<TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=10
name=codec></P></TD></TR></TBODY></TABLE></P>";
echo "<b>Short Description</b><br>"
    ."<input type=\"text\" name=\"blurb\" size=\"50\" value=\"$blurb\"><br><br>"
    ."<input type=\"hidden\" name=\"choice\" size=\"50\" value=\"$choice\"><br><br>";
    echo "";
    echo "<font class=\"title\"><b> Description</b><br>"
    ."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"details\" >$details</textarea><br><br>";
echo"<font class=\"title\">Selectable </font><TABLE height=50 cellSpacing=2 cellPadding=1 width=200
  border=0><TBODY>
  <TR>
    <TD vAlign=top width=115 height=42>
      <P align=center>Public</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>Hidden</P></TD>   
  <TR>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=1 name=active checked></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=0 name=active></P></TD>
    </TD></TR></TBODY></TABLE></P>";
 echo "<font class=\"title\">Play Upon Page Entry?</font><br><input type=\"checkbox\" name=networkid value=1 checked><br>";
       
echo "<center><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=hidden size=62 value=$choice name=\"choice\" >";
if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Set\" name=\"op\">";}
   CloseTable();
                     }

/*****************************************************************************/
function addStream() {
    global $admin, $db, $dbi, $choice, $streamid, $bgcolor1, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang;
        OpenTable();
        echo "<center><br><form action=\"modules.php?name=Shout_Cast\" method=\"post\"><P align=center><font class=\"title\">Adminicaster</P>";
echo "<P align=center>Stream Name<INPUT type=\"text\" maxLength=50 value=\"Title\" name=\"title\"></P>
<P align=center>Stream URL<INPUT type=\"text\" value=\"http//\" style=\"WIDTH: 363px; HEIGHT: 22px\"
maxLength=200 size=46 name=\"url\"></P>
<P align=center>Size</P>
<P align=center>Width: <INPUT
type=\"text\" value=\"320\" style=\"WIDTH: 69px; HEIGHT: 22px\" size=8 name=\"w\"></P>
<P align=center>Height:<INPUT type=\"text\" value=\"240\" style=\"WIDTH: 69px; HEIGHT: 22px\" size=8
name=\"h\"></P>
<P align=center>Codec:</P>
<P align=center>
<TABLE height=78 cellSpacing=2 cellPadding=1 width=468 bgColor=$bgcolor1
  border=0><TBODY>
  <TR>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP3-mp3</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP5-mp3</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>VP6-mp3</P></TD>
    <TD vAlign=top width=105 height=42>
      <P align=center>VP6-AAC</P></TD>
    <TD vAlign=top width=105 height=42>
      <P align=center>WM</P></TD><TD vAlign=top width=105 height=42>
      <P align=center>QT</P></TD></TR>
  <TR>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=0 name=codec checked></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=1 name=codec></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=2 name=codec></P></TD>
    <TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=3
name=codec></P></TD>
<TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=9
name=codec></P></TD>
<TD vAlign=top width=105 height=30>
      <P align=center><INPUT type=radio value=10
name=codec></P></TD></TR></TBODY></TABLE></P>";
echo "<b>Short Description</b><br>"
    ."<input type=\"text\" name=\"blurb\" size=\"50\" value=\"$blurb\"><br><br>"
    ."<input type=\"hidden\" name=\"choice\" size=\"50\" value=\"$choice\"><br><br>";
    echo "";
    echo "<font class=\"title\"><b> Description</b><br>"
    ."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"details\" >$details</textarea><br><br>";
echo"<font class=\"title\">Selectable </font><TABLE height=50 cellSpacing=2 cellPadding=1 width=200 bgColor=$bgcolor1
  border=0><TBODY>
  <TR>
    <TD vAlign=top width=115 height=42>
      <P align=center>Public</P></TD>
    <TD vAlign=top width=115 height=42>
      <P align=center>Hidden</P></TD>   
  <TR>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=1 name=active checked></P></TD>
    <TD vAlign=top width=115 height=30>
      <P align=center><INPUT type=radio value=0 name=active></P></TD>
    </TD></TR></TBODY></TABLE></P>";
    echo "<font class=\"title\">Play Upon Page Entry?</font><br><input type=\"checkbox\" name=networkid value=1 checked><br>";
    if (is_admin($admin)) {echo "<form action=\"modules.php?name=Shout_Cast\" method=\"post\"><INPUT style=\"WIDTH: 97px; HEIGHT: 24px\" type=submit size=62 value=\"Tune\" name=\"op\">";}   
}

/***********************************************************************************/

function writeit($choice, $title, $networkid, $adminid, $codec, $h, $w, $url,  $blurb, $details, $topic, $active, $language){
global $choice, $admin, $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang, $dbi;




     
      if (is_admin($admin)){sql_query("UPDATE nsv SET networkid='$networkid', title='$title', blurb='$blurb', details='$details', topic='$topic', active='$active', url='$url', w='$w', h='$h', codec='$codec', language='$language'   WHERE streamid =$choice", $dbi); }else{die();}




}
     
     
/************************************************************************/
function writeit2($choice, $title, $networkid, $adminid, $codec, $h, $w, $url,  $blurb, $details, $topic, $active, $language){
global $admin, $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang, $dbi;
     
          if (is_admin($admin))   {sql_query("INSERT INTO nsv (networkid, title, blurb, details, topic, active, language, url, codec, w, h)VALUES('$networkid','$title','$blurb','$details','$topic','$active','$language', '$url', '$codec', '$w', '$h')" ,$dbi);}
else{die();}
}
/**************************************************************************/
function deleteStream($choice){
global $choice, $admin, $db, $streamid, $networkid, $adminid, $codec, $h, $w, $url, $title, $blurb, $details, $topic, $active, $language, $qdb, $querylang, $dbi;


     
          if (is_admin($admin)){   sql_query("DELETE FROM nsv WHERE streamid='$choice'", $dbi);}else{die();}

}

/************************************************************************/     
switch($op){
        default:
           findpub();
           getchannel($choice);       
           display();
           break;
           
           case "Info":
           publist();
           break;           
           
           case "Play":           
           getchannel($choice);
           display();
           break;
           
           case "AdminPlay":           
           getchannel($choice);
           $h=$h/3;
           $w=$w/3;
           display();
           listchannels();
           break;

           case "Admin":
           listchannels();           
      break;
      
      case "Delete":   
      getchannel($choice);
      deleteStream($choice);
      listchannels();
      break;
      
      case "Edit":   
      getchannel($choice);
      editStream();
      break;
      
      case "Add":      
      addStream();
      break;
      
      case "Tune":
      writeit2($choice, $title, $networkid, $adminid, $codec, $h, $w, $url,  $blurb, $details, $topic, $active, $language);
      listchannels();
      break;
      
      case "Shazam":
      install();
      echo "<font class=\"title\"><center>Enter default Channel<br></font>...can be edited later";
      addstream();
      break;
      
      case "Set":
      writeit($choice, $title, $networkid, $adminid, $codec, $h, $w, $url,  $blurb, $details, $topic, $active, $language);
      
      listchannels();
      break;
}
closetable();
include("footer.php");
 
kguske







PostPosted: Mon Mar 27, 2006 8:32 pm Reply with quote

Does your other site have the module set to group only access?
 
viper155







PostPosted: Mon Mar 27, 2006 9:01 pm Reply with quote

Ya, its doing the same thing that my site with the problem is doing... I dont know why one site is fine and working and the other is not working


Just so were on the same page. I do not even use nsn groups but it came with ravens distro so I installed it. Rolling Eyes
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©