Unexpected Notice

XUpload related questions

Moderator: admin

Message
Author
Aktar
Posts: 3
Joined: Jan 30, 2007 4:41 pm

Unexpected Notice

#1 Postby Aktar » Feb 06, 2007 11:06 am

Dont know if anyone is having the same problems with the Opera :

When I click submit, Opera shows me a notice with the number 2 on it


Image



and here is the page code :


Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/regular.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="link" -->
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
 
 winName  = 'preview';
 features =   'scrollbars=no,width=530,height=300';
 
  window.open(theURL,winName,features);
}

function popUp(URL) {
day = new Date();
id = 'progress';
eval("page" + id + " = window.open(URL, '" + id + "', 'screenX=300,screenY=300,titlebar=no,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=105,height=40');");
}
// End -->
</script>
<script type="text/javascript" src="/includes/cascades.js"></script>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="doctitle" -->
<title>TVinternetTV - My uploads</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>
<table width="905" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!-- InstanceBeginEditable name="header" -->
      <?  include_once("header.inc.php"); ?>
      <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td valign="top"><!-- InstanceBeginEditable name="body" -->
      <?

if (ENABLE_DEBUG)
{
   print "___________________START DEBUG___________________<br /><br />";

   foreach($debug as $debug_number => $debug_messages)
   {
      print "<b>$debug_number : </b>$debug_messages<br />";
   }
   print "<br /><br />___________________END DEBUG_____________________<br /><br />";
}

foreach($error as $err_number => $err_messages)
{
   if ($err_number == 0) continue;
   print "<b>$err_number : </b>$err_messages<br />";
}

//file feild manupulation
//When editing, only edit the db data. This is because the cgi upload program does not submit form without a file.
//Use elementy logics : to edit movie - delete and then upload again

if (isset($_REQUEST['edit_media'])) //edit will not
{
   $action      =   NULL;
   $onSubmit   =   NULL;
   $fileFeild   =   NULL;
}
else //for new uploads
{
   $action      =   "/cgi-bin/upload.cgi?upload_id=";
   $onSubmit   =   "return StartUpload(this);";
   $fileFeild   =   "   <tr>
                    <td valign='top' bgcolor='#99CC00' class='bdr_left'>&nbsp;</td>
                    <td valign='top' bgcolor='#99CC00' class='bdr_right'>
                       <input id='my_file_element' type='file' name='file'>
                    </td>
                  </tr>";
}


?>
      <div id="upload_form">
        <form name="F1Upload" id="F1Upload" enctype="multipart/form-data" action="<?=$action;?>" method="post" onSubmit="<?=$onSubmit;?>">
          <?
if ($hidden_inputs != NULL)
   {
      print '<!--###############################EDIT INPUTS##############################-->
      ';
      print $hidden_inputs;
      print '<!--#############################END EDIT INPUTS############################-->
      ';
   }
?>
          <table width="905"  border="0" align="center" cellspacing="0" class="div1" id="div1">
            <tr>
              <td valign="top" class="bdrLeft bdrRight bdrTop bdrBottom">
                <table width="300"  border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top" bgcolor="#99CC00" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#99CC00" class="bdr_right"><b>File</b>
                  </tr>
                  <?=$fileFeild;?>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right"><b>Title</b></td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right">
                      <input name="title" type="text" class="small" id="title" value="<[email protected]$_POST['title'];?>" />
                    </td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b>Short Description</span></b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right">
                      <textarea name="description" cols="30" rows="2" wrap="virtual" class="small" id="description"><[email protected]$_POST['description'];?>
</textarea>
                    </td>
                  </tr>
                  <?
