Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/config_form.php
<?php
	 if ($handle = opendir('modules/topMusic/themes')) {
	   while (false !== ($dir = readdir($handle))) { 
	       if ($dir != "." && $dir != ".." && $dir!="" && $dir!="CVS" && $dir!=".svn") { 
	           $menulist[]= $dir; 
	           //echo "writable=".is_writable('modules/topMusic/themes_c/'.$dir)."<br>";
	           if(!is_dir('modules/topMusic/themes_c/'.$dir)){
	           	  if(!mkdir('modules/topMusic/themes_c/'.$dir)){
	           	  	$err="<font color=\"red\"><b>Alert: impossible to create directory 'modules/topMusic/themes_c/".$dir."'. Create it manually and set write permissions (775) to webserver's user or group</b></font>";
	           	  }else{
	           	  	 if(!is_writable('modules/topMusic/themes_c/'.$dir)){
			           if(!@chmod('modules/topMusic/themes_c/'.$dir,775)){
			           		$err="<font color=\"red\"><b>Alert: impossible to set permissions to directory 'modules/topMusic/themes_c/".$dir."'. Do it manually setting write permissions (775) to webserver's user or group</b></font>";
			           }
	           		}
	           	  }
	           }else{
	           		if(!is_writable('modules/topMusic/themes_c/'.$dir)){
			           if(!@chmod('modules/topMusic/themes_c/'.$dir,775)){
			           		$err="<font color=\"red\"><b>Alert: impossible to set permissions to directory 'modules/topMusic/themes_c/".$dir."'. Do it manually setting write permissions (775) to webserver's user or group</b></font>";
			           }
	           		}
	           }
	       } 
	   }
	 }
   	closedir($handle);
?>
<style type="text/css">
<!--
.Estilo1 {
	font-size: xx-small;
	color: #0000FF;
}
-->
</style>
<form action="" method="post">
<table  border="0">
  <tr>
    <td width="150"><strong><?=_TOPMUSIC_GENERALSETTINGS?></strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_NUKEMENU?>:</td>
    <td><input name="nuke_menu_graph" type="checkbox" id="nuke_menu_graph" value="nuke_menu" <?=($config->nuke_menu)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_PHPNUKEROOT?>: <br>
      <span class="Estilo1">Ex: http://www.sergids.com/topmusic</span></td>
    <td><input name="baseURL" type="text" value="<?=$config->base_url?>" size="35"></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_MAINPAGE?>:</td>
    <td><select name="main_page">
      <option value="AZ" <?=($config->main_page=="AZ")?"selected":""?>><?=_TOPMUSIC_AZ?></option>
      <option value="ranking" <?=($config->main_page=="ranking")?"selected":""?>><?=_TOPMUSIC_RANKING?></option>
      <option value="search" <?=($config->main_page=="search")?"selected":""?>><?=_TOPMUSIC_SEARCH?></option>
      <option value="charts" <?=($config->main_page=="charts")?"selected":""?>><?=_TOPMUSIC_CHARTS?></option>
    </select></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_SONGRATESYSTEM?>:</td>
    <td><input name="songs_rate_system" type="checkbox" id="songs_rate_system" value="songs_rate" <?=($config->rate_songs)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_ARTISTRATESYSTEM?>:</td>
    <td><input name="artists_rate_system" type="checkbox" id="artists_rate_system" value="artists_rate" <?=($config->rate_artists)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_ALBUMRATESYSTEM?>:   </td>
    <td><input name="albums_rate_system" type="checkbox" id="albums_rate_system" value="albums_rate" <?=($config->rate_albums)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_UPLOADSYSTEM?>:</td>
    <td><input name="upload_system" type="checkbox" id="upload_system" value="uploads" <?=($config->upload)?"checked":""?>></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><strong><?=_TOPMUSIC_DISPLAYSETTINGS?></strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
 <?if($err){?>
  <tr>
    <td colspan="2"><?=$err.'<br>'?></td>
  </tr>
 <?}?>
  <tr>
    <td><?=_TOPMUSIC_THEME?>:</td>
    <td>
    <select name="theme">
    <?php
    foreach($menulist as $stheme){
    	$sel=($config->theme==$stheme)?"selected":"";
    	echo "<option ".$sel.">".$stheme."</option>\n";
    }
    ?>
    </select> <a href="http://www.sergids.com/topmusic-create-theme.html" target="_blank">How to create a new theme</a></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_SHOWTOPMENU?>:</td>
    <td><input name="show_top_menu" type="checkbox" id="show_top_menu" value="top_menu" <?=($config->top_menu)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_SHOWRIGHTBLOCKS?>:</td>
    <td><input name="show_right_blocks" type="checkbox" id="show_right_blocks" value="right_blocks" <?=($config->ind)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_ADVANCEDAZLIST?>:</td>
    <td><input name="az_advanced" type="checkbox" id="az_advanced" value="az_advanced" <?=($config->az_advanced)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_RANKINGNUMBER?>:</td>
    <td><input name="num_items_ranking" type="text" id="num_items_ranking" value="<?=$config->rank_items?>" size="8"></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_RESULTSNUMBER?>: </td>
    <td><input name="num_items_results" type="text" id="num_items_results" value="<?=$config->result_items?>" size="8"></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_AZNUMBER?>:</td>
    <td><input name="num_columns_az" type="text" id="num_columns_az" value="<?=$config->az_columns?>" size="8"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><strong><?=_TOPMUSIC_MISCSETTINGS?></strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_EASYURL?>:<?="easy=".$config->easyURL?></td>
    <td><input name="show_easy_urls" type="checkbox" id="show_easy_urls" value="easy_urls" <?=($config->easyURL)?"checked":""?>></td>
  </tr>
  <tr>
    <td><?=_TOPMUSIC_EASYURLTYPE?>:</td>
    <td><select name="easyURLtype">
      <option value="2" <?=($config->easyURL_type==2)?"selected":""?>>apache mod_rewrite</option>
    </select>
          <!-- option value="0" <?=($config->easyURL_type==0)?"selected":""?>><?=_TOPMUSIC_EASYURLBYNAME?></option>
      <option value="1" <?=($config->easyURL_type==1)?"selected":""?>><?=_TOPMUSIC_EASYURLBYID?></option> -->
    
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="right"><input type="submit" name="saveconf" value="<?=_TOPMUSIC_SAVE?>"></td>
  </tr>
</table>
</form>
Return current item: Top Music module