示例#1
0
文件: carnet.php 项目: npds/npds_dune
 include "themes/{$tmp_theme}/theme.php";
 $Titlesitename = translate("Bookmark");
 include "meta/meta.php";
 echo import_css($tmp_theme, $language, $site_font, "", "");
 include "lib/formhelp.java.php";
 $fic = "users_private/" . $userdata[1] . "/mns/carnet.txt";
 echo "\n\n   </head>\n\n   <body topmargin=\"2\" bottommargin=\"2\" leftmargin=\"2\" rightmargin=\"2\" style=\"background-color: #FFFFFF;\">";
 if (file_exists($fic)) {
     $fp = fopen($fic, "r");
     if (filesize($fic) > 0) {
         $contents = fread($fp, filesize($fic));
     }
     fclose($fp);
     if (substr($contents, 0, 5) != "CRYPT") {
         $fp = fopen($fic, "w");
         fwrite($fp, "CRYPT" . L_encrypt($contents));
         fclose($fp);
     } else {
         $contents = decryptK(substr($contents, 5), substr($userdata[2], 8, 8));
     }
     echo '<table width="100%">';
     $contents = explode("\n", $contents);
     foreach ($contents as $tab) {
         $tabi = explode(';', $tab);
         if ($tabi[0] != '') {
             $rowcolor = tablos();
             echo "\n               <tr {$rowcolor}>\n               <td nowrap=\"nowrap\">&nbsp;<a href=\"javascript: DoAdd(1,'to_user','{$tabi['0']},')\";><b>{$tabi['0']}</b></a></td>\n               <td nowrap=\"nowrap\"><a href=\"mailto:{$tabi['1']}\" class=\"noir\"><b>{$tabi['1']}</a></td>\n               <td nowrap=\"nowrap\">{$tabi['2']}&nbsp;</td>\n               </tr>\n";
         }
     }
     echo '</table>';
 } else {
示例#2
0
                        list($Xcatid) = sql_fetch_row(sql_query("select title from " . $NPDS_Prefix . "stories_cat where catid='{$catid}'"));
                    }
                    $Zibid .= "<input type=\"hidden\" name=\"Xcatid\" value=\"" . L_encrypt($Xcatid) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xaid\" value=\"" . L_encrypt($tmp[$cpt]["AUTHOR"]) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xsubject\" value=\"" . L_encrypt($subject) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xhometext\" value=\"" . L_encrypt($hometext) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xbodytext\" value=\"" . L_encrypt($bodytext) . "\" />";
                    if (isset($tmp[$cpt]["TOTOPIC"])) {
                        $Xtopic = $tmp[$cpt]["TOTOPIC"];
                    } else {
                        list($Xtopic) = sql_fetch_row(sql_query("select topictext from " . $NPDS_Prefix . "topics where topicid='{$topic}'"));
                    }
                    $Zibid .= "<input type=\"hidden\" name=\"Xtopic\" value=\"" . L_encrypt($Xtopic) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xauthor\" value=\"" . L_encrypt($tmp[$cpt]["MEMBER"]) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xnotes\" value=\"" . L_encrypt($notes) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xihome\" value=\"" . L_encrypt($ihome) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xdate_debval\" value=\"" . L_encrypt($date_debval) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xdate_finval\" value=\"" . L_encrypt($date_finval) . "\" />";
                    $Zibid .= "<input type=\"hidden\" name=\"Xepur\" value=\"" . L_encrypt($epur) . "\" />";
                }
                $Zibid .= "<input type=\"hidden\" name=\"Xurl_back\" value=\"cluster{$cpt}\" />";
                $Zibid .= "<br /><p align=\"center\"><span class=\"noir\" style=\"font-size: 12px;\"><b>" . translate("Update") . " : " . $tmp[$cpt]["WWW"] . "</b></span><br /><br />";
                $Zibid .= "<input type=\"submit\" class=\"bouton_standard\" value=\"" . translate("Submit") . "\" />&nbsp;&nbsp;";
                $Zibid .= "<input type=\"button\" class=\"bouton_standard\" value=\"" . translate("Cancel") . "\" onclick=\"window.close()\" /><br />";
                $Zibid .= "</p></form></body></html>";
                echo "<script type=\"text/javascript\">\n                  //<![CDATA[\n                  cluster{$cpt}.document.write('{$Zibid}');\n                  //]]>\n                  </script>";
                $cpt = $cpt + 1;
            }
        }
    }
}