[gst-cvs] CVS: www/docs admin.php,NONE,1.1 faq.php,1.3,1.4

Andy Wingo wingo at users.sourceforge.net
Sun Oct 14 21:47:03 PDT 2001


Update of /cvsroot/gstreamer/www/docs
In directory usw-pr-cvs1:/tmp/cvs-serv1636/docs

Modified Files:
	faq.php 
Added Files:
	admin.php 
Log Message:
* no password on root admin script, it doesn't do anything anyway
* faq stuff now in a database (i'll update this shortly)


--- NEW FILE: admin.php ---
<?php
  include ('../lib/template.php');
  include ('../lib/db_setup.php');
  
  $top = get_header('GStreamer: News: Admin', '..');

  if(!isset($PHP_AUTH_USER)) {
    Header("WWW-Authenticate: Basic realm=\"gstreamer-faq-admin\"");
    Header("HTTP/1.0 401 Unauthorized");
    echo $top, "<p>You must be an authorized user to access the GStreamer faq administration page. Sorry, holmes.</p>",
         get_footer();
    exit;
  } else {
    if (strcmp($PHP_AUTH_USER, $faq_user)!=0 ||
        strcmp($PHP_AUTH_PW, $faq_pass)!=0) {
      Header("WWW-Authenticate: Basic realm=\"gstreamer-faq-admin\"");
      Header("HTTP/1.0 401 Unauthorized");
      echo $top, "<p>You must be an authorized user to access the GStreamer faq administration page. Sorry, holmes.</p>",
           get_footer();
      exit;
    }
    echo $top;
  }
  
  $link = mysql_pconnect ($mysql_host, $mysql_user, $mysql_pass);
  mysql_select_db ($mysql_database);
  
  echo "<h1>GStreamer faq administration page</h1>\n";
  
  if ($op) {
    switch($op) {
      case "edit":
        if (!isset($id)) {
          echo "<p> you must choose an item to act on first. </p>\n";
          break;
        }
        echo "<form action=\"./admin.php\" method=\"post\">\n";
        echo "<input type=\"hidden\" name=\"op\" value=\"edit2\">\n";
        echo "<input type=\"hidden\" name=\"id\" value=\"$id\">\n";
        $query = mysql_query("select * from faq where id=$id");
        $row = mysql_fetch_array($query);
        echo "<input type=\"text\" size=\"30\" name=\"question\" value=\"", htmlspecialchars($row['question']), "\"><br>\n";
        echo "<textarea name=\"answer\" rows=\"8\" cols=\"60\" wrap=\"soft\">", htmlspecialchars($row['answer']), "</textarea><br>\n";
        echo "<input type=\"submit\" value=\"edit faq item\">\n";
        print "</form>\n";
        break;
      case "edit2":
        $query = mysql_query("update faq set question='$question', answer='$answer' where id=$id");
        echo "<p>FAQ item edited.</p>";
        break;
      case "add":
        echo "<form action=\"./admin.php\" method=\"post\">\n";
        echo "<input type=\"hidden\" name=\"op\" value=\"add2\">\n";
        echo "<input type=\"text\" size=\"30\" name=\"question\" value=\"\"><br>\n";
        echo "<textarea name=\"answer\" rows=\"8\" cols=\"60\" wrap=\"soft\"></textarea><br>\n";
        echo "<input type=\"submit\" value=\"add faq item\">\n";
        print "</form>\n";
        break;
      case "add2":
        $query = mysql_query("insert into faq (question, answer) values ('$question', '$answer')"); 
        echo "<p>FAQ item added.</p>";
        break;
      case "remove":
        if (!isset($id)) {
          echo "<p> you must choose an item to act on first. </p>\n";
          break;
        }
        echo "<form action=\"./admin.php\" method=\"post\">\n";
        echo "<p>Are you sure you want to do this?</p>\n";
        echo "<input type=\"hidden\" name=\"op\" value=\"remove2\">\n";
        echo "<input type=\"hidden\" name=\"id\" value=\"$id\">\n";
        $query = mysql_query("select * from faq where id=$id");
        $row = mysql_fetch_array($query);
        echo "<h2><a href=\"#q$id\">", $row['question'], "</a></h2>\n";
        echo "<p>", $row['answer'], "</p>\n";
        echo "<input type=\"submit\" value=\"really remove this faq item\">\n";
        print "</form>\n";
        break;
      case "remove2":
	$query = mysql_query("delete from faq where id=$id");
        echo "<p>Item deleted.</p>\n";
        break;
    }
    echo "<a href=\"./admin.php\">back to main faq admin page</a>\n";
    echo get_footer();
    exit;
  }
?>

<?php
  $query = mysql_query("select * from faq");
  print "<form action=\"./admin.php\" method=\"post\"><table>\n";
  while ($row = mysql_fetch_array($query)) {
    echo "<tr><td><input type=\"radio\" name=\"id\" value=\"", $row['id'], "\"></td>";
    echo "<td><h2>", $row['question'], "</h2></td></tr>\n";
  }
  echo "</table>\n";
  print "<input type=\"submit\" name=\"op\" value=\"edit\">\n";
  print "<input type=\"submit\" name=\"op\" value=\"add\">\n";
  print "<input type=\"submit\" name=\"op\" value=\"remove\">\n";
  print "</form>\n";
?>


<?php echo get_footer(); ?>
 

Index: faq.php
===================================================================
RCS file: /cvsroot/gstreamer/www/docs/faq.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- faq.php	2001/10/14 10:41:08	1.3
+++ faq.php	2001/10/15 04:46:30	1.4
@@ -1,104 +1,24 @@
 <?php
- include ('../lib/template.php');
- echo get_header('GStreamer: Frequently Asked Questions', '..');
-?>
-
-<H1>Frequently Asked Questions</H1>
-
-<OL>
-<LI><A HREF="#faq1">Is GStreamer a media player?</A></LI>
-<LI><A HREF="#faq2">Does GStreamer offer support for DVD decoder cards like dxr2/3?</A></LI>
-<LI><A HREF="#faq3">How do I use the GStreamer command line interface?</A></LI>
-<LI><A HREF="#faq4">Does GStreamer use GTK1.2/Glib1.2 or GTK2.0/Glib2.0?</A></LI>
-<LI><A HREF="#faq5">Is GStreamer X independent?</A></LI>
-<LI><A HREF="#faq6">Why are there so many dependencies?</A></LI>
-<LI><A HREF="#faq7">Why are RidgeRun sponsoring GStreamer development?</A></LI>
-<LI><A HREF="#faq8">What applications are available for GStreamer?</A></LI>
-<LI><A HREF="#faq9">What are the exact licensing terms for GStreamer and its plugins?</A></LI>
-<LI><A HREF="#faq10">Is GStreamer a sound server?</A></LI>
-<LI><A HREF="#faq11">Why is mail traffic so low on gstreamer-devel?</A></LI>
-<LI><A HREF="#faq12">Will GStreamer be available for other platforms than Unix?</A></LI>
-<LI><A HREF="#faq13">What is GStreamer's position to efforts like LADSPA?</A></LI>
-<LI><A HREF="#faq14">Does GStreamer support Midi?</A></LI>
-<LI><A HREF="#faq15">Does GStreamer depend on GNOME?</A></LI>
-<LI><A HREF="#faq16">What is GStreamer's relationship with the GNOME community?</A></LI>
-<LI><A HREF="#faq17">What is GStreamer's relationship with the KDE community?</A></LI>
-<LI><A HREF="#faq18">What kind of versioning scheme does GStreamer use?</A></LI>
-<LI><A HREF="#faq19">When I run autogen.sh for GStreamer it consumes an incredible amount of memory, why?</A></LI>
-
-</OL>
-<BR>
-<BR>
-<A NAME="faq1"><H2>Is GStreamer a media player?</H2></A>
-<P>No, GStreamer is a development framework for creating applications like media players, video editors,
-streaming media broadcasters and so on. That said very good media players can easily be built on top
-of GStreamer and we even include a simple yet functional mediaplayer with GStreamer called gstmediaplay.
-</P>
-<BR>
-<A NAME="faq2"><H2>Does GStreamer offer support for DVD decoder cards like dxr2/3?</H2></A>
-<P>Not currently, but there has been expressed interest by developers in adding such support
-and there is nothing inherent in the GStreamer architecture hindering the addition of such plugins.
-</P>
-<BR>
-<A NAME="faq3"><H2>How do I use the GStreamer command line interface?</H2></A>
-<P>You access the GStreamer command line interface using the command gstreamer-launch.
-For instance writing <CODE>gstreamer-launch disksrc location=thesong.mp3 ! autoplugger ! osssink</CODE>.
-More examples can be found in the gstreamer-launch man page.</P>
-<BR>
-<A NAME="faq4"><H2>Does GStreamer use GTK1.2/Glib1.2 or GTK2.0/Glib2.0?</H2></A>
-<P>Since the 0.2.1 release of GStreamer we have used Glib 2.0 as the primary library for GStreamer. However since the majority of people out there still use GTK1.2/Glib1.2 and our current applications are not ported we have made it possible to still compile GStreamer using these older libraries. 
-</P>
-<BR>
-<A NAME="faq5"><H2>Is GStreamer X independent?</H2></A>
-<P>If you compile GStreamer using glib2.0 it is X independent. However until our Linux Framebuffer or libsvga plugin is ready you will not be able to play videos without X. In the future there will probably be lots of different output plugins for video available.</P>
-<BR>
-<A NAME="faq6"><H2>Why are there so many dependencies?</H2></A>
-<P>Making a full featured media framework is a huge undertaking in itself, by using the work done by others
-we both reduce the amount of redundant work being done and leave ourselves free to work on the architecture itself instead of working on the lowlevel stuff.</P>
-<BR>
-<A NAME="faq7"><H2>Why are RidgeRun sponsoring GStreamer development?</H2></A>
-<P>RidgeRun wants to use GStreamer for enabling their customers to build multimedia appliances using
-their embedded Linux version. For more information <A HREF="../dev/ridgerun.php">check out this page</A>.</P>
-<BR>
-<A NAME="faq8"><H2>What applications are available for GStreamer?</H2></A>
-<P>GStreamer is still very early in its development, but already we see some really nice applications being developed in parallel with GStreamer. For a list of some of the more advanced projects look at the list
-in our <A HREF="../status/">Status table</A>.</P>
-<BR>
-<A NAME="faq9"><H2>What are the exact licensing terms for GStreamer and its plugins?</H2></A>
-<P>All of GStreamer including our plugin code is licensed under the <A HREF="http://www.gnu.org/licenses/lgpl.html">GNU LGPL</A> license. Some of the libraries we use for some of the plugins are however using the GPL, which means that those plugins can not be used by a non-GPL compatible application. As part of the GStreamer source download you find a file called license_README. That file contains information in the exact licensing terms of the libraries we use. As a general rule GStreamer aims at using only LGPL or BSD licensed libraries if available and only use GPL or proprietary libraries where no good LGPL or BSD alternatives are available.</P>
-<BR>
-<A NAME="faq10"><H2>Is GStreamer a sound server?</H2></A>
-<P>No, GStreamer is not a soundserver. GStreamer do however have plugins supporting most of the major 
-soundservers available today which includes ESD and aRTSd. Support for ASD is also planned.</P>
-<BR>
-<A NAME="faq11"><H2>Why is mail traffic so low on gstreamer-devel?</H2></A>
-<P>Our main arena for coordination and discussion is IRC not email. We do however archive our IRC discussions which you find in the gstreamer-daily mailnglist archives.
-</P>
-<BR>
-<A NAME="faq12"><H2>Will GStreamer be available for other platforms than Unix?</H2></A>
-<P>Depends. Our main target is the Unix platform. That said there have been expressed interest in porting GStreamer to other plattforms and the GStreamer core team will gladly accept patches to accomplish this.
-</P>
-<BR>
-<A NAME="faq13"><H2>What is GStreamer's position to efforts like LADSPA?</H2></A>
-<P>GStreamer actively supports such efforts, and we already have support for LADSPA plugins for instance.</P>
-<BR>
-<A NAME="faq14"><H2>Does GStreamer support Midi?</H2></A>
-<P>No. The GStreamer architecture should be able to support the needs of Midi applications very well however. If you are a developer interested in adding Midi support to GStreamer we are very interested in getting in touch with you</P>
-<BR>
-<A NAME="faq15"><H2>Does GStreamer depend on GNOME?</H2></A>
-<P>No. But many of the applications developed for GStreamer do, including our sample applications. There is nothing hindering people from developing applications using other toolkits however and we would happily help promote such efforts. A good example of an application using GStreamer not using GNOME is the <A HREF="http://mozstreamer.mozdev.org">Mozstreamer</A> which uses Mozilla XUL. 
-</P>
-<BR>
-<A NAME="faq16"><H2>What is GStreamer's relationship with the GNOME community?</H2></A>
-<P>While GStreamer is operated as an independent project we do have a close relationship with the GNOME community. Many of our hackers consider themselves also to be members of the GNOME community. There are plans to make GStreamer an official part of the development framework of GNOME.</P>
-<BR>
-<A NAME="faq17"><H2>What is GStreamer's relationship with the KDE community?</H2></A>
-<P>The GStreamer community want to have a good a relationship as possible with KDE, and we hope that someday KDE decides to adopt GStreamer as their multimedia API just like the GNOME community plans on doing. There have been contacts from time to time between the GStreamer community and KDE and we do already have support for the aRTSd sound server used by KDE.</P>
-<BR>
-<A NAME="faq18"><H2>What kind of versioning scheme does GStreamer use?</H2></A>
-<P>We use a simple scheme which goes through 0.x.x with 0.9.x being the last before the 1.0 release. We do not plan on having any 0.11.x and so on releases for instance. We might have releases with double digits as the last number however, for example 0.2.14.</P>
-<BR>
-<A NAME="faq19"><H2>When I run autogen.sh for GStreamer it consumes an incredible amount of memory, why?</H2><A/>
-<P>There is a bug in automake which we have reported, but which hasn/'t been fixed yet. You find a patch/fix for automake in the README file.</P>
+  include ('../lib/template.php');
+  echo get_header ('GStreamer: Documentation: FAQ', '..');
 
-<?php echo get_footer(); ?>
+  include ('../lib/db_setup.php');
+  $link = mysql_pconnect ($mysql_host, $mysql_user, $mysql_pass);
+  mysql_select_db ($mysql_database);
+  
+  echo "<h1>GStreamer Frequently Asked Questions</h1>\n";
+  
+  echo "<ul>\n";
+  $query = mysql_query("select id, question from faq");
+  while ($row = mysql_fetch_array($query)) {
+    echo "<li><a href=\"#q", $row['id'], "\">", $row['question'], "</a></li>\n";
+  }
+  echo "</ul>\n";
+  $query = mysql_query("select id, question, answer from faq");
+  while ($row = mysql_fetch_array($query)) {
+    echo "<h2><a name=\"q", $row['id'], "\">", $row['question'], "</a></h2>\n";
+    echo "<p>", $row['answer'], "</p>\n";
+  }
+  
+  echo get_footer(); 
+?>





More information about the Gstreamer-commits mailing list