if ($_GET['upload'] == 'vidmaps')
{
?>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right"><b>Road name or code</b> </td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right">
                      <input name="road" type="text" class="small" id="road" value="<[email protected]$_POST['road'];?>">
                    </td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b>County/State</b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right">
                      <input name="county" type="text" class="small" id="county" value="<[email protected]$_POST['county'];?>">
                    </td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right"><b>Postcode/ Zipcode</b> </td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right">
                      <input name="postcode" type="text" class="small" id="postcode" value="<[email protected]$_POST['postcode'];?>">
                      <input name="media_type" type="hidden" id="media_type" value="vidmaps">
                    </td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b>Continent</b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right">
                      <select name="continent" style="font-size:10px" id="continent"  onchange="cascade(this,this.form.elements['country'],this.form.elements['cat'],'')">
                        <option value="">[ CONTINENT ]</option>
                        <option value="AF" <? if (isset($_POST['continent']) && $_POST['continent'] == "AF") print 'selected="selected"'; ?>>Africa</option>
                        <option value="AN" <? if (isset($_POST['continent']) && $_POST['continent'] == "AN") print 'selected="selected"'; ?>>Antarctica</option>
                        <option value="AS" <? if (isset($_POST['continent']) && $_POST['continent'] == "AS") print 'selected="selected"'; ?>>Asia</option>
                        <option value="EU" <? if (isset($_POST['continent']) && $_POST['continent'] == "EU") print 'selected="selected"'; ?>>Europe</option>
                        <option value="NA" <? if (isset($_POST['continent']) && $_POST['continent'] == "NA") print 'selected="selected"'; ?>>North America</option>
                        <option value="OC" <? if (isset($_POST['continent']) && $_POST['continent'] == "OC") print 'selected="selected"'; ?>>Oceania</option>
                        <option value="SA" <? if (isset($_POST['continent']) && $_POST['continent'] == "SA") print 'selected="selected"'; ?>>South America</option>
                      </select>
                    </td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right"><b>Country</b></td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right">
                      <select  style="font-size:10px" name="country" id="country">
                        <? if (isset($_POST['country'])) {?>
                        <option selected="selected" value="<?=$_POST['country'];?>">
                        <?=$countries[$_POST['country']]?>
                        </option>
                        <? } ?>
                        <option value="">[ SELECT ]</option>
                      </select>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">&nbsp;</td>
                  </tr>
                  <?
}//if vidmaps
else //for everyting else
{
?>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b>Keywords</b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b><b><b>
                      <input name="keywords" type="text" class="small" id="keywords" value="<[email protected]$_POST['keywords'];?>" size="40" />
                      </b></b></b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right"><b>Password</b></td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_left bdr_bottom">&nbsp;</td>
                    <td valign="top" bgcolor="#EDEFED" class="bdr_right bdr_bottom">
                      <input name="media_pw" type="text" class="small" id="media_pw" value="<[email protected]$_POST['media_pw'];?>" />
                      <p><b>Password</b><br />
                        <span class="example">This media will only be available if this password is supplied in your channel.</span></p>
                      <p class="example">Leave blank if you want to make it available for everyboy to see.</p>
                      <b>Keywords</b><br>
                      <span class="example">Putting in keywords enables other users to find your video by search. </span>
                      <p class="example">Leave blank if you do not wish to 'search enable' your video.<br>
                        <br>
                      </p>
                    </td>
                  </tr>
                  <tr class="option_title bdr_left">
                    <td width="2%" valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right">Premium Services <b>- Main channel </b></td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left">&nbsp;</td>
                    <td valign="top" class="bdr_right"><b>Available to main channel?</b> <a href="/text/?section=tariffs" target="_blank">Click here</a> for tariffs</td>
                  </tr>
                  <tr>
                    <td valign="top" class="bdr_left bdr_bottom">&nbsp;</td>
                    <td valign="top" class="bdr_right bdr_bottom">
                      <p>
                        <input name="main_channel" type="radio" value="n"  <? if (@$_POST['main_channel'] == 'n' || !isset($_POST['main_channel'])) print 'checked="checked"'; ?> />
                        No <br />
                        <input name="main_channel" type="radio" value="y" <? if (@$_POST['main_channel'] == 'y') print 'checked="checked"'; ?> />
                        Yes</p>
                      <p><span class="example">If you would like us to add this media to the main channel, select <b>Yes -- </b>charge applies see <a href="/text/?section=tariffs">tariff</a></span> </p>
                    </td>
                  </tr>
                  <?
}//adding everything else
?>
                </table>
              </td>
              <td width="10" align="center" valign="top">&nbsp;</td>
              <td  class="bdrLeft bdrRight bdrTop bdrBottom" width="595" align="center" valign="top" bgcolor="#EDEFED">
                <table width="96%"  border="0" align="center" cellpadding="2" cellspacing="0">
                  <tr>
                    <td align="left" class="example"><b class="warning">Now Showing :
                      <?
         
         switch ($_GET['show_media'])
         {
            case     "all"      :   print "All media"; break;
            case    "vids"      :   print "Videos"; break;
            case    "vidmaps"   :   print "Video Maps"; break;
            case    "sounds"   :   print "Sounds"; break;
            case    "pics"      :   print "Pictures"; break;
            case    "files"      :   print "Other Media"; break;
         }
         ?>
                      </b></td>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="left"><b>Title/ File name </b></td>
                    <td width="5%" align="left"><b><img src="/graphics/buttons/gif/tv.gif" width="22" height="13"></b></td>
                    <td width="5%" align="left"><img src="/graphics/buttons/gif/lock.gif" width="16" height="19"></td>
                    <td width="15%" align="left"><b>Edit Tags </b></td>
                    <td width="14%" align="left"><b>Delete</b></td>
                  </tr>
                  <[email protected]$file_out;?>
                  <tr>
                    <td align="left" class="bdrTop">&nbsp;</td>
                    <td align="left" class="bdrTop">&nbsp;</td>
                    <td align="left" class="bdrTop">&nbsp;</td>
                    <td align="left" class="bdrTop">&nbsp;</td>
                    <td align="left" class="bdrTop">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="5"><br>
                      <table width="100%" border="0" cellpadding="0" cellspacing="2">
                        <tr>
                          <td width="5%"><img src="/graphics/buttons/gif/tv.gif" width="22" height="13"></td>
                          <td width="95%" align="left">Media is available in main channel </td>
                        </tr>
                        <tr>
                          <td><img src="/graphics/buttons/gif/lock.gif" width="16" height="19"></td>
                          <td align="left">Media is password protected</td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
                <p align="left"><b>Videos:</b> You may upload almost any video format and we will try to convert it to our standard format within 2 hours of uploading. If for any unfortunate reason we are unable to convert your video, it will be deleted.</p>
                <p align="left"><b>Pictures :</b> not all picture formats are displayable on all browsers. We recommend that you upload common file formats such as Jpeg, gif, png, bmp. Although we convert all videos, we do not do the same for pictures. </p>
                <p align="left" class="redStdButton"><b>:: Having problems uploading? <a href="index_old.php">click here</a> for an alternative method </b></p>
                <p align="left">Or try the following :<br />
                  Delete your temporary internet files, cookies and session data </p>
              </td>
            </tr>
            <tr>
              <td colspan="3" valign="top">
                <p>&nbsp;</p>
              </td>
            </tr>
            <tr>
              <td colspan="3" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" valign="top">
                <table width="100%"  border="0" cellpadding="0" cellspacing="0">
                  <tr class="bdr_bottom">
                    <td colspan="2" valign="top" bgcolor="#FFFFFF">
                      <input type="submit" class="myForm" accessKey="1" name="submit_btn" id="submit_btn" value="<?=isset($_GET['edit_media']) ? 'Edit' : 'Upload';?>" />
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <input type="hidden" name="xmode" value="1" />
          <input type="hidden" name="css_name" value="" />
          <input type="hidden" name="tmpl_name" value="" />
          <input type="checkbox" name="inline" id="inline" checked="checked" style="display: none;" />
          <input name="ext_folder" type="hidden" id="ext_folder" value="<?=$_SESSION['channelName'];?>" />
        </form>
      </div>
   <?
   if (!isset($_REQUEST['edit_media'])) //edit will not
   {
   ?>
      <iframe src="about:blank" name="upload" frameborder="0" id="upload" style="width: 0px; height: 0px;z-index: 182;"></iframe>
      <script>document.write('<script src="' + document.F1Upload.action+'&mode=settings' + '&xmode=' +document.F1Upload.xmode.value+ '" type="text/javascript"><\/script>');</script>
      <script src="xupload.js"></script>
   <?
   }
   ?>
      <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><!-- InstanceBeginEditable name="footer" -->
      <?  include_once("footer.inc.php"); ?>
      <!-- InstanceEndEditable --></td>
  </tr>
</table>
</body>
<!-- InstanceEnd -->
</html>
[/code]

Guest
Posts: 18
Joined: Jan 30, 2007 10:41 pm

#2 Postby Guest » Feb 06, 2007 2:28 pm

I do not have a fix for you, but I'm also testing my new site with Opera (9.10), and for me XUpload is working fine (I do not get a java script error)

I'm having an other problem with Opera (not XUpload related), and that is that it does not really like "Cache-Control" stuff that my pages use...

Anyway.. Thats an other story...


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 1 guest