エントリー

webliberty 画像投稿数変更

テストで問題無かったので、変更箇所を自分用メモも兼ねて。
ちなみに、行番号は目安です。 ※エディタの折り返し機能を使ったので

私はアップ画像数9まで増やしましたが、下記の内容は6になってます。
増やす分だけ数字や追加行が増えます。
当然の事ですが… 自己責任でお願いします。 orz

またソースの長い行は適当に改行しています。
まぁ… 実際作業する場合は、ソースの方をコピペすると思いますけど(苦笑

変更ファイル【1/3】 lib > webliberty > App > Admin.pm

変更前 612,618,643,939,947,985,998,3216,3245,3266foreach (1 .. 5) {
変更後 612,618,643,939,947,985,998,3216,3245,3266foreach (1 .. 6) {

追加 3175,7265 FORM_EXT6 => '',
追加 3335 FORM_EXT6 => $ext{'6'},


変更ファイル【2/3】 lib > webliberty > App > Diary.pm

変更前 433 my($form_file1, $form_file2, $form_file3, $form_file4, $form_file5) = split(/<>/, $file_ins->get_string);
変更後 433 my($form_file1, $form_file2, $form_file3, $form_file4, $form_file5, $form_file6) = split(/<>/, $file_ins->get_string);

変更前 441 my($check1, $check2, $check3, $check4, $check5);
変更後 441 my($check1, $check2, $check3, $check4, $check5, $check6);

追加 458 if ($self->{query}->{delfile6}) {
 $check6 = ' checked="checked"';
 }

追加 470 if ($form_file6) {
 $form_file6 = "<input type=\"checkbox\" name=\"delfile6\" id=\"delfile6_checkbox\" value=\"on\"$check6 />
<label for=\"delfile6_checkbox\">$form_file6を削除</label>";
 }

追加 580 FORM_FILE6 => $form_file6,

変更前 990 my($article_file1, $article_file2, $article_file3, $article_file4, $article_file5) = split(/<>/, $file_ins->get_string);
変更後 990 my($article_file1, $article_file2, $article_file3, $article_file4, $article_file5, $article_file6)
= split(/<>/, $file_ins->get_string);

変更前 991 my($article_file1_start, $article_file1_end, $article_file2_start, $article_file2_end,
$article_file3_start, $article_file3_end, $article_file4_start, $article_file4_end, $article_file5_start, $article_file5_end);
変更後 991 my($article_file1_start, $article_file1_end, $article_file2_start, $article_file2_end,
$article_file3_start, $article_file3_end, $article_file4_start, $article_file4_end, $article_file5_start, $article_file5_end
, $article_file6_start, $article_file6_end);

変更前 1006 if ($article_file1 or $article_file2 or $article_file3 or $article_file4 or $article_file5) {
変更後 1006 if ($article_file1 or $article_file2 or $article_file3 or $article_file4 or $article_file5 or $article_file6) {

変更前 1010 foreach ($article_file1, $article_file2, $article_file3, $article_file4, $article_file5) {
変更後 1010 foreach ($article_file1, $article_file2, $article_file3, $article_file4, $article_file5, $article_file6) {

追加 1136 if (!$article_file6) {
 $article_file6_start = '<!--';
 $article_file6_end = '-->';
 }

追加 1400 ARTICLE_FILE6 => $article_file6,
 ARTICLE_FILE6_START => $article_file6_start,
 ARTICLE_FILE6_END => $article_file6_end,


変更ファイル【3/3】 skin > admin_form.html

追加 18 <input type="hidden" name="ext6" value="${FORM_EXT6}" />
追加 54 <dt>ファイル6</dt>
 <dd><input type="file" name="file6" size="30" />${FORM_FILE6}</dd>

ページ移動

トラックバック

  • トラックバックはまだありません。

トラックバックURL

https://izuito.net/_cgi/freo/trackback/4261

コメント

  • コメントはまだありません。

コメント登録

  • コメントを入力してください。
登録フォーム
名前
メールアドレス
URL
投稿キー(スパム対策に、投稿キー を半角で入力してください。)
コメント
閲覧制限

ユーティリティ

- 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 - - - -

過去ログ

ノート

  • ノートは登録されていません。

新着エントリー

javascript 再勉強中
2024/03/08 10:56
ベータガンダムは伊達じゃない
2024/02/21 11:07
残り約50ページ
2024/01/29 13:07
スマホのカメラ機能
2023/12/19 11:59
ガラケー卒業
2023/11/27 18:57

新着コメント

Re:スマホのカメラ機能
2024/01/13 from dshata
Re:スマホのカメラ機能
2024/01/12 from とくめい
Re:アクアビーズアート(2)
2021/10/10 from はやとまる
Re:旗印、自作してみた。
2021/02/18 from goopee
Re:初のスキルLV.10武将 の続き 2
2014/09/24 from DSHata(管理人)